run-history-skill-upgrader

run-history-skill-upgrader is a skill for Codex from dongshuyan/compass-skills. It costs 91 tokens per session (1,407 once invoked), scanned A, original, MIT.

A review-and-update workflow for improving an existing coding-agent skill using evidence from its past runs, validation failures, outdated sources, platform changes, and user feedback.

In plain words
What is it for?
Use it to plan, review, and approve structural changes to a skill, including adding, editing, combining, retiring, or leaving instructions unchanged.
Why use it?
It helps identify recurring problems and unnecessary or outdated instructions before changing the skill. Changes are only applied after explicit approval.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Good fit Use it to plan, review, and approve structural changes to a skill, including adding, editing, combining, retiring, or leaving instructions unchanged.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dongshuyan/compass-skills/run-history-skill-upgrader
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 dongshuyan/compass-skills --skill run-history-skill-upgrader
Clone the repo
git clone --depth 1 https://github.com/dongshuyan/compass-skills

Made for: Codex.

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 run-history-skill-upgrader

README.md
[![agentmods](https://agentmods.dev/badge/skills/dongshuyan/compass-skills/run-history-skill-upgrader/github.svg)](https://agentmods.dev/skills/dongshuyan/compass-skills/run-history-skill-upgrader)
Your own site
<a href="https://agentmods.dev/skills/dongshuyan/compass-skills/run-history-skill-upgrader"><img src="https://agentmods.dev/badge/skills/dongshuyan/compass-skills/run-history-skill-upgrader/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 run-history-skill-upgrader

Your own site · 80×15
<a href="https://agentmods.dev/skills/dongshuyan/compass-skills/run-history-skill-upgrader"><img src="https://agentmods.dev/badge/skills/dongshuyan/compass-skills/run-history-skill-upgrader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,407 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Memory Poisoning · line 51
    Skill injects content designed to persist in agent memory or context across interactions. Persistent injection can alter agent behavior long after the initial interaction.
    Fix: Do not allow untrusted input to persist in agent memory or context. Validate all content before storing and implement memory isolation between sessions.
How audits are shown
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.00091 $0.01407
Opus 5 $0.00046 $0.00704
Sonnet 5 $0.00018 $0.00281
Haiku 4.5 $0.00009 $0.00141

Measured 13d ago against content hash 91b497fbd165, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

run-history-skill-upgrader 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 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/test_validate_upgrade_artifacts.py, scripts/validate_upgrade_artifacts.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/run-history-skill-upgrader/SKILL.md · 134 lines

How it starts

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

Run History Skill Upgrader

Language Policy

Write all user-facing output in the user's language. Default to Chinese when the language is unknown.

Role

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.

Portability

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/.

  • Resolve <skill-dir> from the directory that contains this SKILL.md.
  • Let <python> mean the host's available Python launcher: python3, python, or py -3.
  • Do not assume a fixed skill root, shell, home-directory layout, or path separator.
  • Placeholder paths such as <skill-dir>/scripts/... describe path segments, not a required separator style. On Windows, use the separator style that your shell or harness accepts.
  • Treat platform-specific helper tooling as optional. Use it only when it is actually available.

Mandatory Two-Stage Approval

This skill always starts in plan_only.

  1. plan_only: read the target skill and the agreed evidence scope, then produce a concrete upgrade plan and stop.
  2. apply_after_approval: modify files only after the user explicitly approves that specific plan.

The following are not approval by themselves:

  • "upgrade it";
  • "directly edit it";
  • "don't ask me";
  • "go ahead";
  • the original request to improve a skill.

Valid approval must clearly point to the current plan, for example "approve plan A", "apply the plan above", or "yes, execute that upgrade plan".

Workflow

  1. Lock the target skill name and path.
  2. Lock plan_only unless explicit post-plan approval already exists in the current conversation.
  3. Lock the evidence scope: conversation, logs, screenshots, artifacts, diffs, tests, source docs, or user feedback.
  4. Read the current target skill before proposing changes.
  5. Classify the signals: process gap, validation gap, source drift, platform drift, user preference, candidate idea, incident, routing gap, or content bloat.
  6. Design the case set: incident, candidate rule, regression case, boundary case, and optional holdout challenge.
  7. Pass the generalization gate. A one-off incident does not automatically deserve a lasting rule.
  8. Map route impact. Remove weak routes and move machine-checkable facts to tools, tests, schema checks, diffs, validators, or files.
  9. Choose the net-improvement shape: 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.

Read the full file on GitHub · 134 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. 13d ago First seen · 134 lines · 91 tokens per session scan A 91b497fbd165

Subscribe to this mod's changes

run-history-skill-upgrader is a skill published in the GitHub repository dongshuyan/compass-skills (725 stars, last pushed 17d ago), licensed MIT. It adds 91 tokens to every session and 1,407 once invoked, about $0.0005 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

install-memu

Install or uninstall memU for whatever agent you are — identify your host, print its packaged guide, and follow it to wire (or unwire) both seams (record and inject). Use when the user asks to install, set up, integrate, remove, or uninstall memU.

NevaMind-AI/memU · 61 tokens

lore

Long-term Markdown project memory for AI coding agents. Use when the user wants to record, recall, audit, sync, or compress project decisions, architecture, conventions, monorepo scopes, or .lore/ entries, including natural-language requests like "remember this decision" or explicit lore…

TheaDust/lore · 141 tokens

fleet-conductor

Use when conducting a large backlog or multi-repository campaign across several worker lanes, especially when work needs bounded ownership, held dependencies, collision control, draft pull request gates, and evidence-based landing. Triggers on "conduct the fleet", "burn down the backlog", "run a multi-repo campaign"…

escoffier-labs/skillet · 73 tokens

demi

Use before implementing, scaffolding, prototyping, or adding a feature when the work should start with the smallest useful code path, avoid speculative architecture, or prevent overbuilding before reduce would be needed.

escoffier-labs/skillet · 43 tokens

stagiaire

Use when the current session needs an answer or a work product from a model on ANOTHER vendor's stack - a second opinion from a different model family, a cheap fast model for bulk work, or a cross-model review - by dispatching that vendor's own CLI as a one-shot worker. Triggers include "ask…

escoffier-labs/skillet · 133 tokens

using-skillet

Use when starting any conversation - establishes how to find and use skillet skills, requiring skill invocation before ANY response including clarifying questions.

escoffier-labs/skillet · 31 tokens