@cubis/foundry 0.3.77 → 0.3.79
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/dist/cli/build/commands.js +19 -0
- package/dist/cli/build/commands.js.map +1 -0
- package/dist/cli/commands/register.js +4 -0
- package/dist/cli/commands/register.js.map +1 -1
- package/dist/cli/core.js +1355 -46
- package/dist/cli/core.js.map +1 -1
- package/package.json +4 -3
- package/src/cli/build/commands.ts +39 -0
- package/src/cli/commands/register.ts +6 -0
- package/src/cli/core.ts +1689 -75
- package/workflows/skills/generated/skill-audit.json +11 -2
- package/workflows/skills/generated/skill-catalog.json +38 -4
- package/workflows/skills/skills_index.json +34 -0
- package/workflows/skills/spec-driven-delivery/SKILL.md +63 -0
- package/workflows/workflows/agent-environment-setup/generated/route-manifest.json +117 -4
- package/workflows/workflows/agent-environment-setup/manifest.json +21 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/accessibility.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/architecture.toml +19 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/backend.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/create.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/database.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/debug.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/devops.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/implement-track.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/migrate.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/mobile.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/onboard.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/orchestrate.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/plan.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/refactor.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/release.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/review.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/security.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/spec.toml +19 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/test.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/vercel.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +3 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/spec-driven-delivery/SKILL.md +65 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/architecture.md +87 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/backend.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/create.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/database.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/implement-track.md +7 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/migrate.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/mobile.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/onboard.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/orchestrate.md +6 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/plan.md +12 -2
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/refactor.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/release.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/spec.md +81 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +3 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +34 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/spec-driven-delivery/SKILL.md +66 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/architecture.md +85 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/backend.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/create.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/database.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/implement-track.md +7 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/migrate.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/mobile.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/onboard.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/orchestrate.md +6 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/plan.md +12 -2
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/refactor.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/release.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/spec.md +79 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/researcher.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/sre-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/validator.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +3 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/skills/spec-driven-delivery/SKILL.md +65 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/accessibility.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/architecture.md +87 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/backend.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/create.md +5 -2
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/database.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/debug.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/devops.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/implement-track.md +8 -2
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/migrate.md +5 -2
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/mobile.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/onboard.md +2 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/orchestrate.md +7 -2
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/plan.md +13 -3
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/refactor.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/release.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/review.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/security.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/spec.md +81 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/test.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/vercel.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-accessibility.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-architecture.prompt.md +18 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-backend.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-create.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-database.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-debug.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-devops.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-implement-track.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-migrate.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-mobile.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-onboard.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-orchestrate.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-plan.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-refactor.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-release.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-review.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-security.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-spec.prompt.md +18 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-test.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-vercel.prompt.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +3 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +34 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/spec-driven-delivery/SKILL.md +70 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/architecture.md +85 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/backend.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/create.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/database.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/implement-track.md +7 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/migrate.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/mobile.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/onboard.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/orchestrate.md +6 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/plan.md +12 -2
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/refactor.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/release.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/spec.md +79 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/accessibility.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/architecture.toml +19 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/backend.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/create.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/database.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/debug.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/devops.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/implement-track.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/migrate.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/mobile.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/onboard.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/orchestrate.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/plan.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/refactor.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/release.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/review.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/security.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/spec.toml +19 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/test.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/vercel.toml +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/gemini/rules/GEMINI.md +3 -1
- package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/spec-driven-delivery/SKILL.md +65 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/architecture.md +87 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/backend.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/create.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/database.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/implement-track.md +7 -1
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/migrate.md +4 -1
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/mobile.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/onboard.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/orchestrate.md +6 -1
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/plan.md +12 -2
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/refactor.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/release.md +3 -0
- package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/spec.md +81 -0
- package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +5 -5
- package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +3 -3
- package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +8 -8
- package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +3 -3
- package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +6 -6
- package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +8 -8
- package/workflows/workflows/agent-environment-setup/shared/agents/researcher.md +8 -8
- package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +2 -2
- package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +13 -0
- package/workflows/workflows/agent-environment-setup/shared/rules/overrides/codex.md +3 -3
- package/workflows/workflows/agent-environment-setup/shared/workflows/architecture.md +85 -0
- package/workflows/workflows/agent-environment-setup/shared/workflows/backend.md +8 -5
- package/workflows/workflows/agent-environment-setup/shared/workflows/create.md +5 -2
- package/workflows/workflows/agent-environment-setup/shared/workflows/database.md +6 -3
- package/workflows/workflows/agent-environment-setup/shared/workflows/implement-track.md +12 -6
- package/workflows/workflows/agent-environment-setup/shared/workflows/migrate.md +7 -4
- package/workflows/workflows/agent-environment-setup/shared/workflows/mobile.md +3 -0
- package/workflows/workflows/agent-environment-setup/shared/workflows/onboard.md +6 -5
- package/workflows/workflows/agent-environment-setup/shared/workflows/orchestrate.md +10 -5
- package/workflows/workflows/agent-environment-setup/shared/workflows/plan.md +17 -7
- package/workflows/workflows/agent-environment-setup/shared/workflows/refactor.md +5 -2
- package/workflows/workflows/agent-environment-setup/shared/workflows/release.md +3 -0
- package/workflows/workflows/agent-environment-setup/shared/workflows/security.md +2 -2
- package/workflows/workflows/agent-environment-setup/shared/workflows/spec.md +79 -0
|
@@ -27,6 +27,7 @@ Use this when joining a new project, exploring an unfamiliar codebase, or prepar
|
|
|
27
27
|
|
|
28
28
|
- This workflow file, active platform rules, and selected agents or skills guide execution.
|
|
29
29
|
- Provide the repo URL, focus areas, and any specific questions to answer during onboarding.
|
|
30
|
+
- Read `ENGINEERING_RULES.md` first and `TECH.md` next when present so onboarding distinguishes the intended contract from current implementation reality.
|
|
30
31
|
|
|
31
32
|
## Skill Routing
|
|
32
33
|
|
package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/orchestrate.md
CHANGED
|
@@ -20,6 +20,7 @@ Use this when a task spans multiple domains (backend + frontend, security + infr
|
|
|
20
20
|
|
|
21
21
|
- This workflow file, active platform rules, and selected agents or skills guide execution.
|
|
22
22
|
- Attach the full task description, constraints, acceptance criteria, and relevant context when starting.
|
|
23
|
+
- Read `ENGINEERING_RULES.md` and `TECH.md` before decomposing non-trivial work, then reuse any existing `docs/specs/<spec-id>/` pack as the handoff source of truth.
|
|
23
24
|
|
|
24
25
|
## Skill Routing
|
|
25
26
|
|
|
@@ -34,7 +35,8 @@ Use this when a task spans multiple domains (backend + frontend, security + infr
|
|
|
34
35
|
3. Delegate each task to the best specialist agent with full context.
|
|
35
36
|
4. Validate each deliverable against acceptance criteria via independent validation.
|
|
36
37
|
5. Iterate on failed validations with specific feedback (max 3 iterations).
|
|
37
|
-
6.
|
|
38
|
+
6. Surface `doc_impact` when the coordinated work changes architecture, boundaries, scale, or the design system.
|
|
39
|
+
7. Integrate outputs, verify cross-task consistency, and report results.
|
|
38
40
|
|
|
39
41
|
## Verification
|
|
40
42
|
|
|
@@ -51,6 +53,8 @@ ORCHESTRATE_WORKFLOW_RESULT:
|
|
|
51
53
|
supporting_agents: [<specialist-agents-used>]
|
|
52
54
|
primary_skills: [system-design, api-design]
|
|
53
55
|
supporting_skills: [<supporting-skills-used>]
|
|
56
|
+
spec_id: <string> | null
|
|
57
|
+
spec_root: docs/specs/<spec-id> | null
|
|
54
58
|
task_count: <number>
|
|
55
59
|
completed: <number>
|
|
56
60
|
failed: <number>
|
|
@@ -61,6 +65,7 @@ ORCHESTRATE_WORKFLOW_RESULT:
|
|
|
61
65
|
iterations: <number>
|
|
62
66
|
validation_evidence: <string>
|
|
63
67
|
integration_status: clean | conflicts_resolved | issues_remaining
|
|
68
|
+
doc_impact: none | tech | rules | both
|
|
64
69
|
remaining_risks: [<string>] | []
|
|
65
70
|
follow_up_actions: [<string>] | []
|
|
66
71
|
```
|
|
@@ -4,7 +4,6 @@ description: "Build a decision-complete implementation plan with interfaces, fai
|
|
|
4
4
|
triggers:
|
|
5
5
|
[
|
|
6
6
|
"plan",
|
|
7
|
-
"spec",
|
|
8
7
|
"design",
|
|
9
8
|
"roadmap",
|
|
10
9
|
"acceptance",
|
|
@@ -32,6 +31,8 @@ Use this when starting a new feature, project, or significant change that needs
|
|
|
32
31
|
|
|
33
32
|
- This workflow file, active platform rules, and selected agents or skills guide execution.
|
|
34
33
|
- Attach the feature request, problem statement, constraints, and any existing design documents.
|
|
34
|
+
- Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before finalizing a non-trivial plan.
|
|
35
|
+
- Reuse an existing `docs/specs/<spec-id>/` pack when the change already has one instead of creating a parallel planning track.
|
|
35
36
|
|
|
36
37
|
## Skill Routing
|
|
37
38
|
|
|
@@ -46,7 +47,8 @@ Use this when starting a new feature, project, or significant change that needs
|
|
|
46
47
|
3. Decompose into tasks with ownership and dependencies.
|
|
47
48
|
4. Define interfaces, contracts, and failure modes.
|
|
48
49
|
5. Produce acceptance criteria for each milestone.
|
|
49
|
-
6.
|
|
50
|
+
6. Record `architecture_impact`, `doc_impact`, and `traceability_status` when the work is non-trivial.
|
|
51
|
+
7. Identify risks, unknowns, and mitigation strategies.
|
|
50
52
|
|
|
51
53
|
## Verification
|
|
52
54
|
|
|
@@ -63,6 +65,8 @@ PLAN_WORKFLOW_RESULT:
|
|
|
63
65
|
supporting_agents: [orchestrator?, backend-specialist?, frontend-specialist?, database-architect?]
|
|
64
66
|
primary_skills: [system-design, api-design]
|
|
65
67
|
supporting_skills: [database-design?, deep-research?, mcp-server-builder?]
|
|
68
|
+
spec_id: <string> | null
|
|
69
|
+
spec_root: docs/specs/<spec-id> | null
|
|
66
70
|
plan:
|
|
67
71
|
scope_summary: <string>
|
|
68
72
|
tasks:
|
|
@@ -74,5 +78,11 @@ PLAN_WORKFLOW_RESULT:
|
|
|
74
78
|
interfaces: [<string>]
|
|
75
79
|
risks: [<string>]
|
|
76
80
|
milestones: [<string>]
|
|
81
|
+
architecture_impact:
|
|
82
|
+
summary: <string>
|
|
83
|
+
affects_structure: true | false
|
|
84
|
+
affects_design_system: true | false
|
|
85
|
+
doc_impact: none | tech | rules | both
|
|
86
|
+
traceability_status: complete | partial | blocked
|
|
77
87
|
follow_up_items: [<string>] | []
|
|
78
88
|
```
|
|
@@ -20,6 +20,7 @@ Use this when improving code structure, reducing tech debt, or modularizing with
|
|
|
20
20
|
|
|
21
21
|
- This workflow file, active platform rules, and selected agents or skills guide execution.
|
|
22
22
|
- Attach the target code, pain points, and any constraints on what can change.
|
|
23
|
+
- Read `ENGINEERING_RULES.md` and `TECH.md` first so behavior-preserving structure changes do not drift from the accepted architecture contract.
|
|
23
24
|
|
|
24
25
|
## Skill Routing
|
|
25
26
|
|
|
@@ -34,6 +35,7 @@ Use this when improving code structure, reducing tech debt, or modularizing with
|
|
|
34
35
|
3. Apply one refactoring at a time with behavior preservation.
|
|
35
36
|
4. Verify behavior unchanged after each step.
|
|
36
37
|
5. Document the improved structure and any conventions established.
|
|
38
|
+
6. Set `doc_impact` when the refactor changes project structure, module boundaries, or design-system conventions.
|
|
37
39
|
|
|
38
40
|
## Verification
|
|
39
41
|
|
|
@@ -57,6 +59,7 @@ REFACTOR_WORKFLOW_RESULT:
|
|
|
57
59
|
quality_improvement:
|
|
58
60
|
complexity_before: <string>
|
|
59
61
|
complexity_after: <string>
|
|
62
|
+
doc_impact: none | tech | rules | both
|
|
60
63
|
tests_added: [<test-file-path>] | []
|
|
61
64
|
follow_up_items: [<string>] | []
|
|
62
65
|
```
|
|
@@ -20,6 +20,7 @@ Use this when preparing a release, deploying to production, or managing a rollou
|
|
|
20
20
|
|
|
21
21
|
- This workflow file, active platform rules, and selected agents or skills guide execution.
|
|
22
22
|
- Attach the release scope, version number, changelog draft, and deployment target.
|
|
23
|
+
- Read `ENGINEERING_RULES.md` and `TECH.md` before release if the shipped changes touched architecture, scaling assumptions, or design-system rules.
|
|
23
24
|
|
|
24
25
|
## Skill Routing
|
|
25
26
|
|
|
@@ -35,6 +36,7 @@ Use this when preparing a release, deploying to production, or managing a rollou
|
|
|
35
36
|
4. Execute staged rollout with health checks at each stage.
|
|
36
37
|
5. Verify production health post-deployment.
|
|
37
38
|
6. Document rollback procedure and post-release status.
|
|
39
|
+
7. Set `doc_impact` if the release includes architecture-affecting work that should refresh the managed docs.
|
|
38
40
|
|
|
39
41
|
## Verification
|
|
40
42
|
|
|
@@ -61,5 +63,6 @@ RELEASE_WORKFLOW_RESULT:
|
|
|
61
63
|
stages_completed: [<string>]
|
|
62
64
|
health_checks: [<string>]
|
|
63
65
|
rollback_plan: <string>
|
|
66
|
+
doc_impact: none | tech | rules | both
|
|
64
67
|
follow_up_items: [<string>] | []
|
|
65
68
|
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/spec"
|
|
3
|
+
description: "Create or refresh a Git-tracked spec pack for non-trivial work, including acceptance criteria, traceability, architecture impact, and next-route handoff."
|
|
4
|
+
triggers:
|
|
5
|
+
[
|
|
6
|
+
"spec",
|
|
7
|
+
"sdd",
|
|
8
|
+
"source of truth",
|
|
9
|
+
"traceability",
|
|
10
|
+
"acceptance criteria",
|
|
11
|
+
"openspec",
|
|
12
|
+
"requirements",
|
|
13
|
+
"architecture impact",
|
|
14
|
+
]
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Spec Workflow
|
|
18
|
+
|
|
19
|
+
## When to use
|
|
20
|
+
|
|
21
|
+
Use this for non-trivial work that needs durable planning in Git before implementation: medium or large features, multi-step changes, cross-session work, migrations, risky refactors, or any request that needs explicit acceptance and traceability.
|
|
22
|
+
|
|
23
|
+
## Routing
|
|
24
|
+
|
|
25
|
+
- Primary coordinator: `@project-planner`
|
|
26
|
+
- Traceability and requirements support: `@researcher`
|
|
27
|
+
- Cross-domain coordination: `@orchestrator`
|
|
28
|
+
- Documentation and structure support: `@documentation-writer`
|
|
29
|
+
|
|
30
|
+
## Skill Routing
|
|
31
|
+
|
|
32
|
+
- Primary skills: `spec-driven-delivery`, `sadd`
|
|
33
|
+
- Supporting skills (optional): `system-design`, `architecture-doc`, `deep-research`, `api-design`, `database-design`, `tech-doc`
|
|
34
|
+
- Start with `spec-driven-delivery` for the pack structure and handoff contract. Add `sadd` when mining requirements into testable assertions, `system-design` or `architecture-doc` when the spec changes structure, and `deep-research` only when repo-local evidence is insufficient.
|
|
35
|
+
|
|
36
|
+
## Workflow steps
|
|
37
|
+
|
|
38
|
+
1. Determine whether the task is non-trivial enough to justify a spec pack.
|
|
39
|
+
2. Find an existing `docs/specs/<spec-id>/` pack or create a new stable `spec_id`.
|
|
40
|
+
3. Write or refresh the spec pack with brief, acceptance, tasks, traceability, and handoff files.
|
|
41
|
+
4. Record `architecture_impact`, `doc_impact`, and any required updates to `PRODUCT.md`, `ARCHITECTURE.md`, `ENGINEERING_RULES.md`, `TECH.md`, or `ROADMAP.md`.
|
|
42
|
+
5. Identify the next execution route and hand off without replanning the same work.
|
|
43
|
+
|
|
44
|
+
## Context notes
|
|
45
|
+
|
|
46
|
+
- Read `PRODUCT.md`, `ENGINEERING_RULES.md`, `ARCHITECTURE.md`, and `TECH.md` in that order when they exist because they define the accepted product direction, architecture contract, and current state.
|
|
47
|
+
- Prefer repo evidence first; escalate to `deep-research` only when freshness, public comparison, or explicit research requests require it.
|
|
48
|
+
- Keep spec packs lean. Trivial one-step tasks should stay on the lightweight path with no new spec directory.
|
|
49
|
+
|
|
50
|
+
## Verification
|
|
51
|
+
|
|
52
|
+
- `spec_id` and `spec_root` are stable and explicit.
|
|
53
|
+
- Acceptance criteria are testable and traceable.
|
|
54
|
+
- Task dependencies form a valid execution order.
|
|
55
|
+
- `architecture_impact`, `doc_impact`, and `traceability_status` are present.
|
|
56
|
+
|
|
57
|
+
## Output Contract
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
SPEC_WORKFLOW_RESULT:
|
|
61
|
+
primary_agent: project-planner
|
|
62
|
+
supporting_agents: [researcher?, orchestrator?, documentation-writer?]
|
|
63
|
+
primary_skills: [spec-driven-delivery, sadd]
|
|
64
|
+
supporting_skills: [system-design?, architecture-doc?, deep-research?, api-design?, database-design?, tech-doc?]
|
|
65
|
+
spec_id: <string>
|
|
66
|
+
spec_root: docs/specs/<spec-id>
|
|
67
|
+
architecture_impact:
|
|
68
|
+
summary: <string>
|
|
69
|
+
affects_structure: true | false
|
|
70
|
+
affects_design_system: true | false
|
|
71
|
+
affects_testing_strategy: true | false
|
|
72
|
+
doc_impact: none | tech | rules | both
|
|
73
|
+
traceability_status: complete | partial | blocked
|
|
74
|
+
documents:
|
|
75
|
+
created: [<path>] | []
|
|
76
|
+
updated: [<path>] | []
|
|
77
|
+
next_route: </create | /implement-track | /orchestrate | /architecture | direct>
|
|
78
|
+
gaps: [<string>] | []
|
|
79
|
+
```
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md
CHANGED
|
@@ -78,4 +78,4 @@ Load on demand. Do not preload all references.
|
|
|
78
78
|
- Run focused checks when code changes land.
|
|
79
79
|
- Note any API contract or schema changes that affect consumers.
|
|
80
80
|
|
|
81
|
-
> **Codex note:**
|
|
81
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md
CHANGED
|
@@ -74,4 +74,4 @@ Map, understand, and modernize codebases that lack documentation or clear design
|
|
|
74
74
|
- Risk-assessed modernization plan with incremental steps.
|
|
75
75
|
- Call out any undocumented behavior that could break during changes.
|
|
76
76
|
|
|
77
|
-
> **Codex note:**
|
|
77
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md
CHANGED
|
@@ -71,4 +71,4 @@ Load on demand. Do not preload all references.
|
|
|
71
71
|
- Call out data-integrity risks or missing constraints.
|
|
72
72
|
- Provide EXPLAIN output for performance-sensitive queries.
|
|
73
73
|
|
|
74
|
-
> **Codex note:**
|
|
74
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -69,4 +69,4 @@ Find the root cause with evidence, fix it with minimum blast radius, and leave r
|
|
|
69
69
|
- Provide regression check (test, command, or verification step).
|
|
70
70
|
- List remaining gaps or environmental unknowns.
|
|
71
71
|
|
|
72
|
-
> **Codex note:**
|
|
72
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md
CHANGED
|
@@ -66,4 +66,4 @@ Deliver infrastructure and deployment changes that are safe, observable, and rev
|
|
|
66
66
|
- Provide verification steps for post-deployment health.
|
|
67
67
|
- Call out any manual steps or environment-specific dependencies.
|
|
68
68
|
|
|
69
|
-
> **Codex note:**
|
|
69
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md
CHANGED
|
@@ -55,4 +55,4 @@ Produce clear, accurate, and maintainable technical documentation.
|
|
|
55
55
|
- Accurate code references with file paths.
|
|
56
56
|
- Call out any sections that need team review or are assumptions.
|
|
57
57
|
|
|
58
|
-
> **Codex note:**
|
|
58
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md
CHANGED
|
@@ -86,4 +86,4 @@ Load on demand. Do not preload all references.
|
|
|
86
86
|
- Call out any accessibility, responsiveness, or render-cost risk left behind.
|
|
87
87
|
- Run focused checks when code changes land.
|
|
88
88
|
|
|
89
|
-
> **Codex note:**
|
|
89
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md
CHANGED
|
@@ -39,4 +39,4 @@ Build games that are fun, performant, and maintainable across target platforms.
|
|
|
39
39
|
- Provide frame budget analysis for performance-sensitive changes.
|
|
40
40
|
- Note any physics, rendering, or networking assumptions.
|
|
41
41
|
|
|
42
|
-
> **Codex note:**
|
|
42
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md
CHANGED
|
@@ -68,4 +68,4 @@ Build and ship cross-platform mobile apps that feel native and perform reliably.
|
|
|
68
68
|
- Provide widget test or integration test for new features.
|
|
69
69
|
- Note any platform-specific permissions or configuration needed.
|
|
70
70
|
|
|
71
|
-
> **Codex note:**
|
|
71
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -188,4 +188,4 @@ ORCHESTRATION_RESULT:
|
|
|
188
188
|
follow_up_actions: [<string>] | []
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
-
> **Codex note:**
|
|
191
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md
CHANGED
|
@@ -78,4 +78,4 @@ Map attack surfaces, validate exploitability, and provide actionable remediation
|
|
|
78
78
|
- Remediation guidance with code examples.
|
|
79
79
|
- Remaining risk assessment after proposed fixes.
|
|
80
80
|
|
|
81
|
-
> **Codex note:**
|
|
81
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md
CHANGED
|
@@ -59,4 +59,4 @@ Measure first, optimize second, verify always.
|
|
|
59
59
|
- Before/after comparison with same measurement methodology.
|
|
60
60
|
- Performance budget recommendations.
|
|
61
61
|
|
|
62
|
-
> **Codex note:**
|
|
62
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md
CHANGED
|
@@ -58,4 +58,4 @@ Turn ambiguous requests into clear, testable feature definitions with prioritize
|
|
|
58
58
|
- Priority ranking with reasoning.
|
|
59
59
|
- Dependencies and risks identified.
|
|
60
60
|
|
|
61
|
-
> **Codex note:**
|
|
61
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md
CHANGED
|
@@ -66,4 +66,4 @@ Decompose complex requests into implementable plans with clear ownership, depend
|
|
|
66
66
|
- Verification plan for each milestone.
|
|
67
67
|
- Clear definition of done for the overall effort.
|
|
68
68
|
|
|
69
|
-
> **Codex note:**
|
|
69
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md
CHANGED
|
@@ -65,4 +65,4 @@ Design and maintain test infrastructure that catches real regressions without fa
|
|
|
65
65
|
- Flaky test remediation plan when applicable.
|
|
66
66
|
- Test data management approach.
|
|
67
67
|
|
|
68
|
-
> **Codex note:**
|
|
68
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -77,4 +77,4 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
|
|
|
77
77
|
- Remaining knowledge gaps identified.
|
|
78
78
|
- Output order: verified facts, secondary/community evidence, gaps, recommended next route.
|
|
79
79
|
|
|
80
|
-
> **Codex note:**
|
|
80
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md
CHANGED
|
@@ -91,4 +91,4 @@ Priority = Reachability × Controllability × Severity − Existing Mitigations
|
|
|
91
91
|
- Assessment of remaining attack surface after fixes.
|
|
92
92
|
- Compliance notes when relevant (OWASP, SOC2, GDPR).
|
|
93
93
|
|
|
94
|
-
> **Codex note:**
|
|
94
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md
CHANGED
|
@@ -39,4 +39,4 @@ Optimize for search visibility across traditional search engines and AI-powered
|
|
|
39
39
|
- Structured data recommendations with schema markup examples.
|
|
40
40
|
- Content optimization suggestions aligned to search intent.
|
|
41
41
|
|
|
42
|
-
> **Codex note:**
|
|
42
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -85,4 +85,4 @@ Operate production systems with SLO-driven reliability, incident readiness, and
|
|
|
85
85
|
- Toil assessment with automation recommendations.
|
|
86
86
|
- Capacity analysis with scaling recommendations.
|
|
87
87
|
|
|
88
|
-
> **Codex note:**
|
|
88
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -77,4 +77,4 @@ Speed ↑ | Unit — Pure logic, transforms, validators
|
|
|
77
77
|
- Call out coverage gaps and known risks.
|
|
78
78
|
- Provide CI integration guidance when applicable.
|
|
79
79
|
|
|
80
|
-
> **Codex note:**
|
|
80
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -74,4 +74,4 @@ If validation fails, report the failure with evidence. Do not attempt to fix it
|
|
|
74
74
|
- Flagged risks or edge cases not covered by criteria.
|
|
75
75
|
- Recommendation: approve, revise, or reject.
|
|
76
76
|
|
|
77
|
-
> **Codex note:**
|
|
77
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -46,4 +46,4 @@ Deliver Vercel-powered applications with production-grade deployment, runtime, a
|
|
|
46
46
|
- Monitoring and alerting setup recommendations.
|
|
47
47
|
- Rollback procedure for deployment issues.
|
|
48
48
|
|
|
49
|
-
> **Codex note:**
|
|
49
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. If delegation is unavailable, switch specialist postures inline and preserve the same scope and verification contract.
|
|
@@ -425,6 +425,8 @@ Keep MCP context lazy and exact. Skills are supporting context, not the route la
|
|
|
425
425
|
8. Do not auto-prime every specialist with a skill. Load only what the task clearly needs.
|
|
426
426
|
9. For research: repo/local evidence first, official docs next, Reddit/community only as labeled secondary evidence.
|
|
427
427
|
10. Escalate to research only when freshness matters, public comparison matters, or the user explicitly asks to research/verify.
|
|
428
|
-
11.
|
|
428
|
+
11. For non-trivial work, read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist.
|
|
429
|
+
12. If those docs declare architecture or design-system rules, follow them unless the current spec or task explicitly changes them.
|
|
430
|
+
13. Use upstream MCP servers such as `postman`, `stitch`, or `playwright` for real cloud/browser actions when available.
|
|
429
431
|
|
|
430
432
|
<!-- cbx:mcp:auto:end -->
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-driven-delivery
|
|
3
|
+
description: Use when turning a non-trivial request into a Git-tracked spec pack, maintaining traceability during execution, and updating specs before code when requirements or architecture change.
|
|
4
|
+
---
|
|
5
|
+
# Spec-Driven Delivery
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
Create and maintain a lightweight source of truth for non-trivial work. This skill turns requirements, decisions, acceptance criteria, and architecture impact into a spec pack under the `docs/specs/<spec-id>/` workspace area, then keeps that pack aligned as implementation evolves.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- Planning a medium or large feature before implementation
|
|
14
|
+
- Capturing acceptance criteria, traceability, and architecture impact in Git
|
|
15
|
+
- Reusing or refreshing an existing spec pack for a follow-up change
|
|
16
|
+
- Bridging native plan-mode output into durable project documents
|
|
17
|
+
- Keeping implementation, verification, and documentation aligned across sessions
|
|
18
|
+
|
|
19
|
+
## Instructions
|
|
20
|
+
|
|
21
|
+
1. **Classify the task first** because trivial work should not pay spec overhead. Use this skill only when the task is multi-step, cross-session, cross-domain, risky, or likely to change architecture, testing strategy, or team coordination.
|
|
22
|
+
2. **Look for an existing spec pack before creating a new one** because duplicate specs create drift. Reuse the closest matching spec directory when the current request extends an active initiative.
|
|
23
|
+
3. **Create a stable `spec_id` and spec root** because the same identifier should survive planning, execution, review, and follow-up changes.
|
|
24
|
+
4. **Write the minimum viable pack** because the goal is durable coordination, not bureaucracy. Keep the brief, acceptance, tasks, traceability, and handoff documents concise and testable.
|
|
25
|
+
5. **Use `sadd` when turning requirements into assertions** because spec quality depends on extracting testable behavior instead of leaving requirements vague.
|
|
26
|
+
6. **Record architecture impact explicitly** because implementation must stay aligned with the project architecture contract and current-state tech map. Mark whether the change affects architecture style, module boundaries, dependency rules, design system, deployment shape, or testing strategy.
|
|
27
|
+
7. **Update the spec before implementation changes behavior** because traceability breaks when code changes first and docs lag behind.
|
|
28
|
+
8. **Keep the task graph execution-ready** because `/implement-track` and `/orchestrate` should be able to act on the spec without replanning. Every task should have ownership, dependencies, acceptance criteria, and a verification path.
|
|
29
|
+
9. **Route external research through `deep-research`** because repo-first planning still needs disciplined escalation when freshness or public comparison matters.
|
|
30
|
+
10. **Emit a clear next route** because spec work usually hands off into `/create`, `/implement-track`, `/orchestrate`, or `/architecture`.
|
|
31
|
+
11. **Report `doc_impact` and `traceability_status`** because feature work should surface whether the architecture contract or tech map must be refreshed at the end.
|
|
32
|
+
12. **Keep the pack alive during execution** because a stale spec is worse than none. Update acceptance, tasks, and traceability when scope or constraints change.
|
|
33
|
+
|
|
34
|
+
## Output Format
|
|
35
|
+
|
|
36
|
+
Deliver:
|
|
37
|
+
|
|
38
|
+
1. **Spec summary** — `spec_id`, `spec_root`, goal, scope, and why spec mode is warranted
|
|
39
|
+
2. **Acceptance and traceability state** — requirements, open gaps, and `traceability_status`
|
|
40
|
+
3. **Execution-ready plan** — tasks, owners, dependencies, and verification checkpoints
|
|
41
|
+
4. **Architecture and doc impact** — `architecture_impact` plus `doc_impact`
|
|
42
|
+
5. **Recommended next route** — exact workflow, agent, or skill to continue from the spec
|
|
43
|
+
|
|
44
|
+
## References
|
|
45
|
+
|
|
46
|
+
| File | Load when |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `../sadd/SKILL.md` | Need requirement mining, GIVEN-WHEN-THEN specs, or traceability patterns. |
|
|
49
|
+
| `../architecture-doc/SKILL.md` | Need ADRs, system boundaries, or architecture-document structure. |
|
|
50
|
+
| `../deep-research/SKILL.md` | Need repo-first research escalation or evidence labeling rules. |
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
| File | Use when |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| `../sadd/references/spec-mining.md` | Turning loose requirements into testable spec entries. |
|
|
57
|
+
| `../sadd/references/coverage-mapping.md` | Building a traceability matrix that links specs, tests, and code. |
|
|
58
|
+
|
|
59
|
+
## Codex Platform Notes
|
|
60
|
+
|
|
61
|
+
- Specialists are internal reasoning postures, not spawned subagent processes.
|
|
62
|
+
- Reference the repo-root AGENTS instructions for posture definitions and switching contracts.
|
|
63
|
+
- Codex operates under network restrictions — skills should not assume outbound HTTP access.
|
|
64
|
+
- Use `$ARGUMENTS` to access user-provided arguments when the skill is invoked.
|
|
65
|
+
- All skill guidance executes within the sandbox; file I/O is confined to the workspace.
|
package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/accessibility.md
CHANGED
|
@@ -74,4 +74,4 @@ ACCESSIBILITY_WORKFLOW_RESULT:
|
|
|
74
74
|
follow_up_items: [<string>] | []
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
> **Codex note:**
|
|
77
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/architecture"
|
|
3
|
+
description: "Refresh the project backbone docs in PRODUCT.md, ARCHITECTURE.md, ENGINEERING_RULES.md, TECH.md, ROADMAP.md, and ADR scaffolds with explicit structure, design-system, testing, and flow guidance."
|
|
4
|
+
triggers:
|
|
5
|
+
[
|
|
6
|
+
"architecture",
|
|
7
|
+
"design system",
|
|
8
|
+
"adr",
|
|
9
|
+
"clean architecture",
|
|
10
|
+
"system map",
|
|
11
|
+
"app structure",
|
|
12
|
+
"technical governance",
|
|
13
|
+
"flow diagram",
|
|
14
|
+
]
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Architecture Workflow
|
|
18
|
+
|
|
19
|
+
## When to use
|
|
20
|
+
|
|
21
|
+
Use this when the task is to declare, refresh, or validate the project backbone docs, especially after structure changes, scale changes, design-system changes, migrations, product-direction shifts, or major feature additions.
|
|
22
|
+
|
|
23
|
+
## Routing
|
|
24
|
+
|
|
25
|
+
- Primary coordinator: `the project-planner posture`
|
|
26
|
+
- Documentation support: `the documentation-writer posture`
|
|
27
|
+
- Research support: `the researcher posture`
|
|
28
|
+
- Domain validation: `the backend-specialist posture`, `the frontend-specialist posture`, `the database-architect posture`
|
|
29
|
+
|
|
30
|
+
## Skill Routing
|
|
31
|
+
|
|
32
|
+
- Primary skills: `architecture-doc`, `system-design`, `tech-doc`, `frontend-design`
|
|
33
|
+
- Supporting skills (optional): `api-design`, `database-design`, `sadd`, `deep-research`
|
|
34
|
+
- Load the four primary skills directly for this workflow. Add `api-design` or `database-design` when service or data boundaries are central, `sadd` when tying the architecture update to an active spec pack, and `deep-research` only when outside evidence is required.
|
|
35
|
+
|
|
36
|
+
## Workflow steps
|
|
37
|
+
|
|
38
|
+
1. Inspect the repo first and read `PRODUCT.md`, `ENGINEERING_RULES.md`, `ARCHITECTURE.md`, and `TECH.md` in that order if they exist.
|
|
39
|
+
2. Determine the current product surfaces, architecture style, module boundaries, design-system source of truth, roadmap themes, and testing strategy from the codebase.
|
|
40
|
+
3. Update the managed backbone sections in `PRODUCT.md`, `ARCHITECTURE.md`, `ENGINEERING_RULES.md`, `TECH.md`, and `ROADMAP.md`.
|
|
41
|
+
4. Add or refresh Mermaid diagrams and flow narratives inside `ARCHITECTURE.md` or `TECH.md` when they clarify system behavior.
|
|
42
|
+
5. Seed or refresh `docs/adr/README.md` and keep ADR linkage explicit when decisions should be durable.
|
|
43
|
+
6. Record whether the update was driven by a broader spec and whether future implementation must follow newly declared rules.
|
|
44
|
+
|
|
45
|
+
## Context notes
|
|
46
|
+
|
|
47
|
+
- This workflow is route-fixed and skill-fixed: do not start with `route_resolve` or `skill_search`.
|
|
48
|
+
- `PRODUCT.md` captures intent, `ARCHITECTURE.md` captures accepted structure, `ENGINEERING_RULES.md` is normative, and `TECH.md` is descriptive. Keep them aligned but not redundant.
|
|
49
|
+
- Preserve manual content outside the managed architecture sections.
|
|
50
|
+
- Mark non-applicable sections explicitly instead of silently omitting them.
|
|
51
|
+
|
|
52
|
+
## Verification
|
|
53
|
+
|
|
54
|
+
- Managed backbone sections exist in the target docs.
|
|
55
|
+
- Product intent, architecture style, dependency rules, and design-system guidance are explicit.
|
|
56
|
+
- `ARCHITECTURE.md` or `TECH.md` includes flow text and at least one Mermaid diagram when the repo has meaningful flow complexity.
|
|
57
|
+
- The update records `doc_impact` and whether future feature work must refresh the docs again.
|
|
58
|
+
|
|
59
|
+
## Output Contract
|
|
60
|
+
|
|
61
|
+
```yaml
|
|
62
|
+
ARCHITECTURE_WORKFLOW_RESULT:
|
|
63
|
+
primary_agent: project-planner
|
|
64
|
+
supporting_agents: [documentation-writer?, researcher?, backend-specialist?, frontend-specialist?, database-architect?]
|
|
65
|
+
primary_skills: [architecture-doc, system-design, tech-doc, frontend-design]
|
|
66
|
+
supporting_skills: [api-design?, database-design?, sadd?, deep-research?]
|
|
67
|
+
managed_targets:
|
|
68
|
+
product_doc: PRODUCT.md
|
|
69
|
+
architecture_doc: ARCHITECTURE.md
|
|
70
|
+
rules_doc: ENGINEERING_RULES.md
|
|
71
|
+
tech_doc: TECH.md
|
|
72
|
+
roadmap_doc: ROADMAP.md
|
|
73
|
+
adr_dir: docs/adr
|
|
74
|
+
files_updated: [PRODUCT.md, ARCHITECTURE.md, ENGINEERING_RULES.md, TECH.md, ROADMAP.md]
|
|
75
|
+
architecture_contract:
|
|
76
|
+
style: <string>
|
|
77
|
+
dependency_rules: [<string>]
|
|
78
|
+
design_system_source: <string>
|
|
79
|
+
technical_snapshot:
|
|
80
|
+
topology: [<string>]
|
|
81
|
+
flows: [<string>]
|
|
82
|
+
diagrams: [<string>] | []
|
|
83
|
+
doc_impact: rules | tech | both
|
|
84
|
+
next_actions: [<string>] | []
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
|
|
@@ -36,6 +36,7 @@ Use this for backend architecture, API design, service implementation, or Postma
|
|
|
36
36
|
|
|
37
37
|
- This workflow file, active platform rules, and selected agents or skills guide execution.
|
|
38
38
|
- Attach API specifications, schema diagrams, Postman collections, and relevant service code.
|
|
39
|
+
- Read `ENGINEERING_RULES.md` and `TECH.md` before changing service boundaries or shared backend structure.
|
|
39
40
|
|
|
40
41
|
## Skill Routing
|
|
41
42
|
|
|
@@ -50,6 +51,7 @@ Use this for backend architecture, API design, service implementation, or Postma
|
|
|
50
51
|
3. Implement backend logic with proper error handling and validation.
|
|
51
52
|
4. Write integration tests covering happy path and error cases.
|
|
52
53
|
5. Review for security, performance, and reliability.
|
|
54
|
+
6. Set `doc_impact` if the change alters service boundaries, shared contracts, or operational shape.
|
|
53
55
|
|
|
54
56
|
## Verification
|
|
55
57
|
|
|
@@ -74,10 +76,11 @@ BACKEND_WORKFLOW_RESULT:
|
|
|
74
76
|
implementation:
|
|
75
77
|
files_changed: [<path>]
|
|
76
78
|
tests_added: [<path>]
|
|
79
|
+
doc_impact: none | tech | rules | both
|
|
77
80
|
verification:
|
|
78
81
|
checks_run: [<command-or-test>]
|
|
79
82
|
evidence: [<string>]
|
|
80
83
|
follow_up_items: [<string>] | []
|
|
81
84
|
```
|
|
82
85
|
|
|
83
|
-
> **Codex note:**
|
|
86
|
+
> **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
|