Просмотр исходного кода

fix: Correct skill count (64 not 65), add iterate preflight (v2.2.1)

- Fix skill count across README, AGENTS.md, plugin.json (+iterate -templates = 64)
- Add 6-step preflight to /iterate: plan, permissions, tasks, tests, baseline
- Add TaskCreate/TaskUpdate to iterate allowed-tools

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0xDarkMatter 2 месяцев назад
Родитель
Сommit
855b6ccef8
4 измененных файлов с 57 добавлено и 15 удалено
  1. 2 2
      .claude-plugin/plugin.json
  2. 1 1
      AGENTS.md
  3. 2 2
      README.md
  4. 52 10
      skills/iterate/SKILL.md

+ 2 - 2
.claude-plugin/plugin.json

@@ -1,7 +1,7 @@
 {
   "name": "claude-mods",
-  "version": "2.2.0",
-  "description": "Custom commands, skills, and agents for Claude Code - session continuity, 22 expert agents, 65 skills, 3 commands, 5 rules, 3 hooks, 4 output styles, modern CLI tools",
+  "version": "2.2.1",
+  "description": "Custom commands, skills, and agents for Claude Code - session continuity, 22 expert agents, 64 skills, 3 commands, 5 rules, 3 hooks, 4 output styles, modern CLI tools",
   "author": "0xDarkMatter",
   "repository": "https://github.com/0xDarkMatter/claude-mods",
   "license": "MIT",

+ 1 - 1
AGENTS.md

@@ -5,7 +5,7 @@
 This is **claude-mods** - a collection of custom extensions for Claude Code:
 - **22 expert agents** for specialized domains (React, Python, Go, Rust, AWS, etc.)
 - **3 commands** for session management (/sync, /save) and experimental features (/canvas)
-- **65 skills** for CLI tools, patterns, workflows, and development tasks
+- **64 skills** for CLI tools, patterns, workflows, and development tasks
 - **4 output styles** for response personality (Vesper, Spartan, Mentor, Executive)
 - **3 hooks** for pre-commit linting, post-edit formatting, and dangerous command warnings
 

Разница между файлами не показана из-за своего большого размера
+ 2 - 2
README.md


+ 52 - 10
skills/iterate/SKILL.md

@@ -1,7 +1,7 @@
 ---
 name: iterate
 description: "Autonomous improvement loop - modify, measure, keep or discard, repeat. Inspired by Karpathy's autoresearch. Triggers on: iterate, improve autonomously, run overnight, keep improving, autoresearch, improvement loop, iterate until done, autonomous iteration."
-allowed-tools: "Read Write Edit Glob Grep Bash Agent"
+allowed-tools: "Read Write Edit Glob Grep Bash Agent TaskCreate TaskUpdate TaskList"
 ---
 
 # Iterate - Autonomous Improvement Loop
@@ -10,9 +10,13 @@ Inspired by [Karpathy's autoresearch](https://github.com/karpathy/autoresearch):
 
 The power is in the constraint. One metric. One scope. One loop. Git as memory.
 
-## Setup
+## Preflight
 
-Collect five inputs. If the user provides them inline, extract and proceed. If any are missing, ask once using `AskUserQuestion` with all missing fields batched together.
+Before the loop starts, do the work that makes the loop effective. Don't skip steps - this discipline is what separates a productive overnight run from a flailing one.
+
+### 1. Collect Config
+
+Five inputs. If provided inline, extract and proceed. If any are missing, ask once using `AskUserQuestion` with all missing fields batched together.
 
 | Field | Required | What it is | Example |
 |-------|----------|------------|---------|
@@ -24,15 +28,51 @@ Collect five inputs. If the user provides them inline, extract and proceed. If a
 
 **Bounded mode:** If the user includes `Iterations: N`, run exactly N iterations then stop with a summary. Otherwise, loop forever until interrupted.
 
-### Baseline
+### 2. Plan
+
+Read all in-scope files. Understand the codebase before touching anything.
+
+- What's the current state? What's already been tried?
+- What are the likely improvement vectors? Rank them.
+- What are the risks? What could break?
+- Form a rough strategy for the first 5-10 iterations.
+
+### 3. Permissions
+
+Check that `allowed-tools` cover what the loop needs. The verify and guard commands must run without permission prompts - a blocked tool at 3am kills the whole run.
+
+- Dry-run the verify command. If it gets blocked, note which `Bash(command:*)` pattern is needed.
+- Dry-run the guard command (if set). Same check.
+- If permissions are missing, suggest specific wildcard additions for `.claude/settings.local.json` and ask the user to approve before starting. Reference `/setperms` for a full setup.
+
+### 4. Tasks
+
+Create a TaskList to track progress across iterations. This provides structure the user can check without reading the full results log.
+
+```
+TaskCreate: "Establish baseline" (status: in_progress)
+TaskCreate: "Iteration loop - [goal]" (status: pending)
+TaskCreate: "Final summary and cleanup" (status: pending)
+```
+
+Update task status as the loop progresses. Mark the iteration task as `in_progress` when the loop starts, `completed` when it ends.
+
+### 5. Tests and Verification
+
+Before the first iteration, make sure verification actually works:
+
+- Run the verify command on the current state. If it fails or produces no parseable number, fix this first.
+- Run the guard command (if set). If it fails on the current state, the codebase has pre-existing issues - flag to the user.
+- If tests don't exist yet for the scope, consider writing them as iteration 0. Good tests make the loop more effective.
+
+### 6. Baseline
 
-Once config is complete:
+Record the starting point:
 
-1. Read all in-scope files for full context
-2. Run the verify command on the current state
-3. Extract the metric value - this is iteration 0 (baseline)
-4. Create `results.tsv` with the header and baseline row
-5. Confirm setup to the user, then begin the loop
+1. Run verify command, extract the metric - this is iteration 0
+2. Create `results.tsv` with the header and baseline row
+3. Update the baseline task to `completed`
+4. Confirm setup to the user, then begin the loop
 
 ```
 Goal:      Increase test coverage to 90%
@@ -42,6 +82,8 @@ Direction: higher
 Guard:     npm run typecheck
 Baseline:  72.3%
 Mode:      unbounded
+Tasks:     3 created
+Permissions: verified (all commands pre-approved)
 
 Starting iteration loop.
 ```