@softspark/ai-toolkit 1.2.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 CHANGED
@@ -7,6 +7,24 @@ 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
+
10
28
  ## [1.2.0] - 2026-04-03
11
29
 
12
30
  ### Added
package/README.md CHANGED
@@ -61,7 +61,9 @@ ai-toolkit install --profile strict # full install + git hooks even without
61
61
 
62
62
  ### Persona Presets
63
63
 
64
- Inject role-specific communication style and skill preferences:
64
+ Personas adjust communication style, preferred skills, and code review priorities per engineering role.
65
+
66
+ **Install-time (persistent — injected into CLAUDE.md):**
65
67
 
66
68
  ```bash
67
69
  ai-toolkit install --persona backend-lead # system design, API stability, data integrity
@@ -70,6 +72,14 @@ ai-toolkit install --persona devops-eng # infra-as-code, CI/CD, rollback sa
70
72
  ai-toolkit install --persona junior-dev # step-by-step explanations, learning focus
71
73
  ```
72
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
+
73
83
  ### Selective Install / Update
74
84
 
75
85
  ```bash
@@ -224,6 +234,7 @@ ai-toolkit/
224
234
  | `/subagent-development` | Execute plans with 2-stage review (spec + quality) per task | high |
225
235
  | `/repeat` | Autonomous loop with safety controls (Ralph Wiggum pattern) | medium |
226
236
  | `/mem-search` | Search past coding sessions via natural language (memory-pack) | medium |
237
+ | `/persona` | Switch engineering persona at runtime (session-scoped) | low |
227
238
 
228
239
  ### `/workflow` Types
229
240
 
@@ -276,7 +287,7 @@ Hook logic lives in `app/hooks/*.sh` — not inline JSON one-liners. Scripts are
276
287
  | TaskCompleted | `quality-gate.sh` | Block task completion on lint/type errors |
277
288
  | SubagentStart | `subagent-start.sh` | Narrow-scope reminder for spawned subagents |
278
289
  | SubagentStop | `subagent-stop.sh` | Completion checklist for subagent handoff |
279
- | PreCompact | `pre-compact.sh` | Preserve context and instincts before compaction |
290
+ | PreCompact | `pre-compact.sh` | Smart compaction: prioritized context (instincts > tasks > git state > decisions) |
280
291
  | SessionEnd | `session-end.sh` | Persist a session-end handoff note |
281
292
  | TeammateIdle | *(inline)* | Completeness reminder |
282
293
 
@@ -290,7 +301,29 @@ Hook logic lives in `app/hooks/*.sh` — not inline JSON one-liners. Scripts are
290
301
  | `/migrate` | Pre | Backup verification |
291
302
  | `/rollback` | Post | State verification |
292
303
 
293
- ### 3. Effort-Based Model Budgeting
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
294
327
 
295
328
  Every skill declares an effort level used for model token budgeting:
296
329
  - `low` — lint, build, fix (fast, cheap)
@@ -298,7 +331,7 @@ Every skill declares an effort level used for model token budgeting:
298
331
  - `high` — review, plan, refactor, docs
299
332
  - `max` — orchestrate, swarm, workflow
300
333
 
301
- ### 4. Multi-Language Quality Gates
334
+ ### 5. Multi-Language Quality Gates
302
335
 
303
336
  The `Stop` hook runs after every response across 5 languages:
304
337
 
@@ -310,7 +343,7 @@ The `Stop` hook runs after every response across 5 languages:
310
343
  | Dart | dart analyze | dart analyze |
311
344
  | Go | go vet | go vet |
312
345
 
313
- ### 5. Iron Law Enforcement
346
+ ### 6. Iron Law Enforcement
314
347
 
315
348
  Three skills enforce non-negotiable quality gates with anti-rationalization tables:
316
349
 
@@ -320,7 +353,7 @@ Three skills enforce non-negotiable quality gates with anti-rationalization tabl
320
353
  | `debugging-tactics` | `NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST` | 4-phase debugging: root cause → pattern → hypothesis → fix. 3+ failed fixes → question architecture. |
321
354
  | `verification-before-completion` | `NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE` | Gate function: IDENTIFY → RUN → READ → VERIFY → CLAIM. "Should work now" is not evidence. |
322
355
 
323
- ### 6. Two-Stage Review (`/subagent-development`)
356
+ ### 7. Two-Stage Review (`/subagent-development`)
324
357
 
325
358
  Per-task review pipeline inspired by [obra/superpowers](https://github.com/obra/superpowers):
326
359
 
@@ -333,7 +366,7 @@ Implementer → Spec Compliance Review → Code Quality Review → Next Task
333
366
  - Quality reviewer checks: SOLID, naming, error handling, tests, security
334
367
  - Prompt templates included: `reference/implementer-prompt.md`, `spec-reviewer-prompt.md`, `code-quality-reviewer-prompt.md`
335
368
 
336
- ### 7. Ralph Wiggum Loop (`/repeat`)
369
+ ### 8. Ralph Wiggum Loop (`/repeat`)
337
370
 
338
371
  Autonomous agent loop with safety controls:
339
372
 
@@ -352,7 +385,7 @@ Autonomous agent loop with safety controls:
352
385
 
353
386
  Constitution Article I, Section 4 enforces these limits.
354
387
 
355
- ### 8. Visual Brainstorming Companion
388
+ ### 9. Visual Brainstorming Companion
356
389
 
357
390
  Optional browser-based companion for `/write-a-prd` and `/design-an-interface`:
358
391
 
@@ -361,7 +394,7 @@ Optional browser-based companion for `/write-a-prd` and `/design-an-interface`:
361
394
  - Per-question routing: mockups/diagrams → browser, text/conceptual → terminal
362
395
  - Consent-based: offered once as its own message, never forced
363
396
 
364
- ### 9. Persistent Memory (`memory-pack` plugin)
397
+ ### 10. Persistent Memory (`memory-pack` plugin)
365
398
 
366
399
  SQLite-based session memory (opt-in plugin pack):
367
400
 
@@ -375,7 +408,20 @@ SQLite-based session memory (opt-in plugin pack):
375
408
 
376
409
 
377
410
 
378
- ### 11. KB Integration Protocol
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
379
425
 
380
426
  Agents follow a research-before-action protocol enforced via rules:
381
427
  1. `smart_query()` or `hybrid_search_kb()` before any technical answer
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-toolkit",
3
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.0",
4
+ "version": "1.2.1",
5
5
  "author": {
6
6
  "name": "SoftSpark",
7
7
  "url": "https://github.com/softspark"
@@ -3,10 +3,10 @@ title: "AI Toolkit - Skills Catalog"
3
3
  category: reference
4
4
  service: ai-toolkit
5
5
  tags: [skills, domain-knowledge, catalog, task-skills, hybrid-skills]
6
- version: "1.0.0"
6
+ version: "1.2.1"
7
7
  created: "2026-03-23"
8
- last_updated: "2026-04-01"
9
- description: "Complete catalog of 85 skills: 27 task, 27 hybrid, 31 knowledge. Includes effort levels, skill-scoped hooks, executable scripts, and creator workflows."
8
+ last_updated: "2026-04-03"
9
+ description: "Complete catalog of 87 skills: 28 task, 28 hybrid, 31 knowledge. Includes effort levels, skill-scoped hooks, executable scripts, security auditor, and persona presets."
10
10
  ---
11
11
 
12
12
  # Skills Catalog (87 skills)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softspark/ai-toolkit",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Professional-grade AI coding toolkit: 87 skills, 47 agents, multi-platform support (Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, Aider, Augment), machine-enforced safety constitution, persona presets, skill security auditor, expanded lifecycle hooks, 11 plugin packs, and benchmark tooling.",
5
5
  "keywords": [
6
6
  "claude",