create-claude-context 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +146 -0
  3. package/bin/create-claude-context.js +61 -0
  4. package/lib/detector.js +373 -0
  5. package/lib/index.js +170 -0
  6. package/lib/installer.js +362 -0
  7. package/lib/placeholder.js +208 -0
  8. package/lib/prompts.js +287 -0
  9. package/lib/spinner.js +60 -0
  10. package/lib/validate.js +147 -0
  11. package/package.json +59 -0
  12. package/templates/CLAUDE.md.template +235 -0
  13. package/templates/base/README.md +257 -0
  14. package/templates/base/RPI_WORKFLOW_PLAN.md +320 -0
  15. package/templates/base/agents/api-developer.md +76 -0
  16. package/templates/base/agents/context-engineer.md +525 -0
  17. package/templates/base/agents/core-architect.md +76 -0
  18. package/templates/base/agents/database-ops.md +76 -0
  19. package/templates/base/agents/deployment-ops.md +76 -0
  20. package/templates/base/agents/integration-hub.md +76 -0
  21. package/templates/base/analytics/README.md +114 -0
  22. package/templates/base/ci-templates/README.md +108 -0
  23. package/templates/base/ci-templates/github-actions/context-check.yml +144 -0
  24. package/templates/base/ci-templates/github-actions/validate-docs.yml +105 -0
  25. package/templates/base/commands/analytics.md +238 -0
  26. package/templates/base/commands/collab.md +194 -0
  27. package/templates/base/commands/help.md +450 -0
  28. package/templates/base/commands/rpi-implement.md +115 -0
  29. package/templates/base/commands/rpi-plan.md +93 -0
  30. package/templates/base/commands/rpi-research.md +88 -0
  31. package/templates/base/commands/validate-all.md +77 -0
  32. package/templates/base/commands/verify-docs-current.md +86 -0
  33. package/templates/base/config/base.json +57 -0
  34. package/templates/base/config/environments/development.json +13 -0
  35. package/templates/base/config/environments/production.json +17 -0
  36. package/templates/base/config/environments/staging.json +13 -0
  37. package/templates/base/config/local.json.example +21 -0
  38. package/templates/base/context/ARCHITECTURE_SNAPSHOT.md +156 -0
  39. package/templates/base/context/CODE_TO_WORKFLOW_MAP.md +94 -0
  40. package/templates/base/context/KNOWN_GOTCHAS.md +195 -0
  41. package/templates/base/context/WORKFLOW_INDEX.md +129 -0
  42. package/templates/base/context/workflows/WORKFLOW_TEMPLATE.md +294 -0
  43. package/templates/base/indexes/agents/CAPABILITY_MATRIX.md +255 -0
  44. package/templates/base/indexes/agents/CATEGORY_INDEX.md +44 -0
  45. package/templates/base/indexes/code/CATEGORY_INDEX.md +38 -0
  46. package/templates/base/indexes/routing/CATEGORY_INDEX.md +39 -0
  47. package/templates/base/indexes/search/CATEGORY_INDEX.md +39 -0
  48. package/templates/base/indexes/workflows/CATEGORY_INDEX.md +38 -0
  49. package/templates/base/knowledge/README.md +98 -0
  50. package/templates/base/knowledge/sessions/README.md +88 -0
  51. package/templates/base/knowledge/sessions/TEMPLATE.md +150 -0
  52. package/templates/base/knowledge/shared/decisions/0001-adopt-context-engineering.md +144 -0
  53. package/templates/base/knowledge/shared/decisions/README.md +49 -0
  54. package/templates/base/knowledge/shared/decisions/TEMPLATE.md +123 -0
  55. package/templates/base/knowledge/shared/patterns/README.md +62 -0
  56. package/templates/base/knowledge/shared/patterns/TEMPLATE.md +120 -0
  57. package/templates/base/plans/PLAN_TEMPLATE.md +250 -0
  58. package/templates/base/plans/active/.gitkeep +0 -0
  59. package/templates/base/plans/completed/.gitkeep +0 -0
  60. package/templates/base/research/RESEARCH_TEMPLATE.md +153 -0
  61. package/templates/base/research/active/.gitkeep +0 -0
  62. package/templates/base/research/completed/.gitkeep +0 -0
  63. package/templates/base/schemas/agent.schema.json +141 -0
  64. package/templates/base/schemas/command.schema.json +134 -0
  65. package/templates/base/schemas/manifest.schema.json +117 -0
  66. package/templates/base/schemas/plan.schema.json +136 -0
  67. package/templates/base/schemas/research.schema.json +115 -0
  68. package/templates/base/schemas/settings.schema.json +244 -0
  69. package/templates/base/schemas/workflow.schema.json +126 -0
  70. package/templates/base/settings.json +57 -0
  71. package/templates/base/standards/COMPATIBILITY.md +219 -0
  72. package/templates/base/standards/EXTENSION_GUIDELINES.md +280 -0
  73. package/templates/base/standards/QUALITY_CHECKLIST.md +211 -0
  74. package/templates/base/standards/README.md +66 -0
  75. package/templates/base/team/README.md +168 -0
  76. package/templates/base/team/config.json +79 -0
  77. package/templates/base/team/roles.json +145 -0
  78. package/templates/base/tools/bin/claude-context.js +151 -0
  79. package/templates/base/tools/lib/config-loader.js +363 -0
  80. package/templates/base/tools/lib/detector.js +350 -0
  81. package/templates/base/tools/lib/diagnose.js +206 -0
  82. package/templates/base/tools/lib/errors.js +199 -0
  83. package/templates/base/tools/lib/index.js +24 -0
  84. package/templates/base/tools/lib/init.js +192 -0
  85. package/templates/base/tools/lib/logger.js +230 -0
  86. package/templates/base/tools/lib/placeholder.js +201 -0
  87. package/templates/base/tools/lib/validate.js +521 -0
  88. package/templates/base/tools/package.json +49 -0
@@ -0,0 +1,88 @@
1
+ ---
2
+ name: rpi-research
3
+ version: "1.0.0"
4
+ description: "RPI Research Phase: Systematic codebase exploration for feature/fix analysis"
5
+ category: "rpi-orchestration"
6
+ rpi_phase: "research"
7
+ context_budget_estimate: "50K tokens"
8
+ typical_context_usage: "25%"
9
+ prerequisites: []
10
+ outputs:
11
+ - "Research document in .claude/research/active/[name]_research.md"
12
+ - "File inventory with line references"
13
+ - "Call chain diagrams"
14
+ - "Dependency map"
15
+ next_commands: ["/rpi-plan"]
16
+ related_agents: ["context-engineer", "core-architect"]
17
+ examples:
18
+ - command: "/rpi-research user-authentication"
19
+ description: "Research authentication flow for new feature"
20
+ - command: "/rpi-research payment-bug-fix"
21
+ description: "Investigate payment processing issue"
22
+ exit_criteria:
23
+ - "Research document created in .claude/research/active/"
24
+ - "All relevant files identified (3-20 files)"
25
+ - "Call chains traced with line numbers"
26
+ - "Dependencies mapped"
27
+ - "150-word summary generated"
28
+ ---
29
+
30
+ # RPI Research Phase
31
+
32
+ **Purpose:** Systematic, zero-code-modification exploration
33
+
34
+ **Syntax:** `/rpi-research [feature-name]`
35
+
36
+ **Example:**
37
+ ```bash
38
+ /rpi-research user-authentication
39
+ /rpi-research payment-bug-fix
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Execution Steps
45
+
46
+ ### Step 1: Initialize Research Document
47
+ Create `.claude/research/active/[feature]_research.md` from RESEARCH_TEMPLATE.md
48
+
49
+ ### Step 2: Entry Point Discovery (3 parallel agents)
50
+ - Agent 1: API/Route entry points
51
+ - Agent 2: Business logic locations
52
+ - Agent 3: Database/external integrations
53
+
54
+ ### Step 3: Call Chain Tracing
55
+ - Read entry point files
56
+ - Trace 3 levels deep
57
+ - Record with file:line references
58
+
59
+ ### Step 4: Dependency Mapping
60
+ - Internal service dependencies
61
+ - External API dependencies
62
+
63
+ ### Step 5: Test Coverage Analysis
64
+ - Find existing tests
65
+ - Identify gaps
66
+
67
+ ### Step 6: Generate Summary
68
+ - 150-word summary for Plan phase
69
+
70
+ ---
71
+
72
+ ## Output
73
+
74
+ Research document in `.claude/research/active/[feature]_research.md`
75
+
76
+ ---
77
+
78
+ ## Context Budget
79
+
80
+ - Target: 25% of 200k (50k tokens)
81
+ - Compaction: After each major step
82
+ - Final: ~20k tokens (research doc only)
83
+
84
+ ---
85
+
86
+ ## Next Step
87
+
88
+ After completion: `/rpi-plan [feature-name]`
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: validate-all
3
+ version: "1.0.0"
4
+ description: "Complete validation suite for the codebase"
5
+ category: "validation"
6
+ context_budget_estimate: "40K tokens"
7
+ typical_context_usage: "20%"
8
+ prerequisites: []
9
+ outputs:
10
+ - "Validation report with PASS/FAIL per category"
11
+ - "Documentation accuracy metrics"
12
+ - "Test results summary"
13
+ - "Overall READY/NOT READY status"
14
+ next_commands: []
15
+ related_agents: ["context-engineer", "deployment-ops"]
16
+ examples:
17
+ - command: "/validate-all"
18
+ description: "Run complete validation before deployment"
19
+ exit_criteria:
20
+ - "Documentation validation complete"
21
+ - "Test validation complete"
22
+ - "Code quality checks complete"
23
+ - "Configuration validation complete"
24
+ - "Overall status determined"
25
+ ---
26
+
27
+ # Complete Validation Suite
28
+
29
+ **Purpose:** Run all validation checks before deployment
30
+
31
+ **Syntax:** `/validate-all`
32
+
33
+ ---
34
+
35
+ ## Validation Checks
36
+
37
+ ### 1. Documentation Validation
38
+ - All workflows have valid line numbers
39
+ - All markdown links resolve
40
+ - CODE_TO_WORKFLOW_MAP is current
41
+
42
+ ### 2. Test Validation
43
+ - All unit tests pass
44
+ - All integration tests pass
45
+ - Coverage meets threshold
46
+
47
+ ### 3. Code Quality
48
+ - No linting errors
49
+ - Type checking passes (if applicable)
50
+ - No security vulnerabilities
51
+
52
+ ### 4. Configuration Validation
53
+ - All required environment variables defined
54
+ - Configuration files valid
55
+
56
+ ---
57
+
58
+ ## Output Format
59
+
60
+ ```
61
+ VALIDATION REPORT
62
+
63
+ Documentation: ✅ PASS / ❌ FAIL
64
+ Tests: ✅ PASS / ❌ FAIL
65
+ Code Quality: ✅ PASS / ❌ FAIL
66
+ Configuration: ✅ PASS / ❌ FAIL
67
+
68
+ Overall: READY / NOT READY
69
+ ```
70
+
71
+ ---
72
+
73
+ ## When to Run
74
+
75
+ - Before creating PR
76
+ - Before deploying
77
+ - After major refactoring
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: verify-docs-current
3
+ version: "1.0.0"
4
+ description: "Verify documentation accuracy against current code"
5
+ category: "validation"
6
+ context_budget_estimate: "20K tokens"
7
+ typical_context_usage: "10%"
8
+ prerequisites: []
9
+ outputs:
10
+ - "Verification report with accuracy status"
11
+ - "List of outdated line references"
12
+ - "Link validation results"
13
+ next_commands: []
14
+ related_agents: ["context-engineer"]
15
+ examples:
16
+ - command: "/verify-docs-current src/services/payment.py"
17
+ description: "Check documentation for payment service"
18
+ - command: "/verify-docs-current src/api/routes.py"
19
+ description: "Verify API routes documentation"
20
+ exit_criteria:
21
+ - "All affected workflows checked"
22
+ - "Line number accuracy calculated"
23
+ - "Links validated"
24
+ - "Status reported (HEALTHY/NEEDS UPDATE/STALE)"
25
+ ---
26
+
27
+ # Verify Documentation Currency
28
+
29
+ **Purpose:** Validate that documentation matches current code
30
+
31
+ **Syntax:** `/verify-docs-current [file_path]`
32
+
33
+ **Example:**
34
+ ```bash
35
+ /verify-docs-current src/services/payment.py
36
+ ```
37
+
38
+ ---
39
+
40
+ ## What This Command Does
41
+
42
+ 1. Look up modified file in CODE_TO_WORKFLOW_MAP.md
43
+ 2. Find all workflows that document this file
44
+ 3. For each workflow:
45
+ - Extract [Line XXX] references
46
+ - Read actual code at those lines
47
+ - Verify function/logic still exists (±10 lines tolerance)
48
+ 4. Check all markdown links resolve
49
+ 5. Generate accuracy report
50
+
51
+ ---
52
+
53
+ ## Output Format
54
+
55
+ ```
56
+ VERIFICATION REPORT
57
+
58
+ File: [path/to/file]
59
+ Affected Workflows: X
60
+
61
+ [workflow_1.md]:
62
+ ✅ Line XXX (function_name) - Accurate
63
+ ⚠️ Line YYY (other_func) - Shifted to line ZZZ
64
+ ❌ Line AAA (deleted_func) - NOT FOUND
65
+
66
+ Links: X/Y valid (Z%)
67
+ Overall: HEALTHY / NEEDS UPDATE / STALE
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Actions Based on Result
73
+
74
+ | Status | Action Required |
75
+ |--------|-----------------|
76
+ | HEALTHY | No action needed |
77
+ | NEEDS UPDATE | Update line numbers |
78
+ | STALE | Re-document workflow section |
79
+
80
+ ---
81
+
82
+ ## When to Run
83
+
84
+ - After ANY code modification
85
+ - Before deploying
86
+ - Monthly as maintenance check
@@ -0,0 +1,57 @@
1
+ {
2
+ "$schema": "../schemas/settings.schema.json",
3
+ "version": "1.1.0",
4
+ "context_engineering": {
5
+ "enabled": true,
6
+ "max_context_tokens": 200000,
7
+ "max_output_tokens": 30000,
8
+ "target_utilization": 0.40,
9
+ "compact_trigger": 0.35
10
+ },
11
+ "rpi_workflow": {
12
+ "enabled": true,
13
+ "phases": ["research", "plan", "implement"],
14
+ "require_human_approval": true,
15
+ "auto_doc_update": true,
16
+ "research_timeout_minutes": 30,
17
+ "plan_timeout_minutes": 20
18
+ },
19
+ "documentation": {
20
+ "self_maintaining": true,
21
+ "verify_after_changes": true,
22
+ "line_number_tolerance": 10,
23
+ "auto_commit_docs": false
24
+ },
25
+ "agents": {
26
+ "default": "context-engineer",
27
+ "auto_select": true,
28
+ "fallback": "core-architect"
29
+ },
30
+ "commands": {
31
+ "rpi_commands": ["/rpi-research", "/rpi-plan", "/rpi-implement"],
32
+ "validation_commands": ["/verify-docs-current", "/validate-all"]
33
+ },
34
+ "validation": {
35
+ "on_commit": true,
36
+ "line_accuracy_threshold": 60,
37
+ "link_check_external": false
38
+ },
39
+ "logging": {
40
+ "level": "info",
41
+ "file": ".claude/logs/claude.log",
42
+ "max_size_mb": 10
43
+ },
44
+ "telemetry": {
45
+ "enabled": false,
46
+ "events": {
47
+ "command_usage": true,
48
+ "agent_usage": true,
49
+ "context_metrics": true,
50
+ "error_reports": true
51
+ },
52
+ "privacy": {
53
+ "anonymize_paths": true,
54
+ "exclude_content": true
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$comment": "Development environment overrides",
3
+ "logging": {
4
+ "level": "debug"
5
+ },
6
+ "validation": {
7
+ "on_commit": false,
8
+ "line_accuracy_threshold": 50
9
+ },
10
+ "rpi_workflow": {
11
+ "require_human_approval": false
12
+ }
13
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$comment": "Production environment overrides",
3
+ "logging": {
4
+ "level": "warn"
5
+ },
6
+ "validation": {
7
+ "on_commit": true,
8
+ "line_accuracy_threshold": 70,
9
+ "link_check_external": true
10
+ },
11
+ "rpi_workflow": {
12
+ "require_human_approval": true
13
+ },
14
+ "documentation": {
15
+ "auto_commit_docs": false
16
+ }
17
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$comment": "Staging environment overrides",
3
+ "logging": {
4
+ "level": "info"
5
+ },
6
+ "validation": {
7
+ "on_commit": true,
8
+ "line_accuracy_threshold": 60
9
+ },
10
+ "rpi_workflow": {
11
+ "require_human_approval": true
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$comment": "Local overrides - copy to local.json (gitignored)",
3
+ "$instructions": "This file is an example. Copy to local.json and customize.",
4
+
5
+ "logging": {
6
+ "level": "debug",
7
+ "file": ".claude/logs/claude-local.log"
8
+ },
9
+
10
+ "validation": {
11
+ "on_commit": false
12
+ },
13
+
14
+ "rpi_workflow": {
15
+ "require_human_approval": false
16
+ },
17
+
18
+ "telemetry": {
19
+ "enabled": false
20
+ }
21
+ }
@@ -0,0 +1,156 @@
1
+ # Architecture Snapshot - {{PROJECT_NAME}}
2
+
3
+ **Purpose:** High-level system map for rapid orientation
4
+ **Load:** When starting a new session or onboarding
5
+ **Size:** ~10k tokens (5% of 200k budget)
6
+ **Last Updated:** {{DATE}}
7
+
8
+ ---
9
+
10
+ ## System Overview
11
+
12
+ {{SYSTEM_OVERVIEW_DIAGRAM}}
13
+
14
+ ---
15
+
16
+ ## Technology Stack
17
+
18
+ | Layer | Technology | Purpose |
19
+ |-------|------------|---------|
20
+ | **Frontend** | {{FRONTEND_TECH}} | {{FRONTEND_PURPOSE}} |
21
+ | **Backend** | {{BACKEND_TECH}} | {{BACKEND_PURPOSE}} |
22
+ | **Database** | {{DATABASE_TECH}} | {{DATABASE_PURPOSE}} |
23
+ | **Cache** | {{CACHE_TECH}} | {{CACHE_PURPOSE}} |
24
+ | **Queue** | {{QUEUE_TECH}} | {{QUEUE_PURPOSE}} |
25
+
26
+ ---
27
+
28
+ ## Core Components
29
+
30
+ ### Component 1: {{COMPONENT_1_NAME}}
31
+
32
+ **Purpose:** {{COMPONENT_1_PURPOSE}}
33
+ **Key Files:**
34
+ - `{{FILE_1}}` - {{FILE_1_PURPOSE}}
35
+ - `{{FILE_2}}` - {{FILE_2_PURPOSE}}
36
+
37
+ **Related Workflows:**
38
+ - [workflow_1.md](./workflows/workflow_1.md)
39
+
40
+ ---
41
+
42
+ ### Component 2: {{COMPONENT_2_NAME}}
43
+
44
+ [Same structure...]
45
+
46
+ ---
47
+
48
+ ## Data Flow
49
+
50
+ ```
51
+ {{DATA_FLOW_DIAGRAM}}
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Database Schema Summary
57
+
58
+ **Total Tables:** {{TABLE_COUNT}}
59
+
60
+ | Table | Purpose | Key Relationships |
61
+ |-------|---------|-------------------|
62
+ | `{{TABLE_1}}` | {{TABLE_1_PURPOSE}} | FK to {{RELATED_TABLE}} |
63
+ | `{{TABLE_2}}` | {{TABLE_2_PURPOSE}} | FK to {{RELATED_TABLE}} |
64
+
65
+ **Schema Details:** {{MODELS_FILE}}
66
+
67
+ ---
68
+
69
+ ## External Integrations
70
+
71
+ | Integration | Type | Purpose | Docs |
72
+ |-------------|------|---------|------|
73
+ | {{INTEGRATION_1}} | API | {{PURPOSE_1}} | {{DOCS_LINK}} |
74
+ | {{INTEGRATION_2}} | API | {{PURPOSE_2}} | {{DOCS_LINK}} |
75
+
76
+ ---
77
+
78
+ ## Key Architectural Decisions
79
+
80
+ ### Decision 1: {{DECISION_1_TITLE}}
81
+
82
+ **Choice:** {{WHAT_WAS_CHOSEN}}
83
+ **Why:** {{RATIONALE}}
84
+ **Trade-offs:** {{TRADE_OFFS}}
85
+
86
+ ---
87
+
88
+ ### Decision 2: {{DECISION_2_TITLE}}
89
+
90
+ [Same structure...]
91
+
92
+ ---
93
+
94
+ ## Directory Structure
95
+
96
+ ```
97
+ {{PROJECT_ROOT}}/
98
+ ├── {{DIR_1}}/ # {{DIR_1_PURPOSE}}
99
+ │ ├── {{SUBDIR_1}}/ # {{SUBDIR_1_PURPOSE}}
100
+ │ └── {{SUBDIR_2}}/ # {{SUBDIR_2_PURPOSE}}
101
+ ├── {{DIR_2}}/ # {{DIR_2_PURPOSE}}
102
+ ├── {{DIR_3}}/ # {{DIR_3_PURPOSE}}
103
+ └── {{DIR_4}}/ # {{DIR_4_PURPOSE}}
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Security Model
109
+
110
+ ### Authentication
111
+ {{AUTHENTICATION_DESCRIPTION}}
112
+
113
+ ### Authorization
114
+ {{AUTHORIZATION_DESCRIPTION}}
115
+
116
+ ### Data Protection
117
+ {{DATA_PROTECTION_DESCRIPTION}}
118
+
119
+ ---
120
+
121
+ ## Performance Characteristics
122
+
123
+ | Metric | Target | Current |
124
+ |--------|--------|---------|
125
+ | API Response Time | {{TARGET_1}} | {{CURRENT_1}} |
126
+ | Throughput | {{TARGET_2}} | {{CURRENT_2}} |
127
+ | Availability | {{TARGET_3}} | {{CURRENT_3}} |
128
+
129
+ ---
130
+
131
+ ## Deployment Architecture
132
+
133
+ ```
134
+ {{DEPLOYMENT_DIAGRAM}}
135
+ ```
136
+
137
+ **Environments:**
138
+ | Environment | URL | Purpose |
139
+ |-------------|-----|---------|
140
+ | Development | {{DEV_URL}} | Local development |
141
+ | Staging | {{STAGING_URL}} | Pre-production testing |
142
+ | Production | {{PROD_URL}} | Live system |
143
+
144
+ ---
145
+
146
+ ## See Also
147
+
148
+ - **Detailed workflows:** [WORKFLOW_INDEX.md](./WORKFLOW_INDEX.md)
149
+ - **File responsibilities:** [FILE_OWNERSHIP.md](./FILE_OWNERSHIP.md)
150
+ - **External APIs:** [INTEGRATION_POINTS.md](./INTEGRATION_POINTS.md)
151
+ - **Lessons learned:** [KNOWN_GOTCHAS.md](./KNOWN_GOTCHAS.md)
152
+
153
+ ---
154
+
155
+ **Version:** 1.0
156
+ **Verified Against Commit:** {{COMMIT_HASH}}
@@ -0,0 +1,94 @@
1
+ # Code to Workflow Map
2
+
3
+ **Purpose:** Reverse index - Given a code file, find which workflows document it
4
+ **Use:** After modifying any file, look up what documentation needs updating
5
+ **Last Updated:** {{DATE}}
6
+
7
+ ---
8
+
9
+ ## How to Use This File
10
+
11
+ 1. **Modified a file?** Search for it below
12
+ 2. **Find "Documented In" section** for affected workflows
13
+ 3. **Check "Update After Changing" section** for required updates
14
+ 4. **Run `/verify-docs-current [file]`** to validate
15
+
16
+ ---
17
+
18
+ ## File → Workflow Mapping
19
+
20
+ ### {{DIRECTORY_1}}/
21
+
22
+ #### `{{FILE_1}}` [XXX lines]
23
+
24
+ **Documented In:**
25
+ - [workflows/workflow_1.md](./workflows/workflow_1.md) - Section 2
26
+ - [workflows/workflow_2.md](./workflows/workflow_2.md) - Section 4
27
+
28
+ **Update After Changing:**
29
+ - Workflow: workflow_1.md (if [specific thing] changes)
30
+ - Agent: agent_name.md (if [capability] changes)
31
+ - CLAUDE.md (if [architecture] changes)
32
+
33
+ ---
34
+
35
+ #### `{{FILE_2}}` [XXX lines]
36
+
37
+ **Documented In:**
38
+ - [workflows/workflow_3.md](./workflows/workflow_3.md) - Complete file
39
+
40
+ **Update After Changing:**
41
+ - Workflow: workflow_3.md (always)
42
+
43
+ ---
44
+
45
+ ### {{DIRECTORY_2}}/
46
+
47
+ [Same structure for each directory...]
48
+
49
+ ---
50
+
51
+ ## Files NOT Currently Documented
52
+
53
+ These files exist but are not yet in any workflow:
54
+
55
+ | File | Reason | Priority |
56
+ |------|--------|----------|
57
+ | `path/file.ext` | [Why not documented] | LOW/MED/HIGH |
58
+
59
+ ---
60
+
61
+ ## Documentation Update Checklist
62
+
63
+ After ANY code change:
64
+
65
+ 1. [ ] Find modified file in this map
66
+ 2. [ ] Check all "Documented In" workflows
67
+ 3. [ ] Update line numbers if code moved
68
+ 4. [ ] Update function signatures if changed
69
+ 5. [ ] Update business logic descriptions if changed
70
+ 6. [ ] Run `/verify-docs-current [file]`
71
+ 7. [ ] Commit documentation updates with code
72
+
73
+ ---
74
+
75
+ ## Automation
76
+
77
+ ### Quick Lookup Command
78
+
79
+ ```bash
80
+ # Find what documents a specific file
81
+ grep -l "path/to/file" .claude/context/workflows/*.md
82
+ ```
83
+
84
+ ### Validation Command
85
+
86
+ ```bash
87
+ /verify-docs-current path/to/modified/file.ext
88
+ ```
89
+
90
+ ---
91
+
92
+ **Version:** 1.0
93
+ **Files Tracked:** {{FILES_COUNT}}
94
+ **Workflows Linked:** {{WORKFLOWS_COUNT}}