claude-code-arcane 2.9.7 → 2.9.9

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.
Files changed (129) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/agents/business/business-ops-lead.md +1 -14
  3. package/agents/game/gameplay-programmer.md +3 -4
  4. package/agents/game/technical-artist.md +3 -4
  5. package/dist/cli.js +74 -24
  6. package/docs/USER-GUIDE.md +1 -1
  7. package/docs/coordination-rules.md +1 -1
  8. package/docs/directory-structure.md +93 -122
  9. package/package.json +1 -1
  10. package/profiles/backend-go.yaml +1 -0
  11. package/profiles/core.yaml +0 -1
  12. package/rules/gamedev/engine-code.md +1 -1
  13. package/rules/gamedev/shader-code.md +1 -2
  14. package/rules/gamedev/vn-code.md +3 -2
  15. package/rules/implementation-workflow.md +1 -1
  16. package/rules/{ai-code.md → llm-code.md} +5 -5
  17. package/skills/agent-designer/README.md +2 -1
  18. package/skills/agent-designer/agent_evaluator.py +0 -5
  19. package/skills/ai-sdk-setup/SKILL.md +4 -4
  20. package/skills/architecture-decision/SKILL.md +3 -4
  21. package/skills/architecture-review/SKILL.md +1 -1
  22. package/skills/asset-audit/SKILL.md +0 -1
  23. package/skills/balance-check/SKILL.md +1 -1
  24. package/skills/brainstorm/SKILL.md +3 -3
  25. package/skills/brainstorm/references/next-steps-pipeline.md +8 -9
  26. package/skills/consistency-check/SKILL.md +2 -2
  27. package/skills/design-system/SKILL.md +1 -1
  28. package/skills/design-system/references/post-design-validation.md +2 -3
  29. package/skills/frontend-dev/SKILL.md +27 -28
  30. package/skills/frontend-dev/references/asset-prompt-guide.md +1 -1
  31. package/skills/frontend-dev/references/motion-recipes.md +1 -1
  32. package/skills/help/SKILL.md +1 -2
  33. package/skills/hotfix/SKILL.md +2 -2
  34. package/skills/milestone-review/SKILL.md +1 -1
  35. package/skills/patch-notes/SKILL.md +1 -1
  36. package/skills/playtest-report/SKILL.md +2 -3
  37. package/skills/playwright-pro/CLAUDE.md +2 -2
  38. package/skills/playwright-pro/SKILL.md +13 -9
  39. package/skills/playwright-pro/agents/migration-planner.md +2 -2
  40. package/skills/playwright-pro/agents/test-architect.md +1 -2
  41. package/skills/playwright-pro/agents/test-debugger.md +1 -1
  42. package/skills/playwright-pro/hooks/detect-playwright.sh +1 -1
  43. package/skills/playwright-pro/skills/browserstack/SKILL.md +5 -5
  44. package/skills/playwright-pro/skills/migrate/SKILL.md +1 -1
  45. package/skills/playwright-pro/skills/report/SKILL.md +2 -2
  46. package/skills/playwright-pro/skills/testrail/SKILL.md +5 -5
  47. package/skills/playwright-pro/templates/README.md +2 -2
  48. package/skills/prototype/SKILL.md +1 -1
  49. package/skills/quick-design/SKILL.md +1 -1
  50. package/skills/release-checklist/SKILL.md +0 -1
  51. package/skills/security-audit/SKILL.md +1 -1
  52. package/skills/self-improving-agent/CLAUDE.md +12 -12
  53. package/skills/self-improving-agent/SKILL.md +16 -12
  54. package/skills/self-improving-agent/agents/memory-analyst.md +1 -1
  55. package/skills/self-improving-agent/hooks/error-capture.sh +2 -2
  56. package/skills/self-improving-agent/reference/memory-architecture.md +2 -2
  57. package/skills/self-improving-agent/reference/promotion-rules.md +3 -3
  58. package/skills/self-improving-agent/reference/rules-directory-patterns.md +1 -1
  59. package/skills/self-improving-agent/settings.json +5 -5
  60. package/skills/self-improving-agent/skills/extract/SKILL.md +7 -7
  61. package/skills/self-improving-agent/skills/promote/SKILL.md +5 -5
  62. package/skills/self-improving-agent/skills/remember/SKILL.md +9 -9
  63. package/skills/self-improving-agent/skills/review/SKILL.md +7 -7
  64. package/skills/self-improving-agent/skills/status/SKILL.md +8 -8
  65. package/skills/senior-ml-engineer/references/llm_integration_guide.md +14 -31
  66. package/skills/senior-prompt-engineer/SKILL.md +10 -10
  67. package/skills/senior-prompt-engineer/references/prompt_engineering_patterns.md +1 -1
  68. package/skills/senior-prompt-engineer/scripts/agent_orchestrator.py +43 -40
  69. package/skills/senior-prompt-engineer/scripts/prompt_optimizer.py +23 -66
  70. package/skills/shader-dev/reference/fluid-simulation.md +4 -4
  71. package/skills/shader-dev/reference/simulation-physics.md +6 -6
  72. package/skills/shader-dev/reference/voxel-rendering.md +1 -1
  73. package/skills/shader-dev/techniques/ambient-occlusion.md +1 -1
  74. package/skills/shader-dev/techniques/analytic-ray-tracing.md +2 -2
  75. package/skills/shader-dev/techniques/domain-warping.md +2 -2
  76. package/skills/shader-dev/techniques/fluid-simulation.md +45 -45
  77. package/skills/shader-dev/techniques/multipass-buffer.md +24 -24
  78. package/skills/shader-dev/techniques/normal-estimation.md +1 -1
  79. package/skills/shader-dev/techniques/particle-system.md +16 -16
  80. package/skills/shader-dev/techniques/polar-uv-manipulation.md +1 -1
  81. package/skills/shader-dev/techniques/post-processing.md +7 -7
  82. package/skills/shader-dev/techniques/sdf-3d.md +1 -1
  83. package/skills/shader-dev/techniques/simulation-physics.md +24 -24
  84. package/skills/shader-dev/techniques/sound-synthesis.md +2 -2
  85. package/skills/shader-dev/techniques/voronoi-cellular-noise.md +1 -1
  86. package/skills/shader-dev/techniques/voxel-rendering.md +60 -60
  87. package/skills/smoke-check/SKILL.md +1 -1
  88. package/skills/sprint-plan/SKILL.md +1 -2
  89. package/skills/start/SKILL.md +7 -7
  90. package/skills/story-done/SKILL.md +1 -1
  91. package/skills/test-helpers/SKILL.md +7 -2
  92. package/skills/test-setup/SKILL.md +1 -1
  93. package/skills/ue-actor-component-architecture/SKILL.md +0 -1
  94. package/skills/ue-ai-navigation/SKILL.md +0 -1
  95. package/skills/ue-animation-system/SKILL.md +0 -1
  96. package/skills/ue-async-threading/SKILL.md +0 -1
  97. package/skills/ue-audio-system/SKILL.md +0 -1
  98. package/skills/ue-blueprints/SKILL.md +0 -1
  99. package/skills/ue-character-movement/SKILL.md +0 -1
  100. package/skills/ue-cpp-foundations/SKILL.md +0 -1
  101. package/skills/ue-data-assets-tables/SKILL.md +0 -1
  102. package/skills/ue-editor-tools/SKILL.md +0 -1
  103. package/skills/ue-game-features/SKILL.md +0 -1
  104. package/skills/ue-gameplay-abilities/SKILL.md +0 -1
  105. package/skills/ue-gameplay-framework/SKILL.md +0 -1
  106. package/skills/ue-input-system/SKILL.md +0 -1
  107. package/skills/ue-mass-entity/SKILL.md +0 -1
  108. package/skills/ue-materials-rendering/SKILL.md +0 -1
  109. package/skills/ue-module-build-system/SKILL.md +0 -1
  110. package/skills/ue-naming-conventions/SKILL.md +0 -1
  111. package/skills/ue-networking-replication/SKILL.md +0 -1
  112. package/skills/ue-niagara-effects/SKILL.md +0 -1
  113. package/skills/ue-packaging/SKILL.md +0 -1
  114. package/skills/ue-physics-collision/SKILL.md +0 -1
  115. package/skills/ue-procedural-generation/SKILL.md +0 -1
  116. package/skills/ue-project-context/SKILL.md +0 -1
  117. package/skills/ue-sequencer-cinematics/SKILL.md +0 -1
  118. package/skills/ue-serialization-savegames/SKILL.md +0 -1
  119. package/skills/ue-state-trees/SKILL.md +0 -1
  120. package/skills/ue-testing-debugging/SKILL.md +0 -1
  121. package/skills/ue-ui-umg-slate/SKILL.md +0 -1
  122. package/skills/ue-world-level-streaming/SKILL.md +0 -1
  123. package/skills/ux-review/SKILL.md +1 -1
  124. package/docs/RELEASE-SETUP.md +0 -99
  125. package/docs/presentations/arcane-overview-12.pptx +0 -0
  126. package/docs/presentations/arcane-overview.pptx +0 -0
  127. package/docs/presentations/build_arcane_deck.py +0 -310
  128. package/docs/presentations/build_arcane_deck_12.py +0 -399
  129. package/docs/trusted-publishing-setup.md +0 -163
@@ -25,7 +25,7 @@ If not set, inform the user how to configure them and stop.
25
25
  ### 1. Import Test Cases → Generate Playwright Tests
26
26
 
27
27
  ```
28
- /pw:testrail import --project <id> --suite <id>
28
+ /playwright-pro testrail import --project <id> --suite <id>
29
29
  ```
30
30
 
31
31
  Steps:
@@ -40,7 +40,7 @@ Steps:
40
40
  ### 2. Push Test Results → TestRail
41
41
 
42
42
  ```
43
- /pw:testrail push --run <id>
43
+ /playwright-pro testrail push --run <id>
44
44
  ```
45
45
 
46
46
  Steps:
@@ -58,7 +58,7 @@ Steps:
58
58
  ### 3. Create Test Run
59
59
 
60
60
  ```
61
- /pw:testrail run --project <id> --name "Sprint 42 Regression"
61
+ /playwright-pro testrail run --project <id> --name "Sprint 42 Regression"
62
62
  ```
63
63
 
64
64
  Steps:
@@ -69,7 +69,7 @@ Steps:
69
69
  ### 4. Sync Status
70
70
 
71
71
  ```
72
- /pw:testrail status --project <id>
72
+ /playwright-pro testrail status --project <id>
73
73
  ```
74
74
 
75
75
  Steps:
@@ -86,7 +86,7 @@ Steps:
86
86
  ### 5. Update Test Cases in TestRail
87
87
 
88
88
  ```
89
- /pw:testrail update --case <id>
89
+ /playwright-pro testrail update --case <id>
90
90
  ```
91
91
 
92
92
  Steps:
@@ -4,10 +4,10 @@
4
4
 
5
5
  ## Usage
6
6
 
7
- Templates are loaded by `/pw:generate` when it detects a matching scenario. You can also reference them directly:
7
+ Templates are loaded by `/playwright-pro generate` when it detects a matching scenario. You can also reference them directly:
8
8
 
9
9
  ```
10
- /pw:generate "login flow" → loads templates/auth/login.md
10
+ /playwright-pro generate "login flow" → loads templates/auth/login.md
11
11
  ```
12
12
 
13
13
  ## Template Index
@@ -9,7 +9,7 @@ allowed-tools: Read, Glob, Grep, Write, Edit, Bash, Task
9
9
 
10
10
  ## Phase 1: Define the Question
11
11
 
12
- Resolve review mode: `--review` arg > `production/review-mode.txt` > default `lean`. See `.claude/docs/director-gates.md`.
12
+ Resolve review mode: `--review` arg > `production/review-mode.txt` > default `lean`.
13
13
 
14
14
  Read concept description. Identify core question the prototype must answer. If vague, state question explicitly before proceeding.
15
15
 
@@ -44,4 +44,4 @@ Present draft → ask write approval → `design/quick-specs/[kebab-case]-[YYYY-
44
44
 
45
45
  Report: file written, type, system, GDD update status. Next: `/story-readiness` (reference spec in story's GDD Reference field).
46
46
 
47
- Bypasses `/design-review` by design. Redirect to full pipeline if: new system belongs in index, significantly alters cross-system behavior, introduces new player-facing mechanics affecting MDA balance, or >1 week implementation.
47
+ Skips the full GDD pipeline (`/design-system`) by design. Redirect to full pipeline if: new system belongs in index, significantly alters cross-system behavior, introduces new player-facing mechanics affecting MDA balance, or >1 week implementation.
@@ -60,4 +60,3 @@ Present checklist + total items + known blockers. "May I write to `production/re
60
60
  ## Phase 6: Next Steps
61
61
 
62
62
  - `/gate-check` for formal phase gate verdict
63
- - Coordinate sign-offs via `/team-release`
@@ -28,7 +28,7 @@ Output: `production/security/security-audit-[date].md`
28
28
  | `quick` | High-severity checks only (fastest) |
29
29
  | No arg | `full` |
30
30
 
31
- Read `.claude/docs/technical-preferences.md` for engine, language, platforms, multiplayer scope.
31
+ Detect language, platforms and, for a game, the engine (`ProjectSettings/ProjectVersion.txt` (Unity) or the `.uproject` (Unreal)) from the project files. Take multiplayer scope from the GDD, or ask.
32
32
 
33
33
  ## Phase 2: Spawn Security Engineer
34
34
 
@@ -4,13 +4,13 @@ This plugin helps you curate Claude Code's auto-memory into durable project know
4
4
 
5
5
  ## Commands
6
6
 
7
- Use the `/si:` namespace for all commands:
7
+ All commands are sub-commands of `/self-improving-agent`:
8
8
 
9
- - `/si:review` — Analyze auto-memory health and find promotion candidates
10
- - `/si:promote <pattern>` — Graduate a learning to CLAUDE.md or `.claude/rules/`
11
- - `/si:extract <pattern>` — Create a reusable skill from a proven pattern
12
- - `/si:status` — Quick memory health dashboard
13
- - `/si:remember <knowledge>` — Explicitly save something to auto-memory
9
+ - `/self-improving-agent review` — Analyze auto-memory health and find promotion candidates
10
+ - `/self-improving-agent promote <pattern>` — Graduate a learning to CLAUDE.md or `.claude/rules/`
11
+ - `/self-improving-agent extract <pattern>` — Create a reusable skill from a proven pattern
12
+ - `/self-improving-agent status` — Quick memory health dashboard
13
+ - `/self-improving-agent remember <knowledge>` — Explicitly save something to auto-memory
14
14
 
15
15
  ## How auto-memory works
16
16
 
@@ -22,25 +22,25 @@ This plugin reads that directory — it never creates its own storage.
22
22
 
23
23
  ### After completing a feature or debugging session
24
24
  ```
25
- /si:review
25
+ /self-improving-agent review
26
26
  ```
27
27
  Check if anything Claude learned should become a permanent rule.
28
28
 
29
29
  ### When a pattern keeps coming up
30
30
  ```
31
- /si:promote "Always run migrations before tests in this project"
31
+ /self-improving-agent promote "Always run migrations before tests in this project"
32
32
  ```
33
33
  Moves it from MEMORY.md (background note) to CLAUDE.md (enforced rule).
34
34
 
35
35
  ### When you solved something non-obvious that could help other projects
36
36
  ```
37
- /si:extract "Docker build fix for ARM64 platform mismatch"
37
+ /self-improving-agent extract "Docker build fix for ARM64 platform mismatch"
38
38
  ```
39
39
  Creates a standalone skill with SKILL.md, ready to install elsewhere.
40
40
 
41
41
  ### To check memory capacity
42
42
  ```
43
- /si:status
43
+ /self-improving-agent status
44
44
  ```
45
45
  Shows line counts, topic files, stale entries, and recommendations.
46
46
 
@@ -55,8 +55,8 @@ Shows line counts, topic files, stale entries, and recommendations.
55
55
 
56
56
  ## Agents
57
57
 
58
- - **memory-analyst**: Spawned by `/si:review` to analyze patterns across memory files
59
- - **skill-extractor**: Spawned by `/si:extract` to generate complete skill packages
58
+ - **memory-analyst**: Spawned by `/self-improving-agent review` to analyze patterns across memory files
59
+ - **skill-extractor**: Spawned by `/self-improving-agent extract` to generate complete skill packages
60
60
 
61
61
  ## Hooks
62
62
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: self-improving-agent
3
3
  description: "Curate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rules/, extract recurring solutions into reusable skills."
4
- argument-hint: ""
4
+ argument-hint: "[extract|promote|remember|review|status] [args]"
5
5
  category: "arcane"
6
6
  user-invocable: true
7
7
  allowed-tools: Read, Glob, Grep, Bash, Write, Edit
@@ -11,15 +11,19 @@ allowed-tools: Read, Glob, Grep, Bash, Write, Edit
11
11
 
12
12
  Claude Code's auto-memory (v2.1.32+) automatically records project patterns, debugging insights, and your preferences in `MEMORY.md`. This skill adds the intelligence layer: it analyzes what Claude has learned, promotes proven patterns into project rules, and extracts recurring solutions into reusable skills. May write or edit CLAUDE.md, .claude/rules/ files, and new skill files during promotion and extraction.
13
13
 
14
+ ## Sub-commands
15
+
16
+ `/self-improving-agent` with no argument shows this overview. With a sub-command as its first argument, read `skills/<sub-command>/SKILL.md` from this skill's directory and follow it, passing the remaining arguments. Sub-commands: `extract`, `promote`, `remember`, `review`, `status`.
17
+
14
18
  ## Quick Reference
15
19
 
16
20
  | Command | What it does |
17
21
  |---------|-------------|
18
- | `/si:review` | Analyze MEMORY.md -- find promotion candidates, stale entries, consolidation opportunities |
19
- | `/si:promote` | Graduate a pattern from MEMORY.md to CLAUDE.md or `.claude/rules/` |
20
- | `/si:extract` | Turn a proven pattern into a standalone skill |
21
- | `/si:status` | Memory health dashboard -- line counts, topic files, recommendations |
22
- | `/si:remember` | Explicitly save important knowledge to auto-memory |
22
+ | `/self-improving-agent review` | Analyze MEMORY.md -- find promotion candidates, stale entries, consolidation opportunities |
23
+ | `/self-improving-agent promote` | Graduate a pattern from MEMORY.md to CLAUDE.md or `.claude/rules/` |
24
+ | `/self-improving-agent extract` | Turn a proven pattern into a standalone skill |
25
+ | `/self-improving-agent status` | Memory health dashboard -- line counts, topic files, recommendations |
26
+ | `/self-improving-agent remember` | Explicitly save important knowledge to auto-memory |
23
27
 
24
28
  ## How It Fits Together
25
29
 
@@ -33,9 +37,9 @@ Claude Code's auto-memory (v2.1.32+) automatically records project patterns, deb
33
37
  │ standards │ + topic files │ + continuity │
34
38
  │ Full load │ First 200 lines│ Contextual load │
35
39
  ├─────────────┴──────────────────┴────────────────────────┤
36
- │ /si:promote /si:review │
40
+ │ /self-improving-agent promote /self-improving-agent review │
37
41
  │ Self-Improving Agent (this skill) │
38
- │ /si:extract /si:remember │
42
+ │ /self-improving-agent extract /self-improving-agent remember │
39
43
  ├─────────────────────────────────────────────────────────┤
40
44
  │ .claude/rules/ │ New Skills │ Error Logs │
41
45
  │ (scoped rules) │ (extracted) │ (auto-captured)│
@@ -48,18 +52,18 @@ Claude Code's auto-memory (v2.1.32+) automatically records project patterns, deb
48
52
 
49
53
  | File | Who writes | Scope | Loaded |
50
54
  |------|-----------|-------|--------|
51
- | `./CLAUDE.md` | You (+ `/si:promote`) | Project rules | Full file, every session |
55
+ | `./CLAUDE.md` | You (+ `/self-improving-agent promote`) | Project rules | Full file, every session |
52
56
  | `~/.claude/CLAUDE.md` | You | Global preferences | Full file, every session |
53
57
  | `~/.claude/projects/<path>/memory/MEMORY.md` | Claude (auto) | Project learnings | First 200 lines |
54
58
  | `~/.claude/projects/<path>/memory/*.md` | Claude (overflow) | Topic-specific notes | On demand |
55
- | `.claude/rules/*.md` | You (+ `/si:promote`) | Scoped rules | When matching files open |
59
+ | `.claude/rules/*.md` | You (+ `/self-improving-agent promote`) | Scoped rules | When matching files open |
56
60
 
57
61
  ### The promotion lifecycle
58
62
 
59
63
  ```
60
64
  1. Claude discovers pattern -> auto-memory (MEMORY.md)
61
- 2. Pattern recurs 2-3x -> /si:review flags it as promotion candidate
62
- 3. You approve -> /si:promote graduates it to CLAUDE.md or rules/
65
+ 2. Pattern recurs 2-3x -> /self-improving-agent review flags it as promotion candidate
66
+ 3. You approve -> /self-improving-agent promote graduates it to CLAUDE.md or rules/
63
67
  4. Pattern becomes an enforced rule, not just a note
64
68
  5. MEMORY.md entry removed -> frees space for new learnings
65
69
  ```
@@ -64,7 +64,7 @@ Organize findings into:
64
64
 
65
65
  ## Output Format
66
66
 
67
- Use the format defined in the `/si:review` skill. Be specific — include line numbers, exact text, and concrete suggestions.
67
+ Use the format defined in the `/self-improving-agent review` skill. Be specific — include line numbers, exact text, and concrete suggestions.
68
68
 
69
69
  ## Constraints
70
70
 
@@ -103,8 +103,8 @@ cat << EOF
103
103
  <error-detected>
104
104
  Command error detected (pattern: "$matched_pattern").
105
105
  If this was unexpected or required investigation to fix, save the solution:
106
- /si:remember "explanation of what went wrong and the fix"
107
- Or if this is a known pattern, check: /si:review
106
+ /self-improving-agent remember "explanation of what went wrong and the fix"
107
+ Or if this is a known pattern, check: /self-improving-agent review
108
108
  Context: $(echo "$error_context" | head -2 | tr '\n' ' ' | cut -c1-200)
109
109
  </error-detected>
110
110
  EOF
@@ -103,7 +103,7 @@ When entries conflict:
103
103
  ```
104
104
  Auto-memory captures → This plugin curates → CLAUDE.md enforces
105
105
 
106
- MEMORY.md (raw notes) → /si:review (analyze) → /si:promote (graduate)
106
+ MEMORY.md (raw notes) → /self-improving-agent review (analyze) → /self-improving-agent promote (graduate)
107
107
  ↓
108
108
  CLAUDE.md or
109
109
  .claude/rules/
@@ -128,4 +128,4 @@ MEMORY.md (raw notes) → /si:review (analyze) → /si:promote (graduate)
128
128
  3. **Don't duplicate** — if it's in CLAUDE.md, remove it from MEMORY.md
129
129
  4. **Scope rules** — use `.claude/rules/` with paths for file-type-specific patterns
130
130
  5. **Review quarterly** — memory files go stale after refactors
131
- 6. **Use /si:status** — monitor capacity before it becomes a problem
131
+ 6. **Use /self-improving-agent status** — monitor capacity before it becomes a problem
@@ -74,10 +74,10 @@ When promoting, transform the learning:
74
74
  ## Promotion Workflow
75
75
 
76
76
  ```
77
- 1. /si:review identifies candidate
77
+ 1. /self-improving-agent review identifies candidate
78
78
  2. Confirm the pattern is still valid
79
79
  3. Distill into one-line instruction
80
- 4. /si:promote writes to CLAUDE.md or rules/
80
+ 4. /self-improving-agent promote writes to CLAUDE.md or rules/
81
81
  5. Remove from MEMORY.md
82
- 6. Verify with /si:status
82
+ 6. Verify with /self-improving-agent status
83
83
  ```
@@ -125,7 +125,7 @@ paths:
125
125
  |--------|--------|
126
126
  | CLAUDE.md over 150 lines | Move scoped patterns to rules/ |
127
127
  | Same instruction repeated for different file types | Create a scoped rule |
128
- | `/si:promote` suggests a file-type-specific pattern | Create or append to a rule file |
128
+ | `/self-improving-agent promote` suggests a file-type-specific pattern | Create or append to a rule file |
129
129
  | Team adds a new convention for a specific area | New rule file |
130
130
 
131
131
  ## Organization Tips
@@ -10,11 +10,11 @@
10
10
  "tags": ["memory", "auto-memory", "self-improvement", "learning", "rules", "skills"],
11
11
  "repository": "https://github.com/alirezarezvani/claude-skills",
12
12
  "commands": {
13
- "review": "/si:review",
14
- "promote": "/si:promote",
15
- "extract": "/si:extract",
16
- "status": "/si:status",
17
- "remember": "/si:remember"
13
+ "review": "/self-improving-agent review",
14
+ "promote": "/self-improving-agent promote",
15
+ "extract": "/self-improving-agent extract",
16
+ "status": "/self-improving-agent status",
17
+ "remember": "/self-improving-agent remember"
18
18
  },
19
19
  "hooks": {
20
20
  "PostToolUse": {
@@ -7,17 +7,17 @@ user-invocable: false
7
7
  allowed-tools: Read, Glob, Grep, Bash, Write, Edit
8
8
  ---
9
9
 
10
- # /si:extract — Create Skills from Patterns
10
+ # /self-improving-agent extract — Create Skills from Patterns
11
11
 
12
12
  Transforms a recurring pattern or debugging solution into a standalone, portable skill that can be installed in any project.
13
13
 
14
14
  ## Usage
15
15
 
16
16
  ```
17
- /si:extract <pattern description> # Interactive extraction
18
- /si:extract <pattern> --name docker-m1-fixes # Specify skill name
19
- /si:extract <pattern> --output ./skills/ # Custom output directory
20
- /si:extract <pattern> --dry-run # Preview without creating files
17
+ /self-improving-agent extract <pattern description> # Interactive extraction
18
+ /self-improving-agent extract <pattern> --name docker-m1-fixes # Specify skill name
19
+ /self-improving-agent extract <pattern> --output ./skills/ # Custom output directory
20
+ /self-improving-agent extract <pattern> --dry-run # Preview without creating files
21
21
  ```
22
22
 
23
23
  ## When to Extract
@@ -153,7 +153,7 @@ Source: MEMORY.md entries at lines {{n, m, ...}} (retained — the skill is port
153
153
  ### Extracting a debugging pattern
154
154
 
155
155
  ```
156
- /si:extract "Fix for Docker builds failing on Apple Silicon with platform mismatch"
156
+ /self-improving-agent extract "Fix for Docker builds failing on Apple Silicon with platform mismatch"
157
157
  ```
158
158
 
159
159
  Creates `docker-m1-fixes/SKILL.md` with:
@@ -165,7 +165,7 @@ Creates `docker-m1-fixes/SKILL.md` with:
165
165
  ### Extracting a workflow pattern
166
166
 
167
167
  ```
168
- /si:extract "Always regenerate TypeScript API client after modifying OpenAPI spec"
168
+ /self-improving-agent extract "Always regenerate TypeScript API client after modifying OpenAPI spec"
169
169
  ```
170
170
 
171
171
  Creates `api-client-regen/SKILL.md` with:
@@ -7,17 +7,17 @@ user-invocable: false
7
7
  allowed-tools: Read, Glob, Grep, Bash, Write, Edit
8
8
  ---
9
9
 
10
- # /si:promote — Graduate Learnings to Rules
10
+ # /self-improving-agent promote — Graduate Learnings to Rules
11
11
 
12
12
  Moves a proven pattern from Claude's auto-memory into the project's rule system, where it becomes an enforced instruction rather than a background note.
13
13
 
14
14
  ## Usage
15
15
 
16
16
  ```
17
- /si:promote <pattern description> # Auto-detect best target
18
- /si:promote <pattern> --target claude.md # Promote to CLAUDE.md
19
- /si:promote <pattern> --target rules/testing.md # Promote to scoped rule
20
- /si:promote <pattern> --target rules/api.md --paths "src/api/**/*.ts" # Scoped with paths
17
+ /self-improving-agent promote <pattern description> # Auto-detect best target
18
+ /self-improving-agent promote <pattern> --target claude.md # Promote to CLAUDE.md
19
+ /self-improving-agent promote <pattern> --target rules/testing.md # Promote to scoped rule
20
+ /self-improving-agent promote <pattern> --target rules/api.md --paths "src/api/**/*.ts" # Scoped with paths
21
21
  ```
22
22
 
23
23
  ## Workflow
@@ -7,17 +7,17 @@ user-invocable: false
7
7
  allowed-tools: Read, Glob, Grep, Bash, Write, Edit
8
8
  ---
9
9
 
10
- # /si:remember — Save Knowledge Explicitly
10
+ # /self-improving-agent remember — Save Knowledge Explicitly
11
11
 
12
12
  Writes an explicit entry to auto-memory when something is important enough that you don't want to rely on Claude noticing it automatically.
13
13
 
14
14
  ## Usage
15
15
 
16
16
  ```
17
- /si:remember <what to remember>
18
- /si:remember "This project's CI requires Node 20 LTS — v22 breaks the build"
19
- /si:remember "The /api/auth endpoint uses a custom JWT library, not passport"
20
- /si:remember "Reza prefers explicit error handling over try-catch-all patterns"
17
+ /self-improving-agent remember <what to remember>
18
+ /self-improving-agent remember "This project's CI requires Node 20 LTS — v22 breaks the build"
19
+ /self-improving-agent remember "The /api/auth endpoint uses a custom JWT library, not passport"
20
+ /self-improving-agent remember "Reza prefers explicit error handling over try-catch-all patterns"
21
21
  ```
22
22
 
23
23
  ## When to Use
@@ -63,7 +63,7 @@ Keep entries concise — one line when possible. Auto-memory entries don't need
63
63
  If MEMORY.md is over 180 lines, warn the user:
64
64
 
65
65
  ```
66
- ⚠️ MEMORY.md is at {{n}}/200 lines. Consider running /si:review to free space.
66
+ ⚠️ MEMORY.md is at {{n}}/200 lines. Consider running /self-improving-agent review to free space.
67
67
  ```
68
68
 
69
69
  ### Step 4: Suggest promotion
@@ -72,7 +72,7 @@ If the knowledge sounds like a rule (imperative, always/never, convention):
72
72
 
73
73
  ```
74
74
  💡 This sounds like it could be a CLAUDE.md rule rather than a memory entry.
75
- Rules are enforced with higher priority. Want to /si:promote it instead?
75
+ Rules are enforced with higher priority. Want to /self-improving-agent promote it instead?
76
76
  ```
77
77
 
78
78
  ### Step 5: Confirm
@@ -86,10 +86,10 @@ If the knowledge sounds like a rule (imperative, always/never, convention):
86
86
  Claude will see this at the start of every session in this project.
87
87
  ```
88
88
 
89
- ## What NOT to use /si:remember for
89
+ ## What NOT to use /self-improving-agent remember for
90
90
 
91
91
  - **Temporary context**: Use session memory or just tell Claude in conversation
92
- - **Enforced rules**: Use `/si:promote` to write directly to CLAUDE.md
92
+ - **Enforced rules**: Use `/self-improving-agent promote` to write directly to CLAUDE.md
93
93
  - **Cross-project knowledge**: Use `~/.claude/CLAUDE.md` for global rules
94
94
  - **Sensitive data**: Never store credentials, tokens, or secrets in memory files
95
95
 
@@ -7,17 +7,17 @@ user-invocable: false
7
7
  allowed-tools: Read, Glob, Grep, Bash
8
8
  ---
9
9
 
10
- # /si:review — Analyze Auto-Memory
10
+ # /self-improving-agent review — Analyze Auto-Memory
11
11
 
12
12
  Performs a comprehensive audit of Claude Code's auto-memory and produces actionable recommendations.
13
13
 
14
14
  ## Usage
15
15
 
16
16
  ```
17
- /si:review # Full review
18
- /si:review --quick # Summary only (counts + top 3 candidates)
19
- /si:review --stale # Focus on stale/outdated entries
20
- /si:review --candidates # Show only promotion candidates
17
+ /self-improving-agent review # Full review
18
+ /self-improving-agent review --quick # Summary only (counts + top 3 candidates)
19
+ /self-improving-agent review --stale # Focus on stale/outdated entries
20
+ /self-improving-agent review --candidates # Show only promotion candidates
21
21
  ```
22
22
 
23
23
  ## What It Does
@@ -117,14 +117,14 @@ Memory Health:
117
117
  ## When to Use
118
118
 
119
119
  - After completing a major feature or debugging session
120
- - When `/si:status` shows MEMORY.md is over 150 lines
120
+ - When `/self-improving-agent status` shows MEMORY.md is over 150 lines
121
121
  - Weekly during active development
122
122
  - Before starting a new project phase
123
123
  - After onboarding a new team member (review what Claude learned)
124
124
 
125
125
  ## Tips
126
126
 
127
- - Run `/si:review --quick` frequently (low overhead)
127
+ - Run `/self-improving-agent review --quick` frequently (low overhead)
128
128
  - Full review is most valuable when MEMORY.md is getting crowded
129
129
  - Act on promotion candidates promptly — they're proven patterns
130
130
  - Don't hesitate to delete stale entries — auto-memory will re-learn if needed
@@ -7,15 +7,15 @@ user-invocable: false
7
7
  allowed-tools: Read, Glob, Grep, Bash
8
8
  ---
9
9
 
10
- # /si:status — Memory Health Dashboard
10
+ # /self-improving-agent status — Memory Health Dashboard
11
11
 
12
12
  Quick overview of your project's memory state across all memory systems.
13
13
 
14
14
  ## Usage
15
15
 
16
16
  ```
17
- /si:status # Full dashboard
18
- /si:status --brief # One-line summary
17
+ /self-improving-agent status # Full dashboard
18
+ /self-improving-agent status --brief # One-line summary
19
19
  ```
20
20
 
21
21
  ## What It Reports
@@ -88,7 +88,7 @@ done
88
88
  ### Brief mode
89
89
 
90
90
  ```
91
- /si:status --brief
91
+ /self-improving-agent status --brief
92
92
  ```
93
93
 
94
94
  Output: `📊 Memory: {{n}}/200 lines | {{count}} rules | {{status_emoji}} {{status_word}}`
@@ -96,12 +96,12 @@ Output: `📊 Memory: {{n}}/200 lines | {{count}} rules | {{status_emoji}} {{sta
96
96
  ## Interpretation
97
97
 
98
98
  - **Green (< 60%)**: Plenty of room. Auto-memory is working well.
99
- - **Yellow (60-90%)**: Getting full. Consider running `/si:review` to promote or clean up.
100
- - **Red (> 90%)**: Near capacity. Auto-memory may start dropping older entries. Run `/si:review` now.
99
+ - **Yellow (60-90%)**: Getting full. Consider running `/self-improving-agent review` to promote or clean up.
100
+ - **Red (> 90%)**: Near capacity. Auto-memory may start dropping older entries. Run `/self-improving-agent review` now.
101
101
 
102
102
  ## Tips
103
103
 
104
- - Run `/si:status --brief` as a quick check anytime
105
- - If capacity is yellow+, run `/si:review` to identify promotion candidates
104
+ - Run `/self-improving-agent status --brief` as a quick check anytime
105
+ - If capacity is yellow+, run `/self-improving-agent review` to identify promotion candidates
106
106
  - Stale entries waste space — delete references to files that no longer exist
107
107
  - Topic files are fine — Claude creates them to keep MEMORY.md under 200 lines
@@ -47,13 +47,14 @@ class OpenAIProvider(LLMProvider):
47
47
  return response.choices[0].text
48
48
 
49
49
  class AnthropicProvider(LLMProvider):
50
- def __init__(self, api_key: str, model: str = "claude-3-opus"):
50
+ def __init__(self, api_key: str, model: str = "claude-opus-5-5"):
51
51
  self.client = Anthropic(api_key=api_key)
52
52
  self.model = model
53
53
 
54
54
  def chat(self, messages: List[Dict], **kwargs) -> str:
55
55
  response = self.client.messages.create(
56
56
  model=self.model,
57
+ max_tokens=kwargs.pop("max_tokens", 16000),
57
58
  messages=messages,
58
59
  **kwargs
59
60
  )
@@ -97,7 +98,7 @@ def call_with_fallback(
97
98
  |---------|----------|-----------|
98
99
  | Zero-shot | Simple tasks | Task description + input |
99
100
  | Few-shot | Complex tasks | Examples + task + input |
100
- | Chain-of-thought | Reasoning | "Think step by step" + task |
101
+ | Reasoning | Multi-step problems | On models with adaptive thinking, raise `effort` instead of asking for step-by-step text |
101
102
  | Role-based | Specialized output | System role + task |
102
103
 
103
104
  ### Few-Shot Template
@@ -178,10 +179,8 @@ def truncate_to_token_limit(text: str, max_tokens: int, model: str = "gpt-4") ->
178
179
 
179
180
  | Model | Context Window | Effective Limit |
180
181
  |-------|----------------|-----------------|
181
- | GPT-4 | 8,192 | ~6,000 (leave room for response) |
182
- | GPT-4-32k | 32,768 | ~28,000 |
183
- | Claude 3 | 200,000 | ~180,000 |
184
- | Llama 3 | 8,192 | ~6,000 |
182
+ | Claude Opus 5.5 / Sonnet 5.5 / Haiku 5.5 | 1,000,000 | leave room for `max_tokens` |
183
+ | Other providers | check the provider's model docs | context windows change every release |
185
184
 
186
185
  ### Chunking Strategy
187
186
 
@@ -206,12 +205,7 @@ def chunk_text(text: str, chunk_size: int = 1000, overlap: int = 100) -> List[st
206
205
 
207
206
  ### Cost Calculation
208
207
 
209
- | Provider | Input Cost | Output Cost | Example (1K tokens) |
210
- |----------|------------|-------------|---------------------|
211
- | GPT-4 | $0.03/1K | $0.06/1K | $0.09 |
212
- | GPT-3.5 | $0.0005/1K | $0.0015/1K | $0.002 |
213
- | Claude 3 Opus | $0.015/1K | $0.075/1K | $0.09 |
214
- | Claude 3 Haiku | $0.00025/1K | $0.00125/1K | $0.0015 |
208
+ Prices change with every model release, so keep them out of code: read them from config, and take the numbers from each provider's pricing page. Count tokens with the provider's response metadata (`usage`), not with a character estimate.
215
209
 
216
210
  ### Cost Tracking
217
211
 
@@ -229,30 +223,19 @@ class LLMUsage:
229
223
  def calculate_cost(
230
224
  input_tokens: int,
231
225
  output_tokens: int,
232
- model: str
226
+ prices: dict,
233
227
  ) -> float:
234
- """Calculate cost based on token usage."""
235
- PRICING = {
236
- "gpt-4": {"input": 0.03, "output": 0.06},
237
- "gpt-3.5-turbo": {"input": 0.0005, "output": 0.0015},
238
- "claude-3-opus": {"input": 0.015, "output": 0.075},
239
- }
240
-
241
- prices = PRICING.get(model, {"input": 0.01, "output": 0.03})
242
-
243
- input_cost = (input_tokens / 1000) * prices["input"]
244
- output_cost = (output_tokens / 1000) * prices["output"]
245
-
246
- return input_cost + output_cost
228
+ """Cost in USD. `prices` comes from config: {"input": usd_per_mtok, "output": usd_per_mtok}."""
229
+ return (input_tokens * prices["input"] + output_tokens * prices["output"]) / 1_000_000
247
230
  ```
248
231
 
249
232
  ### Cost Optimization Strategies
250
233
 
251
- 1. **Use smaller models for simple tasks** - GPT-3.5 for classification, GPT-4 for reasoning
252
- 2. **Cache common responses** - Store results for repeated queries
253
- 3. **Batch requests** - Combine multiple items in single prompt
254
- 4. **Truncate context** - Only include relevant information
255
- 5. **Set max_tokens limit** - Prevent runaway responses
234
+ 1. **Use a smaller model where it holds quality** - measure on real requests before routing a task to it
235
+ 2. **Cache repeated context** - provider prompt caching makes a stable system prompt or document far cheaper on repeat calls
236
+ 3. **Batch non-urgent work** - batch APIs trade latency for a lower price
237
+ 4. **Cache common responses** - store results for repeated queries
238
+ 5. **Set max_tokens deliberately** - high enough not to cut answers off, as a ceiling on runaway output
256
239
 
257
240
  ---
258
241