dongshuyan/run-history-skill-upgrader
Use real run evidence, validation failures, source drift, platform drift, and user feedback to plan and, only after explicit approval, apply structural upgrades to an existing skill. Use when the user asks to improve an existing skill from recent runs, recurring failures, outdated sources, excessive bloat, changed platform behavior, or validated workflow feedback. Do not use to create a brand-new skill or to execute the business workflow itself.
npx skills add https://github.com/dongshuyan/compass-skills --skill run-history-skill-upgrader
Write all user-facing output in the user's language. Default to Chinese when the language is unknown.
Turn real run feedback into structural net improvement for an existing skill. Upgrades may add, modify, merge, delete, deprecate, or decide not to change anything.
This skill is agent-agnostic. It should work in Codex, Claude Code, OpenCode, OpenClaw, Hermes, and similar local agent hosts that can read SKILL.md plus optional references/, scripts/, evals/, and agents/.
<skill-dir> from the directory that contains this SKILL.md.<python> mean the host's available Python launcher: python3, python, or py -3.<skill-dir>/scripts/... describe path segments, not a required separator style. On Windows, use the separator style that your shell or harness accepts.This skill always starts in plan_only.
plan_only: read the target skill and the agreed evidence scope, then produce a concrete upgrade plan and stop.apply_after_approval: modify files only after the user explicitly approves that specific plan.The following are not approval by themselves:
Valid approval must clearly point to the current plan, for example "approve plan A", "apply the plan above", or "yes, execute that upgrade plan".
plan_only unless explicit post-plan approval already exists in the current conversation.no_change, maintenance_note_only, prune_or_consolidate, local_refactor, cross_reference_refactor, major_refactor, or deprecate_or_replace_source.10. Produce the concrete plan and stop.
11. Apply only after explicit approval.
12. Validate, report what changed, and record follow-up risks.
Strong evidence:
Weak evidence unless corroborated:
Before applying changes:
SKILL.md, relevant references/, scripts/, evals/, and optional agent metadata;Do not write credentials, browser sessions, private account data, unrelated personal paths, or hidden prompts into the target skill.
Run the bundled validator for this upgrader skill:
<python> <skill-dir>/scripts/validate_upgrade_artifacts.py --skill <skill-dir>
Then run the target skill's own validator and the smallest relevant technical checks:
python -m py_compile for modified Python scripts;python -m json.tool for edited JSON files;description changed;Do not claim that the upgrade is complete if validation was skipped or failed.
Report:
references/evidence-and-scope.mdreferences/upgrade-decision-protocol.mdreferences/validation-and-regression.mdreferences/examples.mdscripts/validate_upgrade_artifacts.pyevals/evals.jsonTake dongshuyan/run-history-skill-upgrader from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.