feat: Move specs and memory to git for multi-developer collaboration (v1.0.6)

BREAKING CHANGE: Specs, plans, and memory moved from .auto-build-data/ (gitignored)
to .auto-build/ (git-tracked) to enable team collaboration.

Changes:
- Specs/plans now in .auto-build/specs/ (shared with team)
- Memory (patterns, gotchas) now in .auto-build/memory/ (shared with team)
- .auto-build-data/ now only contains local data (worktrees, cache)
- Added /ab:migrate command for existing projects
- Removed symlinks from worktree-create.sh (no longer needed)

Benefits:
- Any developer can continue a plan started by another
- Patterns and gotchas shared across team
- Works on Windows/Linux/Mac without symlinks
- Full version history in git

🤖 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 17:44:52 +02:00
parent f324b43a85
commit 940c6a9f58
15 changed files with 298 additions and 97 deletions

View File

@@ -10,8 +10,9 @@ These rules apply to all Auto-Build related files and workflows.
### 1. Portability First
- All paths must be relative or dynamically determined
- No hardcoded project-specific values in .auto-build/
- Data lives in .auto-build-data/ which is gitignored
- No hardcoded project-specific values
- Shared data (specs, plans, memory) lives in `.auto-build/` (git-tracked)
- Local data (worktrees, cache) lives in `.auto-build-data/` (gitignored)
### 2. Minimal Footprint
- Never modify files outside the current task scope
@@ -29,7 +30,7 @@ These rules apply to all Auto-Build related files and workflows.
- Always analyze the codebase before writing spec
- Include at least 3 acceptance criteria
- Identify affected files explicitly
- Save to .auto-build-data/specs/{name}/
- Save to `.auto-build/specs/{name}/` (git-tracked, shared with team)
### When Running /ab:build
- Check for existing spec before proceeding
@@ -89,17 +90,21 @@ SPEC_DRAFT → SPEC_COMPLETE → PLANNING → PLANNING_COMPLETE →
IMPLEMENTING → IMPLEMENTATION_COMPLETE → QA_REVIEW → COMPLETE
```
### Memory Files
- patterns.json: Reusable code patterns
- gotchas.json: Problems and solutions
- codebase-map.json: Structural insights
- sessions/*.json: Session history
### Memory Files (`.auto-build/memory/` - git-tracked)
- patterns.json: Reusable code patterns (shared with team)
- gotchas.json: Problems and solutions (shared with team)
- sessions/*.json: Session history (shared with team)
### Local Data Files (`.auto-build-data/` - gitignored)
- worktrees/worktree-registry.json: Local worktree tracking
- cache/qa-iterations/*.json: Temporary QA cache
## Git Worktree Rules
- Create worktrees outside project: ../ab-worktrees/
- Branch naming: feature/ab-{feature-name}
- Registry tracking in worktree-registry.json
- Registry tracking in `.auto-build-data/worktrees/worktree-registry.json`
- No symlinks needed - specs/plans/memory are in git, available in all worktrees
- Cleanup only merged branches automatically
## Error Handling