CtrlK
BlogDocsLog inGet started
Tessl Logo

skill-refactor

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.

65

Quality

78%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./Infrastructure/references/deferred-skill-context/skill-factory-skill-refactor/SKILL.md
SKILL.md
Quality
Evals
Security

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."
Repository
jscraik/Agent-Skills
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.