UNPKG

handoff-ai

Version:

AI collaboration framework for persistent project knowledge and smooth handoffs

125 lines (95 loc) โ€ข 4.83 kB
# 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