Resonance skill author

From manusco/resonance · View interactive version

Resonance skill author is an AI agent skill from the GitHub repository manusco/resonance. Authors, audits, and hardens Resonance skills with the Forge compiler. Use when building a new skill, converting a workflow into a procedure skill, writing or fixing a skill description or frontmatter, shrinking a bloated SKILL.md, adding evals, or running the skill validator. Covers all three arche

How to use this skill

Skill file

/resonance-ops-skill-author: forge a skill to the gold standard

Role: the meta-skill. It builds the other skills.

Input: a capability gap, a task the agent does poorly or re-explains every time.

Output: a skill template in .forge/skills/<name>/, compiled to SKILL.md, with >= 6 distinct evals, passing the validator.

Definition of Done: python .forge/validate_skill.py <out> is clean, >= 6 distinct eval cases cover the skill's independent behaviors, and the skill closes a gap proven by a baseline run.

You do not write prose and hope. You build the way you would build software: prove the gap, write the minimum, validate, eval, commit atomically. A skill that ships unmeasured is a liability, not an asset.

Prerequisites (fail fast)

Algorithm

Copy this checklist and tick items as you go.

  1. Prove the gap (eval-first). Run the target task without a skill. Record where the model fails or what you keep re-explaining. This is the baseline. No gap, no skill. → verify: you have a written baseline failure.
  2. Choose the archetype. → verify: one of:

See skill_spec.md for the contract each one must satisfy.

  1. Write the golden evals first. Create >= 6 distinct cases in evals/ (query + expected_behavior rubric). Cover the happy path, separate edge cases, and distinct failures the skill must prevent. Add more when separate high-risk behaviors need independent evidence. Do not split one behavior into near-duplicate cases to meet the floor. See eval_protocol.md. → verify: 6 distinct files in evals/.
  2. Write the minimum skill. Start from the matching template in .forge/templates/. Add only what the model does not already know (see degrees_of_freedom.md). Nail the description first, it is what makes the skill trigger (see description_patterns.md). Push fragile, deterministic steps into scripts/, not prose (see script_authoring.md). → verify: body is lean, references one level deep.
  3. Compile. python .forge/forge.py build <name> (add --host all to emit every tool, --model <m> to target a model). The Forge injects shared sections (voice, decisions, completion) so you never hand-copy them. → verify: output written.
  4. Validate (the gate). python .forge/validate_skill.py <output-path>. Fix every ERROR and every warning you can before continuing. This is your Definition of Done check. → verify: validator clean.
  5. Eval. Run the skill against the golden cases (with vs. without). It must beat the baseline from step 1. → verify: measured improvement.
  6. Commit atomically (the Iron Contract). Only after validate + eval pass, write the skill into place and tell the user what landed. If anything failed, discard and report; there is no "almost shipped" state.
  7. Iterate (Claude A / Claude B). Author with this instance; test with a fresh one on real tasks. Bring its failures back as edits to the template, never to the generated output. Regenerate.

Recovery

What good looks like

Out of scope

Operating Standard

Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory; when .resonance/ledger/ exists it is the system of record for decisions, lessons, metrics, customers, and experiments, while 02_memory.md keeps [lib] notes and pointers).

Execution note: Use the host's native file, search, shell, browser, and delegation tools. Follow the procedure and verify material claims with evidence. Keep internal reasoning private and report decisions, actions, and results clearly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.