| 1 | # Project Instructions for AI Agents
|
|---|
| 2 |
|
|---|
| 3 | This file provides instructions and context for AI coding agents working on this project.
|
|---|
| 4 |
|
|---|
| 5 | <!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:ca08a54f -->
|
|---|
| 6 | ## Beads Issue Tracker
|
|---|
| 7 |
|
|---|
| 8 | This project uses **bd (beads)** for issue tracking. Run `bd prime` to see full workflow context and commands.
|
|---|
| 9 |
|
|---|
| 10 | ### Quick Reference
|
|---|
| 11 |
|
|---|
| 12 | ```bash
|
|---|
| 13 | bd ready # Find available work
|
|---|
| 14 | bd show <id> # View issue details
|
|---|
| 15 | bd update <id> --claim # Claim work
|
|---|
| 16 | bd close <id> # Complete work
|
|---|
| 17 | ```
|
|---|
| 18 |
|
|---|
| 19 | ### Rules
|
|---|
| 20 |
|
|---|
| 21 | - Use `bd` for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
|
|---|
| 22 | - Run `bd prime` for detailed command reference and session close protocol
|
|---|
| 23 | - Use `bd remember` for persistent knowledge — do NOT use MEMORY.md files
|
|---|
| 24 |
|
|---|
| 25 | ## Session Completion
|
|---|
| 26 |
|
|---|
| 27 | **When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
|
|---|
| 28 |
|
|---|
| 29 | **MANDATORY WORKFLOW:**
|
|---|
| 30 |
|
|---|
| 31 | 1. **File issues for remaining work** - Create issues for anything that needs follow-up
|
|---|
| 32 | 2. **Run quality gates** (if code changed) - Tests, linters, builds
|
|---|
| 33 | 3. **Update issue status** - Close finished work, update in-progress items
|
|---|
| 34 | 4. **PUSH TO REMOTE** - This is MANDATORY:
|
|---|
| 35 | ```bash
|
|---|
| 36 | git pull --rebase
|
|---|
| 37 | bd dolt push
|
|---|
| 38 | git push
|
|---|
| 39 | git status # MUST show "up to date with origin"
|
|---|
| 40 | ```
|
|---|
| 41 | 5. **Clean up** - Clear stashes, prune remote branches
|
|---|
| 42 | 6. **Verify** - All changes committed AND pushed
|
|---|
| 43 | 7. **Hand off** - Provide context for next session
|
|---|
| 44 |
|
|---|
| 45 | **CRITICAL RULES:**
|
|---|
| 46 | - Work is NOT complete until `git push` succeeds
|
|---|
| 47 | - NEVER stop before pushing - that leaves work stranded locally
|
|---|
| 48 | - NEVER say "ready to push when you are" - YOU must push
|
|---|
| 49 | - If push fails, resolve and retry until it succeeds
|
|---|
| 50 | <!-- END BEADS INTEGRATION -->
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | ## Build & Test
|
|---|
| 54 |
|
|---|
| 55 | _Add your build and test commands here_
|
|---|
| 56 |
|
|---|
| 57 | ```bash
|
|---|
| 58 | # Example:
|
|---|
| 59 | # npm install
|
|---|
| 60 | # npm test
|
|---|
| 61 | ```
|
|---|
| 62 |
|
|---|
| 63 | ## Architecture Overview
|
|---|
| 64 |
|
|---|
| 65 | _Add a brief overview of your project architecture_
|
|---|
| 66 |
|
|---|
| 67 | ## Conventions & Patterns
|
|---|
| 68 |
|
|---|
| 69 | _Add your project-specific conventions here_
|
|---|