Skip to main content

Personal Agent-Skill package manager: versioned registry, seed import, explain, rollback (M0+WS scope).

Project description

super-skill

Version control, rollback, and provenance for your Claude Code and Codex Agent Skills. super-skill is a git-backed package manager for the skills in ~/.claude/skills (and Codex's ~/.agents/skills): it puts every skill under version history, tells you where each one came from, rolls any skill back with one command, and checks the registry for tampering — with secret-redacted session capture and safety-gated promotion built in.

English · 简体中文


Why super-skill

Agent Skills are just Markdown files in a directory. That directory has no history: edit a SKILL.md and the previous version is gone; you can't tell which skill came from where, why it's there, or whether one was quietly changed. There is no undo.

super-skill treats your skills like packages: versioned, auditable, reversible.

Highlights

  • One-command rollback — a skill regressed? super-skill rollback <id> switches the active version and re-materializes it to your skills directory.
  • Provenance & auditsuper-skill explain <id> answers why does this skill exist, where did it come from, how do I undo it from an immutable audit trail.
  • Tamper detectionsuper-skill doctor re-hashes every stored version against the hash recorded at promotion; --fix restores git-recoverable versions.
  • Redaction before disk — session capture strips secrets and private paths before anything is written; secret values never reach the log.
  • Safety-gated promotion — a candidate becomes a skill only through two hard gates (an instruction-layer adversarial scan + a deterministic eval-lite).
  • Runs where your agent runs — a Claude Code plugin, a Codex install package, and a host-agnostic CLI, all driven by the same super-skill command.

Install

Claude Code (plugin)

/plugin marketplace add sdsrss/super-skill
/plugin install super-skill

Adds slash commands (/super-skill:status, :mine, :doctor, :candidates, :seed), a super-skill skill Claude invokes when you ask to version, explain, or roll back a skill, and capture hooks. The plugin drives the CLI, so install that too:

CLI

uv tool install super-skill-cli      # or: pipx install super-skill-cli
super-skill status                   # the command is `super-skill`

The PyPI distribution is super-skill-cli (the bare super-skill name belongs to an unrelated package); the installed command is super-skill. One-shot, no install: uvx --from super-skill-cli super-skill status.

Codex

Codex reads open-standard SKILL.md from ~/.agents/skills — no marketplace needed:

pipx install super-skill-cli
codex/install.sh                     # drops the meta-skill into ~/.agents/skills

The CLI speaks Codex natively via --host codexsuper-skill seed --host codex, super-skill materialize --host codex (or --host all for both hosts). See codex/README.md.

Features

Command What it does
seed Import existing ~/.claude/skills under version control — read-only on the host, idempotent by content hash.
status / list Registry summary (skills, versions, events, candidates) and the skill list.
show <id> Frontmatter, version history, and content hashes for one skill.
explain <id> Provenance chain + audit trail + the exact rollback command.
rollback <id> [--to vN] Switch the active version and re-materialize it to the host(s).
materialize [id] --host claude|codex|all Distribute active skill(s) to Claude Code and/or Codex (the Codex Target Adapter).
doctor / doctor --fix Integrity check (hashes, active pointer, host sync); --fix restores git-recoverable versions and re-materializes drift, then re-verifies.
capture Append a host event to the redacted WAL — reads hook JSON on stdin, never fails the session.
mine Surface task families recurring across ≥3 distinct sessions; nudges you once enough new sessions accumulate.
candidate draft/show/approve/reject Turn a mined family into a skill: draft → review → two hard gates → promote & materialize.
hooks-config Print the settings.json hooks block that wires session capture.

State lives in ~/.super-skill/ — a real git repository, so audit and rollback are git.

How it's different

Plain ~/.claude/skills super-skill
Version history per skill ✓ (git-backed DAG)
One-command rollback
Provenance / "why is this here"
Tamper / drift detection ✓ (doctor)
Secret redaction on capture ✓ (before disk)
Safety-gated promotion ✓ (two hard gates)
Claude Code and Codex manual ✓ one CLI

super-skill is a package manager, not a skill generator: it manages, versions, and audits the skills you already have or approve — it does not write skills for you or change their behavior behind your back. Every write path is explicit and reversible; your skills directory is only ever written on approve, rollback, or doctor --fix (seed reads it but never modifies it).

Usage

# Bring your current skills under version control
super-skill seed
super-skill status

# See where a skill came from and how to undo it
super-skill explain my-skill

# Undo a bad change
super-skill rollback my-skill

# Check nothing was tampered with; repair recoverable drift
super-skill doctor
super-skill doctor --fix

# Turn recurring work into a skill (capture must be wired first — see hooks-config)
super-skill mine
super-skill candidate draft
super-skill candidate show <id>      # edit the draft, then:
super-skill candidate approve <id>

Configuration

Env var Default Purpose
SUPER_SKILL_HOME ~/.super-skill Registry + control state (a git repo).
SUPER_SKILL_HOST_SKILLS ~/.claude/skills Claude Code skills directory (--host claude).
SUPER_SKILL_CODEX_SKILLS ~/.agents/skills Codex skills directory (--host codex).
SUPER_SKILL_MINE_REMINDER 3 Distinct unmined sessions before status nudges you to mine.

Scope

super-skill is deliberately the package-manager form (milestones M0 + WS). The self-learning loop — automatically optimizing, distilling, and promoting skills (milestones M1–M5) — is a deferred research track: a measurement of real usage did not clear the threshold that would justify building it, so v1 is frozen as a package manager with audit and rollback. It does not self-evolve your skills, and this README does not imply it does.

FAQ

Does super-skill run or change my skills' behavior? No. It manages the files (version, audit, rollback, integrity) and never edits a skill's content on its own. Approving a candidate promotes a draft you reviewed.

Will it touch ~/.claude/skills without asking? Three commands write there — approve (promote a reviewed candidate), rollback, and doctor --fix. seed reads your skills into the registry but never modifies them; status/list/show/explain/doctor are read-only.

Are my secrets safe in captured sessions? Redaction runs before any write: secret values and private paths never reach the log. Capture is off until you wire it (super-skill hooks-config).

Do I need PyPI for the plugin to work? The plugin calls the super-skill CLI on your PATH. Install it from PyPI: uv tool install super-skill-cli (or pipx install super-skill-cli).

Does it support Codex? Yes — the same CLI plus a codex/ install package for ~/.agents/skills. The CLI has a Codex Target Adapter: --host codex (and --host all) on seed, approve, rollback, and materialize reads from and writes to Codex's ~/.agents/skills. The Codex package also ships an optional agents/openai.yaml host extension.

Develop

Uses uv. Python 3.12.

uv sync                       # venv + deps
uv run pytest                 # tests
uv run ruff check .           # lint
uv run mypy super_skill/      # typecheck

License

MIT © sdsrss

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

super_skill_cli-0.10.0.tar.gz (89.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

super_skill_cli-0.10.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file super_skill_cli-0.10.0.tar.gz.

File metadata

  • Download URL: super_skill_cli-0.10.0.tar.gz
  • Upload date:
  • Size: 89.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for super_skill_cli-0.10.0.tar.gz
Algorithm Hash digest
SHA256 7c1a50299f9d5b52cb8d1fd9dd66c24c17e3a2ff3631c15a4360e7ec7e3016fc
MD5 04363c87ff1b68bce1922713a063731e
BLAKE2b-256 12db8a886c76a6048d1967a6a07307ad3319544a9b64ed55fd2b741ae9ad9890

See more details on using hashes here.

File details

Details for the file super_skill_cli-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: super_skill_cli-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for super_skill_cli-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d4c9888594f7c450f3ceee591d3a6531e53a43e3a428e55625bdfd3555f3f96
MD5 db15dac717fb41a87042e37ea8f1e9c7
BLAKE2b-256 bceacd23378915dd9335b7be4733a7fdf1446d45e9bf6a89e1592098f1b04a70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page