agents-templated 2.2.10 → 2.2.11
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 +101 -86
- package/agents/commands/README.md +70 -0
- package/agents/commands/SCHEMA.md +22 -0
- package/agents/commands/arch-check.md +33 -0
- package/agents/commands/audit.md +38 -0
- package/agents/commands/debug-track.md +33 -0
- package/agents/commands/docs-sync.md +33 -0
- package/agents/commands/docs.md +34 -0
- package/agents/commands/fix.md +34 -0
- package/agents/commands/learn-loop.md +33 -0
- package/agents/commands/perf-scan.md +33 -0
- package/agents/commands/perf.md +34 -0
- package/agents/commands/plan.md +34 -0
- package/agents/commands/pr.md +35 -0
- package/agents/commands/problem-map.md +33 -0
- package/agents/commands/quality-gate.md +33 -0
- package/agents/commands/refactor.md +34 -0
- package/agents/commands/release-ready.md +33 -0
- package/agents/commands/release.md +39 -0
- package/agents/commands/risk-review.md +33 -0
- package/agents/commands/scaffold.md +34 -0
- package/agents/commands/scope-shape.md +33 -0
- package/agents/commands/task.md +35 -0
- package/agents/commands/test.md +34 -0
- package/agents/commands/ux-bar.md +33 -0
- package/agents/rules/planning.mdc +69 -0
- package/bin/cli.js +116 -4
- package/index.js +12 -1
- package/lib/workflow.js +190 -0
- package/package.json +2 -1
- package/templates/CLAUDE.md +2 -0
- package/templates/README.md +104 -61
- package/templates/agents/commands/README.md +47 -1
- package/templates/agents/commands/arch-check.md +33 -0
- package/templates/agents/commands/debug-track.md +33 -0
- package/templates/agents/commands/docs-sync.md +33 -0
- package/templates/agents/commands/learn-loop.md +33 -0
- package/templates/agents/commands/perf-scan.md +33 -0
- package/templates/agents/commands/problem-map.md +33 -0
- package/templates/agents/commands/quality-gate.md +33 -0
- package/templates/agents/commands/release-ready.md +33 -0
- package/templates/agents/commands/risk-review.md +33 -0
- package/templates/agents/commands/scope-shape.md +33 -0
- package/templates/agents/commands/ux-bar.md +33 -0
- package/templates/agents/skills/README.md +6 -0
- package/templates/agents/skills/emilkowalski-skill/SKILL.md +51 -0
- package/templates/agents/skills/raphaelsalaja-userinterface-wiki/SKILL.md +51 -0
package/README.md
CHANGED
|
@@ -9,67 +9,45 @@
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
Agents Templated scaffolds your project with:
|
|
15
|
-
|
|
16
|
-
✅ **AI Agent Configurations** – Auto-discovery files for 4 major AI coding assistants
|
|
17
|
-
✅ **Deterministic Command Contracts** – Structured slash-command protocol in `agents/commands/`
|
|
18
|
-
✅ **Security-First Patterns** – OWASP Top 10 protection guidelines built-in
|
|
19
|
-
✅ **Hardening Guidance** – Risk-based hardening/obfuscation and release evidence gates
|
|
20
|
-
✅ **Testing Strategy** – 80/15/5 coverage targets (unit/integration/e2e)
|
|
21
|
-
✅ **Agent-Based Architecture** – Specialized patterns for frontend, backend, database, testing, security
|
|
22
|
-
✅ **Technology-Agnostic** – Works with React, Django, Go, FastAPI, Next.js, or any stack you choose
|
|
23
|
-
|
|
24
|
-
**Important:** This package does **NOT** install frameworks or libraries. It scaffolds the structure, patterns, and AI configurations—you install your chosen tech stack separately.
|
|
25
|
-
|
|
26
|
-
### What’s New in This Version
|
|
27
|
-
|
|
28
|
-
- Deterministic slash-command standard in `AGENTS.MD` and modular contracts in `agents/commands/`
|
|
29
|
-
- Implicit natural-language routing support (`slash-command-auto`) for non-technical prompts
|
|
30
|
-
- New workflow/routing/hardening rule set:
|
|
31
|
-
- `.claude/rules/intent-routing.md`
|
|
32
|
-
- `.claude/rules/system-workflow.md`
|
|
33
|
-
- `.claude/rules/hardening.md`
|
|
34
|
-
- `.claude/rules/lessons-learned.md`
|
|
35
|
-
- New baseline skills:
|
|
36
|
-
- `.github/skills/feature-delivery/`
|
|
37
|
-
- `.github/skills/bug-triage/`
|
|
38
|
-
- `.github/skills/error-patterns/`
|
|
39
|
-
- `.github/skills/app-hardening/`
|
|
40
|
-
- `.github/skills/shadcn-ui/`
|
|
41
|
-
- Release and audit contracts now require hardening evidence when risk profile requires it
|
|
12
|
+
## Why This Package Exists
|
|
42
13
|
|
|
43
|
-
|
|
14
|
+
Most starter templates only create files. This package creates operating rules for how teams build, review, test, and ship.
|
|
15
|
+
|
|
16
|
+
You get:
|
|
17
|
+
|
|
18
|
+
- Multi-agent configuration for Cursor, Copilot, Claude, and generic hosts
|
|
19
|
+
- Deterministic command contracts in `agents/commands/`
|
|
20
|
+
- Security-first and testing-first rule baselines
|
|
21
|
+
- Reusable skills and optional subagents
|
|
44
22
|
|
|
45
|
-
|
|
23
|
+
Important: this package does not install your framework. It installs the operating layer around your framework.
|
|
46
24
|
|
|
47
|
-
|
|
25
|
+
## 30-Second Start
|
|
26
|
+
|
|
27
|
+
### 1. Install setup
|
|
48
28
|
|
|
49
29
|
```bash
|
|
50
|
-
# Using npx (no installation needed) - RECOMMENDED
|
|
51
30
|
npx agents-templated@latest wizard
|
|
31
|
+
```
|
|
52
32
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
### 2. Start the command workflow
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
agents-templated workflow
|
|
37
|
+
agents-templated problem-map "daily briefing assistant for founders"
|
|
56
38
|
```
|
|
57
39
|
|
|
58
|
-
|
|
40
|
+
### 3. Optional preset bootstrap
|
|
59
41
|
|
|
60
42
|
```bash
|
|
61
|
-
# Initialize with a specific preset
|
|
62
43
|
npx agents-templated@latest init --preset=nextjs # Next.js
|
|
63
44
|
npx agents-templated@latest init --preset=express-api # Express
|
|
64
45
|
npx agents-templated@latest init --preset=django-react # Django
|
|
65
46
|
npx agents-templated@latest init --preset=fastapi # FastAPI
|
|
66
47
|
npx agents-templated@latest init --preset=go-api # Go
|
|
67
|
-
|
|
68
|
-
# Or install all components without a preset
|
|
69
|
-
npx agents-templated@latest init --all
|
|
70
48
|
```
|
|
71
49
|
|
|
72
|
-
###
|
|
50
|
+
### 4. Install your tech stack
|
|
73
51
|
|
|
74
52
|
After initializing, install your chosen framework:
|
|
75
53
|
|
|
@@ -91,47 +69,59 @@ pip install sqlalchemy alembic # SQLAlchemy
|
|
|
91
69
|
npm install mongoose # Mongoose (MongoDB)
|
|
92
70
|
```
|
|
93
71
|
|
|
94
|
-
###
|
|
72
|
+
### 5. Run the specialist sequence
|
|
73
|
+
|
|
74
|
+
Start with a product objective, then move through specialist commands:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
agents-templated workflow
|
|
78
|
+
agents-templated problem-map "daily briefing assistant for founders"
|
|
79
|
+
agents-templated scope-shape "scope the first release"
|
|
80
|
+
agents-templated risk-review "audit branch changes before merge"
|
|
81
|
+
agents-templated release-ready "prepare release checklist"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 6. Start Coding with AI
|
|
95
85
|
|
|
96
86
|
Your AI assistant will auto-load the configurations and follow enterprise patterns automatically!
|
|
97
87
|
|
|
98
88
|
---
|
|
99
89
|
|
|
100
|
-
##
|
|
90
|
+
## Key Features
|
|
101
91
|
|
|
102
92
|
| Feature | Description |
|
|
103
93
|
|---------|-------------|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
94
|
+
| **Quick Start Presets** | 5 popular tech stack presets (Next.js, Express, Django, FastAPI, Go) |
|
|
95
|
+
| **Interactive Wizard** | Guided setup with personalized recommendations |
|
|
96
|
+
| **AI Agents Supported** | Cursor, GitHub Copilot, Claude, and generic agents via `AGENTS.MD` |
|
|
97
|
+
| **Deterministic Commands** | Slash-command contracts with strict structured outputs |
|
|
98
|
+
| **Intent-Routing Ready** | Command schema supports `slash-command-auto` mode for agent-side routing policies |
|
|
99
|
+
| **Security-First** | OWASP Top 10 protection patterns built-in |
|
|
100
|
+
| **Hardening Workflow** | Risk-based hardening rules plus verification/release gates |
|
|
101
|
+
| **Testing Strategy** | 80/15/5 coverage targets (unit/integration/e2e) |
|
|
102
|
+
| **Project Validation** | `validate` and `doctor` commands for health checks |
|
|
103
|
+
| **Template Updates** | Keep your templates in sync with `update` command |
|
|
104
|
+
| **Technology-Agnostic** | Works with React, Django, Go, FastAPI, Next.js, or any stack |
|
|
105
|
+
| **Accessibility** | WCAG 2.1 AA compliance patterns included |
|
|
116
106
|
|
|
117
107
|
---
|
|
118
108
|
|
|
119
|
-
##
|
|
109
|
+
## AI Agent Support
|
|
120
110
|
|
|
121
111
|
Agents Templated automatically configures compatible wrappers for major AI coding assistants:
|
|
122
112
|
|
|
123
113
|
| AI Agent | Config File | Auto-Discovery |
|
|
124
114
|
|----------|-------------|----------------|
|
|
125
|
-
| **Cursor** | `.cursorrules` |
|
|
126
|
-
| **GitHub Copilot** | `.github/copilot-instructions.md` |
|
|
127
|
-
| **Claude** | `CLAUDE.md` |
|
|
128
|
-
| **Generic agents** | `AGENTS.MD` |
|
|
115
|
+
| **Cursor** | `.cursorrules` | Auto-loads in Cursor IDE |
|
|
116
|
+
| **GitHub Copilot** | `.github/copilot-instructions.md` | Auto-loads in VS Code |
|
|
117
|
+
| **Claude** | `CLAUDE.md` | Compatible |
|
|
118
|
+
| **Generic agents** | `AGENTS.MD` | Compatible |
|
|
129
119
|
|
|
130
120
|
**Single source of truth:** `CLAUDE.md` drives generated tool-compatible instruction files.
|
|
131
121
|
|
|
132
122
|
---
|
|
133
123
|
|
|
134
|
-
##
|
|
124
|
+
## What Gets Installed
|
|
135
125
|
|
|
136
126
|
When you run `agents-templated init`, you get:
|
|
137
127
|
|
|
@@ -141,7 +131,7 @@ your-project/
|
|
|
141
131
|
│ └── source/
|
|
142
132
|
│ └── core.md # Canonical instruction source of truth
|
|
143
133
|
│
|
|
144
|
-
├── agent-docs/ #
|
|
134
|
+
├── agent-docs/ # Comprehensive documentation
|
|
145
135
|
│ ├── ARCHITECTURE.md # Project architecture & tech stack
|
|
146
136
|
│ └── README.md # Human-readable setup guide
|
|
147
137
|
│
|
|
@@ -173,7 +163,7 @@ your-project/
|
|
|
173
163
|
│ │ └── lessons-learned.md
|
|
174
164
|
│ └── agents/ # Optional subagents
|
|
175
165
|
│
|
|
176
|
-
├── agents/ #
|
|
166
|
+
├── agents/ # Deterministic command contracts
|
|
177
167
|
│ └── commands/
|
|
178
168
|
│ │ ├── SCHEMA.md # Global slash-command response schema
|
|
179
169
|
│ │ ├── plan.md # /plan contract
|
|
@@ -192,49 +182,74 @@ your-project/
|
|
|
192
182
|
|
|
193
183
|
---
|
|
194
184
|
|
|
195
|
-
##
|
|
185
|
+
## Command Reference
|
|
196
186
|
|
|
197
187
|
### Setup Commands
|
|
198
188
|
|
|
199
189
|
```bash
|
|
200
|
-
#
|
|
190
|
+
# Interactive wizard (recommended for beginners)
|
|
201
191
|
agents-templated wizard
|
|
202
192
|
|
|
203
|
-
#
|
|
193
|
+
# Quick start with presets
|
|
204
194
|
agents-templated init --preset=nextjs # Next.js full-stack
|
|
205
195
|
agents-templated init --preset=express-api # Express.js API
|
|
206
196
|
agents-templated init --preset=django-react # Django + React
|
|
207
197
|
agents-templated init --preset=fastapi # FastAPI
|
|
208
198
|
agents-templated init --preset=go-api # Go API
|
|
209
199
|
|
|
210
|
-
#
|
|
200
|
+
# Manual component selection
|
|
211
201
|
agents-templated init --all # All components
|
|
212
202
|
agents-templated init --docs # Documentation only
|
|
213
203
|
agents-templated init --rules # Agent rules only
|
|
214
204
|
agents-templated init --skills # Skills only
|
|
205
|
+
agents-templated init --commands # Command contracts only
|
|
215
206
|
|
|
216
|
-
#
|
|
207
|
+
# Force overwrite existing files
|
|
217
208
|
agents-templated init --all --force
|
|
218
209
|
```
|
|
219
210
|
|
|
220
211
|
### Maintenance Commands
|
|
221
212
|
|
|
222
213
|
```bash
|
|
223
|
-
#
|
|
214
|
+
# Validate your project setup
|
|
224
215
|
agents-templated validate # Quick validation
|
|
225
216
|
agents-templated doctor # Comprehensive health check
|
|
226
217
|
|
|
227
|
-
#
|
|
218
|
+
# Update templates to latest version
|
|
228
219
|
agents-templated update # Apply updates with backup
|
|
229
220
|
agents-templated update --check-only # Check without installing
|
|
230
221
|
|
|
231
|
-
#
|
|
222
|
+
# List available components and presets
|
|
232
223
|
agents-templated list
|
|
224
|
+
|
|
225
|
+
# Lifecycle workflow and specialist commands
|
|
226
|
+
agents-templated workflow
|
|
233
227
|
```
|
|
234
228
|
|
|
229
|
+
### Workflow Commands
|
|
230
|
+
|
|
231
|
+
These commands provide deterministic specialist guidance aligned to the sprint lifecycle:
|
|
232
|
+
|
|
233
|
+
| Command | Specialist | Primary Outcome |
|
|
234
|
+
|---------|------------|-----------------|
|
|
235
|
+
| `problem-map` | Problem Strategist | Clarify user pain and define the actual problem |
|
|
236
|
+
| `scope-shape` | Scope Director | Challenge scope and set high-leverage direction |
|
|
237
|
+
| `arch-check` | Architecture Reviewer | Lock architecture and edge-case coverage |
|
|
238
|
+
| `ux-bar` | Design Quality Lead | Raise UX quality before implementation |
|
|
239
|
+
| `debug-track` | Root-Cause Investigator | Reproduce and isolate root cause |
|
|
240
|
+
| `risk-review` | Release Risk Reviewer | Surface production-risk issues before merge |
|
|
241
|
+
| `quality-gate` | Quality Gatekeeper | Validate behavior and regression safety |
|
|
242
|
+
| `perf-scan` | Performance Analyst | Capture performance baseline and deltas |
|
|
243
|
+
| `release-ready` | Release Coordinator | Prepare release artifacts and final checks |
|
|
244
|
+
| `docs-sync` | Documentation Engineer | Sync docs with shipped behavior |
|
|
245
|
+
| `learn-loop` | Iteration Lead | Capture lessons and next-cycle actions |
|
|
246
|
+
|
|
247
|
+
Each command maps to deterministic contract files in `agents/commands/` and uses the schema in `agents/commands/SCHEMA.md`.
|
|
248
|
+
|
|
249
|
+
|
|
235
250
|
---
|
|
236
251
|
|
|
237
|
-
##
|
|
252
|
+
## After Installation: Next Steps
|
|
238
253
|
|
|
239
254
|
### 1. Install Your Tech Stack
|
|
240
255
|
|
|
@@ -323,15 +338,15 @@ Your AI will follow the enterprise patterns automatically!
|
|
|
323
338
|
|
|
324
339
|
---
|
|
325
340
|
|
|
326
|
-
##
|
|
341
|
+
## Core Principles
|
|
327
342
|
|
|
328
343
|
### Security-First Development
|
|
329
344
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
345
|
+
- Validate all inputs at application boundaries with schema validation
|
|
346
|
+
- Authenticate and authorize every protected endpoint
|
|
347
|
+
- Rate limit public endpoints to prevent abuse
|
|
348
|
+
- Sanitize outputs to prevent injection attacks
|
|
349
|
+
- Never expose sensitive data in error messages or logs
|
|
335
350
|
|
|
336
351
|
**Reference**: [.claude/rules/security.md](.claude/rules/security.md)
|
|
337
352
|
|
|
@@ -357,7 +372,7 @@ Your AI will follow the enterprise patterns automatically!
|
|
|
357
372
|
|
|
358
373
|
---
|
|
359
374
|
|
|
360
|
-
##
|
|
375
|
+
## Available Presets
|
|
361
376
|
|
|
362
377
|
| Preset | Tech Stack | Best For |
|
|
363
378
|
|--------|-----------|----------|
|
|
@@ -375,7 +390,7 @@ Each preset includes:
|
|
|
375
390
|
|
|
376
391
|
---
|
|
377
392
|
|
|
378
|
-
##
|
|
393
|
+
## Programmatic API
|
|
379
394
|
|
|
380
395
|
Use agents-templated in your build scripts or automation:
|
|
381
396
|
|
|
@@ -399,7 +414,7 @@ await agentsTemplated.install('./my-project', {
|
|
|
399
414
|
|
|
400
415
|
---
|
|
401
416
|
|
|
402
|
-
##
|
|
417
|
+
## Usage Examples
|
|
403
418
|
|
|
404
419
|
### Frontend Development
|
|
405
420
|
```
|
|
@@ -424,7 +439,7 @@ await agentsTemplated.install('./my-project', {
|
|
|
424
439
|
|
|
425
440
|
---
|
|
426
441
|
|
|
427
|
-
##
|
|
442
|
+
## Contributing
|
|
428
443
|
|
|
429
444
|
When contributing to this template:
|
|
430
445
|
1. Maintain technology-agnostic patterns
|
|
@@ -437,13 +452,13 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
|
|
|
437
452
|
|
|
438
453
|
---
|
|
439
454
|
|
|
440
|
-
##
|
|
455
|
+
## License
|
|
441
456
|
|
|
442
457
|
MIT License - See [LICENSE](LICENSE) for details.
|
|
443
458
|
|
|
444
459
|
---
|
|
445
460
|
|
|
446
|
-
##
|
|
461
|
+
## Links
|
|
447
462
|
|
|
448
463
|
- **NPM Package**: https://www.npmjs.com/package/agents-templated
|
|
449
464
|
- **GitHub Repository**: https://github.com/rickandrew2/agents-templated
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Deterministic Slash Command Contracts
|
|
2
|
+
|
|
3
|
+
This directory is the modular source of truth for slash-command execution contracts.
|
|
4
|
+
|
|
5
|
+
- Global protocol and safety framework: `AGENTS.MD` → `Deterministic Slash Command System Standard`
|
|
6
|
+
- Global response schema: `agents/commands/SCHEMA.md`
|
|
7
|
+
- Command contracts:
|
|
8
|
+
- `plan.md`
|
|
9
|
+
- `task.md`
|
|
10
|
+
- `scaffold.md`
|
|
11
|
+
- `fix.md`
|
|
12
|
+
- `refactor.md`
|
|
13
|
+
- `audit.md`
|
|
14
|
+
- `perf.md`
|
|
15
|
+
- `test.md`
|
|
16
|
+
- `pr.md`
|
|
17
|
+
- `release.md`
|
|
18
|
+
- `docs.md`
|
|
19
|
+
- `problem-map.md`
|
|
20
|
+
- `scope-shape.md`
|
|
21
|
+
- `arch-check.md`
|
|
22
|
+
- `ux-bar.md`
|
|
23
|
+
- `debug-track.md`
|
|
24
|
+
- `risk-review.md`
|
|
25
|
+
- `quality-gate.md`
|
|
26
|
+
- `perf-scan.md`
|
|
27
|
+
- `release-ready.md`
|
|
28
|
+
- `docs-sync.md`
|
|
29
|
+
- `learn-loop.md`
|
|
30
|
+
|
|
31
|
+
Execution requirements:
|
|
32
|
+
- Parse slash commands deterministically.
|
|
33
|
+
- Return structured output only.
|
|
34
|
+
- No conversational fallback in slash mode.
|
|
35
|
+
- Enforce destructive confirmation token: `CONFIRM-DESTRUCTIVE:<target>`.
|
|
36
|
+
- Enforce unique command purpose for each primary workflow command.
|
|
37
|
+
|
|
38
|
+
## Command Integrity Guards
|
|
39
|
+
|
|
40
|
+
- Primary workflow commands must have unique purpose identifiers.
|
|
41
|
+
- Duplicate command purpose definitions fail CLI startup validation.
|
|
42
|
+
- Deprecated aliases are not part of the active command surface.
|
|
43
|
+
|
|
44
|
+
## Publish Inclusion
|
|
45
|
+
|
|
46
|
+
The npm package includes command contracts from both:
|
|
47
|
+
|
|
48
|
+
- `agents/commands/` (root mirror)
|
|
49
|
+
- `templates/agents/commands/` (scaffold source)
|
|
50
|
+
|
|
51
|
+
## Workflow Command Mapping
|
|
52
|
+
|
|
53
|
+
Use these lifecycle commands as the recommended specialist sequence:
|
|
54
|
+
|
|
55
|
+
- `problem-map` -> `plan.md`
|
|
56
|
+
- `scope-shape` -> `plan.md`
|
|
57
|
+
- `arch-check` -> `plan.md`
|
|
58
|
+
- `ux-bar` -> `plan.md`
|
|
59
|
+
- `debug-track` -> `fix.md`
|
|
60
|
+
- `risk-review` -> `audit.md`
|
|
61
|
+
- `quality-gate` -> `test.md`
|
|
62
|
+
- `perf-scan` -> `perf.md`
|
|
63
|
+
- `release-ready` -> `release.md`
|
|
64
|
+
- `docs-sync` -> `docs.md`
|
|
65
|
+
- `learn-loop` -> `task.md`
|
|
66
|
+
|
|
67
|
+
The CLI command `agents-templated workflow` prints this lifecycle in order:
|
|
68
|
+
|
|
69
|
+
Think -> Plan -> Build -> Review -> Test -> Ship -> Reflect
|
|
70
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Slash Command Output Schema
|
|
2
|
+
|
|
3
|
+
All slash command responses MUST include the following top-level fields:
|
|
4
|
+
|
|
5
|
+
- `command`
|
|
6
|
+
- `execution_id`
|
|
7
|
+
- `mode`
|
|
8
|
+
- `status`
|
|
9
|
+
- `inputs`
|
|
10
|
+
- `prechecks`
|
|
11
|
+
- `execution_log`
|
|
12
|
+
- `artifacts`
|
|
13
|
+
- `risks`
|
|
14
|
+
- `safety_checks`
|
|
15
|
+
- `stop_condition`
|
|
16
|
+
- `next_action`
|
|
17
|
+
|
|
18
|
+
Constraints:
|
|
19
|
+
- `mode` MUST be one of: `slash-command`, `slash-command-auto`.
|
|
20
|
+
- `status` MUST be one of: `completed`, `blocked`, `failed`.
|
|
21
|
+
- If a field value is unknown, set it to `null`.
|
|
22
|
+
- Unknown or malformed slash commands MUST return structured error output and stop.
|
|
@@ -0,0 +1,33 @@
|
|
|
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.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# /audit
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Run structured engineering audit across security, correctness, and maintainability.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
Use before high-impact merges, releases, and external reviews.
|
|
8
|
+
|
|
9
|
+
## C. Required Inputs
|
|
10
|
+
- Audit scope
|
|
11
|
+
- Risk profile
|
|
12
|
+
- Compliance baseline
|
|
13
|
+
- Hardening profile requirement (if applicable)
|
|
14
|
+
|
|
15
|
+
## D. Deterministic Execution Flow
|
|
16
|
+
1. Resolve audit scope.
|
|
17
|
+
2. Run static checks.
|
|
18
|
+
3. Run security checks.
|
|
19
|
+
4. Run dependency/config checks.
|
|
20
|
+
5. Verify hardening evidence when hardening-required profile applies.
|
|
21
|
+
6. Classify findings by severity.
|
|
22
|
+
7. Emit audit report.
|
|
23
|
+
|
|
24
|
+
## E. Structured Output Template
|
|
25
|
+
- `scope`
|
|
26
|
+
- `checks_executed[]`
|
|
27
|
+
- `findings[]`
|
|
28
|
+
- `severity_summary`
|
|
29
|
+
- `remediation_plan[]`
|
|
30
|
+
- `hardening_evidence_status`
|
|
31
|
+
|
|
32
|
+
## F. Stop Conditions
|
|
33
|
+
- Inaccessible scope.
|
|
34
|
+
- Unavailable tooling.
|
|
35
|
+
|
|
36
|
+
## G. Safety Constraints
|
|
37
|
+
- Classify secret leaks and auth bypass as critical.
|
|
38
|
+
- Classify missing hardening verification evidence as release-blocking when hardening is required.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# /debug-track
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Produce a root-cause-first defect investigation path with bounded fixes.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
Use for bugs, regressions, and unexpected runtime behavior.
|
|
8
|
+
|
|
9
|
+
## C. Required Inputs
|
|
10
|
+
- Defect symptom
|
|
11
|
+
- Reproduction context
|
|
12
|
+
- Expected behavior
|
|
13
|
+
|
|
14
|
+
## D. Deterministic Execution Flow
|
|
15
|
+
1. Reproduce defect consistently.
|
|
16
|
+
2. Trace data and execution path.
|
|
17
|
+
3. Confirm root cause with evidence.
|
|
18
|
+
4. Propose minimal patch.
|
|
19
|
+
5. Validate fix and regression safety.
|
|
20
|
+
|
|
21
|
+
## E. Structured Output Template
|
|
22
|
+
- `reproduction_steps[]`
|
|
23
|
+
- `root_cause`
|
|
24
|
+
- `affected_surface[]`
|
|
25
|
+
- `patch_plan`
|
|
26
|
+
- `regression_checks[]`
|
|
27
|
+
|
|
28
|
+
## F. Stop Conditions
|
|
29
|
+
- Defect not reproducible.
|
|
30
|
+
- Root cause remains unverified.
|
|
31
|
+
|
|
32
|
+
## G. Safety Constraints
|
|
33
|
+
- Do not patch symptoms without root-cause evidence.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# /docs-sync
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Keep documentation aligned with shipped behavior and contract changes.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
Use after implementation or release-prep changes.
|
|
8
|
+
|
|
9
|
+
## C. Required Inputs
|
|
10
|
+
- Code changes summary
|
|
11
|
+
- Updated behavior/contracts
|
|
12
|
+
- Target documentation set
|
|
13
|
+
|
|
14
|
+
## D. Deterministic Execution Flow
|
|
15
|
+
1. Identify behavior and API changes.
|
|
16
|
+
2. Locate affected docs.
|
|
17
|
+
3. Update docs with minimal accurate edits.
|
|
18
|
+
4. Verify examples and command references.
|
|
19
|
+
5. Emit documentation update summary.
|
|
20
|
+
|
|
21
|
+
## E. Structured Output Template
|
|
22
|
+
- `docs_updated[]`
|
|
23
|
+
- `behavior_changes[]`
|
|
24
|
+
- `contract_updates[]`
|
|
25
|
+
- `example_checks[]`
|
|
26
|
+
- `remaining_doc_gaps[]`
|
|
27
|
+
|
|
28
|
+
## F. Stop Conditions
|
|
29
|
+
- Behavior changed with no corresponding doc update.
|
|
30
|
+
- Example commands are unverified.
|
|
31
|
+
|
|
32
|
+
## G. Safety Constraints
|
|
33
|
+
- Do not publish stale setup or command instructions.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# /docs
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Generate or update documentation aligned to implemented behavior.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
Use when code, APIs, operations, or workflows change.
|
|
8
|
+
|
|
9
|
+
## C. Required Inputs
|
|
10
|
+
- Documentation scope
|
|
11
|
+
- Source changes
|
|
12
|
+
- Target audience
|
|
13
|
+
|
|
14
|
+
## D. Deterministic Execution Flow
|
|
15
|
+
1. Resolve source-of-truth artifacts.
|
|
16
|
+
2. Extract behavior and API deltas.
|
|
17
|
+
3. Map deltas to sections.
|
|
18
|
+
4. Apply concise updates.
|
|
19
|
+
5. Validate examples/commands.
|
|
20
|
+
6. Emit docs change report.
|
|
21
|
+
|
|
22
|
+
## E. Structured Output Template
|
|
23
|
+
- `scope`
|
|
24
|
+
- `sources[]`
|
|
25
|
+
- `sections_updated[]`
|
|
26
|
+
- `example_validation`
|
|
27
|
+
- `follow_up_actions[]`
|
|
28
|
+
|
|
29
|
+
## F. Stop Conditions
|
|
30
|
+
- Missing source artifacts.
|
|
31
|
+
- Unresolved ambiguity.
|
|
32
|
+
|
|
33
|
+
## G. Safety Constraints
|
|
34
|
+
- Do not publish secrets, tokens, or credentials.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# /fix
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Apply the smallest safe change that resolves a verified defect.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
Use for bugs with reproducible evidence.
|
|
8
|
+
|
|
9
|
+
## C. Required Inputs
|
|
10
|
+
- Defect description
|
|
11
|
+
- Reproduction evidence
|
|
12
|
+
- Target scope
|
|
13
|
+
|
|
14
|
+
## D. Deterministic Execution Flow
|
|
15
|
+
1. Validate defect evidence.
|
|
16
|
+
2. Reproduce failure.
|
|
17
|
+
3. Locate root cause.
|
|
18
|
+
4. Generate minimal patch.
|
|
19
|
+
5. Execute targeted validation.
|
|
20
|
+
6. Emit fix report.
|
|
21
|
+
|
|
22
|
+
## E. Structured Output Template
|
|
23
|
+
- `defect_id`
|
|
24
|
+
- `root_cause`
|
|
25
|
+
- `patch_summary`
|
|
26
|
+
- `files_changed[]`
|
|
27
|
+
- `validation_results[]`
|
|
28
|
+
|
|
29
|
+
## F. Stop Conditions
|
|
30
|
+
- Non-reproducible failure.
|
|
31
|
+
- Root cause unresolved.
|
|
32
|
+
|
|
33
|
+
## G. Safety Constraints
|
|
34
|
+
- Do not broaden scope beyond defect boundary.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# /learn-loop
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Capture delivery lessons and convert them into concrete next-cycle actions.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
Use after release or milestone completion.
|
|
8
|
+
|
|
9
|
+
## C. Required Inputs
|
|
10
|
+
- Completed work summary
|
|
11
|
+
- Incident/defect outcomes
|
|
12
|
+
- Team or process observations
|
|
13
|
+
|
|
14
|
+
## D. Deterministic Execution Flow
|
|
15
|
+
1. Summarize wins and misses.
|
|
16
|
+
2. Identify repeated friction points.
|
|
17
|
+
3. Propose concrete process and tooling actions.
|
|
18
|
+
4. Assign ownership and priority.
|
|
19
|
+
5. Emit next-cycle action list.
|
|
20
|
+
|
|
21
|
+
## E. Structured Output Template
|
|
22
|
+
- `wins[]`
|
|
23
|
+
- `misses[]`
|
|
24
|
+
- `root_process_issues[]`
|
|
25
|
+
- `next_actions[]`
|
|
26
|
+
- `owner_map`
|
|
27
|
+
|
|
28
|
+
## F. Stop Conditions
|
|
29
|
+
- No actionable next steps.
|
|
30
|
+
- Lessons are not tied to observable outcomes.
|
|
31
|
+
|
|
32
|
+
## G. Safety Constraints
|
|
33
|
+
- Avoid vague retrospectives without owned follow-through actions.
|