@softspark/ai-toolkit 1.1.0 → 1.2.1
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/CHANGELOG.md +38 -0
- package/README.md +75 -15
- package/app/.claude-plugin/plugin.json +2 -2
- package/app/ARCHITECTURE.md +7 -5
- package/app/hooks/pre-compact.sh +44 -10
- package/app/personas/backend-lead.md +27 -0
- package/app/personas/devops-eng.md +27 -0
- package/app/personas/frontend-lead.md +26 -0
- package/app/personas/junior-dev.md +28 -0
- package/app/rules/claude-toolkit-rules.md +1 -1
- package/app/skills/api-patterns/SKILL.md +1 -0
- package/app/skills/app-builder/SKILL.md +1 -0
- package/app/skills/ci-cd-patterns/SKILL.md +1 -0
- package/app/skills/clean-code/SKILL.md +1 -0
- package/app/skills/csharp-patterns/SKILL.md +1 -0
- package/app/skills/database-patterns/SKILL.md +1 -0
- package/app/skills/debugging-tactics/SKILL.md +1 -1
- package/app/skills/design-engineering/SKILL.md +1 -0
- package/app/skills/docker-devops/SKILL.md +1 -0
- package/app/skills/documentation-standards/SKILL.md +1 -0
- package/app/skills/ecommerce-patterns/SKILL.md +1 -0
- package/app/skills/flutter-patterns/SKILL.md +1 -0
- package/app/skills/git-mastery/SKILL.md +1 -1
- package/app/skills/hive-mind/SKILL.md +1 -0
- package/app/skills/java-patterns/SKILL.md +1 -0
- package/app/skills/kotlin-patterns/SKILL.md +1 -0
- package/app/skills/mcp-patterns/SKILL.md +1 -0
- package/app/skills/migration-patterns/SKILL.md +1 -0
- package/app/skills/observability-patterns/SKILL.md +1 -0
- package/app/skills/onboard/SKILL.md +2 -0
- package/app/skills/orchestrate/SKILL.md +1 -1
- package/app/skills/performance-profiling/SKILL.md +1 -1
- package/app/skills/persona/SKILL.md +57 -0
- package/app/skills/plan-writing/SKILL.md +1 -0
- package/app/skills/pr/scripts/pr-summary.py +6 -3
- package/app/skills/rag-patterns/SKILL.md +1 -0
- package/app/skills/research-mastery/SKILL.md +1 -0
- package/app/skills/ruby-patterns/SKILL.md +1 -0
- package/app/skills/rust-patterns/SKILL.md +1 -0
- package/app/skills/security-patterns/SKILL.md +1 -0
- package/app/skills/skill-audit/SKILL.md +137 -0
- package/app/skills/subagent-development/SKILL.md +1 -1
- package/app/skills/swarm/SKILL.md +1 -1
- package/app/skills/swift-patterns/SKILL.md +1 -1
- package/app/skills/teams/SKILL.md +1 -1
- package/app/skills/testing-patterns/SKILL.md +1 -0
- package/app/skills/typescript-patterns/SKILL.md +1 -0
- package/app/skills/verification-before-completion/SKILL.md +1 -0
- package/app/skills/workflow/SKILL.md +1 -1
- package/kb/reference/architecture-overview.md +28 -5
- package/kb/reference/hooks-catalog.md +6 -4
- package/kb/reference/skills-catalog.md +8 -6
- package/llms.txt +2 -2
- package/package.json +3 -2
- package/scripts/audit_skills.py +290 -0
- package/scripts/generate_augment.py +46 -0
- package/scripts/install.py +32 -2
- package/scripts/install_steps/ai_tools.py +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,44 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [1.2.1] - 2026-04-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- **README.md** — added full documentation for all v1.2.0 features:
|
|
14
|
+
- `/persona` runtime switching with usage examples
|
|
15
|
+
- `audit_skills.py` CI pipeline integration with `--json` and `--ci` flags
|
|
16
|
+
- Skill Security Auditing section (severity levels, detection patterns)
|
|
17
|
+
- Persona Presets section (table with focus areas and key skills per role)
|
|
18
|
+
- Smart compaction description in hooks table
|
|
19
|
+
- Fixed section numbering (was duplicated at 4, skipped 10)
|
|
20
|
+
- **CLAUDE.md** — added CRITICAL note: documentation/count accuracy is non-negotiable, must run validate + audit before every commit
|
|
21
|
+
- **skills-catalog.md** — fixed stale frontmatter (was 85 skills/v1.0.0, now 87 skills/v1.2.1)
|
|
22
|
+
- Version bump: 1.2.0 → 1.2.1 (package.json, plugin.json)
|
|
23
|
+
|
|
24
|
+
[1.2.1]: https://github.com/softspark/ai-toolkit/releases/tag/v1.2.1
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## [1.2.0] - 2026-04-03
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
- **`/skill-audit` skill** — security scanner for skills and agents: detects dangerous code patterns (`eval`, `exec`, `os.system`), hardcoded secrets (AWS keys, GitHub PATs, private keys), overly permissive `allowed-tools`, and missing safety constraints. Supports `--fix` for auto-remediation of safe issues. CI-ready (non-zero exit on HIGH findings).
|
|
32
|
+
- **Persona presets** (`--persona` flag) — 4 engineering personas: `backend-lead`, `frontend-lead`, `devops-eng`, `junior-dev`. Each injects role-specific communication style, preferred skills, and code review priorities into CLAUDE.md. Usage: `ai-toolkit install --persona backend-lead`.
|
|
33
|
+
- **`/persona` runtime switching** — new hybrid skill to switch persona at runtime without re-install. Usage: `/persona backend-lead`, `/persona --list`, `/persona --clear`. Session-scoped.
|
|
34
|
+
- **Augment editor support** — `scripts/generate_augment.py` generates `.augment/rules/ai-toolkit.md` with proper frontmatter (`type: always_apply`). Registered in global install.
|
|
35
|
+
- **`scripts/audit_skills.py`** — deterministic Python scanner for CI pipelines. Scans skills/agents for dangerous patterns, secrets, permission issues. JSON output (`--json`), non-zero exit on HIGH (`--ci`). Found 4 real HIGH findings in our own toolkit.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- **Smart compaction** (`pre-compact.sh`) — enhanced with prioritized context preservation: instincts (with confidence scores) > session context > git state (branch, dirty files, last commit) > key decisions. Replaces flat output with structured sections.
|
|
39
|
+
- Editor count: 8 → 9 (added Augment)
|
|
40
|
+
- Skill count: 85 → 87 (added `skill-audit`, `persona`)
|
|
41
|
+
- Task skill count: 27 → 28 (`skill-audit`)
|
|
42
|
+
- Hybrid skill count: 27 → 28 (`persona`)
|
|
43
|
+
|
|
44
|
+
[1.2.0]: https://github.com/softspark/ai-toolkit/releases/tag/v1.2.0
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
10
48
|
## [1.1.0] - 2026-04-02
|
|
11
49
|
|
|
12
50
|
### Added
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# ai-toolkit
|
|
2
2
|
|
|
3
|
-
> Professional-grade AI coding toolkit with multi-platform support. Machine-enforced safety,
|
|
3
|
+
> Professional-grade AI coding toolkit with multi-platform support. Machine-enforced safety, 87 skills, 47 agents, expanded lifecycle hooks, persona presets, experimental opt-in plugin packs, and benchmark tooling — works with Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, Aider, and Augment, ready in 60 seconds.
|
|
4
4
|
|
|
5
5
|
[](https://github.com/softspark/ai-toolkit/actions/workflows/ci.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
|
-
[](app/skills/)
|
|
8
8
|
[](app/agents/)
|
|
9
9
|
[](tests/)
|
|
10
10
|
|
|
@@ -21,7 +21,7 @@ ai-toolkit install
|
|
|
21
21
|
npx @softspark/ai-toolkit install
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
**That's it.** Claude Code picks up
|
|
24
|
+
**That's it.** Claude Code picks up 87 skills, 47 agents, quality hooks, and the safety constitution automatically.
|
|
25
25
|
|
|
26
26
|
### Update
|
|
27
27
|
|
|
@@ -59,6 +59,27 @@ ai-toolkit install --profile standard # full install (default)
|
|
|
59
59
|
ai-toolkit install --profile strict # full install + git hooks even without --local
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
### Persona Presets
|
|
63
|
+
|
|
64
|
+
Personas adjust communication style, preferred skills, and code review priorities per engineering role.
|
|
65
|
+
|
|
66
|
+
**Install-time (persistent — injected into CLAUDE.md):**
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
ai-toolkit install --persona backend-lead # system design, API stability, data integrity
|
|
70
|
+
ai-toolkit install --persona frontend-lead # component architecture, a11y, Core Web Vitals
|
|
71
|
+
ai-toolkit install --persona devops-eng # infra-as-code, CI/CD, rollback safety
|
|
72
|
+
ai-toolkit install --persona junior-dev # step-by-step explanations, learning focus
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Runtime (session-scoped — no reinstall needed):**
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
/persona backend-lead # activate for this session
|
|
79
|
+
/persona --list # show available personas
|
|
80
|
+
/persona --clear # reset to default
|
|
81
|
+
```
|
|
82
|
+
|
|
62
83
|
### Selective Install / Update
|
|
63
84
|
|
|
64
85
|
```bash
|
|
@@ -111,8 +132,8 @@ Replaces all symlinks with real files, inlines rules into CLAUDE.md, copies cons
|
|
|
111
132
|
|
|
112
133
|
| Component | Count | Description |
|
|
113
134
|
|-----------|-------|-------------|
|
|
114
|
-
| `skills/` (task) |
|
|
115
|
-
| `skills/` (hybrid) |
|
|
135
|
+
| `skills/` (task) | 28 | Slash commands: `/commit`, `/build`, `/deploy`, `/test`, `/skill-audit`, ... |
|
|
136
|
+
| `skills/` (hybrid) | 28 | Slash commands with agent knowledge base |
|
|
116
137
|
| `skills/` (knowledge) | 31 | Domain knowledge auto-loaded by agents |
|
|
117
138
|
| `agents/` | 47 | Specialized agents across 10 categories |
|
|
118
139
|
| `hooks/` | 15 global + 5 skill-scoped | Quality gates, path safety, CLAUDE.md enforcement, notifications, prompt governance, subagent lifecycle, session-end handoff, usage tracking |
|
|
@@ -134,7 +155,7 @@ ai-toolkit/
|
|
|
134
155
|
│ │ ├── backend-specialist.md
|
|
135
156
|
│ │ ├── security-architect.md
|
|
136
157
|
│ │ └── ... (44 more)
|
|
137
|
-
│ ├── skills/ #
|
|
158
|
+
│ ├── skills/ # 87 skills (task / hybrid / knowledge)
|
|
138
159
|
│ │ ├── commit/ # /commit slash command
|
|
139
160
|
│ │ ├── review/ # /review slash command
|
|
140
161
|
│ │ ├── clean-code/ # knowledge skill (auto-loaded)
|
|
@@ -192,6 +213,7 @@ ai-toolkit/
|
|
|
192
213
|
| `/command-creator` | Scaffold a new slash command with frontmatter and workflow guidance | high |
|
|
193
214
|
| `/agent-creator` | Scaffold a new specialized agent with tools and trigger guidance | high |
|
|
194
215
|
| `/plugin-creator` | Scaffold an experimental plugin pack with manifest and optional modules | high |
|
|
216
|
+
| `/skill-audit` | Scan skills/agents for security risks: dangerous patterns, secrets, permissions | medium |
|
|
195
217
|
| `/analyze` | Code quality, complexity, and pattern analysis | medium |
|
|
196
218
|
| `/fix` | Auto-fix lint/type errors | low |
|
|
197
219
|
| `/build` | Build with issue detection | low |
|
|
@@ -212,6 +234,7 @@ ai-toolkit/
|
|
|
212
234
|
| `/subagent-development` | Execute plans with 2-stage review (spec + quality) per task | high |
|
|
213
235
|
| `/repeat` | Autonomous loop with safety controls (Ralph Wiggum pattern) | medium |
|
|
214
236
|
| `/mem-search` | Search past coding sessions via natural language (memory-pack) | medium |
|
|
237
|
+
| `/persona` | Switch engineering persona at runtime (session-scoped) | low |
|
|
215
238
|
|
|
216
239
|
### `/workflow` Types
|
|
217
240
|
|
|
@@ -264,7 +287,7 @@ Hook logic lives in `app/hooks/*.sh` — not inline JSON one-liners. Scripts are
|
|
|
264
287
|
| TaskCompleted | `quality-gate.sh` | Block task completion on lint/type errors |
|
|
265
288
|
| SubagentStart | `subagent-start.sh` | Narrow-scope reminder for spawned subagents |
|
|
266
289
|
| SubagentStop | `subagent-stop.sh` | Completion checklist for subagent handoff |
|
|
267
|
-
| PreCompact | `pre-compact.sh` |
|
|
290
|
+
| PreCompact | `pre-compact.sh` | Smart compaction: prioritized context (instincts > tasks > git state > decisions) |
|
|
268
291
|
| SessionEnd | `session-end.sh` | Persist a session-end handoff note |
|
|
269
292
|
| TeammateIdle | *(inline)* | Completeness reminder |
|
|
270
293
|
|
|
@@ -278,7 +301,29 @@ Hook logic lives in `app/hooks/*.sh` — not inline JSON one-liners. Scripts are
|
|
|
278
301
|
| `/migrate` | Pre | Backup verification |
|
|
279
302
|
| `/rollback` | Post | State verification |
|
|
280
303
|
|
|
281
|
-
### 3.
|
|
304
|
+
### 3. Skill Security Auditing
|
|
305
|
+
|
|
306
|
+
Scan all skills and agents for security risks — both interactively and in CI:
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
# Interactive (Claude provides remediation suggestions)
|
|
310
|
+
/skill-audit
|
|
311
|
+
|
|
312
|
+
# Deterministic Python scanner for CI pipelines
|
|
313
|
+
python3 scripts/audit_skills.py # human-readable report
|
|
314
|
+
python3 scripts/audit_skills.py --json # machine-readable JSON
|
|
315
|
+
python3 scripts/audit_skills.py --ci # exit 1 on any HIGH finding
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**What it detects:**
|
|
319
|
+
- Dangerous code: `eval()`, `exec()`, `subprocess(shell=True)`, `pickle.loads`
|
|
320
|
+
- Hardcoded secrets: AWS keys, GitHub PATs, private keys, API tokens
|
|
321
|
+
- Permission issues: knowledge skills with Bash, missing `allowed-tools`
|
|
322
|
+
- Bash risks: `curl | bash`, `chmod 777`, unquoted variables
|
|
323
|
+
|
|
324
|
+
**Severity levels:** HIGH (blocks CI), WARN (should fix), INFO (review)
|
|
325
|
+
|
|
326
|
+
### 4. Effort-Based Model Budgeting
|
|
282
327
|
|
|
283
328
|
Every skill declares an effort level used for model token budgeting:
|
|
284
329
|
- `low` — lint, build, fix (fast, cheap)
|
|
@@ -286,7 +331,7 @@ Every skill declares an effort level used for model token budgeting:
|
|
|
286
331
|
- `high` — review, plan, refactor, docs
|
|
287
332
|
- `max` — orchestrate, swarm, workflow
|
|
288
333
|
|
|
289
|
-
###
|
|
334
|
+
### 5. Multi-Language Quality Gates
|
|
290
335
|
|
|
291
336
|
The `Stop` hook runs after every response across 5 languages:
|
|
292
337
|
|
|
@@ -298,7 +343,7 @@ The `Stop` hook runs after every response across 5 languages:
|
|
|
298
343
|
| Dart | dart analyze | dart analyze |
|
|
299
344
|
| Go | go vet | go vet |
|
|
300
345
|
|
|
301
|
-
###
|
|
346
|
+
### 6. Iron Law Enforcement
|
|
302
347
|
|
|
303
348
|
Three skills enforce non-negotiable quality gates with anti-rationalization tables:
|
|
304
349
|
|
|
@@ -308,7 +353,7 @@ Three skills enforce non-negotiable quality gates with anti-rationalization tabl
|
|
|
308
353
|
| `debugging-tactics` | `NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST` | 4-phase debugging: root cause → pattern → hypothesis → fix. 3+ failed fixes → question architecture. |
|
|
309
354
|
| `verification-before-completion` | `NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE` | Gate function: IDENTIFY → RUN → READ → VERIFY → CLAIM. "Should work now" is not evidence. |
|
|
310
355
|
|
|
311
|
-
###
|
|
356
|
+
### 7. Two-Stage Review (`/subagent-development`)
|
|
312
357
|
|
|
313
358
|
Per-task review pipeline inspired by [obra/superpowers](https://github.com/obra/superpowers):
|
|
314
359
|
|
|
@@ -321,7 +366,7 @@ Implementer → Spec Compliance Review → Code Quality Review → Next Task
|
|
|
321
366
|
- Quality reviewer checks: SOLID, naming, error handling, tests, security
|
|
322
367
|
- Prompt templates included: `reference/implementer-prompt.md`, `spec-reviewer-prompt.md`, `code-quality-reviewer-prompt.md`
|
|
323
368
|
|
|
324
|
-
###
|
|
369
|
+
### 8. Ralph Wiggum Loop (`/repeat`)
|
|
325
370
|
|
|
326
371
|
Autonomous agent loop with safety controls:
|
|
327
372
|
|
|
@@ -340,7 +385,7 @@ Autonomous agent loop with safety controls:
|
|
|
340
385
|
|
|
341
386
|
Constitution Article I, Section 4 enforces these limits.
|
|
342
387
|
|
|
343
|
-
###
|
|
388
|
+
### 9. Visual Brainstorming Companion
|
|
344
389
|
|
|
345
390
|
Optional browser-based companion for `/write-a-prd` and `/design-an-interface`:
|
|
346
391
|
|
|
@@ -349,7 +394,7 @@ Optional browser-based companion for `/write-a-prd` and `/design-an-interface`:
|
|
|
349
394
|
- Per-question routing: mockups/diagrams → browser, text/conceptual → terminal
|
|
350
395
|
- Consent-based: offered once as its own message, never forced
|
|
351
396
|
|
|
352
|
-
###
|
|
397
|
+
### 10. Persistent Memory (`memory-pack` plugin)
|
|
353
398
|
|
|
354
399
|
SQLite-based session memory (opt-in plugin pack):
|
|
355
400
|
|
|
@@ -363,7 +408,20 @@ SQLite-based session memory (opt-in plugin pack):
|
|
|
363
408
|
|
|
364
409
|
|
|
365
410
|
|
|
366
|
-
### 11.
|
|
411
|
+
### 11. Persona Presets
|
|
412
|
+
|
|
413
|
+
4 engineering personas that adjust Claude's communication style per role:
|
|
414
|
+
|
|
415
|
+
| Persona | Focus | Key Skills |
|
|
416
|
+
|---------|-------|------------|
|
|
417
|
+
| `backend-lead` | System design, scalability, data integrity | `/workflow backend-feature`, `/tdd` |
|
|
418
|
+
| `frontend-lead` | Component architecture, a11y, Core Web Vitals | `/design-an-interface`, `/review` |
|
|
419
|
+
| `devops-eng` | IaC, CI/CD, blast radius, rollback safety | `/workflow infrastructure-change`, `/deploy` |
|
|
420
|
+
| `junior-dev` | Step-by-step explanations, learning focus | `/explain`, `/explore`, `/debug` |
|
|
421
|
+
|
|
422
|
+
Persistent via `--persona` at install time, or session-scoped via `/persona` runtime command.
|
|
423
|
+
|
|
424
|
+
### 12. KB Integration Protocol
|
|
367
425
|
|
|
368
426
|
Agents follow a research-before-action protocol enforced via rules:
|
|
369
427
|
1. `smart_query()` or `hybrid_search_kb()` before any technical answer
|
|
@@ -563,6 +621,7 @@ Usage: ai-toolkit <command> [options]
|
|
|
563
621
|
| `cline-rules` | Generate `.clinerules` in current dir |
|
|
564
622
|
| `roo-modes` | Generate `.roomodes` in current dir |
|
|
565
623
|
| `aider-conf` | Generate `.aider.conf.yml` in current dir |
|
|
624
|
+
| `augment-rules` | Generate `.augment/rules/ai-toolkit.md` in current dir |
|
|
566
625
|
| `agents-md` | Regenerate `AGENTS.md` from agent definitions |
|
|
567
626
|
| `llms-txt` | Generate `llms.txt` and `llms-full.txt` |
|
|
568
627
|
| `generate-all` | Generate all platform configs at once |
|
|
@@ -574,6 +633,7 @@ Usage: ai-toolkit <command> [options]
|
|
|
574
633
|
ai-toolkit install --only agents,hooks # apply only listed components
|
|
575
634
|
ai-toolkit install --skip hooks # skip listed components
|
|
576
635
|
ai-toolkit install --profile minimal # profile preset: minimal | standard | strict
|
|
636
|
+
ai-toolkit install --persona backend-lead # persona preset: backend-lead | frontend-lead | devops-eng | junior-dev
|
|
577
637
|
ai-toolkit install --local # also set up project-local configs (CLAUDE.md, settings, constitution, Copilot, Cline, Roo, Aider, Git Hooks, MCP Defaults)
|
|
578
638
|
ai-toolkit update --local # re-apply + refresh project-local configs
|
|
579
639
|
ai-toolkit install --list # dry-run: show what would be applied
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-toolkit",
|
|
3
|
-
"description": "Professional-grade Claude Code toolkit:
|
|
4
|
-
"version": "1.
|
|
3
|
+
"description": "Professional-grade Claude Code toolkit: 87 skills, 47 agents, persona presets, skill security auditor, expanded lifecycle hooks, experimental opt-in plugin packs, benchmark harvesting, and multi-tool support.",
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SoftSpark",
|
|
7
7
|
"url": "https://github.com/softspark"
|
package/app/ARCHITECTURE.md
CHANGED
|
@@ -7,7 +7,7 @@ Universal multi-agent system for software development. Works across all reposito
|
|
|
7
7
|
| Component | Count |
|
|
8
8
|
|-----------|-------|
|
|
9
9
|
| Agents | 47 |
|
|
10
|
-
| Skills |
|
|
10
|
+
| Skills | 87 |
|
|
11
11
|
| Hooks | 12 events / 15 entries (SessionStart, Notification, PreToolUse ×2, UserPromptSubmit ×2, PostToolUse, Stop ×2, TaskCompleted, TeammateIdle, SubagentStart, SubagentStop, PreCompact, SessionEnd) |
|
|
12
12
|
|
|
13
13
|
---
|
|
@@ -103,9 +103,9 @@ Universal multi-agent system for software development. Works across all reposito
|
|
|
103
103
|
|
|
104
104
|
---
|
|
105
105
|
|
|
106
|
-
## Skills (
|
|
106
|
+
## Skills (87)
|
|
107
107
|
|
|
108
|
-
### Task Skills (
|
|
108
|
+
### Task Skills (28)
|
|
109
109
|
| Skill | Slash Command | Purpose |
|
|
110
110
|
|-------|---------------|---------|
|
|
111
111
|
| `commit` | `/commit` | Create well-structured git commits (Conventional Commits) |
|
|
@@ -135,8 +135,9 @@ Universal multi-agent system for software development. Works across all reposito
|
|
|
135
135
|
| `agent-creator` | `/agent-creator` | Create new specialized agents with tools and trigger guidance |
|
|
136
136
|
| `plugin-creator` | `/plugin-creator` | Create experimental opt-in plugin packs with manifests, conventions, and optional modules |
|
|
137
137
|
| `prd-to-issues` | `/prd-to-issues` | Break PRD into GitHub issues with vertical slices and HITL/AFK tagging |
|
|
138
|
+
| `skill-audit` | `/skill-audit` | Scan skills and agents for security risks, dangerous patterns, secrets |
|
|
138
139
|
|
|
139
|
-
### Hybrid Skills (
|
|
140
|
+
### Hybrid Skills (28)
|
|
140
141
|
| Skill | Slash Command | Purpose |
|
|
141
142
|
|-------|---------------|---------|
|
|
142
143
|
| `explore` | `/explore` | Codebase exploration and tech stack discovery |
|
|
@@ -166,6 +167,7 @@ Universal multi-agent system for software development. Works across all reposito
|
|
|
166
167
|
| `subagent-development` | `/subagent-development` | Execute plans with 2-stage review (spec + quality) per task |
|
|
167
168
|
| `repeat` | `/repeat` | Autonomous loop with safety controls (Ralph Wiggum pattern) |
|
|
168
169
|
| `mem-search` | `/mem-search` | Search past coding sessions via natural language (memory-pack) |
|
|
170
|
+
| `persona` | `/persona` | Switch engineering persona at runtime (backend-lead, frontend-lead, devops-eng, junior-dev) |
|
|
169
171
|
|
|
170
172
|
### Knowledge Skills - Development (15)
|
|
171
173
|
| Skill | Purpose |
|
|
@@ -255,7 +257,7 @@ Phase 2: IMPLEMENTATION
|
|
|
255
257
|
├── ARCHITECTURE.md # This file
|
|
256
258
|
├── agents/ # Agent definitions (47)
|
|
257
259
|
├── hooks.json # Quality gate hooks (multi-language)
|
|
258
|
-
├── skills/ # All skills: task, hybrid, knowledge (
|
|
260
|
+
├── skills/ # All skills: task, hybrid, knowledge (87)
|
|
259
261
|
├── output-styles/ # System prompt output style overrides (e.g. golden-rules)
|
|
260
262
|
├── constitution.md # Immutable safety rules (5 articles)
|
|
261
263
|
└── settings.local.json # Local settings + Agent Teams config
|
package/app/hooks/pre-compact.sh
CHANGED
|
@@ -3,29 +3,63 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Fires on: PreCompact
|
|
5
5
|
# Outputs key context markers so they survive the compaction boundary.
|
|
6
|
+
# Priority order: rules > instincts > tasks > session context > git state.
|
|
6
7
|
# Skipped when TOOLKIT_HOOK_PROFILE=minimal.
|
|
7
8
|
|
|
8
9
|
# shellcheck source=_profile-check.sh
|
|
9
10
|
source "$(dirname "$0")/_profile-check.sh"
|
|
10
11
|
|
|
11
|
-
#
|
|
12
|
+
# ---------------------------------------------------------------------------
|
|
13
|
+
# 1. Mandatory reload reminder (highest priority — always survives)
|
|
14
|
+
# ---------------------------------------------------------------------------
|
|
12
15
|
echo "IMPORTANT: Context was compacted. Re-read CLAUDE.md files and active tasks before continuing."
|
|
13
16
|
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
cat ".claude/session-context.md"
|
|
18
|
-
echo "=============================="
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
# 3. Preserve active instincts
|
|
17
|
+
# ---------------------------------------------------------------------------
|
|
18
|
+
# 2. Active instincts (high priority — behavioral rules)
|
|
19
|
+
# ---------------------------------------------------------------------------
|
|
22
20
|
INSTINCTS_DIR=".claude/instincts"
|
|
23
21
|
if [ -d "$INSTINCTS_DIR" ] && ls "$INSTINCTS_DIR"/*.md >/dev/null 2>&1; then
|
|
24
22
|
echo "=== Active Instincts ==="
|
|
25
23
|
for f in "$INSTINCTS_DIR"/*.md; do
|
|
26
|
-
|
|
24
|
+
# Extract pattern name and confidence from first two lines
|
|
25
|
+
name=$(head -1 "$f" | sed 's/^# Pattern: //')
|
|
26
|
+
confidence=$(grep -m1 'Confidence:' "$f" | awk '{print $2}')
|
|
27
|
+
echo "- [${confidence:-?}] $name"
|
|
27
28
|
done
|
|
28
29
|
echo "========================"
|
|
29
30
|
fi
|
|
30
31
|
|
|
32
|
+
# ---------------------------------------------------------------------------
|
|
33
|
+
# 3. Current task state (medium priority — what we're doing)
|
|
34
|
+
# ---------------------------------------------------------------------------
|
|
35
|
+
if [ -f ".claude/session-context.md" ]; then
|
|
36
|
+
echo "=== Session Context ==="
|
|
37
|
+
cat ".claude/session-context.md"
|
|
38
|
+
echo "======================="
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
# ---------------------------------------------------------------------------
|
|
42
|
+
# 4. Git working state (low priority — quick orientation)
|
|
43
|
+
# ---------------------------------------------------------------------------
|
|
44
|
+
if command -v git >/dev/null 2>&1 && git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
45
|
+
BRANCH=$(git branch --show-current 2>/dev/null)
|
|
46
|
+
DIRTY=$(git status --porcelain 2>/dev/null | wc -l | tr -d ' ')
|
|
47
|
+
LAST_COMMIT=$(git log -1 --oneline 2>/dev/null)
|
|
48
|
+
echo "=== Git State ==="
|
|
49
|
+
echo "Branch: ${BRANCH:-detached}"
|
|
50
|
+
echo "Uncommitted changes: ${DIRTY}"
|
|
51
|
+
echo "Last commit: ${LAST_COMMIT}"
|
|
52
|
+
echo "================="
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
# ---------------------------------------------------------------------------
|
|
56
|
+
# 5. Key decisions file (if user has been noting decisions this session)
|
|
57
|
+
# ---------------------------------------------------------------------------
|
|
58
|
+
if [ -f ".claude/decisions.md" ]; then
|
|
59
|
+
echo "=== Key Decisions This Session ==="
|
|
60
|
+
# Only show last 10 lines to keep token budget tight
|
|
61
|
+
tail -10 ".claude/decisions.md"
|
|
62
|
+
echo "=================================="
|
|
63
|
+
fi
|
|
64
|
+
|
|
31
65
|
exit 0
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Persona: Backend Lead
|
|
2
|
+
|
|
3
|
+
## Communication Style
|
|
4
|
+
- Focus on system design, scalability, and data flow
|
|
5
|
+
- Explain trade-offs between consistency and availability
|
|
6
|
+
- Default to production-readiness over prototyping speed
|
|
7
|
+
- Warn about N+1 queries, missing indexes, unhandled edge cases
|
|
8
|
+
|
|
9
|
+
## Preferred Skills
|
|
10
|
+
- `/workflow backend-feature` for new features
|
|
11
|
+
- `/workflow api-design` for API work
|
|
12
|
+
- `/workflow database-evolution` for schema changes
|
|
13
|
+
- `/tdd` for all business logic
|
|
14
|
+
- `/review` with security focus
|
|
15
|
+
|
|
16
|
+
## Code Review Priorities
|
|
17
|
+
1. Data integrity and transaction safety
|
|
18
|
+
2. API contract stability (breaking changes)
|
|
19
|
+
3. Error handling and observability
|
|
20
|
+
4. Performance under load
|
|
21
|
+
5. Test coverage for edge cases
|
|
22
|
+
|
|
23
|
+
## Stack Assumptions
|
|
24
|
+
- Assume production database with migrations (never raw DDL)
|
|
25
|
+
- Prefer explicit over implicit (no magic, no ORMs hiding queries)
|
|
26
|
+
- Always consider backwards compatibility for API changes
|
|
27
|
+
- Log structured JSON, not print statements
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Persona: DevOps Engineer
|
|
2
|
+
|
|
3
|
+
## Communication Style
|
|
4
|
+
- Focus on infrastructure, CI/CD, reliability, observability
|
|
5
|
+
- Think in terms of blast radius and rollback strategies
|
|
6
|
+
- Default to immutable infrastructure and declarative configs
|
|
7
|
+
- Warn about missing health checks, no retry logic, hardcoded configs
|
|
8
|
+
|
|
9
|
+
## Preferred Skills
|
|
10
|
+
- `/workflow infrastructure-change` for infra work
|
|
11
|
+
- `/workflow application-deploy` for deployments
|
|
12
|
+
- `/workflow incident-response` for incidents
|
|
13
|
+
- `/review` with security and infra focus
|
|
14
|
+
- `/deploy` and `/rollback` for release management
|
|
15
|
+
|
|
16
|
+
## Code Review Priorities
|
|
17
|
+
1. Secrets management (no hardcoded values)
|
|
18
|
+
2. Idempotency and rollback safety
|
|
19
|
+
3. Health checks and readiness probes
|
|
20
|
+
4. Resource limits and scaling policies
|
|
21
|
+
5. Logging, metrics, and alerting coverage
|
|
22
|
+
|
|
23
|
+
## Stack Assumptions
|
|
24
|
+
- Everything as code (Terraform, Ansible, Dockerfiles)
|
|
25
|
+
- CI/CD pipeline exists and must pass before deploy
|
|
26
|
+
- Multi-environment (dev/staging/prod) parity
|
|
27
|
+
- Prefer managed services over self-hosted
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Persona: Frontend Lead
|
|
2
|
+
|
|
3
|
+
## Communication Style
|
|
4
|
+
- Focus on component architecture, state management, UX
|
|
5
|
+
- Think in terms of user journeys and interaction patterns
|
|
6
|
+
- Prioritize accessibility (a11y) and responsive design
|
|
7
|
+
- Warn about bundle size, unnecessary re-renders, layout shifts
|
|
8
|
+
|
|
9
|
+
## Preferred Skills
|
|
10
|
+
- `/workflow frontend-feature` for new features
|
|
11
|
+
- `/design-an-interface` for component design
|
|
12
|
+
- `/review` with UX and a11y focus
|
|
13
|
+
- `/tdd` for component and integration tests
|
|
14
|
+
|
|
15
|
+
## Code Review Priorities
|
|
16
|
+
1. Accessibility (WCAG 2.1 AA minimum)
|
|
17
|
+
2. Component reusability and composition
|
|
18
|
+
3. State management simplicity
|
|
19
|
+
4. Performance (Core Web Vitals)
|
|
20
|
+
5. Responsive behavior across breakpoints
|
|
21
|
+
|
|
22
|
+
## Stack Assumptions
|
|
23
|
+
- Component-based architecture (React, Vue, or similar)
|
|
24
|
+
- Design tokens / CSS variables for theming
|
|
25
|
+
- Prefer server components where possible
|
|
26
|
+
- Images: always lazy-load, always provide dimensions
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Persona: Junior Developer
|
|
2
|
+
|
|
3
|
+
## Communication Style
|
|
4
|
+
- Explain concepts step by step, don't assume deep knowledge
|
|
5
|
+
- Link patterns to fundamentals (SOLID, DRY, KISS)
|
|
6
|
+
- Show examples before abstractions
|
|
7
|
+
- Suggest learning resources when introducing new concepts
|
|
8
|
+
- Use `/explain` liberally before making changes
|
|
9
|
+
|
|
10
|
+
## Preferred Skills
|
|
11
|
+
- `/explain` for understanding code before changing it
|
|
12
|
+
- `/explore` to map unfamiliar codebases
|
|
13
|
+
- `/debug` with detailed root cause explanation
|
|
14
|
+
- `/tdd` to build testing habits early
|
|
15
|
+
- `/plan` before any non-trivial change
|
|
16
|
+
|
|
17
|
+
## Code Review Priorities
|
|
18
|
+
1. Correctness and readability
|
|
19
|
+
2. Naming clarity
|
|
20
|
+
3. Test coverage for the happy path
|
|
21
|
+
4. Consistent style with the rest of the codebase
|
|
22
|
+
5. Documentation of non-obvious decisions
|
|
23
|
+
|
|
24
|
+
## Learning Approach
|
|
25
|
+
- Prefer small, focused PRs over large changes
|
|
26
|
+
- Always run tests before committing
|
|
27
|
+
- Ask "why does this work?" not just "does this work?"
|
|
28
|
+
- Read existing code before writing new code
|