agentsclimarketplace

Skill factory skill refactor

Skill jscraik/Agent-Skills/Infrastructure/references/deferred-skill-context/skill-factory-skill-refactor

Governed skill foundry and Skills SDK for Codex/AI coding agents: author, validate, evaluate, and sync runtime projections through ask.

Install
npx -y skills add jscraik/Agent-Skills --skill skill-factory-skill-refactor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Scan Codex session history for skill failures, usage patterns, and coverage gaps. Use when the user wants daily skill-health monitoring or evidence-backed recommendations about installing, improving, merging, or pruning skills.

SKILL.md

4.5 KB, as published. Nobody here has run it

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.

Reference scripts for deterministic evidence extraction:

Constraints

  • Do not invent evidence or confidence ratings.
  • Do not read or paste raw multi-megabyte session transcripts into context; inventory first, then extract bounded evidence.
  • Do not recommend destructive skill removals without explicit impact and rollback notes.
  • Redact secrets, credentials, tokens, and sensitive user content in summaries and artifacts.
  • Keep analysis scoped to the requested repository or dataset.

Validation

  • Verify each recommendation cites at least one concrete artifact.
  • Verify severity ordering is explicit and reproducible.
  • Verify no recommendation conflicts with repository instruction hierarchy.
  • Fail fast: stop at first missing or unreadable evidence source and report the exact gap.

Anti-patterns

  • Concluding "low quality" without citing failure evidence.
  • Proposing merges solely on naming similarity without overlap analysis.
  • Mixing unrelated tooling advice into a skill-refactor recommendation set.

Failure mode

  • If evidence sources are missing or unreadable, stop and report the exact gap.
  • If scope is ambiguous, request clarification before producing recommendations.

Gotchas

  • Do not infer outcomes without evidence; mark uncertainty explicitly.
  • Avoid duplicate recommendations when one root cause explains multiple symptoms.

Examples

  • "Can you inspect the last week of Codex sessions and tell me which skills to keep, improve, merge, or retire?"
  • "Help me find the top three recurring skill failures from these run artifacts and suggest minimal fixes."
  • "Check the sessions from this branch and tell me whether the repeated release-triage mistakes need a new reusable skill or a focused fix to an existing one."

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.