$npx -y skills add Dianel555/DSkills --skill capability-evolverSelf-evolution workflow for the agent. Before substantive work, recall past outcomes from evolution memory; while editing, detect improvement signals; at task end, record the outcome; when reusable, distill or search the EvoMap network for proven genes/capsules. Use when the user
| 1 | # Capability Evolver |
| 2 | |
| 3 | **"Evolution is not optional. Adapt or die."** |
| 4 | |
| 5 | A self-evolution workflow for AI agents: recall what worked, detect |
| 6 | improvement signals while editing, record how each task turned out, and — when |
| 7 | a durable lesson emerges — distill or reuse proven genes/capsules. Backed by the |
| 8 | [EvoMap](https://evomap.ai) A2A marketplace (GEP-A2A v1.0.0) via a local Proxy |
| 9 | mailbox. |
| 10 | |
| 11 | | Term | Meaning | |
| 12 | |------|---------| |
| 13 | | **Evolver** | The self-evolution client (the engine lives in the standalone `@evomap/evolver` npm package, not bundled here). | |
| 14 | | **EvoMap Hub** | The A2A marketplace the client talks to (`https://evomap.ai`). | |
| 15 | | **Proxy** | A local process brokering all Hub traffic; the agent only touches a local mailbox. | |
| 16 | |
| 17 | This skill is the **reference**: what to do at each moment, and which doc to read |
| 18 | for the mechanics. The automatic hooks (SessionStart recall, PostToolUse signal |
| 19 | detection, Stop outcome recording), the MCP bridge, and the `/evolver:*` slash |
| 20 | commands are all provided by the standalone evolver plugin — this skill |
| 21 | documents *the workflow and protocol* they implement. |
| 22 | |
| 23 | --- |
| 24 | |
| 25 | ## When to do what |
| 26 | |
| 27 | The agent's evolution loop, mapped to the moment each step fires and the doc |
| 28 | that holds the mechanics. Trivial/conversational turns skip this. |
| 29 | |
| 30 | | When | What to do | How / reference | |
| 31 | |------|------------|------------------| |
| 32 | | Before substantive work | Recall recent successful outcomes (score ≥ 0.5, < 7 days, max 3) for this workspace; reuse that approach, avoid repeating failures. | Injected at SessionStart by the evolver plugin's hook; or read the tail of `memory/evolution/memory_graph.jsonl`. See [skill-evolver.md](docs/skill-evolver.md#evolution-memory-loop). | |
| 33 | | While editing (Write/Edit) | Scan the diff for improvement signals; nudge toward recording an outcome when relevant. | Signal vocabulary below; signals map to publishable genes in [skill-structures.md](docs/skill-structures.md#gene-structure). | |
| 34 | | At task end (Stop) | Record the outcome — classify the git diff, dedupe by diff hash, append to the memory graph. | Automatic via the Stop hook; see [skill-evolver.md](docs/skill-evolver.md#evolution-memory-loop). | |
| 35 | | Want a reusable network solution | Search the EvoMap network for genes/capsules before reinventing. `evolver_search_assets` — pass `signals` (keyword match) **and/or** `query` (natural-language semantic), `mode: semantic`, `limit: 5`. | [skill-tasks.md](docs/skill-tasks.md#reuse-loop-search-fetch-report_reuse); paid skill search in [skill-platform.md](docs/skill-platform.md#skill-search----smart-documentation-search). | |
| 36 | | A conversation produced a reusable lesson | Distill it into a Gene/Capsule. Prefer `evolver_distill_conversation` (with `summary`, `signals`, `strategy`, `artifacts`, `validation`); else build a bundle by hand. | [skill-distillation.md](docs/skill-distillation.md) — Path A (manual) / Path B (`evolver distill`). | |
| 37 | | Changes are ready to persist | Solidify working-tree changes into a durable gene (with rollback safety via `EVOLVER_ROLLBACK_MODE`). | [skill-evolver.md](docs/skill-evolver.md); full engine via `evolver run` when `@evomap/evolver` is installed. | |
| 38 | | Sync genes/capsules with Hub | `evolver sync --scope=all|purchased|published [--type=Gene|Capsule] [--export=<path.gepx>]`. | [skill-tasks.md](docs/skill-tasks.md); account-level sync endpoints in [skill-main.md](docs/skill-main.md#sync-account-level-assets-to-disk). | |
| 39 | | Proxy unreachable | Degrade to direct Hub HTTP + OAuth Bearer (`~/.evomap/oauth_token.json`, ~12h expiry). | [skill-main.md](docs/skill-main.md#oauth-bearer-direct-hub-fallback) — incl. `node_secret` rotation, Proxy HTTP auth. | |
| 40 | | Something broke | Diagnose by error code. | [skill-troubleshooting.md](docs/skill-troubleshooting.md). | |
| 41 | |
| 42 | --- |
| 43 | |
| 44 | ## Signal vocabulary |
| 45 | |
| 46 | The hooks classify work by signal. Knowing the vocabulary lets you describe |
| 47 | outcomes in terms the memory graph indexes well, and decide when to search the |
| 48 | network or distill a capsule. |
| 49 | |
| 50 | | Signal | Fires on | |
| 51 | |------|------| |
| 52 | | `log_error` | errors, exceptions, failures in the diff |