agents-templated 2.2.18 → 2.2.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-templated",
3
- "version": "2.2.18",
3
+ "version": "2.2.20",
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": {
@@ -1,58 +1,58 @@
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
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
@@ -1,58 +1,58 @@
1
- # /audit
2
-
3
- ## A. Intent
4
- Produce a deterministic risk and compliance audit with prioritized findings.
5
-
6
- ## B. When to Use
7
- - Use before release or for targeted quality/security reviews.
8
- - Do not use as a substitute for implementation planning.
9
-
10
- ## C. Context Assumptions
11
- - Audit scope is defined.
12
- - Relevant artifacts are available.
13
- - Severity rubric is agreed.
14
-
15
- ## D. Required Inputs
16
- | Input | Type | Example |
17
- |---------------------|------------|----------------------------------|
18
- | `audit_scope` | string | "authentication flows" |
19
- | `checklist` | string[] | ["security", "tests", "rollback"] |
20
- | `evidence_set` | artifact | PR diff, logs, reports |
21
-
22
- ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
- - [ ] scope is explicit
24
- - [ ] evidence artifacts are accessible
25
- - [ ] severity model is available
26
-
27
- ## F. Execution Flow
28
- 1. Collect scoped evidence and standards.
29
- 2. Evaluate checks against evidence.
30
- 3. Classify findings by severity.
31
- 4. Decision point ->
32
- - condition A -> critical unresolved finding -> block recommendation
33
- - condition B -> no critical blocker -> continue.
34
- 5. Assemble remediation actions and owners.
35
- 6. Emit audit report.
36
-
37
- ## G. Output Schema
38
-
39
- ```json
40
- {
41
- "audit_id": "string",
42
- "findings": ["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
- - scope cannot be determined
54
- - critical evidence is missing
55
-
56
- ## J. Safety Constraints
57
- - Hard block: hard block when critical finding lacks mitigation
58
- - Warn only: warn when medium findings are deferred
1
+ # /audit
2
+
3
+ ## A. Intent
4
+ Produce a deterministic risk and compliance audit with prioritized findings.
5
+
6
+ ## B. When to Use
7
+ - Use before release or for targeted quality/security reviews.
8
+ - Do not use as a substitute for implementation planning.
9
+
10
+ ## C. Context Assumptions
11
+ - Audit scope is defined.
12
+ - Relevant artifacts are available.
13
+ - Severity rubric is agreed.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `audit_scope` | string | "authentication flows" |
19
+ | `checklist` | string[] | ["security", "tests", "rollback"] |
20
+ | `evidence_set` | artifact | PR diff, logs, reports |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] scope is explicit
24
+ - [ ] evidence artifacts are accessible
25
+ - [ ] severity model is available
26
+
27
+ ## F. Execution Flow
28
+ 1. Collect scoped evidence and standards.
29
+ 2. Evaluate checks against evidence.
30
+ 3. Classify findings by severity.
31
+ 4. Decision point ->
32
+ - condition A -> critical unresolved finding -> block recommendation
33
+ - condition B -> no critical blocker -> continue.
34
+ 5. Assemble remediation actions and owners.
35
+ 6. Emit audit report.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "audit_id": "string",
42
+ "findings": ["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
+ - scope cannot be determined
54
+ - critical evidence is missing
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block when critical finding lacks mitigation
58
+ - Warn only: warn when medium findings are deferred
@@ -1,58 +1,58 @@
1
- # /debug-track
2
-
3
- ## A. Intent
4
- Run root-cause-first debugging workflow and guarantee evidence-backed defect diagnosis.
5
-
6
- ## B. When to Use
7
- - Use when behavior is broken, failing, or regressing in runtime.
8
- - Do not use to apply speculative patches without diagnosis.
9
-
10
- ## C. Context Assumptions
11
- - Defect symptom is captured.
12
- - A reproduction path is available or can be derived.
13
- - Runtime context is accessible.
14
-
15
- ## D. Required Inputs
16
- | Input | Type | Example |
17
- |---------------------|------------|----------------------------------|
18
- | `defect_symptom` | string | "payment retries loop forever" |
19
- | `repro_steps` | string[] | ["submit order", "disconnect network"] |
20
- | `runtime_artifact` | artifact | error logs, trace screenshot, failing test |
21
-
22
- ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
- - [ ] reproduction path is actionable
24
- - [ ] evidence can be collected at runtime
25
- - [ ] investigation scope is bounded
26
-
27
- ## F. Execution Flow
28
- 1. Reproduce issue and capture trace.
29
- 2. Follow execution and state transitions.
30
- 3. Confirm root cause with evidence.
31
- 4. Decision point ->
32
- - condition A -> root cause unverified -> continue investigation
33
- - condition B -> verified -> continue.
34
- 5. Draft minimal patch strategy and checks.
35
- 6. Emit debug investigation report.
36
-
37
- ## G. Output Schema
38
-
39
- ```json
40
- {
41
- "debug_id": "string",
42
- "evidence": ["array","of","strings"],
43
- "certainty": "low | medium | high",
44
- "root_cause": "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
- - issue cannot be reproduced with available context
54
- - root cause cannot be evidenced
55
-
56
- ## J. Safety Constraints
57
- - Hard block: hard block on symptom-only fixes without diagnosis
58
- - Warn only: warn when reproduction is intermittent
1
+ # /debug-track
2
+
3
+ ## A. Intent
4
+ Run root-cause-first debugging workflow and guarantee evidence-backed defect diagnosis.
5
+
6
+ ## B. When to Use
7
+ - Use when behavior is broken, failing, or regressing in runtime.
8
+ - Do not use to apply speculative patches without diagnosis.
9
+
10
+ ## C. Context Assumptions
11
+ - Defect symptom is captured.
12
+ - A reproduction path is available or can be derived.
13
+ - Runtime context is accessible.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `defect_symptom` | string | "payment retries loop forever" |
19
+ | `repro_steps` | string[] | ["submit order", "disconnect network"] |
20
+ | `runtime_artifact` | artifact | error logs, trace screenshot, failing test |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] reproduction path is actionable
24
+ - [ ] evidence can be collected at runtime
25
+ - [ ] investigation scope is bounded
26
+
27
+ ## F. Execution Flow
28
+ 1. Reproduce issue and capture trace.
29
+ 2. Follow execution and state transitions.
30
+ 3. Confirm root cause with evidence.
31
+ 4. Decision point ->
32
+ - condition A -> root cause unverified -> continue investigation
33
+ - condition B -> verified -> continue.
34
+ 5. Draft minimal patch strategy and checks.
35
+ 6. Emit debug investigation report.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "debug_id": "string",
42
+ "evidence": ["array","of","strings"],
43
+ "certainty": "low | medium | high",
44
+ "root_cause": "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
+ - issue cannot be reproduced with available context
54
+ - root cause cannot be evidenced
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block on symptom-only fixes without diagnosis
58
+ - Warn only: warn when reproduction is intermittent
@@ -1,58 +1,58 @@
1
- # /docs
2
-
3
- ## A. Intent
4
- Create deterministic documentation outputs aligned with current implementation behavior.
5
-
6
- ## B. When to Use
7
- - Use when generating or updating docs as a direct deliverable.
8
- - Do not use for release decision making.
9
-
10
- ## C. Context Assumptions
11
- - Source behavior is known.
12
- - Target audience is defined.
13
- - Doc destination is available.
14
-
15
- ## D. Required Inputs
16
- | Input | Type | Example |
17
- |---------------------|------------|----------------------------------|
18
- | `doc_scope` | string | "API auth endpoints" |
19
- | `source_refs` | string[] | ["src/auth.ts", "openapi.yaml"] |
20
- | `doc_artifact` | artifact | existing README path or docs URL |
21
-
22
- ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
- - [ ] scope is explicit
24
- - [ ] source refs are accessible
25
- - [ ] destination path is writable
26
-
27
- ## F. Execution Flow
28
- 1. Collect implementation references.
29
- 2. Draft structured documentation content.
30
- 3. Validate examples and references.
31
- 4. Decision point ->
32
- - condition A -> mismatch with implementation -> revise doc content
33
- - condition B -> aligned -> continue.
34
- 5. Assemble final documentation package.
35
- 6. Emit documentation output.
36
-
37
- ## G. Output Schema
38
-
39
- ```json
40
- {
41
- "doc_id": "string",
42
- "updated_sections": ["array","of","strings"],
43
- "confidence": "low | medium | high",
44
- "gap": "string | null"
45
- }
46
- ```
47
-
48
- ## H. Output Target
49
- - Default delivery: file
50
- - Override flag: --output=<target>
51
-
52
- ## I. Stop Conditions <- abort with error message, never emit partial output
53
- - source references are unavailable
54
- - critical behavior cannot be documented accurately
55
-
56
- ## J. Safety Constraints
57
- - Hard block: hard block on knowingly incorrect implementation claims
58
- - Warn only: warn when sections remain TODO with owner
1
+ # /docs
2
+
3
+ ## A. Intent
4
+ Create deterministic documentation outputs aligned with current implementation behavior.
5
+
6
+ ## B. When to Use
7
+ - Use when generating or updating docs as a direct deliverable.
8
+ - Do not use for release decision making.
9
+
10
+ ## C. Context Assumptions
11
+ - Source behavior is known.
12
+ - Target audience is defined.
13
+ - Doc destination is available.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `doc_scope` | string | "API auth endpoints" |
19
+ | `source_refs` | string[] | ["src/auth.ts", "openapi.yaml"] |
20
+ | `doc_artifact` | artifact | existing README path or docs URL |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] scope is explicit
24
+ - [ ] source refs are accessible
25
+ - [ ] destination path is writable
26
+
27
+ ## F. Execution Flow
28
+ 1. Collect implementation references.
29
+ 2. Draft structured documentation content.
30
+ 3. Validate examples and references.
31
+ 4. Decision point ->
32
+ - condition A -> mismatch with implementation -> revise doc content
33
+ - condition B -> aligned -> continue.
34
+ 5. Assemble final documentation package.
35
+ 6. Emit documentation output.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "doc_id": "string",
42
+ "updated_sections": ["array","of","strings"],
43
+ "confidence": "low | medium | high",
44
+ "gap": "string | null"
45
+ }
46
+ ```
47
+
48
+ ## H. Output Target
49
+ - Default delivery: file
50
+ - Override flag: --output=<target>
51
+
52
+ ## I. Stop Conditions <- abort with error message, never emit partial output
53
+ - source references are unavailable
54
+ - critical behavior cannot be documented accurately
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block on knowingly incorrect implementation claims
58
+ - Warn only: warn when sections remain TODO with owner
@@ -1,58 +1,58 @@
1
- # /fix
2
-
3
- ## A. Intent
4
- Apply the smallest safe code fix with regression evidence and bounded impact.
5
-
6
- ## B. When to Use
7
- - Use after root cause is confirmed and a targeted fix is required.
8
- - Do not use when defect cause is still speculative.
9
-
10
- ## C. Context Assumptions
11
- - Issue is reproducible or sufficiently evidenced.
12
- - Root cause has been identified.
13
- - Regression checks are available.
14
-
15
- ## D. Required Inputs
16
- | Input | Type | Example |
17
- |---------------------|------------|----------------------------------|
18
- | `defect_id` | string | "BUG-142" |
19
- | `affected_paths` | string[] | ["src/auth.ts", "tests/auth.test.ts"] |
20
- | `evidence` | artifact | stack trace, failing test output, screenshot |
21
-
22
- ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
- - [ ] root cause evidence is present
24
- - [ ] fix scope is bounded
25
- - [ ] regression checks are defined
26
-
27
- ## F. Execution Flow
28
- 1. Read defect evidence and failing paths.
29
- 2. Implement minimal change set.
30
- 3. Run targeted validations.
31
- 4. Decision point ->
32
- - condition A -> validation fails -> iterate fix or abort
33
- - condition B -> validation passes -> continue.
34
- 5. Prepare change rationale and impact summary.
35
- 6. Emit fix package with evidence.
36
-
37
- ## G. Output Schema
38
-
39
- ```json
40
- {
41
- "fix_id": "string",
42
- "changed_files": ["array","of","strings"],
43
- "risk": "low | medium | high",
44
- "rollback_note": "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
- - no verified root-cause evidence
54
- - regression validation unavailable for critical path
55
-
56
- ## J. Safety Constraints
57
- - Hard block: no broad refactor inside fix-only workflow
58
- - Warn only: warn when temporary workaround is used
1
+ # /fix
2
+
3
+ ## A. Intent
4
+ Apply the smallest safe code fix with regression evidence and bounded impact.
5
+
6
+ ## B. When to Use
7
+ - Use after root cause is confirmed and a targeted fix is required.
8
+ - Do not use when defect cause is still speculative.
9
+
10
+ ## C. Context Assumptions
11
+ - Issue is reproducible or sufficiently evidenced.
12
+ - Root cause has been identified.
13
+ - Regression checks are available.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `defect_id` | string | "BUG-142" |
19
+ | `affected_paths` | string[] | ["src/auth.ts", "tests/auth.test.ts"] |
20
+ | `evidence` | artifact | stack trace, failing test output, screenshot |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] root cause evidence is present
24
+ - [ ] fix scope is bounded
25
+ - [ ] regression checks are defined
26
+
27
+ ## F. Execution Flow
28
+ 1. Read defect evidence and failing paths.
29
+ 2. Implement minimal change set.
30
+ 3. Run targeted validations.
31
+ 4. Decision point ->
32
+ - condition A -> validation fails -> iterate fix or abort
33
+ - condition B -> validation passes -> continue.
34
+ 5. Prepare change rationale and impact summary.
35
+ 6. Emit fix package with evidence.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "fix_id": "string",
42
+ "changed_files": ["array","of","strings"],
43
+ "risk": "low | medium | high",
44
+ "rollback_note": "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
+ - no verified root-cause evidence
54
+ - regression validation unavailable for critical path
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: no broad refactor inside fix-only workflow
58
+ - Warn only: warn when temporary workaround is used