agents-templated 2.2.11 → 2.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +2 -3
  2. package/agents/commands/README.md +2 -8
  3. package/agents/commands/arch-check.md +58 -33
  4. package/agents/commands/audit.md +58 -38
  5. package/agents/commands/debug-track.md +58 -33
  6. package/agents/commands/docs.md +58 -34
  7. package/agents/commands/fix.md +58 -34
  8. package/agents/commands/learn-loop.md +58 -33
  9. package/agents/commands/perf.md +58 -34
  10. package/agents/commands/plan.md +58 -34
  11. package/agents/commands/pr.md +58 -35
  12. package/agents/commands/problem-map.md +58 -33
  13. package/agents/commands/release-ready.md +58 -33
  14. package/agents/commands/release.md +58 -39
  15. package/agents/commands/risk-review.md +58 -33
  16. package/agents/commands/scope-shape.md +58 -33
  17. package/agents/commands/task.md +58 -35
  18. package/agents/commands/test.md +58 -34
  19. package/agents/commands/ux-bar.md +58 -33
  20. package/lib/workflow.js +8 -21
  21. package/package.json +1 -1
  22. package/templates/CLAUDE.md +3 -0
  23. package/templates/README.md +2 -3
  24. package/templates/agents/commands/README.md +2 -8
  25. package/templates/agents/commands/arch-check.md +58 -33
  26. package/templates/agents/commands/audit.md +58 -38
  27. package/templates/agents/commands/debug-track.md +58 -33
  28. package/templates/agents/commands/docs.md +58 -34
  29. package/templates/agents/commands/fix.md +58 -34
  30. package/templates/agents/commands/learn-loop.md +58 -33
  31. package/templates/agents/commands/perf.md +58 -34
  32. package/templates/agents/commands/plan.md +58 -34
  33. package/templates/agents/commands/pr.md +58 -35
  34. package/templates/agents/commands/problem-map.md +58 -33
  35. package/templates/agents/commands/release-ready.md +58 -33
  36. package/templates/agents/commands/release.md +58 -39
  37. package/templates/agents/commands/risk-review.md +58 -33
  38. package/templates/agents/commands/scope-shape.md +58 -33
  39. package/templates/agents/commands/task.md +58 -35
  40. package/templates/agents/commands/test.md +58 -34
  41. package/templates/agents/commands/ux-bar.md +58 -33
  42. package/templates/agents/skills/README.md +9 -0
  43. package/templates/agents/skills/debug-skill/SKILL.md +39 -0
  44. package/templates/agents/skills/feature-forge/SKILL.md +39 -0
  45. package/templates/agents/skills/secure-code-guardian/SKILL.md +39 -0
  46. package/agents/commands/docs-sync.md +0 -33
  47. package/agents/commands/perf-scan.md +0 -33
  48. package/agents/commands/quality-gate.md +0 -33
  49. package/agents/commands/refactor.md +0 -34
  50. package/agents/commands/scaffold.md +0 -34
  51. package/templates/agents/commands/docs-sync.md +0 -33
  52. package/templates/agents/commands/perf-scan.md +0 -33
  53. package/templates/agents/commands/quality-gate.md +0 -33
  54. package/templates/agents/commands/refactor.md +0 -34
  55. package/templates/agents/commands/scaffold.md +0 -34
@@ -1,33 +1,58 @@
1
- # /scope-shape
2
-
3
- ## A. Intent
4
- Constrain scope to the smallest high-leverage release that still proves value.
5
-
6
- ## B. When to Use
7
- Use after problem framing and before architecture planning.
8
-
9
- ## C. Required Inputs
10
- - Problem frame
11
- - Candidate feature list
12
- - Delivery constraints
13
-
14
- ## D. Deterministic Execution Flow
15
- 1. Rank features by impact and effort.
16
- 2. Define must-have vs defer list.
17
- 3. Freeze first-release boundaries.
18
- 4. Add explicit out-of-scope items.
19
- 5. Emit scope decision rationale.
20
-
21
- ## E. Structured Output Template
22
- - `scope_in[]`
23
- - `scope_out[]`
24
- - `tradeoffs[]`
25
- - `release_goal`
26
- - `defer_queue[]`
27
-
28
- ## F. Stop Conditions
29
- - Scope still exceeds constraints.
30
- - No out-of-scope list produced.
31
-
32
- ## G. Safety Constraints
33
- - Prefer one reversible release over broad irreversible scope.
1
+ # /scope-shape
2
+
3
+ ## A. Intent
4
+ Constrain delivery scope to the smallest high-value reversible release.
5
+
6
+ ## B. When to Use
7
+ - Use after problem framing and before architectural design.
8
+ - Do not use when requirements are already contractually frozen.
9
+
10
+ ## C. Context Assumptions
11
+ - Problem map exists.
12
+ - Candidate feature list exists.
13
+ - Delivery constraints are known.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `scope_goal` | string | "ship MVP in 2 weeks" |
19
+ | `candidate_items` | string[] | ["email login", "social login", "tutorial"] |
20
+ | `constraint_artifact` | artifact | timeline doc, staffing snapshot |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] scope goal is explicit
24
+ - [ ] candidate items are ranked
25
+ - [ ] out-of-scope list can be produced
26
+
27
+ ## F. Execution Flow
28
+ 1. Rank candidate items by value and effort.
29
+ 2. Draft in-scope and out-of-scope sets.
30
+ 3. Check scope against constraints.
31
+ 4. Decision point ->
32
+ - condition A -> scope exceeds constraints -> trim to MVP
33
+ - condition B -> feasible scope -> continue.
34
+ 5. Build scope rationale and tradeoffs.
35
+ 6. Emit scope decision package.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "scope_id": "string",
42
+ "scope_in": ["array","of","strings"],
43
+ "confidence": "low | medium | high",
44
+ "scope_out": "string | null"
45
+ }
46
+ ```
47
+
48
+ ## H. Output Target
49
+ - Default delivery: stdout
50
+ - Override flag: --output=<target>
51
+
52
+ ## I. Stop Conditions <- abort with error message, never emit partial output
53
+ - scope cannot satisfy constraints
54
+ - no explicit out-of-scope definition is produced
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block on hidden scope creep
58
+ - Warn only: warn when deferred items carry significant risk
@@ -1,35 +1,58 @@
1
- # /task
2
-
3
- ## A. Intent
4
- Convert a plan item into a deterministic execution task.
5
-
6
- ## B. When to Use
7
- Use for bounded work with clear acceptance criteria.
8
-
9
- ## C. Required Inputs
10
- - Task identifier
11
- - Acceptance criteria
12
- - Allowed scope
13
-
14
- ## D. Deterministic Execution Flow
15
- 1. Resolve task identifier.
16
- 2. Validate acceptance criteria completeness.
17
- 3. Validate scope boundaries.
18
- 4. Define execution steps.
19
- 5. Define verification steps.
20
- 6. Emit task contract.
21
-
22
- ## E. Structured Output Template
23
- - `task_id`
24
- - `objective`
25
- - `allowed_scope`
26
- - `execution_steps[]`
27
- - `verification_steps[]`
28
- - `acceptance_criteria[]`
29
-
30
- ## F. Stop Conditions
31
- - Unknown task identifier.
32
- - Missing acceptance criteria.
33
-
34
- ## G. Safety Constraints
35
- - Reject out-of-scope changes.
1
+ # /task
2
+
3
+ ## A. Intent
4
+ Convert approved plans into deterministic, execution-ready task batches.
5
+
6
+ ## B. When to Use
7
+ - Use when a plan exists and work must be distributed to implementers.
8
+ - Do not use before planning is complete.
9
+
10
+ ## C. Context Assumptions
11
+ - An approved plan exists.
12
+ - Owners and execution context are known.
13
+ - Dependencies can be sequenced.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `plan_id` | string | "plan-2026-04-03" |
19
+ | `task_scope` | string[] | ["api", "ui", "tests"] |
20
+ | `source_artifacts` | artifact | plan file path or issue board URL |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] plan exists and is approved
24
+ - [ ] task scope maps to explicit plan items
25
+ - [ ] dependency order is resolvable
26
+
27
+ ## F. Execution Flow
28
+ 1. Read plan outputs and dependency graph.
29
+ 2. Split work into atomic tasks.
30
+ 3. Assign execution order and ownership metadata.
31
+ 4. Decision point ->
32
+ - condition A -> blocking dependency found -> move item to blocked queue
33
+ - condition B -> no blockers -> keep in active queue.
34
+ 5. Build task package with acceptance checks.
35
+ 6. Emit task list and execution order.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "task_batch_id": "string",
42
+ "tasks": ["array","of","strings"],
43
+ "priority": "low | medium | high",
44
+ "blocker": "string | null"
45
+ }
46
+ ```
47
+
48
+ ## H. Output Target
49
+ - Default delivery: stdout
50
+ - Override flag: --output=<target>
51
+
52
+ ## I. Stop Conditions <- abort with error message, never emit partial output
53
+ - plan_id is missing or invalid
54
+ - critical dependency cannot be resolved
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: no task emission without traceability to a plan item
58
+ - Warn only: warn when owner assignment is temporary
@@ -1,34 +1,58 @@
1
- # /test
2
-
3
- ## A. Intent
4
- Generate or execute deterministic test plans and test artifacts.
5
-
6
- ## B. When to Use
7
- Use for feature validation, regression prevention, and release readiness.
8
-
9
- ## C. Required Inputs
10
- - Target scope
11
- - Test level
12
- - Expected behavior
13
-
14
- ## D. Deterministic Execution Flow
15
- 1. Resolve test scope.
16
- 2. Map behavior to test cases.
17
- 3. Execute or generate tests.
18
- 4. Capture pass/fail artifacts.
19
- 5. Classify failures.
20
- 6. Emit test report.
21
-
22
- ## E. Structured Output Template
23
- - `scope`
24
- - `test_matrix[]`
25
- - `execution_results[]`
26
- - `coverage_delta`
27
- - `failures[]`
28
-
29
- ## F. Stop Conditions
30
- - Unavailable runtime.
31
- - Undefined scope.
32
-
33
- ## G. Safety Constraints
34
- - Do not mark success if critical tests are skipped.
1
+ # /test
2
+
3
+ ## A. Intent
4
+ Run deterministic validation and gate release readiness based on test evidence.
5
+
6
+ ## B. When to Use
7
+ - Use when validating behavior after implementation or before merge/release.
8
+ - This command now includes quality-gate behavior; do not use /quality-gate.
9
+
10
+ ## C. Context Assumptions
11
+ - Test targets are defined.
12
+ - Required environments are available.
13
+ - Pass/fail criteria are explicit.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `test_scope` | string | "api regression" |
19
+ | `test_suites` | string[] | ["unit", "integration", "critical-flow"] |
20
+ | `evidence_artifact` | artifact | test report path or CI run URL |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] test scope is non-empty
24
+ - [ ] critical test suites are executable
25
+ - [ ] pass criteria are declared
26
+
27
+ ## F. Execution Flow
28
+ 1. Collect test targets and runtime config.
29
+ 2. Execute suites in deterministic order.
30
+ 3. Aggregate results and failures.
31
+ 4. Decision point ->
32
+ - condition A -> critical failures present -> gate = blocked
33
+ - condition B -> no critical failures -> gate = pass.
34
+ 5. Build validation evidence and remediation list.
35
+ 6. Emit test and gate report.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "test_run_id": "string",
42
+ "results": ["array","of","strings"],
43
+ "gate_status": "low | medium | high",
44
+ "blocker": "string | null"
45
+ }
46
+ ```
47
+
48
+ ## H. Output Target
49
+ - Default delivery: stdout
50
+ - Override flag: --output=<target>
51
+
52
+ ## I. Stop Conditions <- abort with error message, never emit partial output
53
+ - critical test suite cannot run
54
+ - result schema cannot be produced
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block when critical flow tests fail
58
+ - Warn only: warn when flaky tests are excluded with justification
@@ -1,33 +1,58 @@
1
- # /ux-bar
2
-
3
- ## A. Intent
4
- Set a minimum UX quality bar with clear criteria before UI implementation.
5
-
6
- ## B. When to Use
7
- Use when a feature has user-facing interaction or visual design impact.
8
-
9
- ## C. Required Inputs
10
- - Target user flow
11
- - Existing design language
12
- - Accessibility requirements
13
-
14
- ## D. Deterministic Execution Flow
15
- 1. Evaluate key interaction states.
16
- 2. Check visual hierarchy and clarity.
17
- 3. Validate accessibility coverage.
18
- 4. Identify UX risks and gaps.
19
- 5. Emit UX quality checklist.
20
-
21
- ## E. Structured Output Template
22
- - `ux_scorecard[]`
23
- - `interaction_states[]`
24
- - `accessibility_checks[]`
25
- - `ux_gaps[]`
26
- - `improvements[]`
27
-
28
- ## F. Stop Conditions
29
- - Critical flow has undefined state handling.
30
- - Accessibility constraints are missing.
31
-
32
- ## G. Safety Constraints
33
- - Preserve existing design system patterns unless an explicit redesign is approved.
1
+ # /ux-bar
2
+
3
+ ## A. Intent
4
+ Assess UX quality bar and guarantee core interaction states are defined before build.
5
+
6
+ ## B. When to Use
7
+ - Use when UX quality and accessibility need pre-implementation validation.
8
+ - Do not use as a replacement for visual design exploration.
9
+
10
+ ## C. Context Assumptions
11
+ - Scope and architecture are available.
12
+ - Primary user flows are identified.
13
+ - Design references exist.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `ux_goal` | string | "reduce checkout friction" |
19
+ | `flows` | string[] | ["cart", "payment", "confirmation"] |
20
+ | `design_artifact` | artifact | wireframes, Figma link, screenshots |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] critical flows are enumerated
24
+ - [ ] interaction states include loading/error/empty
25
+ - [ ] accessibility checks are defined
26
+
27
+ ## F. Execution Flow
28
+ 1. Review flows and interaction states.
29
+ 2. Evaluate accessibility and usability risks.
30
+ 3. Score UX gaps by severity.
31
+ 4. Decision point ->
32
+ - condition A -> critical UX gap -> block readiness
33
+ - condition B -> manageable gaps -> continue.
34
+ 5. Build prioritized improvement list.
35
+ 6. Emit UX quality package.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "ux_review_id": "string",
42
+ "ux_gaps": ["array","of","strings"],
43
+ "severity": "low | medium | high",
44
+ "blocker": "string | null"
45
+ }
46
+ ```
47
+
48
+ ## H. Output Target
49
+ - Default delivery: stdout
50
+ - Override flag: --output=<target>
51
+
52
+ ## I. Stop Conditions <- abort with error message, never emit partial output
53
+ - critical flow lacks defined interaction states
54
+ - accessibility baseline is not addressed
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block on unaddressed critical accessibility failures
58
+ - Warn only: warn when medium UX issues are deferred
package/lib/workflow.js CHANGED
@@ -48,20 +48,12 @@ const WORKFLOW_COMMANDS = [
48
48
  description: 'Run a production-risk review on active changes.'
49
49
  },
50
50
  {
51
- cli: 'quality-gate',
52
- slash: '/quality-gate',
53
- purpose: 'quality-gating',
54
- specialist: 'Quality Gatekeeper',
55
- contract: 'test.md',
56
- description: 'Validate behavior, capture regressions, and enforce quality gates.'
57
- },
58
- {
59
- cli: 'perf-scan',
60
- slash: '/perf-scan',
61
- purpose: 'performance-regression-check',
51
+ cli: 'perf',
52
+ slash: '/perf',
53
+ purpose: 'performance-optimization-and-regression-check',
62
54
  specialist: 'Performance Analyst',
63
55
  contract: 'perf.md',
64
- description: 'Record baseline performance and compare before/after changes.'
56
+ description: 'Optimize performance and validate baseline-vs-candidate regression safety.'
65
57
  },
66
58
  {
67
59
  cli: 'release-ready',
@@ -72,12 +64,12 @@ const WORKFLOW_COMMANDS = [
72
64
  description: 'Prepare release branch, tests, and release checklist artifacts.'
73
65
  },
74
66
  {
75
- cli: 'docs-sync',
76
- slash: '/docs-sync',
77
- purpose: 'documentation-synchronization',
67
+ cli: 'docs',
68
+ slash: '/docs',
69
+ purpose: 'documentation-update-and-synchronization',
78
70
  specialist: 'Documentation Engineer',
79
71
  contract: 'docs.md',
80
- description: 'Update README and architecture docs to match shipped behavior.'
72
+ description: 'Update and synchronize README and architecture docs to match shipped behavior.'
81
73
  },
82
74
  {
83
75
  cli: 'learn-loop',
@@ -94,9 +86,7 @@ const CONTRACT_FILES = [
94
86
  'README.md',
95
87
  'plan.md',
96
88
  'task.md',
97
- 'scaffold.md',
98
89
  'fix.md',
99
- 'refactor.md',
100
90
  'audit.md',
101
91
  'perf.md',
102
92
  'test.md',
@@ -112,10 +102,7 @@ const SPECIALIST_CONTRACT_FILES = [
112
102
  'ux-bar.md',
113
103
  'debug-track.md',
114
104
  'risk-review.md',
115
- 'quality-gate.md',
116
- 'perf-scan.md',
117
105
  'release-ready.md',
118
- 'docs-sync.md',
119
106
  'learn-loop.md'
120
107
  ];
121
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-templated",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "description": "Technology-agnostic development template with multi-AI agent support (Cursor, Copilot, VSCode, Gemini), security-first patterns, and comprehensive testing guidelines",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -32,6 +32,9 @@ All policy, routing, and skill governance lives here — edit this file directly
32
32
  |-------|------|------------------|
33
33
  | app-hardening | `.github/skills/app-hardening/SKILL.md` | Hardening, anti-tamper, integrity controls |
34
34
  | bug-triage | `.github/skills/bug-triage/SKILL.md` | Something is broken, failing, or crashing |
35
+ | debug-skill | `.github/skills/debug-skill/SKILL.md` | Breakpoint-first debugging, execution tracing, state inspection |
36
+ | secure-code-guardian | `.github/skills/secure-code-guardian/SKILL.md` | Secure-by-default coding for auth, secrets, and user input |
37
+ | feature-forge | `.github/skills/feature-forge/SKILL.md` | Turn feature ideas into execution-ready requirements and acceptance criteria |
35
38
  | error-patterns | `.github/skills/error-patterns/SKILL.md` | Debugging with persistent lessons memory and automatic fix recording |
36
39
  | feature-delivery | `.github/skills/feature-delivery/SKILL.md` | Build/add/implement feature work |
37
40
  | find-skills | `.github/skills/find-skills/SKILL.md` | User asks to discover a skill |
@@ -237,10 +237,9 @@ These commands provide deterministic specialist guidance aligned to the sprint l
237
237
  | `ux-bar` | Design Quality Lead | Raise UX quality before implementation |
238
238
  | `debug-track` | Root-Cause Investigator | Reproduce and isolate root cause |
239
239
  | `risk-review` | Release Risk Reviewer | Surface production-risk issues before merge |
240
- | `quality-gate` | Quality Gatekeeper | Validate behavior and regression safety |
241
- | `perf-scan` | Performance Analyst | Capture performance baseline and deltas |
240
+ | `perf` | Performance Analyst | Optimize performance and guard against regressions |
242
241
  | `release-ready` | Release Coordinator | Prepare release artifacts and final checks |
243
- | `docs-sync` | Documentation Engineer | Sync docs with shipped behavior |
242
+ | `docs` | Documentation Engineer | Sync docs with shipped behavior |
244
243
  | `learn-loop` | Iteration Lead | Capture lessons and next-cycle actions |
245
244
 
246
245
  Each command maps to deterministic contract files in `agents/commands/` and uses the schema in `agents/commands/SCHEMA.md`.
@@ -7,9 +7,7 @@ This directory is the modular source of truth for slash-command execution contra
7
7
  - Command contracts:
8
8
  - `plan.md`
9
9
  - `task.md`
10
- - `scaffold.md`
11
10
  - `fix.md`
12
- - `refactor.md`
13
11
  - `audit.md`
14
12
  - `perf.md`
15
13
  - `test.md`
@@ -22,10 +20,7 @@ This directory is the modular source of truth for slash-command execution contra
22
20
  - `ux-bar.md`
23
21
  - `debug-track.md`
24
22
  - `risk-review.md`
25
- - `quality-gate.md`
26
- - `perf-scan.md`
27
23
  - `release-ready.md`
28
- - `docs-sync.md`
29
24
  - `learn-loop.md`
30
25
 
31
26
  Execution requirements:
@@ -58,10 +53,9 @@ Use these lifecycle commands as the recommended specialist sequence:
58
53
  - `ux-bar` -> `plan.md`
59
54
  - `debug-track` -> `fix.md`
60
55
  - `risk-review` -> `audit.md`
61
- - `quality-gate` -> `test.md`
62
- - `perf-scan` -> `perf.md`
56
+ - `perf` -> `perf.md`
63
57
  - `release-ready` -> `release.md`
64
- - `docs-sync` -> `docs.md`
58
+ - `docs` -> `docs.md`
65
59
  - `learn-loop` -> `task.md`
66
60
 
67
61
  The CLI command `agents-templated workflow` prints this lifecycle in order:
@@ -1,33 +1,58 @@
1
- # /arch-check
2
-
3
- ## A. Intent
4
- Validate architecture decisions, dependency boundaries, and failure handling before coding.
5
-
6
- ## B. When to Use
7
- Use after scope lock and before implementation starts.
8
-
9
- ## C. Required Inputs
10
- - Scoped feature set
11
- - Existing system boundaries
12
- - Non-functional requirements
13
-
14
- ## D. Deterministic Execution Flow
15
- 1. Map data and control flow.
16
- 2. Identify component boundaries.
17
- 3. Enumerate failure modes.
18
- 4. Define testing and validation checkpoints.
19
- 5. Emit architecture decision set.
20
-
21
- ## E. Structured Output Template
22
- - `architecture_summary`
23
- - `boundaries[]`
24
- - `data_flow`
25
- - `failure_modes[]`
26
- - `validation_plan[]`
27
-
28
- ## F. Stop Conditions
29
- - Critical dependency unclear.
30
- - Failure modes not covered.
31
-
32
- ## G. Safety Constraints
33
- - Include security and testing gates for each critical path.
1
+ # /arch-check
2
+
3
+ ## A. Intent
4
+ Validate architecture readiness and implementation constraints before build begins.
5
+
6
+ ## B. When to Use
7
+ - Use after scope lock and before implementation starts.
8
+ - Do not use for post-release retrospectives.
9
+
10
+ ## C. Context Assumptions
11
+ - Scope is frozen for current increment.
12
+ - Architecture options are documented.
13
+ - Test strategy can be defined.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `architecture_goal` | string | "multi-tenant API isolation" |
19
+ | `design_options` | string[] | ["shared schema", "schema-per-tenant"] |
20
+ | `design_artifact` | artifact | ADR doc, sequence diagram |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] design options are comparable
24
+ - [ ] key edge cases are identified
25
+ - [ ] test strategy exists for selected design
26
+
27
+ ## F. Execution Flow
28
+ 1. Review architecture options and constraints.
29
+ 2. Evaluate edge cases and failure modes.
30
+ 3. Validate selected option against requirements.
31
+ 4. Decision point ->
32
+ - condition A -> critical gap found -> block readiness
33
+ - condition B -> no critical gaps -> continue.
34
+ 5. Build architecture decision and test implications.
35
+ 6. Emit architecture readiness report.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "architecture_id": "string",
42
+ "decisions": ["array","of","strings"],
43
+ "risk_level": "low | medium | high",
44
+ "blocker": "string | null"
45
+ }
46
+ ```
47
+
48
+ ## H. Output Target
49
+ - Default delivery: stdout
50
+ - Override flag: --output=<target>
51
+
52
+ ## I. Stop Conditions <- abort with error message, never emit partial output
53
+ - selected architecture lacks testable validation path
54
+ - critical edge case has no mitigation
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block on architecture with unresolved critical failure modes
58
+ - Warn only: warn when non-critical tradeoffs are accepted