From arch-protocol
Use when the user wants to analyze accumulated ARCH LOGs, detect failure patterns, and get proposed improvements to SKILL.md or CLAUDE.md
How this skill is triggered — by the user, by Claude, or both
Slash command
/arch-protocol:arch-evolveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reads accumulated LOG entries, clusters failure patterns, and proposes concrete changes — either to the global ARCH skill (`SKILL.md`) or to the local project context (`CLAUDE.md` / `MEMORY.md`). Never applies changes without explicit approval.
Reads accumulated LOG entries, clusters failure patterns, and proposes concrete changes — either to the global ARCH skill (SKILL.md) or to the local project context (CLAUDE.md / MEMORY.md). Never applies changes without explicit approval.
| Scope | Source | Evolves | Use when |
|---|---|---|---|
--global | ~/.arch/retro.md | SKILL.md | Pattern is universal (repeats across projects) |
--local | ./.arch/retro.md | CLAUDE.md or MEMORY.md | Pattern is specific to this project, stack, or domain |
Local capture is opt-in: run mkdir .arch in a project to start collecting local LOGs there.
1. Determine scope
--global: use ~/.arch/retro.md → propose changes to SKILL.md--local: use ./.arch/retro.md → propose changes to CLAUDE.md / MEMORY.md2. Check data
Read the retro file. If fewer than 5 LOG entries exist, say so and suggest waiting. If the file is missing, explain how to enable capture (mkdir .arch for local, the hook handles global automatically).
3. Cluster failures
Extract all ❌ lines. Group by semantic similarity. Count occurrences. Only surface patterns with 3+ occurrences — single instances are noise.
4. Classify each pattern
For each pattern, determine scope automatically:
If ambiguous, ask the user.
5. Report
📊 Patrones detectados en [N] LOGs ([scope]):
[count]× "[failure summary]" → [global|local]
[count]× "[failure summary]" → [global|local]
6. Propose changes (max 3)
For global patterns, propose a diff to SKILL.md:
📝 Propuesta global para SKILL.md:
[+] Añadir a Rationalization Table:
| "[pattern]" | [counter] |
For local patterns, propose an addition to CLAUDE.md or MEMORY.md:
📝 Propuesta local para CLAUDE.md:
[+] Añadir sección:
## [Topic]
[specific context or rule for this project]
7. Ask for approval
"¿Aplicamos alguno? Di el número o 'ninguno'."
If approved:
~/.claude/skills/arch-protocol/SKILL.md and remind the user to also update the repo and bump the patch versionCLAUDE.md or MEMORY.md in the current projectIf rejected: note the reason and suggest revisiting after more LOGs accumulate.
npx claudepluginhub valentinlineiro/arch-protocol --plugin arch-protocolProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.