contextos-agents 2.3.1 → 2.3.2
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.
- package/.agents/adapters/cursor/export.js +3 -27
- package/.agents/adapters/gemini/export.js +5 -7
- package/.agents/adapters/shared.js +14 -1
- package/.agents/adapters/zed/export.js +4 -16
- package/.agents/compiled/registry.v2.json +33 -33
- package/.agents/compiled/registry.v2.sha256 +1 -1
- package/.agents/compiler/manifest-compiler.js +8 -5
- package/.agents/core/skills/context-manager/EXAMPLES.md +5 -17
- package/.agents/core/skills/context-manager/SKILL.md +10 -100
- package/.agents/core/skills/context-manager/TROUBLESHOOTING.md +6 -6
- package/.agents/core/skills/context-manager/VALIDATION.json +115 -4
- package/.agents/core/skills/context-manager/references/context-rules.md +3 -57
- package/.agents/core/skills/context-manager/skill.yaml +1 -3
- package/.agents/core/skills/context-os/EXAMPLES.md +25 -15
- package/.agents/core/skills/context-os/SKILL.md +12 -135
- package/.agents/core/skills/context-os/TROUBLESHOOTING.md +11 -6
- package/.agents/core/skills/context-os/VALIDATION.json +115 -4
- package/.agents/core/skills/context-os/packs.yaml +10 -59
- package/.agents/core/skills/context-os/references/context-rules.md +27 -59
- package/.agents/core/skills/context-os/references/pipeline.md +14 -119
- package/.agents/core/skills/context-os/references/project-graph.md +11 -100
- package/.agents/core/skills/context-os/rules.yaml +8 -135
- package/.agents/core/skills/engineering-workflow/EXAMPLES.md +15 -50
- package/.agents/core/skills/engineering-workflow/SKILL.md +10 -10
- package/.agents/core/skills/engineering-workflow/TROUBLESHOOTING.md +11 -19
- package/.agents/core/skills/engineering-workflow/VALIDATION.json +115 -4
- package/.agents/core/skills/engineering-workflow/references/workflow.md +55 -317
- package/.agents/core/skills/gemini-precision/EXAMPLES.md +33 -53
- package/.agents/core/skills/gemini-precision/SKILL.md +11 -147
- package/.agents/core/skills/gemini-precision/TROUBLESHOOTING.md +12 -25
- package/.agents/core/skills/gemini-precision/VALIDATION.json +115 -4
- package/.agents/core/skills/gemini-precision/skill.yaml +1 -1
- package/.agents/core/skills/gstack-roles/EXAMPLES.md +5 -21
- package/.agents/core/skills/gstack-roles/SKILL.md +10 -12
- package/.agents/core/skills/gstack-roles/TROUBLESHOOTING.md +6 -12
- package/.agents/core/skills/gstack-roles/VALIDATION.json +115 -4
- package/.agents/core/skills/gstack-roles/references/roles.md +3 -147
- package/.agents/core/skills/ponytail-mindset/EXAMPLES.md +12 -45
- package/.agents/core/skills/ponytail-mindset/SKILL.md +10 -13
- package/.agents/core/skills/ponytail-mindset/TROUBLESHOOTING.md +10 -19
- package/.agents/core/skills/ponytail-mindset/VALIDATION.json +115 -4
- package/.agents/core/skills/ponytail-mindset/references/minimalism.md +58 -174
- package/.agents/core/skills/security/EXAMPLES.md +19 -55
- package/.agents/core/skills/security/SKILL.md +61 -137
- package/.agents/core/skills/security/TROUBLESHOOTING.md +13 -19
- package/.agents/core/skills/security/VALIDATION.json +115 -4
- package/.agents/core/skills/security/skill.yaml +1 -1
- package/.agents/generated/claude/skills/context-manager/EXAMPLES.md +5 -17
- package/.agents/generated/claude/skills/context-manager/SKILL.md +9 -96
- package/.agents/generated/claude/skills/context-manager/TROUBLESHOOTING.md +6 -6
- package/.agents/generated/claude/skills/context-manager/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/context-manager/references/context-rules.md +3 -57
- package/.agents/generated/claude/skills/context-os/EXAMPLES.md +25 -15
- package/.agents/generated/claude/skills/context-os/SKILL.md +11 -133
- package/.agents/generated/claude/skills/context-os/TROUBLESHOOTING.md +11 -6
- package/.agents/generated/claude/skills/context-os/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/context-os/packs.yaml +10 -59
- package/.agents/generated/claude/skills/context-os/references/context-rules.md +27 -59
- package/.agents/generated/claude/skills/context-os/references/pipeline.md +14 -119
- package/.agents/generated/claude/skills/context-os/references/project-graph.md +11 -100
- package/.agents/generated/claude/skills/context-os/rules.yaml +8 -135
- package/.agents/generated/claude/skills/engineering-workflow/EXAMPLES.md +15 -50
- package/.agents/generated/claude/skills/engineering-workflow/SKILL.md +9 -9
- package/.agents/generated/claude/skills/engineering-workflow/TROUBLESHOOTING.md +11 -19
- package/.agents/generated/claude/skills/engineering-workflow/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/engineering-workflow/references/workflow.md +55 -317
- package/.agents/generated/claude/skills/gemini-precision/EXAMPLES.md +33 -53
- package/.agents/generated/claude/skills/gemini-precision/SKILL.md +10 -143
- package/.agents/generated/claude/skills/gemini-precision/TROUBLESHOOTING.md +12 -25
- package/.agents/generated/claude/skills/gemini-precision/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/gstack-roles/EXAMPLES.md +5 -21
- package/.agents/generated/claude/skills/gstack-roles/SKILL.md +9 -11
- package/.agents/generated/claude/skills/gstack-roles/TROUBLESHOOTING.md +6 -12
- package/.agents/generated/claude/skills/gstack-roles/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/gstack-roles/references/roles.md +3 -147
- package/.agents/generated/claude/skills/ponytail-mindset/EXAMPLES.md +12 -45
- package/.agents/generated/claude/skills/ponytail-mindset/SKILL.md +9 -12
- package/.agents/generated/claude/skills/ponytail-mindset/TROUBLESHOOTING.md +10 -19
- package/.agents/generated/claude/skills/ponytail-mindset/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/ponytail-mindset/references/minimalism.md +58 -174
- package/.agents/generated/claude/skills/security/EXAMPLES.md +19 -55
- package/.agents/generated/claude/skills/security/SKILL.md +60 -134
- package/.agents/generated/claude/skills/security/TROUBLESHOOTING.md +13 -19
- package/.agents/generated/claude/skills/security/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/context-manager/EXAMPLES.md +5 -17
- package/.agents/generated/gemini/skills/context-manager/SKILL.md +10 -99
- package/.agents/generated/gemini/skills/context-manager/TROUBLESHOOTING.md +6 -6
- package/.agents/generated/gemini/skills/context-manager/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/context-manager/references/context-rules.md +3 -57
- package/.agents/generated/gemini/skills/context-os/EXAMPLES.md +25 -15
- package/.agents/generated/gemini/skills/context-os/SKILL.md +12 -135
- package/.agents/generated/gemini/skills/context-os/TROUBLESHOOTING.md +11 -6
- package/.agents/generated/gemini/skills/context-os/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/context-os/packs.yaml +10 -59
- package/.agents/generated/gemini/skills/context-os/references/context-rules.md +27 -59
- package/.agents/generated/gemini/skills/context-os/references/pipeline.md +14 -119
- package/.agents/generated/gemini/skills/context-os/references/project-graph.md +11 -100
- package/.agents/generated/gemini/skills/context-os/rules.yaml +8 -135
- package/.agents/generated/gemini/skills/engineering-workflow/EXAMPLES.md +15 -50
- package/.agents/generated/gemini/skills/engineering-workflow/SKILL.md +10 -11
- package/.agents/generated/gemini/skills/engineering-workflow/TROUBLESHOOTING.md +11 -19
- package/.agents/generated/gemini/skills/engineering-workflow/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/engineering-workflow/references/workflow.md +55 -317
- package/.agents/generated/gemini/skills/gemini-precision/EXAMPLES.md +33 -53
- package/.agents/generated/gemini/skills/gemini-precision/SKILL.md +11 -145
- package/.agents/generated/gemini/skills/gemini-precision/TROUBLESHOOTING.md +12 -25
- package/.agents/generated/gemini/skills/gemini-precision/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/gstack-roles/EXAMPLES.md +5 -21
- package/.agents/generated/gemini/skills/gstack-roles/SKILL.md +10 -13
- package/.agents/generated/gemini/skills/gstack-roles/TROUBLESHOOTING.md +6 -12
- package/.agents/generated/gemini/skills/gstack-roles/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/gstack-roles/references/roles.md +3 -147
- package/.agents/generated/gemini/skills/ponytail-mindset/EXAMPLES.md +12 -45
- package/.agents/generated/gemini/skills/ponytail-mindset/SKILL.md +10 -14
- package/.agents/generated/gemini/skills/ponytail-mindset/TROUBLESHOOTING.md +10 -19
- package/.agents/generated/gemini/skills/ponytail-mindset/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/ponytail-mindset/references/minimalism.md +58 -174
- package/.agents/generated/gemini/skills/security/EXAMPLES.md +19 -55
- package/.agents/generated/gemini/skills/security/SKILL.md +61 -136
- package/.agents/generated/gemini/skills/security/TROUBLESHOOTING.md +13 -19
- package/.agents/generated/gemini/skills/security/VALIDATION.json +115 -4
- package/.agents/resolver/canonical-resolver.js +34 -21
- package/.agents/rules/rule-catalog.js +5 -5
- package/.agents/validate.js +9 -2
- package/.agents/validation-evidence.js +89 -0
- package/README.md +132 -207
- package/catalog/skills/typescript/SKILL.md +16 -2
- package/package.json +3 -2
|
@@ -1,12 +1,123 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"x-contextos-evidence-contract": 1,
|
|
4
|
+
"title": "Scoped verification evidence",
|
|
5
|
+
"description": "Report shape and outcome consistency only; command execution and agent behavior require separate evidence.",
|
|
3
6
|
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"status",
|
|
10
|
+
"checks",
|
|
11
|
+
"limitations"
|
|
12
|
+
],
|
|
4
13
|
"properties": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
14
|
+
"status": {
|
|
15
|
+
"enum": [
|
|
16
|
+
"verified",
|
|
17
|
+
"partial",
|
|
18
|
+
"not_run"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"checks": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": [
|
|
27
|
+
"command",
|
|
28
|
+
"exitCode",
|
|
29
|
+
"scope"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"command": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1
|
|
35
|
+
},
|
|
36
|
+
"exitCode": {
|
|
37
|
+
"type": [
|
|
38
|
+
"integer",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"scope": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"limitations": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
}
|
|
7
55
|
}
|
|
8
56
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"if": {
|
|
60
|
+
"properties": {
|
|
61
|
+
"status": {
|
|
62
|
+
"const": "verified"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"then": {
|
|
67
|
+
"properties": {
|
|
68
|
+
"checks": {
|
|
69
|
+
"minItems": 1,
|
|
70
|
+
"items": {
|
|
71
|
+
"properties": {
|
|
72
|
+
"exitCode": {
|
|
73
|
+
"const": 0
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"if": {
|
|
83
|
+
"properties": {
|
|
84
|
+
"status": {
|
|
85
|
+
"enum": [
|
|
86
|
+
"partial",
|
|
87
|
+
"not_run"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"then": {
|
|
93
|
+
"properties": {
|
|
94
|
+
"limitations": {
|
|
95
|
+
"minItems": 1
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"if": {
|
|
102
|
+
"properties": {
|
|
103
|
+
"status": {
|
|
104
|
+
"const": "not_run"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"then": {
|
|
109
|
+
"properties": {
|
|
110
|
+
"checks": {
|
|
111
|
+
"items": {
|
|
112
|
+
"properties": {
|
|
113
|
+
"exitCode": {
|
|
114
|
+
"type": "null"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
11
122
|
]
|
|
12
123
|
}
|
|
@@ -1,59 +1,10 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
fastapi-backend:
|
|
13
|
-
name: "FastAPI Backend"
|
|
14
|
-
description: "Python backend with FastAPI, PostgreSQL, Docker"
|
|
15
|
-
skills: [fastapi, python, pydantic, postgres, docker, testing, security, rest]
|
|
16
|
-
profile: startup
|
|
17
|
-
generates: [PRD, ARCHITECTURE, DATABASE, API, TASKS, PROJECT_GRAPH]
|
|
18
|
-
|
|
19
|
-
react-spa:
|
|
20
|
-
name: "React SPA"
|
|
21
|
-
description: "Single Page Application with React, TypeScript, Tailwind"
|
|
22
|
-
skills: [react, typescript, tailwind, performance, web-accessibility, testing]
|
|
23
|
-
profile: startup
|
|
24
|
-
generates: [PRD, ARCHITECTURE, API, UI, TASKS, PROJECT_GRAPH]
|
|
25
|
-
|
|
26
|
-
nestjs-enterprise:
|
|
27
|
-
name: "NestJS Enterprise"
|
|
28
|
-
description: "Enterprise-grade Node.js backend with NestJS, DDD, full testing"
|
|
29
|
-
skills: [nestjs, typescript, node, postgres, ddd, security, testing, cicd, docker]
|
|
30
|
-
profile: enterprise
|
|
31
|
-
generates: [PRD, ARCHITECTURE, DATABASE, API, TASKS, ROADMAP, PROJECT_GRAPH]
|
|
32
|
-
|
|
33
|
-
design-system:
|
|
34
|
-
name: "Design System"
|
|
35
|
-
description: "UI/UX design system with accessibility and performance"
|
|
36
|
-
skills: [ui-design, ux-design, web-accessibility, performance]
|
|
37
|
-
profile: startup
|
|
38
|
-
generates: [PRD, UI, TASKS]
|
|
39
|
-
|
|
40
|
-
mobile-react-native:
|
|
41
|
-
name: "React Native Mobile"
|
|
42
|
-
description: "Cross-platform mobile app with React Native"
|
|
43
|
-
skills: [react, typescript, react-native, performance, web-accessibility]
|
|
44
|
-
profile: startup
|
|
45
|
-
generates: [PRD, ARCHITECTURE, API, UI, TASKS, PROJECT_GRAPH]
|
|
46
|
-
|
|
47
|
-
hackathon-fast:
|
|
48
|
-
name: "Hackathon Quick Start"
|
|
49
|
-
description: "Fastest possible setup — SQLite, minimal architecture"
|
|
50
|
-
skills: [react, typescript, node, sqlite]
|
|
51
|
-
profile: hackathon
|
|
52
|
-
generates: [TASKS, PROJECT_GRAPH]
|
|
53
|
-
|
|
54
|
-
ai-saas:
|
|
55
|
-
name: "AI SaaS Platform"
|
|
56
|
-
description: "SaaS with AI features, auth, payments, analytics"
|
|
57
|
-
skills: [nextjs, react, typescript, tailwind, prisma, security, stripe, openai]
|
|
58
|
-
profile: startup
|
|
59
|
-
generates: [PRD, ARCHITECTURE, DATABASE, API, UI, ROADMAP, TASKS, PROJECT_GRAPH]
|
|
1
|
+
# Reference-only illustration. This file does not install skills or generate docs.
|
|
2
|
+
status: reference-only
|
|
3
|
+
purpose: Illustrate task-focused grouping; inspect available catalog skills first.
|
|
4
|
+
examples:
|
|
5
|
+
protected-api:
|
|
6
|
+
primary: [engineering-workflow, security]
|
|
7
|
+
compiler-maintenance:
|
|
8
|
+
primary: [engineering-workflow, context-os]
|
|
9
|
+
substantive-build:
|
|
10
|
+
primary: [engineering-workflow, ponytail-mindset]
|
|
@@ -1,68 +1,36 @@
|
|
|
1
|
-
# Context
|
|
1
|
+
# Context selection and budgeting
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Inspect actual evidence
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
| **Backend** | — | ARCHITECTURE, DATABASE, API | backend skills |
|
|
11
|
-
| **Database** | — | ARCHITECTURE, DATABASE | — |
|
|
12
|
-
| **Bugfix** | — | — | PROJECT_GRAPH (affected module only) |
|
|
13
|
-
| **Refactor** | — | ARCHITECTURE | PROJECT_GRAPH, affected skills |
|
|
14
|
-
| **Review** | PRD | ARCHITECTURE | TASKS, all loaded skills |
|
|
15
|
-
| **Deploy** | — | ARCHITECTURE | DEPLOYMENT, infrastructure skills |
|
|
5
|
+
Supply a concrete task and affected paths to resolve. Inspect selected skills,
|
|
6
|
+
reasons, risk, excluded candidates, and warnings. Select source files, callers,
|
|
7
|
+
tests, relevant contracts, and active decisions manually as the task requires.
|
|
8
|
+
Do not require a PRD, API document, database document, or module graph to exist.
|
|
9
|
+
An absent schema change does not make database semantics irrelevant.
|
|
16
10
|
|
|
17
|
-
##
|
|
11
|
+
## Budget contract
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| `infrastructure` | ARCHITECTURE.md | — |
|
|
26
|
-
| `security` | ARCHITECTURE.md, API.md | DATABASE.md |
|
|
27
|
-
| `testing` | API.md | ARCHITECTURE.md |
|
|
13
|
+
The resolver estimates skill entrypoint length divided by 3.8, rounded up. It
|
|
14
|
+
uses the requested positive --budget value or its current risk-tier default.
|
|
15
|
+
References, tool output, system instructions, documents, and chat history are
|
|
16
|
+
outside that estimate. Required safety guidance can exceed a soft budget and
|
|
17
|
+
must produce an explicit overflow warning. No fixed 8000-token total or measured
|
|
18
|
+
model token saving is promised.
|
|
28
19
|
|
|
29
|
-
|
|
20
|
+
Trim irrelevant documents and select relevant sections first. Preserve user
|
|
21
|
+
constraints and safety guidance. Inspect code dependencies and callers rather
|
|
22
|
+
than limiting all investigations to exactly one import hop.
|
|
30
23
|
|
|
31
|
-
|
|
24
|
+
## Aliases and unavailable skills
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
| 3 (Context) | 2000 | Decision records + project graph (affected branch) |
|
|
38
|
-
| 4 (Background) | 1000 | PRD summary + coding rules |
|
|
26
|
+
context-manager resolves to context-os; gstack-roles resolves to
|
|
27
|
+
engineering-workflow. The resolver avoids duplicate bodies and reports alias
|
|
28
|
+
warnings. Installation and export still retain compatibility identifiers.
|
|
29
|
+
Catalog skills are installed on demand; inspect unavailable-skill warnings.
|
|
39
30
|
|
|
40
|
-
|
|
31
|
+
## Verification boundaries
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
3. Keep Level 3 (skills) at full detail — they contain the actual instructions
|
|
47
|
-
|
|
48
|
-
## Module-Based Filtering
|
|
49
|
-
|
|
50
|
-
When the Project Graph is available, use it to filter context:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
Task: "Fix appointment reminder bug"
|
|
54
|
-
↓
|
|
55
|
-
Project Graph lookup: "reminder" → module: appointments
|
|
56
|
-
↓
|
|
57
|
-
Appointments depends_on: [patients, auth]
|
|
58
|
-
↓
|
|
59
|
-
Load only:
|
|
60
|
-
- appointments module docs
|
|
61
|
-
- auth module docs (dependency)
|
|
62
|
-
- API.md (appointments section only)
|
|
63
|
-
↓
|
|
64
|
-
Skip:
|
|
65
|
-
- patients module docs (not a dependency for this task)
|
|
66
|
-
- DATABASE.md (no schema change expected)
|
|
67
|
-
- UI.md (backend task)
|
|
68
|
-
```
|
|
33
|
+
compile validates manifests and builds the registry. validate checks source
|
|
34
|
+
structure and sync. export --check inspects generated drift. Example tests run
|
|
35
|
+
specific scenarios. None of these by itself proves live client instruction
|
|
36
|
+
loading or improved model decisions.
|
|
@@ -1,119 +1,14 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ROADMAP.md API.md API routes edge cases security scan deploy
|
|
16
|
-
PROJECT_GRAPH TASKS.md migrations performance a11y audit release notes
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Stage Details
|
|
20
|
-
|
|
21
|
-
### 1. DEFINE — "What are we building?"
|
|
22
|
-
|
|
23
|
-
**Input:** User idea or feature request
|
|
24
|
-
**Output:** PRD.md, UI.md, ROADMAP.md, PROJECT_GRAPH.md
|
|
25
|
-
|
|
26
|
-
Process:
|
|
27
|
-
|
|
28
|
-
1. Intent Analysis — parse the user's request
|
|
29
|
-
2. Clarifying questions — fill gaps
|
|
30
|
-
3. Generate PRD with clear requirements
|
|
31
|
-
4. Generate UI spec if frontend is involved
|
|
32
|
-
5. Create initial Project Graph
|
|
33
|
-
|
|
34
|
-
**Context loaded:** None (this is the starting point)
|
|
35
|
-
|
|
36
|
-
### 2. PLAN — "How will we build it?"
|
|
37
|
-
|
|
38
|
-
**Input:** PRD.md
|
|
39
|
-
**Output:** ARCHITECTURE.md, DATABASE.md, API.md, TASKS.md
|
|
40
|
-
|
|
41
|
-
Process:
|
|
42
|
-
|
|
43
|
-
1. Choose architecture based on profile + requirements
|
|
44
|
-
2. Design database schema
|
|
45
|
-
3. Define API contracts
|
|
46
|
-
4. Break work into atomic tasks
|
|
47
|
-
5. Update Project Graph with modules and features
|
|
48
|
-
|
|
49
|
-
**Context loaded:** PRD.md, profiles/
|
|
50
|
-
|
|
51
|
-
### 3. BUILD — "Write the code"
|
|
52
|
-
|
|
53
|
-
**Input:** TASKS.md + relevant architecture docs
|
|
54
|
-
**Output:** Source code, migrations, configurations
|
|
55
|
-
|
|
56
|
-
Process:
|
|
57
|
-
|
|
58
|
-
1. Pick next task from TASKS.md
|
|
59
|
-
2. Context Compiler loads only relevant skills and docs
|
|
60
|
-
3. Write code following loaded skill instructions
|
|
61
|
-
4. Commit after each completed task
|
|
62
|
-
5. Update Project Graph if structure changes
|
|
63
|
-
|
|
64
|
-
**Context loaded:** Task-specific (via Context Manager)
|
|
65
|
-
|
|
66
|
-
### 4. VERIFY — "Prove it works"
|
|
67
|
-
|
|
68
|
-
**Input:** Source code
|
|
69
|
-
**Output:** Tests, coverage reports
|
|
70
|
-
|
|
71
|
-
Process:
|
|
72
|
-
|
|
73
|
-
1. Write tests for new code
|
|
74
|
-
2. Run existing tests — ensure nothing broke
|
|
75
|
-
3. Check edge cases
|
|
76
|
-
4. Verify performance (if applicable)
|
|
77
|
-
|
|
78
|
-
**Context loaded:** Testing skills + API.md
|
|
79
|
-
|
|
80
|
-
### 5. REVIEW — "Quality check"
|
|
81
|
-
|
|
82
|
-
**Input:** Code changes (diff)
|
|
83
|
-
**Output:** Review comments, approved changes
|
|
84
|
-
|
|
85
|
-
Process:
|
|
86
|
-
|
|
87
|
-
1. Self-review against coding standards
|
|
88
|
-
2. Security scan (if security skill loaded)
|
|
89
|
-
3. Accessibility audit (if frontend)
|
|
90
|
-
4. Check against ARCHITECTURE.md — does this align?
|
|
91
|
-
5. Check against Decision Records — does this contradict anything?
|
|
92
|
-
|
|
93
|
-
**Context loaded:** ARCHITECTURE.md + relevant skills + decisions/
|
|
94
|
-
|
|
95
|
-
### 6. SHIP — "Deploy and document"
|
|
96
|
-
|
|
97
|
-
**Input:** Reviewed, tested code
|
|
98
|
-
**Output:** Deployment, decision records, release notes
|
|
99
|
-
|
|
100
|
-
Process:
|
|
101
|
-
|
|
102
|
-
1. Record any architectural decisions made (ADR)
|
|
103
|
-
2. Update ROADMAP.md — mark completed items
|
|
104
|
-
3. Update TASKS.md — close completed tasks
|
|
105
|
-
4. Deploy (if deployment skill loaded)
|
|
106
|
-
5. Update Project Graph
|
|
107
|
-
|
|
108
|
-
**Context loaded:** ROADMAP.md, TASKS.md, deployment skills
|
|
109
|
-
|
|
110
|
-
## Profiles and Pipeline
|
|
111
|
-
|
|
112
|
-
Different profiles customize the pipeline:
|
|
113
|
-
|
|
114
|
-
| Profile | Skips | Adds |
|
|
115
|
-
| --- | --- | --- |
|
|
116
|
-
| **Hackathon** | REVIEW, detailed PLAN | Speed shortcuts |
|
|
117
|
-
| **MVP** | Detailed REVIEW, DEPLOY | Quick iterations |
|
|
118
|
-
| **Startup** | Heavy docs | Balance of speed and quality |
|
|
119
|
-
| **Enterprise** | Nothing | ADR enforcement, security gates, full testing |
|
|
1
|
+
# Compiler and engineering boundaries
|
|
2
|
+
|
|
3
|
+
1. Inspect source manifests, declared entrypoints, overrides, and resources.
|
|
4
|
+
2. Run compile to build the deterministic registry.
|
|
5
|
+
3. Resolve the task with affected files and inspect risk, reasons, and warnings.
|
|
6
|
+
4. Load selected entrypoints and relevant references on demand.
|
|
7
|
+
5. Export supported agent projections and check drift.
|
|
8
|
+
6. Run structural, example, and behavioral checks at their actual scope.
|
|
9
|
+
|
|
10
|
+
For implementation use engineering-workflow's proportional lifecycle. Do not
|
|
11
|
+
create a full suite of product documents or skip security review merely because
|
|
12
|
+
a generic profile illustration says to do so. Profiles are runtime configuration
|
|
13
|
+
from the supported profile commands and manifests, not rules interpreted from
|
|
14
|
+
this skill's reference YAML files.
|
|
@@ -1,103 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Workspace evidence graph
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
WorkspaceGraphBuilder discovers package manifests, dependency names, internal
|
|
4
|
+
package links, language ecosystems, and known configuration files. The resolver
|
|
5
|
+
uses nearest-package evidence to avoid unrelated monorepo stack signals. The
|
|
6
|
+
graph is bounded and can report partial discovery.
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
└── Task
|
|
10
|
-
└── File
|
|
11
|
-
└── Skill
|
|
12
|
-
```
|
|
8
|
+
This graph is not a source-symbol AST, a feature/task map, or an automatic loader
|
|
9
|
+
of sections from docs/PROJECT_GRAPH.md. Inspect source imports, callers, tests,
|
|
10
|
+
and existing project documents explicitly for code impact analysis. A supplied
|
|
11
|
+
Project Graph can help, but confirm its freshness against the current checkout.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Without a Project Graph, an AI agent sees a flat list of files. With it, the agent understands:
|
|
17
|
-
|
|
18
|
-
1. **Impact analysis** — changing `calendar.ts` affects the Appointments module, which affects Patients
|
|
19
|
-
2. **Scope detection** — a task touching `api/patients/` only needs Patient-related context
|
|
20
|
-
3. **Skill selection** — files in `components/` need React skills, files in `api/` need backend skills
|
|
21
|
-
4. **Dependency tracking** — the Calendar feature depends on the Auth module
|
|
22
|
-
|
|
23
|
-
## Structure
|
|
24
|
-
|
|
25
|
-
The Project Graph lives in `docs/PROJECT_GRAPH.md` and follows this format:
|
|
26
|
-
|
|
27
|
-
```yaml
|
|
28
|
-
project:
|
|
29
|
-
name: "DentalCRM"
|
|
30
|
-
type: crm
|
|
31
|
-
|
|
32
|
-
modules:
|
|
33
|
-
patients:
|
|
34
|
-
description: "Patient management"
|
|
35
|
-
features:
|
|
36
|
-
- patient-list
|
|
37
|
-
- patient-profile
|
|
38
|
-
- medical-history
|
|
39
|
-
files:
|
|
40
|
-
- src/modules/patients/**
|
|
41
|
-
skills: [react, typescript, postgres]
|
|
42
|
-
depends_on: [auth]
|
|
43
|
-
|
|
44
|
-
appointments:
|
|
45
|
-
description: "Appointment scheduling"
|
|
46
|
-
features:
|
|
47
|
-
- appointment-calendar
|
|
48
|
-
- appointment-booking
|
|
49
|
-
- notifications
|
|
50
|
-
files:
|
|
51
|
-
- src/modules/appointments/**
|
|
52
|
-
skills: [react, typescript, postgres]
|
|
53
|
-
depends_on: [patients, auth]
|
|
54
|
-
|
|
55
|
-
auth:
|
|
56
|
-
description: "Authentication and authorization"
|
|
57
|
-
features:
|
|
58
|
-
- login
|
|
59
|
-
- registration
|
|
60
|
-
- role-management
|
|
61
|
-
files:
|
|
62
|
-
- src/modules/auth/**
|
|
63
|
-
skills: [security, typescript, jwt]
|
|
64
|
-
depends_on: []
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## How the Context Compiler Uses It
|
|
68
|
-
|
|
69
|
-
### Task: "Add a reminder notification for appointments"
|
|
70
|
-
|
|
71
|
-
1. **Locate module**: `appointments`
|
|
72
|
-
2. **Check dependencies**: `appointments` → `patients`, `auth`
|
|
73
|
-
3. **Load relevant files**: `src/modules/appointments/**`, `src/modules/notifications/**`
|
|
74
|
-
4. **Load relevant skills**: `react`, `typescript`, notification patterns
|
|
75
|
-
5. **Load relevant docs**: `ARCHITECTURE.md` (notifications section), `API.md` (endpoints)
|
|
76
|
-
6. **Skip irrelevant**: `DATABASE.md` (no schema change), `UI.md` (if backend-only)
|
|
77
|
-
|
|
78
|
-
### Task: "Refactor the database schema"
|
|
79
|
-
|
|
80
|
-
1. **Affected modules**: ALL (schema change is cross-cutting)
|
|
81
|
-
2. **Load**: `DATABASE.md`, `ARCHITECTURE.md`, `PROJECT_GRAPH.md`
|
|
82
|
-
3. **Show impact**: which modules/features are affected by each table change
|
|
83
|
-
4. **Load skills**: `postgres` (or relevant DB skill)
|
|
84
|
-
|
|
85
|
-
## Automatic Updates
|
|
86
|
-
|
|
87
|
-
The Project Graph should be updated when:
|
|
88
|
-
|
|
89
|
-
- New modules are added
|
|
90
|
-
- Features are completed
|
|
91
|
-
- File structure changes significantly
|
|
92
|
-
- Dependencies between modules change
|
|
93
|
-
|
|
94
|
-
Use `ctx graph` to regenerate the Project Graph from the current codebase.
|
|
95
|
-
|
|
96
|
-
## Graph Queries
|
|
97
|
-
|
|
98
|
-
The Context Compiler can answer questions like:
|
|
99
|
-
|
|
100
|
-
- "What modules does this file belong to?"
|
|
101
|
-
- "What skills are needed for this module?"
|
|
102
|
-
- "What other modules will be affected if I change this?"
|
|
103
|
-
- "Show me the dependency chain from here"
|
|
13
|
+
Use resolve --json to inspect workspaceGraph evidence. There is no ctx graph
|
|
14
|
+
command. Do not promise automatic module-graph updates or a context YAML cache.
|