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.
- package/README.md +34 -8
- package/bin/cli.js +49 -0
- package/lib/orchestrator.js +562 -0
- package/lib/workflow.js +478 -22
- package/package.json +1 -1
- package/templates/.claude/agents/README.md +15 -1
- package/templates/.claude/agents/architect.md +79 -106
- package/templates/.claude/agents/backend-specialist.md +79 -0
- package/templates/.claude/agents/build-error-resolver.md +78 -119
- package/templates/.claude/agents/code-reviewer.md +79 -116
- package/templates/.claude/agents/compatibility-checker.md +79 -79
- package/templates/.claude/agents/configuration-validator.md +79 -85
- package/templates/.claude/agents/database-migrator.md +79 -83
- package/templates/.claude/agents/dependency-auditor.md +79 -92
- package/templates/.claude/agents/deployment-specialist.md +91 -0
- package/templates/.claude/agents/doc-updater.md +78 -130
- package/templates/.claude/agents/e2e-runner.md +78 -122
- package/templates/.claude/agents/frontend-specialist.md +79 -0
- package/templates/.claude/agents/load-tester.md +79 -80
- package/templates/.claude/agents/performance-profiler.md +79 -103
- package/templates/.claude/agents/performance-specialist.md +91 -0
- package/templates/.claude/agents/planner.md +81 -87
- package/templates/.claude/agents/qa-specialist.md +92 -0
- package/templates/.claude/agents/refactor-cleaner.md +79 -137
- package/templates/.claude/agents/release-ops-specialist.md +80 -0
- package/templates/.claude/agents/security-reviewer.md +80 -138
- package/templates/.claude/agents/tdd-guide.md +79 -98
- package/templates/.claude/agents/test-data-builder.md +79 -0
- package/templates/CLAUDE.md +10 -0
- package/templates/README.md +36 -8
- package/templates/agent-docs/ARCHITECTURE.md +6 -0
- package/templates/agents/commands/README.md +81 -8
- package/templates/agents/commands/SCHEMA.md +21 -1
- package/templates/agents/commands/arch-check.md +58 -33
- package/templates/agents/commands/audit.md +58 -38
- package/templates/agents/commands/debug-track.md +58 -33
- package/templates/agents/commands/docs.md +58 -34
- package/templates/agents/commands/fix.md +58 -34
- package/templates/agents/commands/learn-loop.md +58 -33
- package/templates/agents/commands/perf.md +58 -34
- package/templates/agents/commands/plan.md +58 -34
- package/templates/agents/commands/pr.md +58 -35
- package/templates/agents/commands/problem-map.md +58 -33
- package/templates/agents/commands/release-ready.md +58 -33
- package/templates/agents/commands/release.md +58 -39
- package/templates/agents/commands/risk-review.md +58 -33
- package/templates/agents/commands/scope-shape.md +58 -33
- package/templates/agents/commands/task.md +58 -35
- package/templates/agents/commands/test-data.md +56 -0
- package/templates/agents/commands/test.md +58 -34
- package/templates/agents/commands/ux-bar.md +58 -33
- package/templates/agents/skills/README.md +9 -0
- package/templates/agents/skills/debug-skill/SKILL.md +39 -0
- package/templates/agents/skills/feature-forge/SKILL.md +39 -0
- package/templates/agents/skills/secure-code-guardian/SKILL.md +39 -0
- package/agents/commands/README.md +0 -70
- package/agents/commands/SCHEMA.md +0 -22
- package/agents/commands/arch-check.md +0 -33
- package/agents/commands/audit.md +0 -38
- package/agents/commands/debug-track.md +0 -33
- package/agents/commands/docs-sync.md +0 -33
- package/agents/commands/docs.md +0 -34
- package/agents/commands/fix.md +0 -34
- package/agents/commands/learn-loop.md +0 -33
- package/agents/commands/perf-scan.md +0 -33
- package/agents/commands/perf.md +0 -34
- package/agents/commands/plan.md +0 -34
- package/agents/commands/pr.md +0 -35
- package/agents/commands/problem-map.md +0 -33
- package/agents/commands/quality-gate.md +0 -33
- package/agents/commands/refactor.md +0 -34
- package/agents/commands/release-ready.md +0 -33
- package/agents/commands/release.md +0 -39
- package/agents/commands/risk-review.md +0 -33
- package/agents/commands/scaffold.md +0 -34
- package/agents/commands/scope-shape.md +0 -33
- package/agents/commands/task.md +0 -35
- package/agents/commands/test.md +0 -34
- package/agents/commands/ux-bar.md +0 -33
- package/agents/rules/planning.mdc +0 -69
- package/templates/agents/commands/docs-sync.md +0 -33
- package/templates/agents/commands/perf-scan.md +0 -33
- package/templates/agents/commands/quality-gate.md +0 -33
- package/templates/agents/commands/refactor.md +0 -34
- package/templates/agents/commands/scaffold.md +0 -34
|
@@ -1,33 +1,58 @@
|
|
|
1
|
-
# /risk-review
|
|
2
|
-
|
|
3
|
-
## A. Intent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
Use before merge or release
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
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-
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
Use after problem framing and before
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
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
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
Use
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## E.
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
Use
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Test
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## E.
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
Use when
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
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.
|