Explorar o código

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 hai 4 meses
pai
achega
855b6ccef8
Modificáronse 4 ficheiros con 57 adicións e 15 borrados
  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

@@ -12,13 +12,13 @@
 
 > *A comprehensive extension toolkit that transforms Claude Code into a specialized development powerhouse.*
 
-**claude-mods** is a production-ready plugin that extends Claude Code with 22 expert agents, 65 specialized skills, 4 output styles, 3 hooks, and modern CLI tools designed for real-world development workflows. Whether you're debugging React hooks, optimizing PostgreSQL queries, or building production CLI applications, this toolkit equips Claude with the domain expertise and procedural knowledge to work at expert level across multiple technology stacks.
+**claude-mods** is a production-ready plugin that extends Claude Code with 22 expert agents, 64 specialized skills, 4 output styles, 3 hooks, and modern CLI tools designed for real-world development workflows. Whether you're debugging React hooks, optimizing PostgreSQL queries, or building production CLI applications, this toolkit equips Claude with the domain expertise and procedural knowledge to work at expert level across multiple technology stacks.
 
 Built on [Anthropic's Agent Skills standard](https://github.com/anthropics/skills), claude-mods fills critical gaps in Claude Code's capabilities: persistent session state that survives across machines, on-demand expert knowledge for specialized domains, token-efficient modern CLI tools (10-100x faster than traditional alternatives), and proven workflow patterns for TDD, code review, and feature development. The toolkit implements Anthropic's [recommended patterns for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents), ensuring your development context never vanishes when sessions end.
 
 From Python async patterns to Rust ownership models, from AWS Fargate deployments to Craft CMS development - claude-mods provides the specialized knowledge and tools that transform Claude from a general-purpose assistant into a domain expert who understands your stack, remembers your workflow, and ships production code.
 
-**22 agents. 65 skills. 4 styles. 3 hooks. One install.**
+**22 agents. 64 skills. 4 styles. 3 hooks. One install.**
 
 ## Recent Updates
 

+ 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.
 ```