/agent:update-skillsfrom agent
Reconcile skill collections, backport from ~/.claude/skills into a marketplace plugins tree, scrubbing proprietary refs. Use when local has diverged from upstream, or when promoting local-only skills to a marketplace.
Ships in agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Edit Claude Code skills with zero information loss. Covers three operations:
backport: reconcile two collections. Pull missing content from a source dir (typically ~/.claude/skills/) into a public marketplace (typically plugins/<plugin>/skills/), or the reverse, scrubbing proprietary references.promote: publish a source-only skill into a marketplace plugin.edit-in-place: improve, clean, restructure, or "de-yak" an existing skill without dropping any of its content. This operation has no other owner, and it is where silent information loss happens. A "tighten this skill" request quietly deletes a checklist, a numeric threshold, or a rule, and the edit gets certified "lossless" without anyone diffing it. The Preservation Audit (gate, below) exists to make that impossible.Whatever the operation, the Preservation Audit is the mandatory gate before any edit is done. See the phase below. Surface checks (lint, cross-refs, proprietary scan) come after, and never substitute for it.
~/.claude/skills/<skill>/ (one dir per skill, may include references/, scripts/, sibling docs). Skip symlinked skills; they come from other repos and are out of scope.<repo>/plugins/<plugin>/skills/<skill>/. Plugin split by domain (e.g. agent for cross-cutting agent discipline; frontend for web/CSS/tests; svelte-5 for Svelte components). Enforcement hooks may live in a dedicated hooks plugin for optional install (e.g. plugins/hooks/hooks/no-bash.mjs paired with the agent:no-bash skill), kept in the same marketplace.deslop and frontend:editing skills in the final review pass, when the edit is done. Once the content is settled, before declaring done, invoke them through the Skill tool and apply what they return to the prose and markdown. Not after each individual edit, and not paraphrased from memory: a single review pass over the finished files. They are the enforced standard; the inline summary in the guidance ("Prose style and markdown editing") is only a fallback for when those skills are not installed. Checked in Phase 6.references/*, scripts/*). Partial reads cause partial backports.plugin:skill namespacing (e.g. frontend:editing, agent:before-you-act). NEVER bare /skill paths. NEVER <root-prefix>:<plugin>:<skill> doubled.On 2026-04-08 ... with anonymous A common failure shape: ... framing. Keep the lesson, drop the date./Users/<name>/...), internal dashboards / URLs (Grafana, Linear, private Slack). When in doubt, anonymize to a generic placeholder.agent:no-bash paired with plugins/hooks/hooks/no-bash.mjs), check the hook before promoting or moving the skill. Keep the pair in the same marketplace so the enforcement contract isn't split across marketplaces. The skill and its hook may live in different plugins within that marketplace when the hooks are packaged separately for optional install (the hooks plugin), but they must not land in different marketplaces.List source dir contents; skip symlinks.
List target marketplace skills (per plugin).
Classify each source skill as overlapping (exists in both) or source-only (candidate for promotion).
Tracking (optional). For large syncs, track with dex (an epic plus one child task per skill); for a one- or two-skill sync, skip the ceremony. When using dex, whitelist its permissions before starting (saves dozens of prompts):
"Bash(dex create:*)",
"Bash(dex complete:*)",
"Bash(dex list:*)",
"Bash(dex show:*)",
"Bash(dex edit:*)",
"Bash(dex delete:*)"
Each dex task records: source path, target path, preliminary verdict, generalization items, validation criteria.
For each overlapping skill, read both files fully, then assign one verdict:
| Verdict | Meaning | Action |
|---|---|---|
EQUIVALENT | Substantively identical | No-op; close dex task |
REPO_WINS | Target has improvements source lacks (cleaner namespacing, broader file-type coverage, generalized already) | No backport |
BACKPORT | Source has rules/examples/sections target lacks | Backport the missing content, generalized |
MERGE | Both have unique value | Combine; document which came from which |
Sibling files (references/*.md, scripts/*) need the same diff. The SKILL.md may say EQUIVALENT while a reference file has divergent content.
Description budget: keep frontmatter description at or under 250 chars where possible. Existing marketplace skills sometimes exceed this (vitest, storybook-vitest). Don't trim below source unless source is itself bloated.
Per source-only skill:
discipline skill in one plugin may already cover a local communication skill; verify line-by-line, don't just claim "redundant"). If redundant, SKIP with a clear justification.agent, Svelte-specific to svelte-5, etc. If the skill has a paired enforcement hook, keep the pair in the same marketplace. The hook may live in the dedicated hooks plugin when enforcement is packaged separately for optional install./skill references with plugin:skill.name: skills but the dir is skills-reference, fix it on write.Writes follow the ask-first, one-skill-at-a-time rule above.
After promotions:
plugins/<plugin>/README.md): update the skill count in the intro, append new rows to the skills table.README.md): update the plugin table's skill-count column; update the context-budget calculation (each new skill adds ~250 chars; bump the "~N skills" number).Run this for every skill file you touched, in every operation, before declaring anything done. This is where information loss is caught. Full table template, worked example, and the anti-rationalization list are in references/preservation-audit.md. Read it before your first audit.
Establish the "before". For a tracked file: git show HEAD:<path>. For an untracked edit or a backport source: the pre-edit cp -r snapshot you took before the first Write. Never reconstruct the original from memory.
Enumerate every atomic item in the "before": each rule, numbered step, checklist item, worked example, numeric criterion or threshold (e.g. ±30%, 3x, "head -100"), MUST/NEVER directive, and cross-reference. One row per item.
Classify each item against the "after":
| State | Meaning |
|---|---|
PRESERVED | Same item, still present (rewording is fine) |
MOVED to <loc> | Same content, relocated; name the new location |
MERGED into <loc> | Folded into another item; show the merged text |
DELETED | Removed on purpose; justification must quote the covering line (in this skill or a named other skill) that makes it redundant |
LOST | BLOCKER. Content that vanished with no home and no justification |
Resolve blockers. Any LOST, or any DELETED whose justification can't quote the covering line, blocks completion. Restore the content, or produce the quote. "Another skill covers it" without the quote is not a justification (this is the exact plan / "covered by asshole" lie that lost the "never park a bug" rule).
Only once the table has zero unresolved LOST may you state preservation. State it by showing the table, never by asserting it.
Run these after the Preservation Audit passes. They catch different bugs; none of them proves content survived.
Style + markdown pass via the skills. Confirm you invoked the deslop and frontend:editing skills and applied their output to every changed file; markdownlint returns 0 new errors. Invoking them is the check, not eyeballing the prose yourself.
Proprietary-string scan across all changed files. Multi-grep patterns (adjust to the user's environment):
<corp> | <product> | <project-names> | /Users/<name> | grafana.internal | <internal-tools>
Must return 0 matches.
Cross-reference check. Any agent:<skill> / frontend:<skill> / svelte-5:<skill> references must point to skills that actually exist after the changes. Common breakage: a backported "see X" line pointing to a skill that was SKIPPED rather than ADDED.
Description char count. Spot-check that no description is wildly over the budget set in Phase 2.
Markdown lint. Pre-existing warnings (MD041 first-line-h1, MD060 table-column-style) are fine; don't try to fix repo-wide style issues that predate the work. Only fix warnings introduced by the current edits.
/skill paths, even if source uses bare paths.What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/assholeEnsures failures in test, build, or command output are never dismissed as "pre-existing", "unrelated", or "not my problem" — they get acknowledged with an offer to fix. Auto-invoke when reporting test results, build output, CI logs, or any command output containing errors or failures./before-you-actUse before any action: five-question self-check that catches destructive ops, scope creep, fabrication, premature completion, and unread output. Auto-invoke before executing commands, editing files, or answering factual questions./ciCI/CD workflow rules — GitHub Actions patterns, validation, Playwright in CI. Auto-invoke when editing .github/workflows files or discussing CI pipelines.npx claudepluginhub fubits1/ronin-skills --plugin agent