agents-templated 2.2.11 → 2.2.13

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 (85) hide show
  1. package/README.md +34 -8
  2. package/bin/cli.js +49 -0
  3. package/lib/orchestrator.js +562 -0
  4. package/lib/workflow.js +478 -22
  5. package/package.json +1 -1
  6. package/templates/.claude/agents/README.md +15 -1
  7. package/templates/.claude/agents/architect.md +79 -106
  8. package/templates/.claude/agents/backend-specialist.md +79 -0
  9. package/templates/.claude/agents/build-error-resolver.md +78 -119
  10. package/templates/.claude/agents/code-reviewer.md +79 -116
  11. package/templates/.claude/agents/compatibility-checker.md +79 -79
  12. package/templates/.claude/agents/configuration-validator.md +79 -85
  13. package/templates/.claude/agents/database-migrator.md +79 -83
  14. package/templates/.claude/agents/dependency-auditor.md +79 -92
  15. package/templates/.claude/agents/deployment-specialist.md +91 -0
  16. package/templates/.claude/agents/doc-updater.md +78 -130
  17. package/templates/.claude/agents/e2e-runner.md +78 -122
  18. package/templates/.claude/agents/frontend-specialist.md +79 -0
  19. package/templates/.claude/agents/load-tester.md +79 -80
  20. package/templates/.claude/agents/performance-profiler.md +79 -103
  21. package/templates/.claude/agents/performance-specialist.md +91 -0
  22. package/templates/.claude/agents/planner.md +81 -87
  23. package/templates/.claude/agents/qa-specialist.md +92 -0
  24. package/templates/.claude/agents/refactor-cleaner.md +79 -137
  25. package/templates/.claude/agents/release-ops-specialist.md +80 -0
  26. package/templates/.claude/agents/security-reviewer.md +80 -138
  27. package/templates/.claude/agents/tdd-guide.md +79 -98
  28. package/templates/.claude/agents/test-data-builder.md +79 -0
  29. package/templates/CLAUDE.md +10 -0
  30. package/templates/README.md +36 -8
  31. package/templates/agent-docs/ARCHITECTURE.md +6 -0
  32. package/templates/agents/commands/README.md +81 -8
  33. package/templates/agents/commands/SCHEMA.md +21 -1
  34. package/templates/agents/commands/arch-check.md +58 -33
  35. package/templates/agents/commands/audit.md +58 -38
  36. package/templates/agents/commands/debug-track.md +58 -33
  37. package/templates/agents/commands/docs.md +58 -34
  38. package/templates/agents/commands/fix.md +58 -34
  39. package/templates/agents/commands/learn-loop.md +58 -33
  40. package/templates/agents/commands/perf.md +58 -34
  41. package/templates/agents/commands/plan.md +58 -34
  42. package/templates/agents/commands/pr.md +58 -35
  43. package/templates/agents/commands/problem-map.md +58 -33
  44. package/templates/agents/commands/release-ready.md +58 -33
  45. package/templates/agents/commands/release.md +58 -39
  46. package/templates/agents/commands/risk-review.md +58 -33
  47. package/templates/agents/commands/scope-shape.md +58 -33
  48. package/templates/agents/commands/task.md +58 -35
  49. package/templates/agents/commands/test-data.md +56 -0
  50. package/templates/agents/commands/test.md +58 -34
  51. package/templates/agents/commands/ux-bar.md +58 -33
  52. package/templates/agents/skills/README.md +9 -0
  53. package/templates/agents/skills/debug-skill/SKILL.md +39 -0
  54. package/templates/agents/skills/feature-forge/SKILL.md +39 -0
  55. package/templates/agents/skills/secure-code-guardian/SKILL.md +39 -0
  56. package/agents/commands/README.md +0 -70
  57. package/agents/commands/SCHEMA.md +0 -22
  58. package/agents/commands/arch-check.md +0 -33
  59. package/agents/commands/audit.md +0 -38
  60. package/agents/commands/debug-track.md +0 -33
  61. package/agents/commands/docs-sync.md +0 -33
  62. package/agents/commands/docs.md +0 -34
  63. package/agents/commands/fix.md +0 -34
  64. package/agents/commands/learn-loop.md +0 -33
  65. package/agents/commands/perf-scan.md +0 -33
  66. package/agents/commands/perf.md +0 -34
  67. package/agents/commands/plan.md +0 -34
  68. package/agents/commands/pr.md +0 -35
  69. package/agents/commands/problem-map.md +0 -33
  70. package/agents/commands/quality-gate.md +0 -33
  71. package/agents/commands/refactor.md +0 -34
  72. package/agents/commands/release-ready.md +0 -33
  73. package/agents/commands/release.md +0 -39
  74. package/agents/commands/risk-review.md +0 -33
  75. package/agents/commands/scaffold.md +0 -34
  76. package/agents/commands/scope-shape.md +0 -33
  77. package/agents/commands/task.md +0 -35
  78. package/agents/commands/test.md +0 -34
  79. package/agents/commands/ux-bar.md +0 -33
  80. package/agents/rules/planning.mdc +0 -69
  81. package/templates/agents/commands/docs-sync.md +0 -33
  82. package/templates/agents/commands/perf-scan.md +0 -33
  83. package/templates/agents/commands/quality-gate.md +0 -33
  84. package/templates/agents/commands/refactor.md +0 -34
  85. package/templates/agents/commands/scaffold.md +0 -34
@@ -1,33 +1,58 @@
1
- # /risk-review
2
-
3
- ## A. Intent
4
- Identify release risks that may pass CI but fail in production.
5
-
6
- ## B. When to Use
7
- Use before merge or release candidate approval.
8
-
9
- ## C. Required Inputs
10
- - Proposed changes
11
- - Test and validation status
12
- - Deployment context
13
-
14
- ## D. Deterministic Execution Flow
15
- 1. Inspect behavior deltas.
16
- 2. Rank risks by impact and likelihood.
17
- 3. Validate mitigation or rollback paths.
18
- 4. Identify missing tests.
19
- 5. Emit ship recommendation.
20
-
21
- ## E. Structured Output Template
22
- - `risk_findings[]`
23
- - `severity_summary`
24
- - `mitigations[]`
25
- - `rollback_readiness`
26
- - `release_recommendation`
27
-
28
- ## F. Stop Conditions
29
- - High-severity risk has no mitigation.
30
- - Rollback path is undefined.
31
-
32
- ## G. Safety Constraints
33
- - Block release for unresolved high-severity findings.
1
+ # /risk-review
2
+
3
+ ## A. Intent
4
+ Perform deterministic release risk review with mitigation and rollback readiness.
5
+
6
+ ## B. When to Use
7
+ - Use before merge or release approval on non-trivial changes.
8
+ - Do not use as a substitute for running tests.
9
+
10
+ ## C. Context Assumptions
11
+ - Change set is available.
12
+ - Validation evidence exists.
13
+ - Deployment context is known.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `change_set` | string | "payment retry + queue changes" |
19
+ | `validation_status` | string[] | ["unit pass", "integration pass"] |
20
+ | `deployment_artifact` | artifact | rollout plan, env config snapshot |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] change set is fully described
24
+ - [ ] validation status is current
25
+ - [ ] rollback path is defined
26
+
27
+ ## F. Execution Flow
28
+ 1. Inspect behavior deltas and blast radius.
29
+ 2. Rank risks by impact and likelihood.
30
+ 3. Validate mitigations and rollback readiness.
31
+ 4. Decision point ->
32
+ - condition A -> high unresolved risk -> block recommendation
33
+ - condition B -> acceptable risk -> continue.
34
+ 5. Build release risk summary and actions.
35
+ 6. Emit risk review report.
36
+
37
+ ## G. Output Schema
38
+
39
+ ```json
40
+ {
41
+ "review_id": "string",
42
+ "risks": ["array","of","strings"],
43
+ "risk_level": "low | medium | high",
44
+ "recommendation": "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
+ - high-severity risk has no mitigation
54
+ - rollback readiness is undefined
55
+
56
+ ## J. Safety Constraints
57
+ - Hard block: hard block on unresolved high-severity risks
58
+ - Warn only: warn when medium risks are accepted with owner
@@ -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
@@ -0,0 +1,56 @@
1
+ # /test-data
2
+
3
+ ## A. Intent
4
+ Produce deterministic fixtures, seeds, and mocks for downstream validation, e2e, and load phases.
5
+
6
+ ## B. When to Use
7
+ - Use when QA design or backend/database changes require repeatable datasets.
8
+ - Use before `qa-specialist(mode=validation)`, `e2e-runner`, or `performance-specialist(mode=load)`.
9
+
10
+ ## C. Context Assumptions
11
+ - Acceptance criteria and target test flows are defined.
12
+ - Data shape constraints are known.
13
+ - Generated data can be reset safely.
14
+
15
+ ## D. Required Inputs
16
+ | Input | Type | Example |
17
+ |---------------------|------------|----------------------------------|
18
+ | `consumer_targets` | string[] | ["qa-validation", "e2e", "perf-load"] |
19
+ | `dataset_scope` | string | "orders with edge-case payment states" |
20
+ | `data_constraints` | string[] | ["no PII", "stable IDs", "seed-controlled randomness"] |
21
+
22
+ ## E. Pre-Execution Guards <- fail fast, check ALL before running
23
+ - [ ] dataset scope is explicit and bounded
24
+ - [ ] production secrets and real PII are excluded
25
+ - [ ] setup/reset path is defined and reversible
26
+
27
+ ## F. Execution Flow
28
+ 1. Confirm required consumer targets and edge cases.
29
+ 2. Build deterministic fixtures/seeds/mocks.
30
+ 3. Package setup/reset instructions.
31
+ 4. Validate data reproducibility and cleanup safety.
32
+ 5. Emit test-data handoff report.
33
+
34
+ ## G. Output Schema
35
+
36
+ ```json
37
+ {
38
+ "data_package_id": "string",
39
+ "assets": ["array", "of", "strings"],
40
+ "setup_steps": ["array", "of", "strings"],
41
+ "reset_steps": ["array", "of", "strings"],
42
+ "handoff_targets": ["array", "of", "strings"]
43
+ }
44
+ ```
45
+
46
+ ## H. Output Target
47
+ - Default delivery: stdout
48
+ - Override flag: --output=<target>
49
+
50
+ ## I. Stop Conditions <- abort with error message, never emit partial output
51
+ - dataset constraints are ambiguous or contradictory
52
+ - setup/reset cannot be executed safely
53
+
54
+ ## J. Safety Constraints
55
+ - Hard block: never use production credentials or real PII
56
+ - Warn only: warn when synthetic distributions are approximate
@@ -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
@@ -61,6 +61,12 @@ To create a new skill for your specific domain:
61
61
  │ └── SKILL.md # Systematic feature scoping and execution contracts
62
62
  ├── bug-triage/
63
63
  │ └── SKILL.md # Reproduction-first debugging and regression workflows
64
+ ├── debug-skill/
65
+ │ └── SKILL.md # Breakpoint-first debugging and execution tracing
66
+ ├── secure-code-guardian/
67
+ │ └── SKILL.md # Secure-by-default coding for auth and input boundaries
68
+ ├── feature-forge/
69
+ │ └── SKILL.md # Requirements forging before implementation starts
64
70
  ├── error-patterns/
65
71
  │ └── SKILL.md # Persistent debugging memory and known-fix application
66
72
  ├── app-hardening/
@@ -102,6 +108,9 @@ Consider creating skills for:
102
108
 
103
109
  - `feature-delivery`: Use when user asks are broad and you need objective, scope, acceptance criteria, and validation plan.
104
110
  - `bug-triage`: Use for defects and regressions requiring reproducible evidence, root-cause isolation, and minimal safe patches.
111
+ - `debug-skill`: Use for breakpoint-driven debugging, execution tracing, and variable-state inspection.
112
+ - `secure-code-guardian`: Use for secure-by-default implementation across auth, secrets, and untrusted input.
113
+ - `feature-forge`: Use before coding to turn rough asks into execution-ready requirements and acceptance criteria.
105
114
  - `error-patterns`: Use when errors repeat to apply known fixes from lessons-learned and automatically record new resolutions.
106
115
  - `app-hardening`: Use for high-risk/distributed runtimes to enforce hardening profile, obfuscation decisions, and release evidence.
107
116
  - `shadcn-ui`: Use for shadcn/ui installation, component composition, form patterns, and theme customization.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: debug-skill
3
+ description: Enables breakpoint-driven debugging workflows with execution tracing, state inspection, and root-cause proof before patching.
4
+ ---
5
+
6
+ # Debug Skill
7
+
8
+ Use this skill when the user is stuck on a bug and needs debugger-style investigation instead of print-guessing.
9
+
10
+ ## Trigger Conditions
11
+
12
+ - User asks to debug, set breakpoints, step through code, or inspect runtime state.
13
+ - A bug is intermittent, difficult to localize, or likely branch/state dependent.
14
+ - Existing logs are insufficient to prove root cause.
15
+
16
+ ## Workflow
17
+
18
+ 1. Confirm a reproducible scenario and expected vs actual behavior.
19
+ 2. Define a checkpoint plan (breakpoints/log points/frames).
20
+ 3. Trace execution order across checkpoints.
21
+ 4. Capture variable-state transitions at failure boundaries.
22
+ 5. Prove root cause with execution evidence.
23
+ 6. Apply the smallest safe patch and run focused regressions.
24
+
25
+ ## Output Contract
26
+
27
+ - Reproduction summary
28
+ - Checkpoint plan
29
+ - Execution trace highlights
30
+ - State snapshots at critical steps
31
+ - Root-cause finding
32
+ - Minimal patch plan
33
+ - Regression checks and residual risk
34
+
35
+ ## Guardrails
36
+
37
+ - Do not ship speculative fixes without trace-backed evidence.
38
+ - Do not skip regression validation after state-sensitive fixes.
39
+ - If reproduction fails, stop and request missing runtime context.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: feature-forge
3
+ description: Turns vague feature requests into execution-ready requirements, acceptance criteria, and validation plans before coding starts.
4
+ ---
5
+
6
+ # Feature Forge
7
+
8
+ Use this skill before implementation when feature requests are high-level, ambiguous, or under-specified.
9
+
10
+ ## Trigger Conditions
11
+
12
+ - User says build/add/create/implement without a full spec.
13
+ - Requirements are broad or mixed between business and technical language.
14
+ - Scope boundaries and acceptance criteria are unclear.
15
+
16
+ ## Workflow
17
+
18
+ 1. Restate objective and target user outcome.
19
+ 2. Define in-scope and out-of-scope boundaries.
20
+ 3. Convert asks into concrete functional requirements.
21
+ 4. Produce testable acceptance criteria.
22
+ 5. Split work into dependency-ordered slices.
23
+ 6. Define validation approach and rollback notes.
24
+
25
+ ## Output Contract
26
+
27
+ - Objective summary
28
+ - Scope in/out
29
+ - Functional requirements
30
+ - Acceptance criteria
31
+ - Implementation slices
32
+ - Validation plan
33
+ - Risks, assumptions, and rollback notes
34
+
35
+ ## Guardrails
36
+
37
+ - Do not move to implementation planning without explicit scope boundaries.
38
+ - Keep acceptance criteria measurable and testable.
39
+ - Raise blockers when requirements conflict or remain ambiguous.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: secure-code-guardian
3
+ description: Enforces secure-by-default implementation for auth, credentials, and untrusted input paths with OWASP-aligned controls.
4
+ ---
5
+
6
+ # Secure Code Guardian
7
+
8
+ Use this skill when building or reviewing features that touch authentication, secrets, session logic, or user-controlled input.
9
+
10
+ ## Trigger Conditions
11
+
12
+ - User asks for secure implementation, auth, JWT, password handling, or OWASP checks.
13
+ - New endpoints, forms, or integrations expose untrusted input boundaries.
14
+ - A feature handles sensitive data, identity, or permissions.
15
+
16
+ ## Workflow
17
+
18
+ 1. Map trust boundaries, actors, and attack surface.
19
+ 2. Define authentication and authorization requirements.
20
+ 3. Apply input validation and injection defenses at boundaries.
21
+ 4. Enforce credential/secrets handling and safe logging rules.
22
+ 5. Add abuse protection controls (rate limiting, lockouts, replay defenses where relevant).
23
+ 6. Define security tests and residual risk before ship recommendation.
24
+
25
+ ## Output Contract
26
+
27
+ - Attack surface map
28
+ - Security requirements
29
+ - Applied controls by boundary
30
+ - OWASP alignment notes
31
+ - Security validation checklist
32
+ - Residual risks and mitigations
33
+ - Ship/block recommendation
34
+
35
+ ## Guardrails
36
+
37
+ - Never trust client-side validation alone.
38
+ - Never expose secrets, credentials, or sensitive payloads in logs.
39
+ - Block release recommendation if critical controls are missing.