cmd_evolve

cmd_evolve is a skill for Claude Code from majiang213/OpenClaw-MAS. It costs 18 tokens per session (1,154 once invoked), scanned A, original, MIT.

A workflow that groups entries from MEMORY.md, a project memory file, by theme and can draft reusable skills from strong groups.

In plain words
What is it for?
Use it to analyze memory entries or generate skill drafts in a project’s skills directory when enough entries exist.
Why use it?
It helps turn scattered project notes into organized themes and possible repeatable workflows.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: built for openclaw.

Good fit Use it to analyze memory entries or generate skill drafts in a project’s skills directory when enough entries exist.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiang213/openclaw-mas/cmd_evolve
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add majiang213/OpenClaw-MAS --skill cmd_evolve
Clone the repo
git clone --depth 1 https://github.com/majiang213/OpenClaw-MAS

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cmd_evolve

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiang213/openclaw-mas/cmd_evolve/github.svg)](https://agentmods.dev/skills/majiang213/openclaw-mas/cmd_evolve)
Your own site
<a href="https://agentmods.dev/skills/majiang213/openclaw-mas/cmd_evolve"><img src="https://agentmods.dev/badge/skills/majiang213/openclaw-mas/cmd_evolve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cmd_evolve

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiang213/openclaw-mas/cmd_evolve"><img src="https://agentmods.dev/badge/skills/majiang213/openclaw-mas/cmd_evolve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,154 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01154
Opus 5.5 $0.00007 $0.00462
Sonnet 5.5 $0.00004 $0.00231
Haiku 4.5 $0.00002 $0.00115

Measured 2mo ago against content hash 4e958cddffef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cmd_evolve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cmd_evolve/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Path

The first argument is the project path. Before doing anything else:

  1. Extract the project path from the first argument
  2. Verify the path exists
  3. Work within that directory for all file operations and shell commands

Evolve — Memory Clustering and Skill Generation

Reads MEMORY.md, groups related sections by theme, and identifies which clusters are strong enough candidates to become reusable skills. With --generate, writes SKILL.md drafts into the project's skills/ directory.

Usage

/skill cmd_evolve <project-path>             # Analyze and suggest
/skill cmd_evolve <project-path> --generate  # Analyze and write SKILL.md drafts

What to Do

Step 1: Read MEMORY.md

Read ~/.openclaw/workspace-main/MEMORY.md. Parse all ##-level sections — each section has a heading and a content block.

If MEMORY.md is empty or has fewer than 3 sections, report: "Not enough memory entries to cluster. Add more with /skill cmd_promote." Stop here.

Step 2: Surface recent short-term recalls

openclaw memory search "pattern workflow behavior"

Include any surfaced recalls alongside MEMORY.md sections in the analysis pool.

Step 3: Cluster by theme

Group sections into thematic clusters using:

  • Trigger similarity: sections that activate under similar conditions
  • Domain overlap: sections touching the same technical area (testing, security, build, etc.)
  • Sequential relationship: sections describing steps in a multi-step process

For each cluster, determine:

  • Cluster name (descriptive theme)
  • Member sections (list of ## headings)
  • Section count
  • Suggested output type:
    • command — cluster describes a user-invoked, multi-step workflow
    • skill — cluster describes an automatic, pattern-matched behavior

Single-section entries: note them but do not generate from them.

Step 4: Display analysis

============================================================
  EVOLVE ANALYSIS
  Source: ~/.openclaw/workspace-main/MEMORY.md
  Total sections: <N>
  Clusters identified: <K>
============================================================

## CLUSTER 1: "<theme name>"
  Sections: <count>
  Members:
    - <heading 1>
    - <heading 2>
  Suggested type: <command | skill>
  Rationale: <one sentence>

## CLUSTER 2: "<theme name>"
  ...

## SINGLE-SECTION ENTRIES (not enough to cluster)
  - <heading>

## SUMMARY
  Command candidates: <N>
  Skill candidates: <N>
  Single entries: <N>

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 180 lines · 18 tokens per session scan A 4e958cddffef

Subscribe to this mod's changes

cmd_evolve is a skill published in the GitHub repository majiang213/OpenClaw-MAS (5 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 1,154 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cmd_evolve compared with skills from other repositories

cmd_evolve next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cmd_evolvemajiang213/OpenClaw-MASSkill57mo agoMITA18Claude Code
Agent Memory System GuideLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA44Claude Code, Codex
Agent Memory ArchitectureLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA52Claude Code, Codex
agent-contextLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA12Claude Code, Codex
agent-memoryLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA23Claude Code, Codex
agent-context-systemLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA53Claude Code
agentsmemLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITB35Claude Code, Codex