Skip to content

Commit fd824f1

Browse files
luiseimanclaude
andcommitted
docs: update all documentation to v2.5.0
README.md: - Badge 2.4.0 → 2.5.0 - Architecture tree: add mcp/, 16 stacks, 7 agents - Feature matrix: add MCP templates row (EN + ES) - Skills table: add /cap alias row (EN + ES) - Agents table: add Model column with haiku/sonnet/opus (EN + ES) - Stacks table: add hookify and trading rows (EN + ES) - Practices pipeline: mention /cap and auto-detect (EN + ES) - Docs section: update changelog/roadmap refs (EN + ES) ROADMAP.md: - Header: v2.4.0 → v2.5.0 - Add v2.5.0 completed section - Remove duplicate v2.6.0 section - v2.6.0 correctly marked as "próximo" docs/changelog.md: add v2.5.0 entry docs/usage-guide.md: version 2.0.0→2.5.0, add MCP templates section (#13) and model routing section (#14), update agents count 6→7, /cap alias docs/best-practices.md: add Model selection subsection (EN + ES) docs/creating-stacks.md: add Stacks vs MCP templates comparison docs/troubleshooting.md: add MCP troubleshooting + /cap no-detect case docs/roadmap.md: reframe as historical document, link to ROADMAP.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 084f631 commit fd824f1

8 files changed

Lines changed: 227 additions & 81 deletions

File tree

README.md

Lines changed: 52 additions & 36 deletions
Large diffs are not rendered by default.

ROADMAP.md

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Roadmap claude-kit
22

3-
Estado actual: **v2.4.0** (2026-03-21)
3+
Estado actual: **v2.5.0** (2026-03-21)
4+
5+
---
6+
7+
## v2.5.0 — Completado
8+
9+
- `/forge capture` sin args: auto-detección de contexto de sesión, propone insight pre-formateado, pide confirmación Y/n/edit antes de guardar
10+
- `/cap`: alias shorthand para `/forge capture` — 4 chars vs 14
11+
- Regla proactiva de captura en `template/rules/_common.md`: Claude sugiere `/cap` al detectar workaround, bug multi-intento, decisión con trade-offs, o comportamiento no-obvio
12+
- MCP server templates en `mcp/`: github, postgres, supabase, redis, slack — cada uno con config.json, permissions.json, rules.md
13+
- `template/rules/model-routing.md`: criterios explícitos para haiku/sonnet/opus por tipo de tarea
14+
- 7 agents actualizados con modelo explícito (researcher/test-runner=haiku, implementer/code-reviewer/session-reviewer=sonnet, architect/security-auditor=opus)
415

516
---
617

@@ -25,41 +36,7 @@ Estado actual: **v2.4.0** (2026-03-21)
2536

2637
---
2738

28-
## v2.5.0 — Learning loop + MCP + Model routing
29-
30-
Foco: cerrar el loop de aprendizaje automático, cubrir el gap de MCP, y establecer model routing explícito.
31-
32-
### `/forge capture` sin args — auto-detección de contexto
33-
34-
- `/forge capture` sin argumentos analiza el contexto reciente de la conversación
35-
- Propone un insight pre-formateado basado en señales de la sesión (workaround, bug multi-intento, decisión con trade-offs)
36-
- Pide confirmación o edición antes de guardar — nunca escribe sin aprobación del usuario
37-
- Complementa la regla proactiva de A1 (ya implementada en `template/rules/_common.md`)
38-
- Complementa el alias `/cap` (ya implementado en `global/commands/cap.md`)
39-
- Modifica: `skills/capture-practice/SKILL.md` — agregar rama de `$ARGUMENTS` vacío
40-
41-
### MCP server templates
42-
43-
- Nuevo directorio `mcp/` con templates para servicios comunes
44-
- Templates iniciales: github, postgres, supabase, redis, slack
45-
- Cada template: `config.json` (entrada mergeable a mcpServers), `permissions.json` (allow/deny por tool), `rules.md` (reglas Claude-consumed con globs frontmatter)
46-
- `mcp/README.md`: instrucciones de instalación y composición
47-
- `mcp/_detect.md`: señales de detección para `/forge bootstrap`
48-
- `/forge bootstrap` detecta `mcpServers` en `~/.claude/settings.json` y sugiere instalar rules
49-
- Separación global/proyecto: mcpServers vive en `~/.claude/`, rules en `.claude/rules/mcp-<name>.md`
50-
51-
### Model routing rules
52-
53-
- Nuevo archivo `template/rules/model-routing.md`
54-
- Criterios explícitos para haiku / sonnet / opus por tipo de tarea
55-
- Los 7 agents actualizan su frontmatter `model:` con el modelo óptimo por rol:
56-
- `researcher`, `test-runner` → haiku (velocidad sobre profundidad)
57-
- `implementer`, `code-reviewer`, `session-reviewer` → sonnet (implementación estándar)
58-
- `architect`, `security-auditor` → opus (razonamiento profundo, consecuencias altas)
59-
60-
---
61-
62-
## v2.6.0 — CI/CD + Ecosystem automation
39+
## v2.6.0 — CI/CD + Ecosystem automation (próximo)
6340

6441
Foco: integración con flujos de trabajo de PR y detección automática de cambios de stack.
6542

docs/best-practices.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ Enable: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
132132
- Each teammate = full session (~5x tokens)
133133
- Verify they don't edit the same files
134134

135+
### Model selection
136+
137+
Use the right model for the task — defined in `template/rules/model-routing.md`:
138+
139+
- **haiku**: search, test execution, repetitive transforms, short lookups
140+
- **sonnet**: implementation, debugging, code review, documentation
141+
- **opus**: architecture decisions, security audits, ambiguous high-stakes tasks
142+
143+
Escalate when: multiple valid approaches with real consequences, production/security risk, or unclear approach after 2 attempts.
144+
145+
Agents have explicit model defaults. Override only when the task warrants it.
146+
135147
---
136148

137149
## 4. Project lifecycle
@@ -333,6 +345,18 @@ Activar: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
333345
- Cada teammate = sesión completa (~5x tokens)
334346
- Verificar que no editen los mismos archivos
335347

348+
### Selección de modelo
349+
350+
Usar el modelo correcto por tipo de tarea — definido en `template/rules/model-routing.md`:
351+
352+
- **haiku**: búsquedas, ejecución de tests, transforms repetitivos, lookups cortos
353+
- **sonnet**: implementación, debugging, code review, documentación
354+
- **opus**: decisiones arquitectónicas, auditorías de seguridad, tareas ambiguas de alto impacto
355+
356+
Escalar cuando: múltiples approaches válidos con consecuencias reales, riesgo en producción/seguridad, o approach poco claro después de 2 intentos.
357+
358+
Los agentes tienen modelos explícitos por defecto. Overridear solo cuando la tarea lo justifica.
359+
336360
---
337361

338362
## 4. Ciclo de vida del proyecto

docs/changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44
>
55
> Historial de versiones. Las entradas usan español/inglés mixto según la evolución del proyecto. Los términos técnicos son universales.
66
7+
## v2.5.0 (2026-03-21)
8+
9+
### Learning Loop + MCP Templates + Model Routing
10+
11+
- Nuevo: `/forge capture` modo auto-detección — sin args, analiza contexto de sesión, propone insight pre-formateado, pide confirmación Y/n/edit antes de guardar
12+
- Nuevo: `/cap` — alias shorthand para `/forge capture` (4 chars vs 14)
13+
- Nuevo: Regla proactiva en `template/rules/_common.md` — Claude sugiere `/cap` al detectar workaround, bug multi-intento, decisión con trade-offs, o comportamiento de API no-obvio
14+
- Nuevo: `mcp/` — templates de servidores MCP para github, postgres, supabase, redis, slack. Cada uno con config.json (mcpServers entry), permissions.json (allow/deny/prompt por tool), rules.md (reglas Claude-consumed). Auto-detectados por `/forge bootstrap`
15+
- Nuevo: `template/rules/model-routing.md` — criterios explícitos haiku/sonnet/opus por tipo de tarea, con tabla de escalation y MCP operations
16+
- Cambio: 7 agents con modelo explícito — researcher/test-runner=haiku, implementer/code-reviewer/session-reviewer=sonnet, architect/security-auditor=opus. Anterior: todos en `model: inherit`
17+
- ROADMAP reescrito: documenta v2.4.0 completado, v2.5.0 completado, v2.6.0 próximo, descartados
18+
19+
---
20+
721
## v2.4.0 (2026-03-21)
822

923
### Init, Unregister, Auto-update, Privacy

docs/creating-stacks.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,16 @@ stacks/redis/
205205
```
206206

207207
Detección en bootstrap: `redis` aparece en `requirements.txt` o `pyproject.toml`.
208+
209+
## Stacks vs MCP templates
210+
211+
Stacks and MCP server templates are complementary, not alternatives:
212+
213+
| | Stack | MCP template |
214+
|---|---|---|
215+
| **What it provides** | Rules, permissions, hooks for local code | Config, permissions, rules for external services |
216+
| **Location** | `stacks/<name>/` | `mcp/<name>/` |
217+
| **Installed to** | `.claude/rules/` + `.claude/settings.json` | `.claude/rules/mcp-<name>.md` + permissions |
218+
| **When to use** | Your code uses this technology | Claude uses this external service via MCP |
219+
220+
Example: A project using Redis locally AND the Redis MCP server would use **both**: the `redis` stack (rules for writing Redis code) and `mcp/redis/` (rules for using Redis tools in Claude sessions).

docs/roadmap.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# Roadmap claude-kit v1.0.0 → v2.0.0
1+
# Roadmap claude-kit — Historical (v1.0.0 → v2.5.0)
22

3-
> Development roadmap. Entries use mixed Spanish/English. See [changelog.md](changelog.md) for completed items.
3+
> **This document is the historical development roadmap used during v1.x and v2.x development.**
4+
> For the current roadmap and upcoming features, see [ROADMAP.md](../ROADMAP.md).
5+
> For completed version history, see [changelog.md](changelog.md).
46
>
5-
> Hoja de ruta de desarrollo. Las entradas usan español/inglés mixto. Ver [changelog.md](changelog.md) para items completados.
7+
> **Este documento es el roadmap histórico de desarrollo usado durante v1.x y v2.x.**
8+
> Para el roadmap actual y features próximas, ver [ROADMAP.md](../ROADMAP.md).
9+
> Para el historial de versiones completadas, ver [changelog.md](changelog.md).
610
711
## Vision / Visión
812

docs/troubleshooting.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,30 @@ chmod +x .claude/hooks/*.sh
121121
- El hook evita duplicados por día
122122

123123
**Fix:** Instalar manualmente el hook global siguiendo las instrucciones en el script.
124+
125+
## MCP server tools not available
126+
127+
**Symptom:** Claude can't use GitHub/Postgres/Supabase tools even though the MCP server is configured.
128+
129+
**Checklist:**
130+
1. Is the server registered in `~/.claude/settings.json` under `mcpServers`?
131+
2. Is the required env var set? (`GITHUB_TOKEN`, `DATABASE_URL`, `SUPABASE_ACCESS_TOKEN`)
132+
3. Is the npm package installed or accessible via `npx`?
133+
134+
**Fix:** Copy the `mcpServers` entry from `mcp/<server>/config.json` into `~/.claude/settings.json`.
135+
136+
## MCP tool denied unexpectedly
137+
138+
**Symptom:** Claude says a tool is blocked when you expected it to work.
139+
140+
**Cause:** The tool appears in the `deny` list in `.claude/settings.json` from the template in `mcp/<server>/permissions.json`.
141+
142+
**Fix:** Review `mcp/<server>/permissions.json`. Move the tool from `deny` to `allow` (or remove from deny) in `.claude/settings.json` if appropriate for your project.
143+
144+
## /cap or /forge capture auto-detect finds nothing
145+
146+
**Symptom:** Running `/cap` returns "No generalizable insight detected in this session."
147+
148+
**Cause:** The skill looks for specific signals (workaround, multi-attempt bug, arch decision, non-obvious API behavior). Routine sessions with clean first-attempt solutions won't trigger.
149+
150+
**Fix:** Use `/cap "description"` with explicit text. Auto-detect is for non-trivial sessions only.

docs/usage-guide.md

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Usage Guide — claude-kit
22

3-
**Version:** 2.0.0
4-
**Date:** 2026-03-20
3+
**Version:** 2.5.0
4+
**Date:** 2026-03-21
55

66
claude-kit is a configuration factory for Claude Code. It generates and maintains the `.claude/` folder of your projects: rules, hooks, permissions, agents, and commands. Everything is markdown + shell scripts — no application code.
77

@@ -21,6 +21,8 @@ claude-kit is a configuration factory for Claude Code. It generates and maintain
2121
10. [Generated structure](#10-generated-structure)
2222
11. [Config validation](#11-config-validation)
2323
12. [FAQ](#12-faq)
24+
13. [MCP server templates](#13-mcp-server-templates)
25+
14. [Model routing](#14-model-routing)
2426

2527
---
2628

@@ -46,7 +48,7 @@ cd ~/Documents/GitHub/claude-kit # or wherever you cloned claude-kit
4648
| Component | Location | Method |
4749
|-----------|----------|--------|
4850
| Skills (15) | `~/.claude/skills/` | Symlinks |
49-
| Agents (6) | `~/.claude/agents/` | Symlinks |
51+
| Agents (7) | `~/.claude/agents/` | Symlinks |
5052
| `/forge` command | `~/.claude/commands/forge.md` | Copy (Claude Code does not follow symlinks for commands) |
5153
| Global CLAUDE.md | `~/.claude/CLAUDE.md` | Merge with `<!-- forge:custom -->` preservation |
5254
| Global settings.json | `~/.claude/settings.json` | Merge of deny list + hooks |
@@ -65,7 +67,7 @@ Output:
6567
CLAUDE.md: OK synced
6668
settings.json: deny list 9 items (template: 9)
6769
Skills: 15/15 installed
68-
Agents: 6/6 installed
70+
Agents: 7/7 installed
6971
Commands: forge.md (file)
7072
```
7173

@@ -277,7 +279,9 @@ Deletes `.claude/` and re-runs a full bootstrap. But:
277279

278280
| Command | Description |
279281
|---------|-------------|
280-
| `/forge capture "text"` | Record an insight in inbox |
282+
| `/forge capture "text"` | Record an insight in inbox (explicit) |
283+
| `/forge capture` | Auto-detect mode: analyzes session context, proposes insight, asks Y/n/edit before saving |
284+
| `/cap` | Shorthand alias for `/forge capture` (auto-detect mode) |
281285
| `/forge update` | Process inbox -> evaluate -> incorporate |
282286
| `/forge watch` | Check for updates in Anthropic docs |
283287
| `/forge scout` | Review curated repos for patterns |
@@ -425,7 +429,7 @@ Last update: 2026-03-20
425429
| Rules (_common + stack) | Y | Y | Y |
426430
| Hook lint-on-save | -- | Y | Y |
427431
| Commands (audit, health, debug, review) | -- | Y | Y |
428-
| Agents (6) + orchestration | -- | Y | Y |
432+
| Agents (7) + orchestration | -- | Y | Y |
429433
| CLAUDE_ERRORS.md | -- | Y (empty) | Y (pre-populated) |
430434
| Rule memory.md | -- | Y | Y |
431435
| Hook warn-missing-test | -- | -- | Y |
@@ -617,6 +621,73 @@ No. With the `minimal` profile they are not installed. With `standard` and `full
617621

618622
---
619623

624+
## 13. MCP server templates
625+
626+
MCP servers extend Claude Code with tools for external services. claude-kit provides ready-to-use templates in `mcp/` covering configuration, permissions, and usage rules.
627+
628+
### Available templates
629+
630+
| Server | Package | Tools |
631+
|--------|---------|-------|
632+
| `github` | `@modelcontextprotocol/server-github` | Issues, PRs, code search, file contents |
633+
| `postgres` | `@modelcontextprotocol/server-postgres` | Read-only SQL queries, schema inspection |
634+
| `supabase` | `@supabase/mcp-server-supabase` | Projects, tables, migrations, branches, logs |
635+
| `redis` | `mcp-server-redis` (community) | Key inspection, stream monitoring |
636+
| `slack` | `@modelcontextprotocol/server-slack` | Messages, channels, search |
637+
638+
### Installation
639+
640+
**Step 1 — Register the server globally (once per machine):**
641+
Copy the `mcpServers` entry from `mcp/<server>/config.json` into `~/.claude/settings.json`. Replace `${ENV_VAR}` with real values or set env vars in your shell profile.
642+
643+
**Step 2 — Install project rules:**
644+
```bash
645+
cp mcp/<server>/rules.md .claude/rules/mcp-<server>.md
646+
```
647+
648+
Or let `/forge bootstrap` handle it automatically — it detects configured `mcpServers` in `~/.claude/settings.json` and offers to install matching rule templates.
649+
650+
### Security posture
651+
652+
Each template defines three tiers:
653+
- **Auto-allowed**: read operations (list, get, search)
654+
- **Prompt required**: write operations not in allow or deny lists
655+
- **Always denied**: destructive operations (delete_project, merge_pull_request, flushdb)
656+
657+
See [mcp/README.md](../mcp/README.md) for full documentation.
658+
659+
---
660+
661+
## 14. Model routing
662+
663+
claude-kit includes explicit model selection criteria in `template/rules/model-routing.md`. Every bootstrapped project gets this rule, which guides both direct Claude work and subagent instantiation.
664+
665+
### Criteria
666+
667+
| Model | Use for |
668+
|-------|---------|
669+
| **haiku** | File search, grepping, running tests, repetitive transformations, short factual questions |
670+
| **sonnet** | Feature implementation, bug fixing (known root cause), code review, standard debugging, docs |
671+
| **opus** | Architecture decisions with real tradeoffs, security audits, ambiguous tasks, production-risk operations |
672+
673+
### Agent assignments
674+
675+
| Agent | Model | Reason |
676+
|-------|-------|--------|
677+
| researcher | haiku | Exploration — speed over depth |
678+
| test-runner | haiku | Execute and report — no reasoning needed |
679+
| implementer | sonnet | Standard implementation work |
680+
| code-reviewer | sonnet | Focused review, single concern |
681+
| session-reviewer | sonnet | Pattern analysis, not architecture |
682+
| architect | opus | Tradeoffs with lasting consequences |
683+
| security-auditor | opus | Missing a vulnerability has prod consequences |
684+
685+
### Escalation rule
686+
687+
Start with sonnet. Escalate to opus when: 2+ valid approaches with real consequences for choosing wrong, task touches security/data integrity/production systems, or after 2 attempts the approach is still unclear.
688+
689+
---
690+
620691
## Full visual flow
621692

622693
```

0 commit comments

Comments
 (0)