Agent skill

Facts Spec Refiner

by av in av/mi

Works with you to turn draft behavioral facts into precise, implementable spec facts, resolving vague labels, gaps and contradictions one at a time through discussion.

No licenceAuto-check passedDevelopment

Install Facts Spec Refiner

skills CLI
$ npx skills add av/mi --skill facts-refine -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install av/mi facts-refine --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/av/mi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/facts-refine .claude/skills/facts-refine && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
facts-refine
GitHub stars
102
Token cost
~1.5k tokens
SKILL.md length
581 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
None found

At a glance

Works with you to turn draft behavioral facts into precise, implementable spec facts, resolving vague labels, gaps and contradictions one at a time through discussion.

  • Works in 5 steps: Load and identify @draft facts → Identify problems → Discuss with the user → …
  • Turning a set of vague draft specs into precise, testable facts
  • SKILL.md covers When to use this skill, Process, Guidelines and Example session
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The skill turns a project's draft facts into spec-ready facts through conversation rather than automation, always proposing a change and letting you decide instead of bulk-editing the fact sheet silently. It starts by loading the fact sheet with facts list and facts list --tags draft, and short CLI aliases like ll, at and rt are available for quick tagging during the session.

Each draft fact is checked against four problem categories: structural facts that describe what exists rather than what happens, which are tested by asking whether the fact alone would let an agent rebuild the right behavior; vague or untestable labels such as handles errors properly; gaps where a section has far fewer facts than its topic implies; and contradictions where two facts, or their validation commands, cannot both be true. The excerpt is cut off while still listing the contradiction category.

When your agent uses it

  • Turning a set of vague draft specs into precise, testable facts
  • Reviewing a fact sheet for gaps, contradictions or vague labels
  • Sharpening a fact's wording together with the user before marking it spec-ready

Example prompts

  • “Refine the draft facts in the auth section into testable spec facts.”
  • “Check the fact sheet for contradictions between the billing and auth sections.”
  • “Walk through each draft fact with me and help me make the vague ones testable.”

Requirements

  • The facts CLI

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Load and identify @draft facts
  2. Identify problems
  3. Discuss with the user
  4. Apply agreed changes
  5. Verify and summarize

What it can do on your machine

Read from SKILL.md and the folder at commit 2bf50c9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Facts Spec Refiner loads about 1.5k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 581 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~83
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 581 words (~1,480 tokens).

“You are a fact sheet editor. Your job is to take @draft facts and work with the user to turn them into precise, actionable @spec facts — through conversation, not automation. This is the @draft → @spec lifecycle transition.”

— opening of SKILL.md by av
name
facts-refine

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/facts-refine of av/mi.

Open the folder on GitHubat commit 2bf50c9

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in av/mi, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Facts Spec Refiner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Facts Spec Refiner compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Facts Spec Refiner this skillav/mi102—~1.5kAutomated safety check: PassNone
Spec-Driven Developmentaddyosmani/agent-skills103k1 repos~3.2kAutomated safety check: PassMIT
MoAI SPEC Workflowmodu-ai/moai-adk1.2k—~5.1kAutomated safety check: PassApache-2.0
Feature Spec Generatorcashew-labs/libretto904—~2.4kAutomated safety check: PassMIT
Spec Writergarrytan/gstack136k—~14kAutomated safety check: NotesMIT
Feature Specificationowainlewis/blueprint412—~938Automated safety check: PassMIT

Similar skills

  • Spec-Driven Development

    addyosmani/agent-skills

    Writes a structured specification before any code, moving through gated specify, plan, tasks and implement phases, with an optional capability map for multi-part requests.

    103k GitHub starsUsed in 1 repo~3.2k tokens
    DevelopmentAuto-check passed
  • MoAI SPEC Workflow

    modu-ai/moai-adk

    Manages SPEC documents for MoAI-ADK development, with GEARS or EARS requirement notation, acceptance criteria and a link into the Plan-Run-Sync workflow.

    1.2k GitHub stars~5.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Feature Spec Generator

    cashew-labs/libretto

    Researches the codebase and relevant docs, asks clarifying questions, then writes a spec sheet in specs/ for a significant feature or complex fix.

    904 GitHub stars~2.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Spec Writer

    garrytan/gstack

    Converts a vague idea into a precise, executable spec in five phases, files it as an issue and can start an agent on it in a fresh worktree.

    136k GitHub stars~14k tokensUpdated today
    DevelopmentAuto-check: notes
  • Feature Specification

    owainlewis/blueprint

    Writes one implementation-ready spec for a feature or major change, settling behavior, technical design, failure handling and acceptance checks before delivery.

    412 GitHub stars~938 tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Spec Coder

    LeoYeAI/openclaw-master-skills

    Structured spec-first development workflow with multi-role expert review gates: clarify requirements, author spec documents (requirements/design/tasks), generate code from spec, verify with real…

    2.2k GitHub stars~5.3k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Writes plain-English integration test specs with verifiable steps and expectations, then runs each one through a subagent that reports pass or fail with logs.

    102 GitHub stars~908 tokensUpdated 13 days ago
    Auto-check passed
  • Anneal

    av/mi

    A skill your agent uses when the user wants to systematically fix AI code slop — duplicated logic, over-engineering, silent error swallowing, convention drift, cargo-cult patterns, and other…

    102 GitHub stars~3.8k tokensUpdated 13 days ago
    Auto-check passed
  • Scans a codebase to tag every fact as draft, spec or implemented based on what the code actually shows, adding missing facts and fixing or removing wrong ones.

    102 GitHub stars~2.8k tokensUpdated 13 days ago
    Auto-check passed
  • Implements every @spec fact from a project's fact sheet in code, tags each one @implemented once done, and reports exactly what is left if it cannot finish.

    102 GitHub stars~1.3k tokensUpdated 13 days ago
    Auto-check passed
  • Ideate

    av/mi

    Timeboxed ideation on a topic using propose-and-critique subagent pairs.

    102 GitHub stars~2.8k tokensUpdated 13 days ago
    Auto-check passed
  • Self

    av/mi

    Answer questions about how 'mi' works, write new tools, or modify the harness.

    102 GitHub stars~1.4k tokensUpdated 13 days ago
    Auto-check passed

Categories

Questions about Facts Spec Refiner

What does Facts Spec Refiner do?

Works with you to turn draft behavioral facts into precise, implementable spec facts, resolving vague labels, gaps and contradictions one at a time through discussion. The skill turns a project's draft facts into spec-ready facts through conversation rather than automation, always proposing a change and letting you decide instead of bulk-editing the fact sheet silently. It starts by loading the fact sheet with facts list and facts list --tags draft, and short CLI aliases like ll, at and rt are available for quick tagging during the session.

When should I use Facts Spec Refiner?

Facts Spec Refiner fits situations like: turning a set of vague draft specs into precise, testable facts; reviewing a fact sheet for gaps, contradictions or vague labels; sharpening a fact's wording together with the user before marking it spec-ready.

How do I install Facts Spec Refiner in Claude Code?

Run `npx skills add av/mi --skill facts-refine -a claude-code`. Or copy the skill folder (.agents/skills/facts-refine in av/mi) into .claude/skills/facts-refine in your project. Claude Code loads it when a task matches its description.

How do I install Facts Spec Refiner in Codex?

Run `npx skills add av/mi --skill facts-refine -a codex`. Or copy the skill folder (.agents/skills/facts-refine in av/mi) into .agents/skills/facts-refine in your project. Codex loads it when a task matches its description.

Can I use Facts Spec Refiner in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add av/mi --skill facts-refine -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/facts-refine, .gemini/skills/facts-refine, .github/skills/facts-refine and .opencode/skills/facts-refine in your project.

What does Facts Spec Refiner need to run?

SKILL.md names no scripts, command-line tools or credentials: Facts Spec Refiner is instructions for the agent only. Our summary lists: The facts CLI.

Does Facts Spec Refiner access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Facts Spec Refiner safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Facts Spec Refiner use?

No licence was found for Facts Spec Refiner or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Facts Spec Refiner use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Facts Spec Refiner?

Skills that share tags, products or a category with Facts Spec Refiner: Spec-Driven Development (addyosmani/agent-skills, 103k stars), MoAI SPEC Workflow (modu-ai/moai-adk, 1.2k stars), Feature Spec Generator (cashew-labs/libretto, 904 stars) and Spec Writer (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Facts Spec Refiner?

av (a GitHub user) maintains it in av/mi, which has 102 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on September 26, 2026.

Source: av/mi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.