xiaohongshu
xiaohongshu
btb-workflow
BackToBack/ByTheBooks (BTB) - An in-repo collaboration pattern for Human-AI engineering teams. Use this skill when working in repositories with a SPECS/ directory containing README.md, PROGRESS.md, and design documents. BTB emphasizes documentation-driven development, mandatory progress tracking ...
Full skill instructions
BTB (BackToBack/ByTheBooks) is a structured collaboration pattern for repositories where humans and AI work together on software projects. The pattern emphasizes:
Use this skill when:
SPECS/ directory with README.md as the entrypointPurpose: Help all participants quickly find what they need to read.
Key sections:
Psychological state: Reduce overwhelm by providing clear reading order. New team members should know exactly where to start.
Purpose: Track current state, test results, and next actions.
Required fields (validated by validate_progress.py):
**Report Date**: October 28, 2025 # Must be today's date
**Session**: claude/session-XXX # If on claude/ branch
**Branch**: `current-branch-name` # Must match actual branch
**Current Phase**: Phase 2 Complete ✅
Key sections:
BTB Rule: PROGRESS.md MUST be updated before every commit. Use scripts/validate_progress.py to enforce this.
Psychological state: Maintain shared reality. All participants must know current status before making changes.
Purpose: Comprehensive vision of the full system.
Characteristics:
When to create: At project inception when human has full vision to communicate.
Commit pattern: HUMAN commits with "HUMAN: added design document"
Purpose: "Refraction" of DESIGN into minimum viable scope.
Characteristics:
When to create: After DESIGN exists but before implementation, to reduce scope and risk.
Relationship to DESIGN: MVP is a subset/adaptation of DESIGN, not a replacement. It answers "What can we build in 2-4 weeks that validates the core idea?"
Who: Human (Product owner, architect, domain expert)
Action: Create comprehensive design document in SPECS/
Commit pattern:
HUMAN: added design document
Content: Full vision including:
Psychological state: Human brain-dumps complete vision without worrying about implementation complexity.
Who: AI (Claude) in collaboration with human
Action: Create MVP document that refracts DESIGN into implementable scope
Purpose:
Commit pattern:
docs: Add comprehensive MVP implementation plan
Psychological state: Reduce anxiety about "how do we build all of this?" by creating a realistic, phased plan.
Who: AI (Claude) following TDD and phase roadmap
Action: Implement features in phases, updating PROGRESS.md before each commit
Commit patterns:
feat: Set up Vitest and implement vizStore with TDD
feat: Complete Phase 1 - Layout components and CORS with TDD
feat: Complete Phase 2 - MCP integration and model selection
docs: Add comprehensive progress report and documentation guide
Process per phase:
BTB Rule: PROGRESS.md must be updated before commit. Validate with scripts/validate_progress.py.
Psychological state: Maintain confidence through incremental progress. Each phase has clear deliverables and test results.
Who: All participants
Action: Review PROGRESS.md, adjust course, refine scope
Triggers for feedback:
Response options:
Psychological state: Safe to discover problems and adjust. Documentation supports course correction.
Problem: Large projects overwhelm participants who don't know where to start.
BTB Solution:
Problem: Distributed teams lose sync on what's actually implemented vs planned.
BTB Solution:
Problem: Fear of breaking things or going off-track paralyzes decision-making.
BTB Solution:
Problem: Large tasks feel insurmountable, causing procrastination or rushed work.
BTB Solution:
Problem: New team members don't know how to contribute.
BTB Solution:
Three Python scripts support the BTB workflow:
Use when starting a new BTB project or adding BTB to existing repo:
uv run scripts/init_btb.py
Creates:
SPECS/ directorySPECS/README.md (navigation template)SPECS/PROGRESS.md (status tracking template)Options:
--force - Overwrite existing filesUse before every commit to ensure PROGRESS.md is updated:
uv run scripts/validate_progress.py
Checks:
BTB Best Practice: Add as git pre-commit hook or CI check.
Use to understand current project state:
uv run scripts/btb_status.py
Displays:
Pattern: HUMAN: <action>
Examples:
HUMAN: added design document
HUMAN: updated MVP scope based on feedback
HUMAN: clarified authentication requirements
Psychological marker: These commits represent human decision-making and vision.
Patterns:
feat: <what was built>docs: <what was documented>test: <what was tested>fix: <what was fixed>Examples:
feat: Set up Vitest and implement vizStore with TDD
feat: Complete Phase 2 - MCP integration and model selection
docs: Add comprehensive progress report and documentation guide
BTB Convention: Include "with TDD" when test-driven development was used.
Commit bodies: Include detailed bullets of what changed, test results, and references to PROGRESS.md updates.
AI commits should include co-author attribution:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Context: PROGRESS.md shows Phase 2 complete, Phase 3 is next.
Procedure:
Read current state:
uv run scripts/btb_status.py
Review PROGRESS.md to understand:
Review MVP.md for Phase 3 implementation details:
Implement Phase 3 using TDD:
Update PROGRESS.md before committing:
Validate and commit:
uv run scripts/validate_progress.py
git add .
git commit -m "feat: Complete Phase 3 - Chart visualization"
Context: During implementation, discover that a DESIGN assumption is invalid.
Procedure:
Document in PROGRESS.md:
Consult hierarchy:
If human input needed:
If adjustable within scope:
Context: New engineer joins project mid-implementation.
Procedure:
Direct to SPECS/README.md:
Day 1 path (for Engineers):
Day 2 path:
Day 3+ path:
Problem: Breaks shared reality. Team loses sync on current state.
Solution: Use validate_progress.py as pre-commit hook.
Problem: New team members get lost or read wrong documents.
Solution: Update README.md when workflow changes. Review quarterly.
Problem: MVP grows to match DESIGN, losing focus on de-risking.
Solution: MVP should be 2-4 weeks. If larger, create MVP v2 document.
Problem: Can't verify claims about what works. Confidence erodes.
Solution: Always include test output in progress reports. "50/50 tests passing (306ms)"
Problem: Participants don't know what to do next.
Solution: Use acceptance criteria checkboxes. Be specific about files, functions, features.
Problem: DESIGN and MVP contradict each other.
Solution: MVP should reference DESIGN and explain deviations. "Design suggests X, MVP uses Y because..."
BTB strongly encourages TDD as it aligns with the documentation-first philosophy:
TDD Workflow:
Why TDD fits BTB:
BTB Convention: Include "with TDD" in commit messages when test-first approach used.
## Next Steps: [Phase Name]
### Goals
[1-2 sentences: what are we building and why]
### Tasks ([Week/Sprint]: ~X days)
#### Task 1: [Component/Feature Name] (Days 1-2)
**Acceptance Criteria**:
- [ ] Specific testable requirement 1
- [ ] Specific testable requirement 2
- [ ] Specific testable requirement 3
- [ ] N+ tests covering all states
**Files to Create/Modify**:
- `path/to/Component.tsx`
- `path/to/Component.test.tsx`
**Implementation Notes**:
```typescript
// Pseudocode or key algorithm
function example() {
// Show critical logic
}
### Commit Message Template
<type>: <short summary>
<detailed bullets> - What changed behaviorally - Integration notes ```BTB is a pattern, not a rigid framework. Adapt as needed:
Small projects: May skip MVP, go straight from DESIGN to implementation Solo projects: HUMAN commits might be notes-to-self Large teams: Add more role-specific guides to README.md Non-software: Adapt document types (e.g., "CONTENT_STRATEGY.md" instead of "DESIGN.md")
Core principles to keep:
What: Documentation-driven collaboration pattern for Human-AI teams
Documents:
Workflow:
Scripts:
init_btb.py - Initialize structurevalidate_progress.py - Enforce progress updatesbtb_status.py - Check current statePrinciples:
When to use: Repositories with SPECS/, iterative projects, Human-AI collaboration
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience