fix: Remove dependency on .auto-build/scripts - auto-create directories

- Commands now use ${CLAUDE_PLUGIN_ROOT}/scripts/ for worktree scripts
- Directory .auto-build-data/ is created automatically when needed
- No manual setup required - plugin is self-contained
- Updated help.md, status.md, worktree.md, spec.md, build.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-22 00:54:20 +02:00
parent dbbf7c38a6
commit 34b12c5742
7 changed files with 19 additions and 18 deletions

View File

@@ -11,7 +11,7 @@
"name": "ab", "name": "ab",
"source": "./plugin", "source": "./plugin",
"description": "Spec-driven build orchestration with git worktree isolation and session memory", "description": "Spec-driven build orchestration with git worktree isolation and session memory",
"version": "1.0.1", "version": "1.0.2",
"keywords": ["build", "spec", "automation", "worktree", "qa"] "keywords": ["build", "spec", "automation", "worktree", "qa"]
} }
] ]

View File

@@ -1,7 +1,7 @@
{ {
"name": "ab", "name": "ab",
"description": "Auto-Build: Spec-driven build orchestration with worktree isolation and session memory", "description": "Auto-Build: Spec-driven build orchestration with worktree isolation and session memory",
"version": "1.0.1", "version": "1.0.2",
"author": { "author": {
"name": "ROA2WEB Team" "name": "ROA2WEB Team"
} }

View File

@@ -35,7 +35,7 @@ Create an isolated git worktree? (recommended for larger features)
``` ```
If yes: If yes:
- Run: `bash .auto-build/scripts/worktree-create.sh {feature-name}` - Run: `bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-create.sh {feature-name}`
- Update status.json with worktree path - Update status.json with worktree path
- Inform user of worktree location - Inform user of worktree location
@@ -43,7 +43,7 @@ If yes:
If status is `SPEC_COMPLETE`: If status is `SPEC_COMPLETE`:
1. Load memory context: 1. Load memory context (if exists):
- Read `.auto-build-data/memory/patterns.json` - Read `.auto-build-data/memory/patterns.json`
- Read `.auto-build-data/memory/gotchas.json` - Read `.auto-build-data/memory/gotchas.json`

View File

@@ -63,13 +63,11 @@ Display comprehensive help for the Auto-Build system.
- **Memory**: `.auto-build-data/memory/` - **Memory**: `.auto-build-data/memory/`
- **Worktrees**: `../ab-worktrees/{project}-{feature}/` - **Worktrees**: `../ab-worktrees/{project}-{feature}/`
## Setup ## First Time Setup
If not already set up: The plugin automatically creates `.auto-build-data/` when you run your first command.
```bash No manual setup required!
bash .auto-build/scripts/setup.sh
```
## More Information ## More Information
See `.auto-build/README.md` for complete documentation. Run `/ab:status` to see current build progress.

View File

@@ -17,8 +17,12 @@ Create a comprehensive specification for a new feature using the spec-writer age
### 1. Initialize ### 1. Initialize
- Parse feature name from arguments (kebab-case: "User Dashboard" -> "user-dashboard") - Parse feature name from arguments (kebab-case: "User Dashboard" -> "user-dashboard")
- Check if `.auto-build-data/` exists - Check if `.auto-build-data/` exists in the project root
- If not: Run `bash .auto-build/scripts/setup.sh` first - If not: Create the directory structure:
```
mkdir -p .auto-build-data/specs
mkdir -p .auto-build-data/memory
```
- Check if spec already exists at `.auto-build-data/specs/{feature-name}/` - Check if spec already exists at `.auto-build-data/specs/{feature-name}/`
- If exists: Ask "Update existing spec or create new version?" - If exists: Ask "Update existing spec or create new version?"

View File

@@ -10,7 +10,7 @@ Display the current status of Auto-Build, including active specs and builds.
1. **Check Data Directory** 1. **Check Data Directory**
- Verify `.auto-build-data/` exists - Verify `.auto-build-data/` exists
- If not, inform user to run setup: `bash .auto-build/scripts/setup.sh` - If not, create it: `mkdir -p .auto-build-data/specs .auto-build-data/memory`
2. **List Active Specs** 2. **List Active Specs**
- Read all directories in `.auto-build-data/specs/` - Read all directories in `.auto-build-data/specs/`
@@ -74,4 +74,4 @@ Quick Actions:
## Edge Cases ## Edge Cases
- If no specs exist: "No active builds. Start with /ab:spec <name>" - If no specs exist: "No active builds. Start with /ab:spec <name>"
- If data directory missing: "Run setup first: bash .auto-build/scripts/setup.sh" - If data directory missing: Create it automatically

View File

@@ -23,7 +23,7 @@ Create a new isolated worktree for a feature.
**Command:** **Command:**
```bash ```bash
bash .auto-build/scripts/worktree-create.sh {feature-name} bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-create.sh {feature-name}
``` ```
**Output:** **Output:**
@@ -53,7 +53,7 @@ List all active worktrees.
**Command:** **Command:**
```bash ```bash
bash .auto-build/scripts/worktree-list.sh bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-list.sh
``` ```
### switch <feature-name> ### switch <feature-name>
@@ -99,7 +99,7 @@ If no feature-name:
**Command:** **Command:**
```bash ```bash
bash .auto-build/scripts/worktree-cleanup.sh [feature-name] bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-cleanup.sh [feature-name]
``` ```
## Registry Format ## Registry Format
@@ -131,7 +131,6 @@ Structure:
``` ```
/projects/ /projects/
├── my-project/ # Main project ├── my-project/ # Main project
│ ├── .auto-build/
│ └── .auto-build-data/ │ └── .auto-build-data/
└── ab-worktrees/ # Worktrees directory └── ab-worktrees/ # Worktrees directory
├── my-project-user-dashboard/ ├── my-project-user-dashboard/