Skip to content
Automation
Skill

/answer-format

Deterministic final-answer normalizer — a last-step pass for any task that ends in a *precise* answer (a number, a short string, a comma-list). Applies the formatting conventions graders and downstream consumers expect without changing meaning.

From plugin
sutando
41087 skills20 hooks

Claude Code

$ npx -y skills add sonichi/sutando --skill answer-format --agent claude-code

SKILL.md

answer-format.SKILL.md

answer-format

Deterministic final-answer normalizer — a last-step pass for any task that ends in a *precise* answer (a number, a short string, a comma-list). Applies the formatting conventions graders and downstream consumers expect without changing meaning.

**Usage**:

python3 skills/answer-format/scripts/normalize.py --kind number -- "100 million"   # -> 100000000
python3 skills/answer-format/scripts/normalize.py --kind list --sort -- "b, a, c"   # -> a, b, c
echo "  \"Paris\"  " | python3 skills/answer-format/scripts/normalize.py --kind string  # -> Paris

Or import it:

from normalize import normalize_answer
normalize_answer("100 million", kind="number")   # "100000000"

What it does

| kind | transforms (all lossless or pattern-gated) | |---|---| | `number` | worded magnitude → digits (`3.5 billion`→`3500000000`); strip thousands separators (`1,234`→`1234`); strip a single leading currency (`$`/`€`/`£`/`¥`) or trailing `%` when the rest is numeric | | `string` | trim whitespace; strip one layer of surrounding quotes; collapse internal whitespace; optionally drop a leading `the`/`a`/`an` (`--drop-article`) — interior words and capitalization untouched | | `list` | comma-separated, one space after each comma; per-element trim; optional case-insensitive sort (`--sort`) and per-element numeric normalization (`--number-items`) | | `auto` (default) | infer kind from shape, then apply the above |

Design principle

**Conservative.** A normalizer that mangles a correct answer is worse than none, so every transform is either lossless or gated on a confident pattern; ambiguous input passes through unchanged. Sorting and article-dropping are opt-in because graders rarely want them.

Why

Precise answers routinely fail grading or downstream matching on format alone — `"100 million"` vs `"100000000"`, `"1,234"` vs `"1234"`, `'"Paris"'` vs `Paris`. This is a general capability (any task ending in an exact answer benefits); it also implements the final-format step of the agent-eval solver contract, where a single format miss cost a correct L3 answer.

Read more
@sonichi
Ships withsutando

My AI Stand — Realtime by Day, Rewriting Itself by Night. Summon my AI superpower. Voice, vision, screen, meetings, calls when I'm engaged. Learns my patterns, ships its own code when I'm not. Runs across my Macs, interacts with people & their Stands.

Stars on GitHub

Momentum

stars in total
410
Star history of sonichi/sutando on GitHub, a chart by star-history.com

Other skills on sutando.

ag2-space-mcp

ag2-space-mcp

Connect this Sutando install to AG2 Space's hosted MCP as its own agent, without the desktop app, and know which room and Commons…

@sonichi@sonichiInstall Skill
ag2space-voice

ag2space-voice

s.space voice surface — binds the room the s.space client announces to the voice session's origin, so work delegated by voice in…

@sonichi@sonichiInstall Skill
agent-activity

agent-activity

Streams what the agent is doing into the room, as rows the desktop client renders in an **events drawer** above the composer…

@sonichi@sonichiInstall Skill
agent-registry

agent-registry

Local Agent Registry — a standalone, dependency-free service that tracks running Claude Code (and other) agent instances. Agents…

@sonichi@sonichiInstall Skill
agent-room-ops

agent-room-ops

For an all-room analysis sweep, use the tested window collector and coverage contract in…

@sonichi@sonichiInstall Skill
app-request

app-request

Playbook for a task with `event_type: commons.app_request` (an s.space AgentTrigger: your owner pressed a button in a Commons app…

@sonichi@sonichiInstall Skill

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about answer-format.

Which coding agents can use answer-format?
answer-format installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.