skill-refactor

skill-refactor is a skill for Codex from jscraik/Agent-Skills. It costs 44 tokens per session (892 once invoked), scanned A, original, Apache-2.0.

A tool for reviewing coding-agent skill use by examining session history and other available evidence. It produces ranked findings and recommendations about which skills to keep, improve, combine, or remove.

In plain words
What is it for?
Use it for daily or broader checks of skill reliability, including decisions about installing, improving, merging, or retiring skills.
Why use it?
Skill problems can repeat without a clear record of what failed or where coverage is missing. Evidence-based review connects recommendations to actual session artifacts.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it for daily or broader checks of skill reliability, including decisions about installing, improving, merging, or retiring skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jscraik/agent-skills/skill-factory-skill-refactor
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 jscraik/Agent-Skills --skill skill-factory-skill-refactor
Clone the repo
git clone --depth 1 https://github.com/jscraik/Agent-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 skill-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/jscraik/agent-skills/skill-factory-skill-refactor/github.svg)](https://agentmods.dev/skills/jscraik/agent-skills/skill-factory-skill-refactor)
Your own site
<a href="https://agentmods.dev/skills/jscraik/agent-skills/skill-factory-skill-refactor"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/skill-factory-skill-refactor/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 skill-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/jscraik/agent-skills/skill-factory-skill-refactor"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/skill-factory-skill-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 892 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.
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.00044 $0.00892
Opus 5 $0.00022 $0.00446
Sonnet 5 $0.00009 $0.00178
Haiku 4.5 $0.00004 $0.00089

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

Security

Grade A, and why

skill-refactor 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 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/correlate_multi_source_skill_failures.py, scripts/scan_codex_sessions.py, scripts/test_session_evidence_workflow.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.

Infrastructure/references/deferred-skill-context/skill-factory-skill-refactor/SKILL.md · 91 lines

How it starts

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

Skill Refactor

Analyze skill reliability from session evidence and return prioritized recommendations.

Read when: evidence schema or audit criteria are needed: contract Read when: session history must be inventoried or extracted before synthesis: session evidence workflow

Philosophy

  • Evidence first: recommendations must be traceable to concrete session artifacts.
  • Favor high-leverage fixes that reduce repeated failures across multiple skills.
  • Keep recommendations executable by mapping each finding to a clear next action.

When to use

  • Use when the user asks for evidence-backed skill reliability analysis from session history.
  • Use when deciding whether to install, improve, merge, or retire skills.

Required inputs

  • A clear analysis scope (single skill, category, or full inventory).
  • Session evidence sources or local artifacts available for review, preferably a ~/.agents/session-collector bundle for broad session scope.
  • Ranking criteria for severity and impact.

Deliverables

  • Prioritized findings with explicit evidence links or file references.
  • Recommended actions grouped by keep, improve, merge, or retire.
  • A short risk note for any recommendation that could remove capabilities.
  • Structured output includes schema_version: 1 when requested or when automation will consume the result.

Procedure

  1. Define scope: single skill, lane, or full inventory.
  2. Gather evidence from session-collector bundles, session logs, skill metadata, and related references.
  3. If the session scope is broad or the user references prior attempts, run or consume ~/.agents/session-collector before selecting deep dives; extract only bounded skeleton/error snippets for selected sessions.
  4. Group failures by root cause (coverage gap, instruction drift, routing mismatch, or quality regression).
  5. Rank recommendations by impact, confidence, and implementation cost.
  6. Return a concise keep/improve/merge/retire action table with evidence anchors.

Read the full file on GitHub · 91 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. 12d ago First seen · 91 lines · 44 tokens per session scan A 46ef4a4ea02c

Subscribe to this mod's changes

skill-refactor is a skill published in the GitHub repository jscraik/Agent-Skills (8 stars, last pushed 10d ago), licensed Apache-2.0. It adds 44 tokens to every session and 892 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-31.