Welcome! This document is your starting point for understanding how to work effectively with this context template repository. Read this first, then explore the other documentation as needed.
This repository is a context management system designed to help AI agents (and humans) understand project state, workflows, and conventions. It provides:
- Structured workflows for picking up and handing off work
- Centralized documentation about architecture, decisions, and patterns
- Automation scripts for common tasks
- Standardized protocols for development work
The fundamental workflow is: Morning Sync → Pickup → Do → Handoff
- Morning Sync: Read
daily-digest.mdto understand current priorities - Pickup: Use
prompts/PICKUP.mdto orient yourself to a task - Do: Implement the work
- Handoff: Use
prompts/HANDOFF.mdto document your progress
Start with these files in order:
README.md- Overview of the template and its purposeconstitution.md- Core principles and governancedaily-digest.md- Current project status (if it exists)context.json- Links to related repositories and resources
context-template/
├── prompts/ # Workflow protocols (PICKUP.md, HANDOFF.md)
├── architecture/ # High-level design and decisions
├── perspectives/ # Project-specific context and goals
├── operations/ # Operational patterns and policies
├── specs/ # Feature specifications
├── journal/ # Long-term learnings and notes
├── docs/ # Documentation (definitions, guides)
├── automations/ # Automation scripts
├── examples/ # Example implementations
└── context.json # Central configuration file
When starting work on a task, follow prompts/PICKUP.md:
- Read the daily digest
- Identify what you're working on
- Review handoff documentation
- Verify your environment
- Understand next steps
- Resume work
Key Command:
cat ${CONTEXT_DIR:-.}/daily-digest.mdWhen finishing work or pausing, follow prompts/HANDOFF.md:
- Document what was completed
- Document what remains
- Note any blockers or questions
- Update handoff document
- Commit documentation
Key Command:
# Create or update handoff doc
vim docs/TICKET-XXXX-handoff.mdCONTEXT_DIR: Path to the context repository (defaults to current directory)export CONTEXT_DIR=/path/to/context/repo
context.json: Links to related repositories, services, and toolsmcp.config.json: Configuration for MCP server and document ingestionconstitution.md: Project principles and governance
All work begins and ends with context. This repository is the definitive source for:
- Project status
- Architecture decisions
- Workflow protocols
- Team conventions
Follow standardized protocols:
- Use
PICKUP.mdwhen starting work - Use
HANDOFF.mdwhen finishing work - Document decisions in
journal/orarchitecture/ - Update
context.jsonwhen adding new resources
No work is complete until it's documented in a handoff document. This ensures:
- Context is preserved in the filesystem
- Next person (or agent) can pick up where you left off
- Knowledge is not lost
Blockers must be surfaced immediately. Document them in:
- Handoff documents
- Daily digest
- Ticket comments
- Check
daily-digest.mdfor active work - List open tickets:
jira issue list -q "assignee = currentUser() AND status IN ('In Progress', 'Selected for Development')" - List open PRs:
gh pr list --author @me --state open
- Read handoff docs:
ls docs/*-handoff.md - Check git status:
git status - Review recent commits:
git log --oneline -10 - Check PR status:
gh pr view
- Create summary:
docs/TICKET-XXXX-summary.md - Create handoff:
docs/TICKET-XXXX-handoff.md - Update journal:
journal/YYYY-MM-DD-topic.md(for significant learnings)
- Update
context.jsonwhen adding new repositories or services - Update
perspectives/for project-specific context - Update
architecture/for design decisions - Update
operations/for operational patterns
- Architecture decisions: Check
architecture/directory - Project context: Check
perspectives/directory - Operational patterns: Check
operations/directory - Feature specs: Check
specs/directory - Historical learnings: Check
journal/directory
The context.json file links to:
- Related repositories (with local paths)
- Documentation files
- Automation scripts
- External services
- CLI tools
Example:
# Find linked repositories
cat context.json | jq '.repositories[].localPath'
# Find documentation
cat context.json | jq '.docs[]'Every ticket should have a handoff document (docs/TICKET-XXXX-handoff.md) that includes:
- Current status
- What was completed
- What remains
- Next steps
- Blockers/questions
- Key files to review
Store in architecture/:
- High-level design decisions
- System architecture diagrams
- Integration patterns
- Technology choices
Store in perspectives/:
- Project goals and status
- Team context
- Business context
- Current priorities
If daily-digest.md doesn't exist:
- Check if
automations/daily-digest.shneeds to be customized - Run:
./automations/daily-digest.sh generate - Or create a template manually
If you see hardcoded paths like ~/github/context/:
- Replace with
${CONTEXT_DIR:-.}or relative paths - Check
context.jsonfor linked repositories - Use environment variables when possible
If you see project-specific references (like "OneNews", "DXT-1234"):
- These are placeholders - replace with your project's actual names
- Use generic placeholders like
{{PROJECT_NAME}}orTICKET-1234
prompts/PICKUP.md- Detailed pickup protocolprompts/HANDOFF.md- Detailed handoff protocolconstitution.md- Project principles and governancefaq.md- Frequently asked questionsdocs/definitions.md- Key vocabulary and definitions
- Always read the daily digest first - It's your starting point
- Follow the protocols - They're designed to save time
- Document as you go - Don't wait until the end
- Update context files - Keep them current
- Ask questions early - Document blockers immediately
- Use handoff docs - They're your future self's best friend
If you're stuck:
- Check the daily digest - Might have relevant info
- Read handoff docs - Previous work might help
- Search the codebase -
grep -r "keyword" . - Check git history -
git log -p --all -S "search-term" - Review architecture docs - Might explain the design
- Check
context.json- Might link to relevant resources
- Start here - Read this file (AGENTS.md)
- Understand the workflow - Read
prompts/PICKUP.mdandprompts/HANDOFF.md - Learn the principles - Read
constitution.md - Explore examples - Check
examples/andjournal/directories - Customize for your project - Update
context.jsonand project-specific files
Remember: This template is designed to be customized. Replace placeholders, update paths, and adapt workflows to fit your project's needs. The structure is a starting point, not a constraint.