diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index b8eb340..2b5e2fb 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -11,7 +11,7 @@ "name": "ab", "source": "./plugin", "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"] } ] diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 608bd2e..2093fa7 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ab", "description": "Auto-Build: Spec-driven build orchestration with worktree isolation and session memory", - "version": "1.0.1", + "version": "1.0.2", "author": { "name": "ROA2WEB Team" } diff --git a/plugin/commands/build.md b/plugin/commands/build.md index d3f7f3b..1aa74c2 100644 --- a/plugin/commands/build.md +++ b/plugin/commands/build.md @@ -35,7 +35,7 @@ Create an isolated git worktree? (recommended for larger features) ``` 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 - Inform user of worktree location @@ -43,7 +43,7 @@ If yes: 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/gotchas.json` diff --git a/plugin/commands/help.md b/plugin/commands/help.md index 2e8f0b2..6986aa7 100644 --- a/plugin/commands/help.md +++ b/plugin/commands/help.md @@ -63,13 +63,11 @@ Display comprehensive help for the Auto-Build system. - **Memory**: `.auto-build-data/memory/` - **Worktrees**: `../ab-worktrees/{project}-{feature}/` -## Setup +## First Time Setup -If not already set up: -```bash -bash .auto-build/scripts/setup.sh -``` +The plugin automatically creates `.auto-build-data/` when you run your first command. +No manual setup required! ## More Information -See `.auto-build/README.md` for complete documentation. +Run `/ab:status` to see current build progress. diff --git a/plugin/commands/spec.md b/plugin/commands/spec.md index f778912..d896a3e 100644 --- a/plugin/commands/spec.md +++ b/plugin/commands/spec.md @@ -17,8 +17,12 @@ Create a comprehensive specification for a new feature using the spec-writer age ### 1. Initialize - Parse feature name from arguments (kebab-case: "User Dashboard" -> "user-dashboard") -- Check if `.auto-build-data/` exists - - If not: Run `bash .auto-build/scripts/setup.sh` first +- Check if `.auto-build-data/` exists in the project root + - 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}/` - If exists: Ask "Update existing spec or create new version?" diff --git a/plugin/commands/status.md b/plugin/commands/status.md index 99bb3d9..c2dcd7f 100644 --- a/plugin/commands/status.md +++ b/plugin/commands/status.md @@ -10,7 +10,7 @@ Display the current status of Auto-Build, including active specs and builds. 1. **Check Data Directory** - 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** - Read all directories in `.auto-build-data/specs/` @@ -74,4 +74,4 @@ Quick Actions: ## Edge Cases - If no specs exist: "No active builds. Start with /ab:spec " -- If data directory missing: "Run setup first: bash .auto-build/scripts/setup.sh" +- If data directory missing: Create it automatically diff --git a/plugin/commands/worktree.md b/plugin/commands/worktree.md index db6fca0..5ec3544 100644 --- a/plugin/commands/worktree.md +++ b/plugin/commands/worktree.md @@ -23,7 +23,7 @@ Create a new isolated worktree for a feature. **Command:** ```bash -bash .auto-build/scripts/worktree-create.sh {feature-name} +bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-create.sh {feature-name} ``` **Output:** @@ -53,7 +53,7 @@ List all active worktrees. **Command:** ```bash -bash .auto-build/scripts/worktree-list.sh +bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-list.sh ``` ### switch @@ -99,7 +99,7 @@ If no feature-name: **Command:** ```bash -bash .auto-build/scripts/worktree-cleanup.sh [feature-name] +bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-cleanup.sh [feature-name] ``` ## Registry Format @@ -131,7 +131,6 @@ Structure: ``` /projects/ ├── my-project/ # Main project -│ ├── .auto-build/ │ └── .auto-build-data/ └── ab-worktrees/ # Worktrees directory ├── my-project-user-dashboard/