skill-evolution

A tool for turning useful project experience into reusable skills for an AI coding agent. A skill is a saved set of instructions for handling a recurring task or workflow.

In plain words
What is it for?
Identify repeated workflows, record domain knowledge, preserve sequences of tool calls, and create project-specific skills that can guide future work.
Why use it?
It prevents hard-won knowledge and reliable work patterns from being forgotten or rediscovered. It also captures useful methods before they become frequent enough for automatic promotion.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hkuds/openopc/skill-evolution
Any agent
npx skills add HKUDS/OpenOPC --skill skill-evolution
Clone the repo
git clone --depth 1 https://github.com/HKUDS/OpenOPC

Made for: Claude Code, Codex.

Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00539
Opus 5 $0.00019 $0.00269
Sonnet 5 $0.00008 $0.00108
Haiku 4.5 $0.00004 $0.00054

Measured 2d ago against content hash bc754b6d94b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-evolution 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 2d 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.

.opc/skills/skill-evolution/SKILL.md · 51 lines

How it starts

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

Skill Evolution

Distill project experience into reusable skills that live under the current project.

Two evolution paths

  1. Automatic: The system promotes playbook skills when an employee's pattern reaches 2 project reflections with recurring behaviors, checklists, or preferences. These are saved as <employee>-<role>-<domain>-playbook and require no manual action.
  2. Agent-driven (this skill): You proactively identify valuable patterns and create skills manually. Use this when domain knowledge, workflows, or tool sequences should be preserved before the auto-promotion threshold is reached, or when the knowledge is not tied to a specific employee pattern.

When to evolve a skill (agent-driven)

  • A task required non-obvious steps that will likely recur
  • You discovered a workflow that worked well and should be preserved
  • Domain-specific knowledge was gathered that future tasks will need
  • A sequence of tool calls forms a reliable pattern worth codifying

Process

  1. Identify the pattern: What knowledge or workflow is worth preserving?
  2. Read the skill-creator skill: file_read the skill-creator/SKILL.md for format and naming guidelines
  3. Name the skill: Lowercase letters, digits, and hyphens only, under 64 characters (e.g., api-validation-workflow)
  4. Create the skill directory: Under .opc/projects/<project_id>/skills/<skill-name>/
  5. Write SKILL.md with proper frontmatter (name, description) and concise instructions
  6. Add scripts/references/assets if the skill benefits from bundled resources

Skill location

Evolved skills belong to the project that produced them:

.opc/projects/<project_id>/skills/<skill-name>/SKILL.md

Guidelines

  • Keep it concise: only include what the agent doesn't already know
  • Use concrete examples over abstract explanations
  • Include the minimal set of steps needed to reproduce the workflow
  • Add scripts/ for deterministic operations that get rewritten repeatedly
  • Add references/ for domain docs the agent should consult
  • Follow the same naming conventions as auto-promoted skills (hyphen-case)

Read the full file on GitHub · 51 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. 2d ago First seen · 51 lines · 38 tokens per session scan A bc754b6d94b1

Subscribe to this mod's changes

skill-evolution is a skill published in the GitHub repository HKUDS/OpenOPC (1,594 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 539 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens