@softspark/ai-toolkit 3.5.1 → 4.0.0
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/AGENTS.md +0 -5
- package/CHANGELOG.md +40 -0
- package/README.md +20 -9
- package/app/.claude-plugin/plugin.json +1 -1
- package/app/ARCHITECTURE.md +1 -9
- package/app/agents/chief-of-staff.md +1 -1
- package/app/agents/meta-architect.md +1 -1
- package/app/agents/night-watchman.md +1 -1
- package/app/agents/orchestrator.md +1 -1
- package/app/agents/predictive-analyst.md +1 -1
- package/app/agents/product-manager.md +1 -1
- package/app/plugins/research-pack/plugin.json +1 -1
- package/app/skills/debug/SKILL.md +28 -0
- package/app/skills/explain/SKILL.md +1 -1
- package/app/skills/explore/SKILL.md +1 -1
- package/app/skills/index/SKILL.md +1 -1
- package/app/skills/mem-search/SKILL.md +1 -1
- package/app/skills/persona/SKILL.md +1 -1
- package/app/skills/plan/SKILL.md +22 -0
- package/app/skills/refactor-plan/SKILL.md +1 -1
- package/app/skills/research-mastery/SKILL.md +12 -0
- package/app/skills/swarm/SKILL.md +10 -5
- package/kb/procedures/release-verification-sop.md +1 -1
- package/kb/reference/codex-cli-compatibility.md +0 -1
- package/kb/reference/opencode-compatibility.md +1 -1
- package/kb/reference/skills-catalog.md +2 -13
- package/llms-full.txt +4 -21
- package/manifest.json +3 -3
- package/package.json +2 -2
- package/scripts/codex_skill_adapter.py +2 -7
- package/app/skills/debugging-tactics/SKILL.md +0 -136
- package/app/skills/hive-mind/SKILL.md +0 -57
- package/app/skills/plan-writing/SKILL.md +0 -228
- package/app/skills/search/SKILL.md +0 -64
- package/app/skills/teams/SKILL.md +0 -63
- package/app/skills/teams/reference/presets.md +0 -52
package/AGENTS.md
CHANGED
|
@@ -472,7 +472,6 @@ Skills are invocable commands or auto-loaded knowledge sources:
|
|
|
472
472
|
- **dart-rules**: Dart/Flutter coding rules: style, patterns, security, testing. Triggers: .dart, pubspec.yaml, Flutter, Riverpod, Bloc, widget, StatelessWidget, StatefulWidget.
|
|
473
473
|
- **database-patterns**: DB schema design and query tuning: normalization, indexing, N+1, transactions, EXPLAIN. Triggers: schema, index, slow query, N+1, PostgreSQL, MySQL, EXPLAIN, deadlock, query plan.
|
|
474
474
|
- **debug**: Systematic debugging via logs, health checks, hypothesis-driven investigation. Triggers: debug, error, trace root cause, fix bug, reproduce symptom, investigation.
|
|
475
|
-
- **debugging-tactics**: RCA debugging: investigation, hypothesis, validation, fix. No fix without RCA. Triggers: bug, error, exception, stack trace, intermittent, flaky, crash, regression, broken after.
|
|
476
475
|
- **deploy**: Deploys with pre-flight checks and health verification. Triggers: deploy, deployment, ship, release, push to prod.
|
|
477
476
|
- **design-an-interface**: Generates and compares parallel interface designs (Ousterhout 'Design It Twice'). Triggers: design API, interface options, compare modules, design it twice. Codex-adapted: uses native subagents and plan tracking.
|
|
478
477
|
- **design-engineering**: UI craftsmanship: animation rules, easing, micro-interactions, state polish. Triggers: animation, transition, ease-out, motion, micro-interaction, hover, loading state, UI polish.
|
|
@@ -491,7 +490,6 @@ Skills are invocable commands or auto-loaded knowledge sources:
|
|
|
491
490
|
- **grill-me**: Stress-tests a plan via Socratic questioning down each decision branch. Triggers: stress-test, grill me, validate assumptions, challenge plan, socratic review. Codex-adapted: uses native subagents and plan tracking.
|
|
492
491
|
- **health**: Service/infra health via liveness/readiness checks, resource usage, quick diagnostics. Triggers: health check, services up, system status, infra health, degraded service.
|
|
493
492
|
- **hipaa-validate**: HIPAA validator: PHI exposure, audit logging, encryption, access control, BAA refs. Triggers: HIPAA, PHI, healthcare compliance, audit log, BAA.
|
|
494
|
-
- **hive-mind**: Multi-agent swarm: consensus voting, aggregation, file ownership, map-reduce. Triggers: swarm, hive mind, multi-agent, consensus, parallel agents, agent voting.
|
|
495
493
|
- **hook-creator**: Create new Claude Code lifecycle hook (PreToolUse/PostToolUse/Stop/SessionStart) with bash + hooks.json. Triggers: create hook, lifecycle hook, PreToolUse, PostToolUse, hook event.
|
|
496
494
|
- **index**: Reindexes KB for semantic search via vector store (Qdrant). Triggers: reindex KB, rebuild index, vector reindex, refresh embeddings.
|
|
497
495
|
- **instinct-review**: Reviews/promotes/removes instincts from `.claude/instincts/*.md`. Triggers: instinct review, curate instincts, manage instincts, promote instinct.
|
|
@@ -518,7 +516,6 @@ Skills are invocable commands or auto-loaded knowledge sources:
|
|
|
518
516
|
- **persona**: Switches engineering persona at runtime. Triggers: persona, switch role, backend-lead, frontend-lead, devops-eng, junior-dev.
|
|
519
517
|
- **php-rules**: PHP coding rules: style, patterns, security, testing. Triggers: .php, composer.json, Laravel, Symfony, PHPUnit, PSR-12, Composer.
|
|
520
518
|
- **plan**: Breaks features/goals into phased plans with task lists, agent assignments, dependencies. Triggers: plan feature, implementation roadmap, break down task, project phases.
|
|
521
|
-
- **plan-writing**: Implementation plans + pre-mortems: phases, success criteria, risks, rollback. Triggers: implementation plan, pre-mortem, phased plan, task breakdown.
|
|
522
519
|
- **plugin-creator**: Creates opt-in plugin packs with manifests + module scaffolding for Claude/Codex. Triggers: new plugin, plugin pack, plugin scaffold.
|
|
523
520
|
- **pr**: Creates GitHub PR after pre-flight checks (lint/typecheck/tests), structured summary from commits. Triggers: pr, pull request, create PR, ready to merge.
|
|
524
521
|
- **prd-to-issues**: Splits a PRD into vertical-slice GitHub issues with HITL/AFK tagging and dependencies. Triggers: PRD to issues, create tickets, break down PRD, work items.
|
|
@@ -538,7 +535,6 @@ Skills are invocable commands or auto-loaded knowledge sources:
|
|
|
538
535
|
- **ruby-rules**: Ruby coding rules: style, patterns, security, testing. Triggers: .rb, Gemfile, .gemspec, Rails, ActiveRecord, Sidekiq, RSpec, Sorbet, rubocop.
|
|
539
536
|
- **rust-patterns**: Rust: ownership, lifetimes, async (Tokio), Result/anyhow/thiserror, traits, unsafe. Triggers: Rust, borrow checker, lifetime, Tokio, cargo, trait, impl, Result, unsafe, clippy.
|
|
540
537
|
- **rust-rules**: Rust coding rules: style, patterns, security, testing. Triggers: .rs, Cargo.toml, Cargo.lock, Tokio, Axum, Serde, clippy, cargo test.
|
|
541
|
-
- **search**: Searches the KB with semantic + hybrid modes. Triggers: search KB, semantic search, hybrid search, knowledge base query.
|
|
542
538
|
- **security-patterns**: App security: OWASP, authN/authZ, input validation, secrets, TLS, CSRF/XSS/SQLi, JWT, CSP. Triggers: security, OWASP, auth, JWT, CSRF, XSS, SQL injection, secrets, TLS, CSP, CORS.
|
|
543
539
|
- **seo-validate**: SEO validator: meta/OG, Schema.org, hreflang, Core Web Vitals, crawlability. Triggers: SEO, meta tags, Schema.org, hreflang, LCP, INP, CLS, Core Web Vitals, sitemap, crawlability.
|
|
544
540
|
- **skill-audit**: Scans skills/agents for security risks: dangerous patterns, secrets, excessive perms. Triggers: skill audit, security scan, agent audit, dangerous pattern.
|
|
@@ -548,7 +544,6 @@ Skills are invocable commands or auto-loaded knowledge sources:
|
|
|
548
544
|
- **swift-patterns**: Swift/iOS: SwiftUI, Combine, async/await, actors, SPM, Core Data, UIKit interop. Triggers: Swift, SwiftUI, Combine, iOS, Xcode, actor, Core Data, @MainActor, @State.
|
|
549
545
|
- **swift-rules**: Swift coding rules: style, patterns, security, testing. Triggers: .swift, Package.swift, .xcodeproj, SwiftUI, Combine, async/await, XCTest.
|
|
550
546
|
- **tdd**: TDD with red-green-refactor loop and vertical slices. Triggers: TDD, test-first, red-green-refactor, test driving development. Codex-adapted: uses native subagents and plan tracking.
|
|
551
|
-
- **teams**: Launches multi-agent teams for review, debugging, feature dev, security audits, migrations. Triggers: multi-agent workflow, agent teams, team review, parallel agent collaboration. Codex-adapted: uses native subagents and plan tracking.
|
|
552
547
|
- **test**: Runs project test suite with coverage, auto-detects framework (pytest, vitest, jest, flutter, go, cargo, phpunit). Triggers: run tests, test suite, coverage report.
|
|
553
548
|
- **testing-patterns**: Testing strategy: pyramid, AAA, mocks/fakes/stubs, flaky tests, coverage. Triggers: test, fixture, mock, stub, e2e, TDD, Playwright, Cypress, flaky, coverage, property-based.
|
|
554
549
|
- **triage-issue**: Bug triage: explores codebase for root cause, files GitHub issue with TDD fix plan. Triggers: triage, investigate bug, fix plan, root cause, file issue, bug report. Codex-adapted: uses native subagents and plan tracking.
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,46 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## v4.0.0 — Skill consolidation: 112 → 107, removes 5 overlapping skills (2026-05-06)
|
|
11
|
+
|
|
12
|
+
**Breaking release.** Five redundant skills removed; their substantive knowledge migrated into the surviving targets. Resolves the `/skills` listing truncation that v3.5.x partially addressed and removes user-facing overlap that made dispatch ambiguous.
|
|
13
|
+
|
|
14
|
+
### Removed (BREAKING)
|
|
15
|
+
|
|
16
|
+
- **`/search`** (task skill) — `/research-mastery` is the superset, now includes local Grep/Glob fallback for the no-MCP case.
|
|
17
|
+
- **`/teams`** (task skill) — `/workflow` covers all preset scenarios (debug, feature, security, migration, etc.) without requiring `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`.
|
|
18
|
+
- **`plan-writing`** (knowledge skill) — estimation patterns and pre-mortem rules merged into `/plan`.
|
|
19
|
+
- **`debugging-tactics`** (knowledge skill) — Iron Law, 4-phase methodology, and "5 Whys" merged into `/debug`.
|
|
20
|
+
- **`hive-mind`** (knowledge skill) — consensus voting and aggregation rules merged into `/swarm`.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **`/plan`** — added Estimation & Templates section (T-shirt sizing, cone of uncertainty, SMART vs phase-aligned outcomes, mandatory pre-mortem ≥5 failure modes).
|
|
25
|
+
- **`/debug`** — added Methodology section (Iron Law, 4 phases, "5 Whys" depth gate, architecture escalation after 3 failed fixes).
|
|
26
|
+
- **`/swarm`** — Aggregation section now covers consensus weighted voting and file-ownership escalation rules previously in `hive-mind`.
|
|
27
|
+
- **`/research-mastery`** — added Local Fallback section for Grep/Glob when `rag-mcp` is unavailable.
|
|
28
|
+
- **Agent `skills:` field** — `orchestrator`, `product-manager`, `chief-of-staff` switched from `plan-writing` to `plan`. `meta-architect`, `night-watchman`, `predictive-analyst` switched from `debugging-tactics` to `debug`.
|
|
29
|
+
- **`research-pack` plugin** — dropped `search`, `plan-writing` from skill list; added `plan`.
|
|
30
|
+
- **Cross-references** — `/refactor-plan`, `/persona`, `/explore`, `/mem-search`, `/explain`, `/index` updated to reference surviving skills.
|
|
31
|
+
- **`scripts/codex_skill_adapter.py`** — removed dead `teams`-specific branch; `_adapt_body` no longer takes `skill_name`.
|
|
32
|
+
- **Documentation counts** — `README.md`, `package.json`, `manifest.json`, `app/ARCHITECTURE.md`, `kb/reference/skills-catalog.md` updated from 112 → 107.
|
|
33
|
+
|
|
34
|
+
### Migration
|
|
35
|
+
|
|
36
|
+
| Before | After |
|
|
37
|
+
|--------|-------|
|
|
38
|
+
| `/search <query>` | `/research-mastery <query>` |
|
|
39
|
+
| `/teams <preset>` | `/workflow <type>` |
|
|
40
|
+
| Agent `skills: plan-writing` | Agent `skills: plan` |
|
|
41
|
+
| Agent `skills: debugging-tactics` | Agent `skills: debug` |
|
|
42
|
+
| Agent `skills: hive-mind` | Agent `skills: swarm` |
|
|
43
|
+
|
|
44
|
+
### Why
|
|
45
|
+
|
|
46
|
+
`/skills` listing reported 2.1%/2% truncation in Claude Code 2.1.131 — 5 descriptions silently dropped. v3.5.x trimmed individual descriptions; v4.0.0 removes the underlying overlap (5 skills with knowledge already covered elsewhere). Net effect: smaller listing, no lost knowledge, clearer dispatch.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
10
50
|
## v3.5.1 — Description trim follow-up + GEMINI/Copilot drift fix (2026-05-06)
|
|
11
51
|
|
|
12
52
|
Patch release. Continues v3.5.0 condensation on 20 skills and re-syncs platform artifacts that v3.5.0 forgot to regenerate.
|
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, 107 skills, 44 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, Augment, Google Antigravity, Codex CLI, and opencode, 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
|
|
|
@@ -14,13 +14,24 @@
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
## What's New in
|
|
17
|
+
## What's New in v4.0.0
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
**Breaking release.** Skill catalog consolidated from 112 → 107: removes 5 redundant skills, merges their substantive knowledge into the surviving targets. Eliminates `/skills` truncation and removes overlap that confused agent dispatch.
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
21
|
+
- **`/search` removed** — `/research-mastery` is the superset (KB → MCP/Context7 → web with hierarchy of truth). Local Grep/Glob fallback is now part of `/research-mastery`.
|
|
22
|
+
- **`/teams` removed** — `/workflow` covers the same scenarios without the experimental `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` flag.
|
|
23
|
+
- **`plan-writing` knowledge skill removed** — estimation patterns (T-shirt sizing, cone of uncertainty) and pre-mortem rules are now part of `/plan`.
|
|
24
|
+
- **`debugging-tactics` knowledge skill removed** — Iron Law, 4-phase methodology, and "5 Whys" are now part of `/debug`.
|
|
25
|
+
- **`hive-mind` knowledge skill removed** — consensus voting and aggregation merged into `/swarm`.
|
|
26
|
+
|
|
27
|
+
### Migration
|
|
28
|
+
|
|
29
|
+
| Before | After |
|
|
30
|
+
|--------|-------|
|
|
31
|
+
| `/search <query>` | `/research-mastery <query>` |
|
|
32
|
+
| `/teams <preset>` | `/workflow <type>` |
|
|
33
|
+
| Agent `skills: plan-writing` | Agent `skills: plan` |
|
|
34
|
+
| Agent `skills: debugging-tactics` | Agent `skills: debug` |
|
|
24
35
|
|
|
25
36
|
See [CHANGELOG.md](CHANGELOG.md) for full history.
|
|
26
37
|
|
|
@@ -54,7 +65,7 @@ ai-toolkit install
|
|
|
54
65
|
npx @softspark/ai-toolkit install
|
|
55
66
|
```
|
|
56
67
|
|
|
57
|
-
**That's it.** Claude Code picks up
|
|
68
|
+
**That's it.** Claude Code picks up 107 skills, 44 agents, quality hooks, and the safety constitution automatically.
|
|
58
69
|
|
|
59
70
|
**Windows:** WSL is the recommended runtime. Native Windows works when Git Bash is available for hook scripts; dependency hints cover `winget`, Chocolatey, and Scoop. See [Windows Support](kb/reference/windows-support.md).
|
|
60
71
|
|
|
@@ -144,7 +155,7 @@ See [CLI Reference](kb/reference/cli-reference.md) for all commands and options.
|
|
|
144
155
|
ai-toolkit/
|
|
145
156
|
├── app/
|
|
146
157
|
│ ├── agents/ # 44 agent definitions
|
|
147
|
-
│ ├── skills/ #
|
|
158
|
+
│ ├── skills/ # 107 skills (task / hybrid / knowledge)
|
|
148
159
|
│ ├── rules/ # Auto-injected into your CLAUDE.md
|
|
149
160
|
│ ├── hooks/ # Hook scripts (21 entries, 12 lifecycle events)
|
|
150
161
|
│ ├── plugins/ # 11 experimental plugin packs (opt-in)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-toolkit",
|
|
3
3
|
"description": "Professional-grade Claude Code toolkit with persona presets, skill security auditor, expanded lifecycle hooks, experimental opt-in plugin packs, benchmark harvesting, and multi-tool support.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SoftSpark",
|
|
7
7
|
"url": "https://github.com/softspark"
|
package/app/ARCHITECTURE.md
CHANGED
|
@@ -200,7 +200,6 @@ The toolkit is organised as five stacked layers. Higher layers depend on lower l
|
|
|
200
200
|
| `swarm` | `/swarm` | Massive parallelism via Agent Teams |
|
|
201
201
|
| `workflow` | `/workflow` | Run agent workflow |
|
|
202
202
|
| `instinct-review` | `/instinct-review` | Review, curate, and manage learned instincts |
|
|
203
|
-
| `teams` | `/teams` | Launch pre-configured Agent Teams compositions |
|
|
204
203
|
| `write-a-prd` | `/write-a-prd` | Create PRD through interactive interview and module design |
|
|
205
204
|
| `prd-to-plan` | `/prd-to-plan` | Convert PRD into phased vertical-slice implementation plan |
|
|
206
205
|
| `tdd` | `/tdd` | Test-driven development with red-green-refactor loop |
|
|
@@ -258,22 +257,15 @@ The toolkit is organised as five stacked layers. Higher layers depend on lower l
|
|
|
258
257
|
| `content-moderation-patterns` | Two-stage moderation: pre-filter + LLM classifier |
|
|
259
258
|
| `model-routing-patterns` | Haiku/Sonnet/Opus routing, escalation, fallback |
|
|
260
259
|
|
|
261
|
-
### Knowledge Skills - Process (
|
|
260
|
+
### Knowledge Skills - Process (5)
|
|
262
261
|
| Skill | Purpose |
|
|
263
262
|
|-------|---------|
|
|
264
|
-
| `plan-writing` | Task breakdown, planning |
|
|
265
|
-
| `debugging-tactics` | Iron Law 4-phase debugging: root cause → pattern → hypothesis → fix |
|
|
266
263
|
| `git-mastery` | Safe history rewriting, bisect, complex merges |
|
|
267
264
|
| `architecture-decision` | Trade-off analysis, architecture note templates |
|
|
268
265
|
| `performance-profiling` | CPU, memory, I/O, database bottleneck profiling |
|
|
269
266
|
| `research-mastery` | Hierarchy of Truth protocol |
|
|
270
267
|
| `verification-before-completion` | Iron Law: evidence-before-claims, no completion without fresh verification |
|
|
271
268
|
|
|
272
|
-
### Knowledge Skills - Orchestration (1)
|
|
273
|
-
| Skill | Purpose |
|
|
274
|
-
|-------|---------|
|
|
275
|
-
| `hive-mind` | Swarm intelligence: Consensus, Aggregation |
|
|
276
|
-
|
|
277
269
|
---
|
|
278
270
|
|
|
279
271
|
## Orchestration Model
|
|
@@ -4,7 +4,7 @@ description: "Autonomous maintenance agent. Use for automated dependency updates
|
|
|
4
4
|
model: sonnet
|
|
5
5
|
color: orange
|
|
6
6
|
tools: Read, Write, Edit, Bash, Grep
|
|
7
|
-
skills: clean-code, git-mastery,
|
|
7
|
+
skills: clean-code, git-mastery, debug
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Night Watchman Agent
|
|
@@ -4,7 +4,7 @@ description: "Multi-agent coordination and task orchestration. Use when a task r
|
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Write, Edit, Agent, TeamCreate, TeamDelete, SendMessage, TaskCreate, TaskList, TaskUpdate
|
|
5
5
|
model: opus
|
|
6
6
|
color: purple
|
|
7
|
-
skills: clean-code, app-builder, plan
|
|
7
|
+
skills: clean-code, app-builder, plan
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Orchestrator - Multi-Agent Coordination
|
|
@@ -4,7 +4,7 @@ description: "Precognition agent. Analyzes code changes to predict impact, regre
|
|
|
4
4
|
model: sonnet
|
|
5
5
|
color: cyan
|
|
6
6
|
tools: Read, Write, Bash, Grep, Glob
|
|
7
|
-
skills:
|
|
7
|
+
skills: debug, git-mastery, testing-patterns
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Predictive Analyst Agent
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"includes": {
|
|
13
13
|
"agents": ["technical-researcher", "fact-checker", "search-specialist"],
|
|
14
|
-
"skills": ["
|
|
14
|
+
"skills": ["docs", "research-mastery", "plan"],
|
|
15
15
|
"rules": [],
|
|
16
16
|
"hooks": ["user-prompt-submit.sh"]
|
|
17
17
|
},
|
|
@@ -44,6 +44,34 @@ Use the parsed output to focus investigation on the right files and hypotheses.
|
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
|
+
## Methodology — The Iron Law
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Random fixes waste time and create new bugs. Quick patches mask underlying issues. Complete each phase before proceeding to the next.
|
|
54
|
+
|
|
55
|
+
### Phase 1 — Root Cause Investigation
|
|
56
|
+
Read error messages and stack traces completely. Reproduce reliably (or gather more data — don't guess). Check recent changes (`git diff`, new deps, config). For multi-component systems: log boundary in/out at each layer, identify WHERE it breaks before WHY.
|
|
57
|
+
|
|
58
|
+
### Phase 2 — Pattern Analysis
|
|
59
|
+
Find similar working code in the same codebase. Compare against references **completely**, not skimming. List every difference, however small.
|
|
60
|
+
|
|
61
|
+
### Phase 3 — Hypothesis & Testing
|
|
62
|
+
Form a single hypothesis ("X is the root cause because Y"). Test minimally — smallest possible change, one variable at a time. Verify before continuing — if it didn't work, form a NEW hypothesis. Don't stack fixes on top of fixes.
|
|
63
|
+
|
|
64
|
+
### Phase 4 — Implementation
|
|
65
|
+
Write a failing test case FIRST (use `/tdd`). Implement single fix at root cause. No "while I'm here" improvements.
|
|
66
|
+
|
|
67
|
+
### "5 Whys" — depth gate
|
|
68
|
+
Ask "Why?" at least 5 times to find the real issue. Stop at the first plausible answer = symptom fixing. Example: crash → null pointer → user object null → API 404 → invalid user ID → **frontend allowed negative IDs** (root cause).
|
|
69
|
+
|
|
70
|
+
### Architecture escalation (3+ failed fixes)
|
|
71
|
+
If three hypotheses failed and each fix reveals new shared state in different places, the architecture is wrong, not your hypothesis. STOP. Discuss with user before more attempts.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
47
75
|
## Debugging Workflow
|
|
48
76
|
|
|
49
77
|
### 1. Check Logs
|
|
@@ -73,7 +73,7 @@ python3 ${CLAUDE_SKILL_DIR}/scripts/dependency-graph.py src/auth.py
|
|
|
73
73
|
## When NOT to Use
|
|
74
74
|
|
|
75
75
|
- To critique or improve the code — use `/review` or `/refactor`
|
|
76
|
-
- To find a specific function across the codebase — use `/
|
|
76
|
+
- To find a specific function across the codebase — use `/explore` or `Grep`
|
|
77
77
|
- To write the documentation that the explanation turns into — use `/docs`
|
|
78
78
|
- For a full architecture audit or redesign — use `/architecture-audit`
|
|
79
79
|
- When the user asks "why is this broken" — use `/debug`, not `/explain`
|
|
@@ -131,7 +131,7 @@ hybrid_search_kb("project structure {framework}")
|
|
|
131
131
|
## When NOT to Use
|
|
132
132
|
|
|
133
133
|
- To explain a specific module's design — use `/explain`
|
|
134
|
-
- To find a specific identifier or symbol — use `Grep` directly or `/
|
|
134
|
+
- To find a specific identifier or symbol — use `Grep` directly or `/research-mastery`
|
|
135
135
|
- To audit architecture for deepening candidates — use `/architecture-audit`
|
|
136
136
|
- To scaffold a new project — use `/app-builder`
|
|
137
137
|
- When the user already knows the codebase — skip the overview and jump to the concrete task
|
|
@@ -89,7 +89,7 @@ last_updated: "YYYY-MM-DD"
|
|
|
89
89
|
|
|
90
90
|
## When NOT to Use
|
|
91
91
|
|
|
92
|
-
- For searching the KB — use `/
|
|
92
|
+
- For searching the KB — use `/research-mastery` or call `smart_query()` via the rag-mcp tool
|
|
93
93
|
- For fixing indexing bugs — use `/debug` on the indexer pipeline
|
|
94
94
|
- To evaluate RAG quality after reindexing — use `/evaluate`
|
|
95
95
|
- When no vector store is configured — document the gap, do not invent one
|
|
@@ -104,7 +104,7 @@ Found 3 results across 2 sessions.
|
|
|
104
104
|
|
|
105
105
|
## When NOT to Use
|
|
106
106
|
|
|
107
|
-
- To search the KB or documentation — use `/
|
|
107
|
+
- To search the KB or documentation — use `/research-mastery` or `smart_query()`
|
|
108
108
|
- To find a specific commit — use `git log --grep` or `/git-mastery`
|
|
109
109
|
- To list agent tasks — use `TaskList` or `/plan`
|
|
110
110
|
- When memory-pack hooks are not installed — direct the user to install them first
|
|
@@ -69,6 +69,6 @@ Unlike `--persona` at install time (which injects into CLAUDE.md permanently), `
|
|
|
69
69
|
## When NOT to Use
|
|
70
70
|
|
|
71
71
|
- For **permanent** persona injection at install time — use `ai-toolkit install --persona <name>` (project or global)
|
|
72
|
-
- For multi-agent parallel work with different specialists — use `/orchestrate` or `/
|
|
72
|
+
- For multi-agent parallel work with different specialists — use `/orchestrate` or `/workflow`
|
|
73
73
|
- For a specific language or framework context (not a general engineering stance) — use the language-pattern skills (`/typescript-patterns`, etc.)
|
|
74
74
|
- To edit or create a persona file — edit `app/personas/<name>.md` directly; this skill only switches between existing ones
|
package/app/skills/plan/SKILL.md
CHANGED
|
@@ -46,6 +46,28 @@ smart_query("project template: {type}")
|
|
|
46
46
|
hybrid_search_kb("architecture {pattern}")
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
## Estimation & Templates
|
|
50
|
+
|
|
51
|
+
### T-shirt sizing (use for >1 day work)
|
|
52
|
+
|
|
53
|
+
| Size | Effort | Example |
|
|
54
|
+
|------|--------|---------|
|
|
55
|
+
| XS | <2h | typo, add field |
|
|
56
|
+
| S | 2-4h | simple component, basic API |
|
|
57
|
+
| M | 1-2 days | feature with tests |
|
|
58
|
+
| L | 3-5 days | complex feature |
|
|
59
|
+
| XL | 1-2 weeks | major subsystem |
|
|
60
|
+
|
|
61
|
+
Avoid hour-precise estimates beyond a week — they are false confidence (cone of uncertainty: 4× variance at idea, 1.5× at design).
|
|
62
|
+
|
|
63
|
+
### SMART tasks vs phase outcomes
|
|
64
|
+
|
|
65
|
+
Plan-level tasks should be **phase-aligned outcomes** ("authentication ships behind a feature flag"), not SMART implementation steps ("add JWT middleware"). The latter belongs in the issue tracker after `/prd-to-issues`.
|
|
66
|
+
|
|
67
|
+
### Pre-mortem (mandatory for >1 day plans)
|
|
68
|
+
|
|
69
|
+
List ≥5 named failure modes with mitigation. A 2-bullet pre-mortem is theater. Risk register cap: 10 entries ranked by (probability × impact); below line 10 is noise.
|
|
70
|
+
|
|
49
71
|
## Related Skills
|
|
50
72
|
|
|
51
73
|
- Plan approved? -> `/orchestrate` or `/workflow` to execute with agents
|
|
@@ -126,5 +126,5 @@ What is explicitly NOT part of this refactor.
|
|
|
126
126
|
- For **executing** a refactor directly — use `/refactor`
|
|
127
127
|
- For architecture-level audit without a specific refactor in mind — use `/architecture-audit`
|
|
128
128
|
- For creating a PRD (product requirements) — use `/write-a-prd`
|
|
129
|
-
- For a plan without the GitHub RFC step — use `/plan`
|
|
129
|
+
- For a plan without the GitHub RFC step — use `/plan`
|
|
130
130
|
- For interface design of a single module — use `/design-an-interface`
|
|
@@ -43,6 +43,18 @@ You MUST search in this order. Do not skip steps.
|
|
|
43
43
|
**Why**: Fallback for general programming concepts.
|
|
44
44
|
**Rule**: Use only for generic syntax/logic, NEVER for project specifics.
|
|
45
45
|
|
|
46
|
+
## Local Fallback (No MCP Available)
|
|
47
|
+
|
|
48
|
+
If `rag-mcp` is not configured, fall back to filesystem tools — still inside `kb/`:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
Grep pattern="your query" path="kb/" # search file contents
|
|
52
|
+
Glob pattern="kb/**/*.md" # list KB files
|
|
53
|
+
Read "kb/reference/architecture.md" # full document
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Always cite sources as `[PATH: kb/...]` regardless of which method retrieved them.
|
|
57
|
+
|
|
46
58
|
## 🛑 Validation Protocol
|
|
47
59
|
Before acting on information:
|
|
48
60
|
1. **Cite the Source**: "According to `kb/architecture.md`..."
|
|
@@ -30,7 +30,7 @@ Agent(subagent_type="...", prompt="sub-task 2 — own files: path/b/")
|
|
|
30
30
|
Agent(subagent_type="...", prompt="sub-task N — own files: path/n/")
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
After all complete: aggregate results
|
|
33
|
+
After all complete: aggregate results (see Aggregation section below), produce synthesis report.
|
|
34
34
|
|
|
35
35
|
### Consensus
|
|
36
36
|
Same problem, 3 independent agents from different angles. Launch all 3 **in a single response**.
|
|
@@ -75,10 +75,15 @@ Agent(
|
|
|
75
75
|
|
|
76
76
|
## Aggregation (after all agents complete)
|
|
77
77
|
|
|
78
|
-
1. Collect all agent outputs
|
|
79
|
-
2. De-duplicate identical findings
|
|
80
|
-
3. Synthesize unique insights
|
|
81
|
-
4.
|
|
78
|
+
1. **Collect** all agent outputs into a uniform format (JSON or Markdown sections)
|
|
79
|
+
2. **De-duplicate** identical findings across agents
|
|
80
|
+
3. **Synthesize** unique insights into one report
|
|
81
|
+
4. **For Consensus mode**: weighted voting — each agent returns confidence 0.0–1.0, winner is highest-confidence solution; record dissents from agents that scored below winner
|
|
82
|
+
5. **Generate** final swarm report
|
|
83
|
+
|
|
84
|
+
### File ownership during aggregation
|
|
85
|
+
|
|
86
|
+
When agents touch overlapping paths despite ownership rules: do NOT auto-merge. Escalate to user citing which two agents touched the same hunk. Use `--worktree` mode to prevent this proactively (see below).
|
|
82
87
|
|
|
83
88
|
## KB-First Mode (`--with-kb`)
|
|
84
89
|
|
|
@@ -201,7 +201,7 @@ python3 scripts/audit_skills.py --ci
|
|
|
201
201
|
**Verify audit_skills.py:**
|
|
202
202
|
- [ ] `HIGH: 0` (MUST be zero — CI fails otherwise)
|
|
203
203
|
- [ ] `WARN: 0`
|
|
204
|
-
- [ ] `INFO: N` (acceptable — broad-access skills: orchestrate, swarm,
|
|
204
|
+
- [ ] `INFO: N` (acceptable — broad-access skills: orchestrate, swarm, workflow)
|
|
205
205
|
|
|
206
206
|
---
|
|
207
207
|
|
|
@@ -129,7 +129,7 @@ User-authored opencode files and user-authored `opencode.json` keys are never de
|
|
|
129
129
|
## Behavioral Limits
|
|
130
130
|
|
|
131
131
|
- opencode does not expose the full Claude hook event surface; only the events in the mapping table above are bridged. Claude-only events (`TaskCompleted`, `TeammateIdle`, `SubagentStart`, `SubagentStop`, `PreCompact`) are silently skipped.
|
|
132
|
-
- Multi-agent orchestration skills (`/orchestrate`, `/workflow`, `/swarm`, `/
|
|
132
|
+
- Multi-agent orchestration skills (`/orchestrate`, `/workflow`, `/swarm`, `/subagent-development`) run through the Codex adaptation layer — they use opencode subagents and explicit file ownership instead of Claude's `Agent`/`TaskCreate` primitives.
|
|
133
133
|
|
|
134
134
|
## Verification
|
|
135
135
|
|
|
@@ -23,7 +23,7 @@ All functionality is unified under skills. Task and hybrid skills are user-invoc
|
|
|
23
23
|
| **2 — Multi-agent workflow** | `/workflow <type>` | Cross-cutting task with known pattern |
|
|
24
24
|
| **3 — Custom parallelism** | `/orchestrate`, `/swarm` | No predefined workflow matches |
|
|
25
25
|
|
|
26
|
-
## Task Skills (
|
|
26
|
+
## Task Skills (30)
|
|
27
27
|
|
|
28
28
|
Task skills execute a specific action. Invoked via slash commands. `disable-model-invocation: true`.
|
|
29
29
|
|
|
@@ -76,13 +76,11 @@ Hybrid skills combine slash-command invocation with domain knowledge that agents
|
|
|
76
76
|
| **analyze** | `/analyze` | medium | Analyze code quality, complexity, and patterns |
|
|
77
77
|
| **cve-scan** | `/cve-scan` | medium | Scan project dependencies for known CVEs using native audit tools (npm, pip, composer, cargo, go, ruby, dart) |
|
|
78
78
|
| **docs** | `/docs` | high | Generate/update docs: README, API docs, architecture notes, changelogs (Tier 1 — single agent) |
|
|
79
|
-
| **search** | `/search` | medium | Search knowledge base (MCP tools with local fallback) |
|
|
80
79
|
| **explain** | `/explain` | medium | Explain architecture of a file/module using Mermaid diagrams |
|
|
81
80
|
| **orchestrate** | `/orchestrate` | max | Custom multi-agent parallelism — Tier 3, native in Claude, Codex-adapted to `spawn_agent` workflows |
|
|
82
81
|
| **swarm** | `/swarm` | max | Massive parallelism: map-reduce, consensus, relay — Tier 3 |
|
|
83
82
|
| **workflow** | `/workflow` | max | 15 predefined multi-agent workflow types — Tier 2, Codex-adapted to native subagent orchestration |
|
|
84
83
|
| **instinct-review** | `/instinct-review` | low | Review, curate, and manage learned instincts from past sessions |
|
|
85
|
-
| **teams** | `/teams` | max | Launch pre-configured Agent Teams compositions for common workflows |
|
|
86
84
|
| **write-a-prd** | `/write-a-prd` | high | Create PRD through interactive interview, codebase exploration, and module design |
|
|
87
85
|
| **prd-to-plan** | `/prd-to-plan` | high | Convert PRD into phased implementation plan using tracer-bullet vertical slices |
|
|
88
86
|
| **tdd** | `/tdd` | high | Test-driven development with red-green-refactor loop and vertical slices |
|
|
@@ -163,24 +161,16 @@ Hybrid skills combine slash-command invocation with domain knowledge that agents
|
|
|
163
161
|
| **content-moderation-patterns** | `skills/content-moderation-patterns/` | Two-stage moderation: pre-filter + LLM classifier; categories; thresholds |
|
|
164
162
|
| **model-routing-patterns** | `skills/model-routing-patterns/` | Haiku/Sonnet/Opus routing; escalation; sub-agent delegation; fallback |
|
|
165
163
|
|
|
166
|
-
## Knowledge Skills - Process (
|
|
164
|
+
## Knowledge Skills - Process (5)
|
|
167
165
|
|
|
168
166
|
| Skill | Directory | Domain |
|
|
169
167
|
|-------|-----------|--------|
|
|
170
|
-
| **plan-writing** | `skills/plan-writing/` | Implementation plans, success criteria, pre-mortem |
|
|
171
|
-
| **debugging-tactics** | `skills/debugging-tactics/` | Iron Law 4-phase debugging: root cause → pattern → hypothesis → fix |
|
|
172
168
|
| **git-mastery** | `skills/git-mastery/` | Git workflows, branching, conflict resolution |
|
|
173
169
|
| **architecture-decision** | `skills/architecture-decision/` | Architecture notes, trade-off analysis, alternatives |
|
|
174
170
|
| **performance-profiling** | `skills/performance-profiling/` | Profiling, bottleneck analysis, optimization |
|
|
175
171
|
| **research-mastery** | `skills/research-mastery/` | Multi-source research, synthesis, fact-checking |
|
|
176
172
|
| **verification-before-completion** | `skills/verification-before-completion/` | Iron Law: evidence-before-claims, no completion without fresh verification |
|
|
177
173
|
|
|
178
|
-
## Knowledge Skills - Orchestration (1)
|
|
179
|
-
|
|
180
|
-
| Skill | Directory | Domain |
|
|
181
|
-
|-------|-----------|--------|
|
|
182
|
-
| **hive-mind** | `skills/hive-mind/` | Multi-agent aggregation, consensus, swarm patterns |
|
|
183
|
-
|
|
184
174
|
## Quality Guardrails
|
|
185
175
|
|
|
186
176
|
### Anti-Rationalization Tables
|
|
@@ -272,7 +262,6 @@ Common adapted skills:
|
|
|
272
262
|
- `/orchestrate`
|
|
273
263
|
- `/workflow`
|
|
274
264
|
- `/swarm`
|
|
275
|
-
- `/teams`
|
|
276
265
|
- `/subagent-development`
|
|
277
266
|
- `/tdd`
|
|
278
267
|
|