|
1 | | -# CONTEXT_MAP.md |
2 | | - |
3 | | -Selective context loading map for AI agents and human contributors. |
4 | | - |
5 | | -This document is designed to be the **first document read** in any session — before `AGENTS.md`. It provides a compact, scannable reference for which documents to load (and which to skip) based on session type, minimizing unnecessary token consumption. |
6 | | - |
7 | | -> For full operational rules, always consult `AGENTS.md`. This map is a navigation shortcut, not a replacement. |
8 | | -
|
9 | | ---- |
10 | | - |
11 | | -## Session Type Reference Table |
12 | | - |
13 | | -| Session Type | Load Immediately | Load On Demand | Skip Unless Crossing Domain | |
14 | | -|---|---|---|---| |
15 | | -| **Bugfix / Troubleshooting** | `AGENTS.md §checklist`, `TROUBLESHOOTING.md`, `PLANNING.md` | `troubleshooting/<record>`, `wiki/failures/` | `DESIGN.md`, `DATA.md`, `RELEASE.md` | |
16 | | -| **New Feature** | `AGENTS.md §checklist`, `SCOPE.md`, `PLANNING.md` | `DESIGN.md` (if UI), `AI.md` (if AI), `wiki/index.md` | `SECURITY.md`, `REFACTORING.md`, `RELEASE.md` | |
17 | | -| **Application Module Docs** | `AGENTS.md checklist`, `APPLICATION_DOCUMENTATION.md`, `PLANNING.md` | `governance/TEMPLATE_MODULE_DOCUMENTATION.md`, `governance/TEMPLATE_FLOW_DOCUMENTATION.md` | `DESIGN.md`, `DATA.md`, `RELEASE.md` | |
| 1 | +# CONTEXT_MAP.md |
| 2 | + |
| 3 | +Selective context loading map for AI agents and human contributors. |
| 4 | + |
| 5 | +This document is designed to be the **first auxiliary document consulted after `AGENTS.md`** in any governed session. It provides a compact, scannable reference for which documents to load (and which to skip) based on session type, minimizing unnecessary token consumption. |
| 6 | + |
| 7 | +> For full operational rules, always consult `AGENTS.md` first. This map is a navigation shortcut, not a replacement. |
| 8 | +
|
| 9 | +--- |
| 10 | + |
| 11 | +## Session Type Reference Table |
| 12 | + |
| 13 | +| Session Type | Load Immediately | Load On Demand | Skip Unless Crossing Domain | |
| 14 | +|---|---|---|---| |
| 15 | +| **Bugfix / Troubleshooting** | `AGENTS.md §checklist`, `TROUBLESHOOTING.md`, `PLANNING.md` | `troubleshooting/<record>`, `wiki/failures/` | `DESIGN.md`, `DATA.md`, `RELEASE.md` | |
| 16 | +| **New Feature** | `AGENTS.md §checklist`, `SCOPE.md`, `PLANNING.md` | `DESIGN.md` (if UI), `AI.md` (if AI), `wiki/index.md` | `SECURITY.md`, `REFACTORING.md`, `RELEASE.md` | |
| 17 | +| **Application Module Docs** | `AGENTS.md checklist`, `APPLICATION_DOCUMENTATION.md`, `PLANNING.md` | `governance/TEMPLATE_MODULE_DOCUMENTATION.md`, `governance/TEMPLATE_FLOW_DOCUMENTATION.md` | `DESIGN.md`, `DATA.md`, `RELEASE.md` | |
18 | 18 | | **UI / Components** | `AGENTS.md §checklist`, `DESIGN.md` | `wiki/patterns/` | `DATA.md`, `SECURITY.md`, `RELEASE.md` | |
19 | 19 | | **Refactoring** | `AGENTS.md §checklist`, `REFACTORING.md`, `PLANNING.md` | `wiki/refactorings/`, `TESTS.md` | `DESIGN.md`, `DATA.md`, `RELEASE.md` | |
20 | 20 | | **Code Hygiene / Anti-Monolith** | `AGENTS.md §checklist`, `REFACTORING.md`, `PLANNING.md`, `skill:anti-monolith-guard`, `skill:code-hygiene-refactor` | `TESTS.md`, `APPLICATION_DOCUMENTATION.md`, `wiki/refactorings/` | `DESIGN.md`, `DATA.md`, `RELEASE.md` | |
21 | 21 | | **Agent / Skill Creation** | `AGENTS.md §checklist`, `AI.md §AI Skills Engine`, `PLANNING.md`, `skill:agent-factory` | `governance/TEMPLATE_AGENT_OR_SKILL_PROPOSAL.md`, `skills/README.md`, `STACK.md` | Unrelated domain docs, release docs | |
22 | 22 | | **Skill / Agent Self-Improvement** | `AGENTS.md §checklist`, `AI.md §AI Skills Engine`, `PLANNING.md`, `skill:self-improvement` | `AUDIT.md`, `governance/TEMPLATE_SELF_IMPROVEMENT_REPORT.md`, `skills/README.md`, `STACK.md` | Unrelated feature docs | |
23 | | -| **Release** | `AGENTS.md §checklist`, `skill:release-checklist` | `VERSIONING.md`, `AUDIT.md`, `RELEASE.md` | `DESIGN.md`, `REFACTORING.md` | |
24 | | -| **Briefing / Instantiation** | `AGENTS.md §checklist`, `INSTANTIATION.md`, `BRIEFING.md` | `skill:project-instantiation`, `MANIFEST.md`, `STACK.md` | `REFACTORING.md`, `RELEASE.md` | |
25 | | -| **Retroactive Instantiation / Migration** | `AGENTS.md §checklist`, `RETROACTIVE_INSTANTIATION.md`, `INSTANTIATION.md` | `CONTEXT_MAP.md`, `skill:retroactive-instantiation`, `MANIFEST.md`, `STACK.md` | `DESIGN.md`, `REFACTORING.md`, `RELEASE.md` | |
26 | | -| **Wiki / Knowledge** | `AGENTS.md §checklist`, `wiki/schema.md`, `wiki/index.md` | `skill:wiki-lint`, `wiki/log.md` | `DESIGN.md`, `DATA.md`, `SECURITY.md` | |
27 | | -| **Security / Data** | `AGENTS.md §checklist`, `SECURITY.md`, `DATA.md` | `AI.md`, `TESTS.md` | `DESIGN.md`, `REFACTORING.md` | |
28 | | -| **Document Audit** | `AGENTS.md §checklist`, `MANIFEST.md`, `AUDIT.md` | `skill:governance-validator`, `wiki/index.md`, `changelogs/` | `DESIGN.md`, `DATA.md` | |
29 | | -| **Pull Request / Code Review** | `AGENTS.md §Code Review and Pull Requests` | `FCVW/refactoring-guide/17-branch-and-pull-request-policy.md` (if refactoring PR), `PLANNING.md` (risk gates) | Most governance docs | |
30 | | -| **Deploy / Environment Promotion** | `AGENTS.md §checklist`, `ENVIRONMENT.md §5` | `RELEASE.md §Deployment and Environment Promotion`, `skill:release-checklist` (if release) | `DESIGN.md`, `REFACTORING.md`, `AI.md` | |
31 | | -| **Multi-Agent / Collaboration** | `AGENTS.md §Multi-Agent Concurrency` | `FCVW/Plans/in_progress/` (check active plans), `wiki/agents/` (agent journals) | Most governance docs unless crossing domain | |
32 | | -| **Git / Commit / Tag** | `skill:git-conventional-commits` | `VERSIONING.md` | Most governance docs | |
33 | | - |
34 | | ---- |
35 | | - |
36 | | -## Skills Quick Reference |
37 | | - |
38 | | -| Skill | Trigger Keywords | Size Saved vs. Full Docs | |
39 | | -|---|---|---| |
40 | | -| `skills/agent-aegis/SKILL.md` | security scan, vulnerability, harden | Focused security-agent checklist | |
| 23 | +| **Release / Version / Changelog** | `AGENTS.md §checklist`, `skill:release-checklist` | `VERSIONING.md`, `AUDIT.md`, `RELEASE.md`, `skill:governance-validator` | `DESIGN.md`, `REFACTORING.md` | |
| 24 | +| **Briefing / Instantiation** | `AGENTS.md §checklist`, `INSTANTIATION.md`, `BRIEFING.md` | `skill:project-instantiation`, `MANIFEST.md`, `STACK.md` | `REFACTORING.md`, `RELEASE.md` | |
| 25 | +| **Retroactive Instantiation / Migration** | `AGENTS.md §checklist`, `RETROACTIVE_INSTANTIATION.md`, `INSTANTIATION.md` | `CONTEXT_MAP.md`, `skill:retroactive-instantiation`, `MANIFEST.md`, `STACK.md` | `DESIGN.md`, `REFACTORING.md`, `RELEASE.md` | |
| 26 | +| **Wiki / Knowledge** | `AGENTS.md §checklist`, `wiki/schema.md`, `wiki/index.md` | `skill:wiki-lint`, `wiki/log.md` | `DESIGN.md`, `DATA.md`, `SECURITY.md` | |
| 27 | +| **Security / Data** | `AGENTS.md §checklist`, `SECURITY.md`, `DATA.md` | `AI.md`, `TESTS.md`, `skill:agent-aegis` | `DESIGN.md`, `REFACTORING.md` | |
| 28 | +| **Document Audit** | `AGENTS.md §checklist`, `MANIFEST.md`, `AUDIT.md` | `skill:governance-validator`, `skill:agnix-linter`, `wiki/index.md`, `changelogs/` | `DESIGN.md`, `DATA.md` | |
| 29 | +| **Pull Request / Code Review** | `AGENTS.md §Code Review and Pull Requests` | `FCVW/refactoring-guide/17-branch-and-pull-request-policy.md` (if refactoring PR), `PLANNING.md` (risk gates) | Most governance docs | |
| 30 | +| **Deploy / Environment Promotion** | `AGENTS.md §checklist`, `ENVIRONMENT.md §5` | `RELEASE.md §Deployment and Environment Promotion`, `skill:release-checklist` (if release) | `DESIGN.md`, `REFACTORING.md`, `AI.md` | |
| 31 | +| **Multi-Agent / Collaboration** | `AGENTS.md §Multi-Agent Concurrency` | `FCVW/Plans/in_progress/` (check active plans), `wiki/agents/` (agent journals) | Most governance docs unless crossing domain | |
| 32 | +| **Git / Commit / Tag** | `skill:git-conventional-commits` | `VERSIONING.md`, `skill:release-checklist` (if version/tag/release) | Most governance docs | |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## Skills Quick Reference |
| 37 | + |
| 38 | +| Skill | Trigger Keywords | Size Saved vs. Full Docs | |
| 39 | +|---|---|---| |
| 40 | +| `skills/agent-aegis/SKILL.md` | security scan, vulnerability, harden, segurança, vazamento de dados | Focused security-agent checklist | |
41 | 41 | | `skills/agent-factory/SKILL.md` | create skill, create agent, specialized skill | Controlled creation gate for new skills and agent profiles | |
42 | | -| `skills/agent-hephaestus/SKILL.md` | ux polish, accessibility, improve ui | Focused UX/accessibility-agent checklist | |
43 | | -| `skills/agent-hermes/SKILL.md` | performance, optimize, bottleneck | Focused performance-agent checklist | |
| 42 | +| `skills/agent-hephaestus/SKILL.md` | ux polish, accessibility, improve ui, interface, acessibilidade | Focused UX/accessibility-agent checklist | |
| 43 | +| `skills/agent-hermes/SKILL.md` | performance, optimize, bottleneck, desempenho, lentidão | Focused performance-agent checklist | |
44 | 44 | | `skills/agnix-linter/SKILL.md` | governance audit, AI instructions, dead links | Validates FCVW structural consistency | |
45 | 45 | | `skills/aicc-compact/SKILL.md` | shift close, compact session, close session, log sync | Reduces close turn overhead | |
46 | 46 | | `skills/anti-monolith-guard/SKILL.md` | monolith, large file, new module, module boundary | Blocks mixed-responsibility artifacts before edits | |
47 | 47 | | `skills/brainstorming-and-tdd/SKILL.md` | new feature, fixing a bug, implementing a plan | Enforces specification and Red/Green workflow | |
48 | | -| `skills/code-hygiene-refactor/SKILL.md` | code hygiene, duplication, stale files, dead code, cleanup | Guides active cleanup without scripts | |
| 48 | +| `skills/code-hygiene-refactor/SKILL.md` | code hygiene, duplication, stale files, dead code, higiene de código | Guides active cleanup without scripts | |
49 | 49 | | `skills/git-conventional-commits/SKILL.md` | commit, tag, push, release notes | Replaces ad-hoc reinstructions | |
50 | | -| `skills/memory-rotation/SKILL.md` | context bloat, clean sessions, rotate memory | Keeps session memory bounded | |
51 | | -| `skills/obsidian-markdown/SKILL.md` | wikilink, frontmatter, Obsidian note | Replaces ad-hoc formatting instructions | |
52 | | -| `skills/orchestrator/SKILL.md` | large refactoring, complex plans, parallel tasks | Coordinates subagent-style task decomposition | |
53 | | -| `skills/project-instantiation/SKILL.md` | bootstrap, new project, instantiate, initialize | Safely sets up workspace | |
54 | | -| `skills/release-checklist/SKILL.md` | release, publish, version bump | ~2.7k tokens vs. RELEASE+VERSIONING+AUDIT | |
55 | | -| `skills/self-improvement/SKILL.md` | improve skill, improve agent, skill failed | Evidence-based gate for modifying skills and agent profiles | |
| 50 | +| `skills/governance-validator/SKILL.md` | validate governance, verify filesystem, document integrity, plan state coherence | Validates governance integrity and plan-state consistency | |
| 51 | +| `skills/memory-rotation/SKILL.md` | context bloat, clean sessions, rotate memory | Keeps session memory bounded | |
| 52 | +| `skills/obsidian-markdown/SKILL.md` | wikilink, frontmatter, Obsidian note | Replaces ad-hoc formatting instructions | |
| 53 | +| `skills/orchestrator/SKILL.md` | large refactoring, complex plans, parallel tasks | Coordinates subagent-style task decomposition | |
| 54 | +| `skills/project-instantiation/SKILL.md` | bootstrap, new project, instantiate, initialize | Safely sets up workspace | |
| 55 | +| `skills/release-checklist/SKILL.md` | release, publish, version bump, changelog, publicar versão | ~2.7k tokens vs. RELEASE+VERSIONING+AUDIT | |
| 56 | +| `skills/self-improvement/SKILL.md` | improve skill, improve agent, skill failed, gatilho falhou | Evidence-based gate for modifying skills and agent profiles | |
56 | 57 | | `skills/systematic-debugging/SKILL.md` | debugging, fixing an error, stack trace | Enforces hypothesis-based debugging | |
57 | | -| `skills/governance-validator/SKILL.md` | validate governance, verify filesystem, check document integrity, pre-audit check, structural audit | Replaces reading FILESYSTEM.md + AUDIT.md + TESTS.md for validation purposes | |
58 | | -| `skills/wiki-lint/SKILL.md` | lint, wiki audit, orphan pages | ~275 lines vs. reading schema.md §12 | |
59 | | - |
60 | | ---- |
61 | | - |
62 | | -## AICC Session Ingestion Quick Steps |
63 | | - |
64 | | -1. List `wiki/sessions/` → identify file with highest `S{num}` |
65 | | -2. Read that file only |
66 | | -3. Align with: completed tasks, active next steps, open risks |
67 | | -4. Confirm alignment to user before starting work |
68 | | - |
69 | | ---- |
70 | | - |
71 | | -## Document Size Reference (V0.10.2) |
72 | | - |
73 | | -> Use to make informed decisions about what to load. Larger files cost more tokens. |
74 | | -
|
75 | | -| Document | Size | Load Priority | |
76 | | -|---|---|---| |
77 | | -| `AGENTS.md` | ~12 KB | Always (first) | |
| 58 | +| `skills/wiki-lint/SKILL.md` | lint, wiki audit, orphan pages | ~275 lines vs. reading schema.md §12 | |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +## AICC Session Ingestion Quick Steps |
| 63 | + |
| 64 | +1. List `wiki/sessions/` → identify file with highest `S{num}` |
| 65 | +2. Read that file only |
| 66 | +3. Align with: completed tasks, active next steps, open risks |
| 67 | +4. Confirm alignment to user before starting work |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +## Document Size Reference (V0.10.3) |
| 72 | + |
| 73 | +> Use to make informed decisions about what to load. Larger files cost more tokens. |
| 74 | +
|
| 75 | +| Document | Size | Load Priority | |
| 76 | +|---|---|---| |
| 77 | +| `AGENTS.md` | ~12 KB | Always first | |
| 78 | +| `CONTEXT_MAP.md` | ~3 KB | First auxiliary document after AGENTS.md | |
78 | 79 | | `REFACTORING.md` | ~14 KB | On demand | |
79 | 80 | | `skills/anti-monolith-guard/SKILL.md` | ~4 KB | Use for module/file growth gates | |
80 | 81 | | `skills/code-hygiene-refactor/SKILL.md` | ~4 KB | Use for cleanup/refactoring triage | |
81 | 82 | | `skills/agent-factory/SKILL.md` | ~4 KB | Use for controlled skill/agent creation | |
82 | 83 | | `skills/self-improvement/SKILL.md` | ~4 KB | Use for evidence-based skill/agent changes | |
83 | 84 | | `AI.md` | ~11 KB | On demand (AI sessions) | |
84 | | -| `APPLICATION_DOCUMENTATION.md` | ~4 KB | On demand (application module docs) | |
85 | | -| `FCVW/README.md` | ~13 KB | Rarely (framework orientation only) | |
86 | | -| `wiki/schema.md` | ~9 KB | Use `skill:wiki-lint` instead | |
87 | | -| `SECURITY.md` | ~7 KB | On demand (security sessions) | |
88 | | -| `ENVIRONMENT.md` | ~6 KB | On demand (environment sessions) | |
89 | | -| `PERFORMANCE.md` | ~5 KB | On demand (performance sessions) | |
90 | | -| `DESIGN.md` | ~7 KB | On demand (UI sessions) | |
91 | | -| `TESTS.md` | ~7 KB | On demand | |
92 | | -| `MANIFEST.md` | ~11 KB | On demand (audit / identity) | |
93 | | -| `DATA.md` | ~9 KB | On demand (persistence sessions) | |
94 | | -| `SCOPE.md` | ~4 KB | On demand (new feature) | |
95 | | -| `PLANNING.md` | ~3 KB | Most sessions | |
96 | | -| `TROUBLESHOOTING.md` | ~5 KB | Bugfix sessions | |
97 | | -| `VERSIONING.md` | ~5 KB | Use `skill:release-checklist` instead | |
98 | | -| `RELEASE.md` | ~3 KB | Use `skill:release-checklist` instead | |
99 | | -| `AUDIT.md` | ~4 KB | Use `skill:release-checklist` instead | |
100 | | -| `CONTEXT_MAP.md` | ~3 KB | Always first (this file) | |
101 | | - |
102 | | ---- |
103 | | - |
104 | | -## Related Documents |
105 | | - |
106 | | -- `AGENTS.md` — full operational guide, checklists, and document index |
107 | | -- `AI.md §Token Efficiency` — detailed token optimization rules |
108 | | -- `skills/README.md` — skills catalog and usage guidelines |
109 | | -- `wiki/sessions/` — AICC session syntheses (latest = current context) |
| 85 | +| `APPLICATION_DOCUMENTATION.md` | ~4 KB | On demand (application module docs) | |
| 86 | +| `FCVW/README.md` | ~13 KB | Rarely (framework orientation only) | |
| 87 | +| `wiki/schema.md` | ~9 KB | Use `skill:wiki-lint` instead | |
| 88 | +| `SECURITY.md` | ~7 KB | On demand (security sessions) | |
| 89 | +| `ENVIRONMENT.md` | ~6 KB | On demand (environment sessions) | |
| 90 | +| `PERFORMANCE.md` | ~5 KB | On demand (performance sessions) | |
| 91 | +| `DESIGN.md` | ~7 KB | On demand (UI sessions) | |
| 92 | +| `TESTS.md` | ~7 KB | On demand | |
| 93 | +| `MANIFEST.md` | ~11 KB | On demand (audit / identity) | |
| 94 | +| `DATA.md` | ~9 KB | On demand (persistence sessions) | |
| 95 | +| `SCOPE.md` | ~4 KB | On demand (new feature) | |
| 96 | +| `PLANNING.md` | ~3 KB | Most sessions | |
| 97 | +| `TROUBLESHOOTING.md` | ~5 KB | Bugfix sessions | |
| 98 | +| `VERSIONING.md` | ~5 KB | Use `skill:release-checklist` instead | |
| 99 | +| `RELEASE.md` | ~3 KB | Use `skill:release-checklist` instead | |
| 100 | +| `AUDIT.md` | ~4 KB | Use `skill:release-checklist` or `skill:governance-validator` when applicable | |
| 101 | + |
| 102 | +--- |
| 103 | + |
| 104 | +## Related Documents |
| 105 | + |
| 106 | +- `AGENTS.md` — full operational guide, checklists, and document index |
| 107 | +- `AI.md §Token Efficiency` — detailed token optimization rules |
| 108 | +- `skills/README.md` — skills catalog and usage guidelines |
| 109 | +- `wiki/sessions/` — AICC session syntheses (latest = current context) |
0 commit comments