Auto-generated. Last updated: 2026-03-24 Repos analyzed: ctx
- What it is: A directory containing one or more git repos and a
_ctx/directory for feature documentation - Possible states: Not initialized, initialized (has WORKSPACE.md), indexed (has index.md)
- Where it lives: Filesystem root directory
- Consumed by: All skills (discovery), agents (exploration scope)
- What it is: A product capability that spans one or more repos, documented by three context files
- Possible states: Unmapped (exists in code only), partially mapped, fully mapped (all three context files)
- Where it lives:
_ctx/{feature-name}/(product.md, engineering.md, implementation.md) - Consumed by: Mapping skills, contract-reviewer agent, feature-implementer agent
- What it is: A triplet of markdown documents (product, engineering, implementation) defining a feature's contracts
- Possible states: Template, draft, reviewed
- Where it lives:
_ctx/{feature-name}/ - Consumed by: Skills (read before implementing), agents (validation and implementation guidance)
- What it is: A user-invocable command that performs a workflow task via Claude Code
- Possible states: Defined, invoked, completed
- Where it lives:
ctx/skills/{skill-name}/SKILL.md - Consumed by: Claude Code runtime, users
- What it is: A specialized AI worker with scoped tools and instructions, spawned by skills
- Possible states: Available, spawned, completed
- Where it lives:
ctx/agents/{agent-name}.md - Consumed by: Skills (for exploration and implementation)
- Main responsibility: Provides skills and agents for managing feature context across multi-repo workspaces
- Stack: Markdown skill definitions, Claude Code plugin architecture (v2.0.0)
- Receives: User slash commands (
/ctx:init,/ctx:map-product, etc.) - Emits: Generated markdown files (WORKSPACE.md, index.md, product.md, engineering.md, implementation.md, config.json); spawns Explore, contract-reviewer, and feature-implementer agents
- User configs that affect behavior: Project name, feature names (kebab-case), GitHub repo URLs
- Key cross-repo dependencies: None — self-contained plugin that operates on any workspace
| Skill | Category | What it does |
|---|---|---|
init |
Setup | Discover repos, name project, generate WORKSPACE.md |
add-index |
Setup | Deep scan all repos, generate index.md |
export |
Sharing | Generate config.json with repo URLs |
pull-repos |
Sharing | Clone repos from config.json |
map-product |
Mapping | Generate product.md for a feature |
map-engineering |
Mapping | Generate engineering.md for a feature |
map-implementation |
Mapping | Generate implementation.md for a feature |
add-feature |
Implementation | Design + implement new feature end-to-end |
add-use-case |
Implementation | Add use case to existing feature |
| Agent | Mode | What it does |
|---|---|---|
contract-reviewer |
Read-only | Validates code against product and engineering contracts |
feature-implementer |
Read-write | Implements code changes respecting feature contracts |
- Trigger: User runs
/ctx:init - Steps:
- [init] Ask user for project name, rename workspace directory
- [init] Create
_ctx/structure (CLAUDE.md, templates), init git - [init] Discover repos (list directories with
.git) - [init → Explore agent] Deep scan each repo (tech stack, entry points, communication)
- [init] Identify features spanning repos, generate WORKSPACE.md
- Repos involved: All workspace repos (discovered dynamically)
- Related domain terms: Workspace, Repo, Feature
- Trigger: User runs
/ctx:map-product,/ctx:map-engineering, or/ctx:map-implementation - Steps:
- [skill] Resolve feature name from user input (semantic matching)
- [skill] Load existing context files if any
- [skill → Explore agent] Deep scan repos for feature-related code
- [skill] Generate context file from exploration + user conversation
- [skill] Show user, iterate, write final version
- Repos involved: All workspace repos
- Related domain terms: Feature, Context Files
- Trigger: User runs
/ctx:add-featurewith a feature description - Steps:
- [add-feature] Load index.md for landscape understanding
- [add-feature] Clarify scope with user, create feature directory
- [add-feature] Write product.md collaboratively
- [add-feature → Explore agent] Discover relevant patterns in repos
- [add-feature] Write engineering.md collaboratively
- [add-feature → feature-implementer] Implement code across repos
- [add-feature → contract-reviewer] Validate against contracts
- [add-feature] Write implementation.md, leave changes for developer review
- Repos involved: All workspace repos
- Related domain terms: Feature, Context Files, Agent
- Trigger: User runs
/ctx:add-use-casefor an existing feature - Steps:
- [add-use-case] Resolve feature, load all three context files
- [add-use-case] Check use case doesn't already exist
- [add-use-case → feature-implementer] Implement the new use case
- [add-use-case → contract-reviewer] Validate against contracts
- [add-use-case] Update all three context files as needed
- Repos involved: Feature-specific repos (from implementation.md)
- Related domain terms: Feature, Context Files, Agent
- Trigger: User runs
/ctx:exportor/ctx:pull-repos - Steps (export):
- [export] Scan repos, read git remote URLs
- [export] Ask user for context repo GitHub URL
- [export] Write
_ctx/config.json
- Steps (pull-repos):
- [pull-repos] Read config.json, clone missing repos
- Repos involved: All workspace repos
- Related domain terms: Workspace, Repo
| Source | Target | Communication | Context |
|---|---|---|---|
| Skills | Explore agent | Agent spawn | Deep repo scanning |
add-feature |
feature-implementer agent | Agent spawn | Code implementation |
add-feature, add-use-case |
contract-reviewer agent | Agent spawn | Contract validation |
| All skills | _ctx/ filesystem |
File read/write | Context file management |
pull-repos |
GitHub | git clone | Repo cloning from config.json |
Skill pattern: Each skill is a SKILL.md file containing a complete prompt with workflow steps. Skills are declarative — they define what to do, not executable code.
Agent pattern: Agents are .md files defining role, tools, constraints, and behavioral rules. They're spawned by skills as needed.
Context file conventions:
product.md: < 40 lines, no code snippetsengineering.md: < 50 lines, only cross-service contractsimplementation.md: specific file paths, function names, real schemas- Feature directories: kebab-case naming
- Semantic feature resolution: agents match user input against directory names flexibly
- Contract-driven development — three-file contract per feature (product/engineering/implementation) as source of truth
- Agent composition — skills define workflows, agents handle deep exploration and implementation
- Dynamic discovery — repos found by scanning for
.gitdirectories, never hardcoded - Iterative generation — all context files shown to user for review before writing
- Feature names: kebab-case (
follow-up,rag-catalog) - Context files: always a triplet (product.md, engineering.md, implementation.md)
- Agents: never commit code — developers decide when to commit
- Exploration: must read actual source code, not just READMEs