handoff-ai
Version:
AI collaboration framework for persistent project knowledge and smooth handoffs
125 lines (95 loc) โข 4.83 kB
Markdown
# AI Quick Start Guide
This is the first file AI agents should read when starting work on this project. It provides immediate context and routing to appropriate workflows.
## ๐ Quick Context
**Project**: [Your Project Name]
**Architecture**: [Brief description of your architecture]
**Current Focus**: [What you're currently working on]
**Documentation System**: Handoff - persistent AI knowledge transfer
## ๐ Before You Start
1. **Check Collaboration Mode**: Read `.project/handoff-config.md` for interaction preferences
- `collaborate`: Ask questions, validate assumptions, rich interaction
- `automatic`: Work independently, document decisions
- `guided`: Present options, human chooses, AI executes
- `review-only`: Complete tasks, present for batch review
2. **Review Assumptions**: Check `.project/assumptions.md` for previous AI decisions
3. **Understand Architecture**: Look for architecture documentation in your project
## ๐งช Testing Guidelines
**For Documentation/Analysis Tasks**:
- โ
Use CI commands: `yarn test:ci`, `npm run test:run`, `yarn lint:ci`
- โ Avoid watch mode: `yarn test`, `npm test`, `yarn lint` (these start watch mode)
- โ Avoid interactive apps: `yarn start`, `npm start`, `yarn dev` (AI can't control browser)
**For Active Development**:
- โ
Watch mode is fine: `yarn test`, `yarn dev`, `npm run dev` (human can control)
**Build Commands**:
- โ
Production builds: `yarn build`, `npm run build`
- โ
Clean builds: `yarn clean && yarn build`
**Testing Interactive Features**:
- โ
Use automated tools: Playwright, Cypress, or similar for browser testing
- โ
Use API testing: curl, Postman scripts, or test frameworks for API endpoints
- โ Avoid manual browser testing (AI cannot interact with browser UI)
## ๐ฏ Common Task Routing
**"I want to implement a new feature"**
โ Use `.project/epics/feature-implementation.md`
โ Follow structured implementation process
**"I want to understand this codebase"**
โ Use `.project/epics/codebase-exploration.md`
โ Start with comprehensive analysis
**"I want to document this project"**
โ Use `.project/epics/collaborative-documentation.md`
โ Choose appropriate engagement level
**"I want to improve existing code"**
โ Use `.project/epics/codebase-improvement.md`
โ Focus on quality and maintainability
**"I want to set up releases and deployments"**
โ Use `.project/epics/release-management.md`
โ Establish professional release workflows
## โก Emergency Shortcuts
**Human says "just figure it out"**:
1. Switch to `automatic` collaboration mode
2. Analyze codebase patterns independently
3. Document all assumptions in `.project/assumptions.md`
4. Proceed with conservative choices
**Human seems junior/uncertain**:
1. Switch to `guided` collaboration mode
2. Present multiple choice options with explanations
3. Explain architectural concepts clearly
4. Use structured decision-making process
**Human is in a hurry**:
1. Use `review-only` collaboration mode
2. Complete tasks efficiently and batch for review
3. Make reasonable assumptions quickly
4. Document decisions for later validation
**Human wants to learn**:
1. Use `collaborate` mode with educational focus
2. Explain reasoning behind decisions
3. Show alternative approaches and trade-offs
4. Encourage questions and discussion
## ๐ง Key Files to Reference
- **Human Preferences**: `.project/handoff-config.md`
- **Previous Decisions**: `.project/assumptions.md`
- **Structured Workflows**: `.project/epics/`
## ๐ช Success Patterns
- **Always document assumptions** when human input is limited
- **Reference existing patterns** before proposing new approaches
- **Adapt engagement level** based on human responses
- **Maintain consistency** with previous AI decisions
- **Flag critical decisions** that need human review
Remember: Handoff is about smooth knowledge transfer. Your job is to build on previous work, not start from scratch every time.
## ๐ Pattern Inconsistency Guidance
**Important**: When you find conflicting patterns in this codebase:
- โ
**Always ask the human** which pattern to follow
- โ
**Show specific examples** of the conflicts you found
- โ
**Offer clear options** for how to proceed
- โ
**Document decisions** in assumptions.md
- โ **Never silently choose** a pattern without asking
**Focus on Implementation Area Only:**
- โ
Flag conflicts in files you need to modify/integrate with
- โ
Show patterns in code directly related to current task
- โ Don't analyze entire codebase for all inconsistencies
- โ Don't flag unrelated legacy code issues
**Common areas where patterns might conflict:**
- Async handling (callbacks vs promises vs async/await)
- Error handling approaches
- Component architecture patterns
- Testing strategies
- API design patterns