answer-format
Skill396 starsChanged 6 months agoMITView on GitHub
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. Or import it: 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. Precise answers routinely…
In this repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-activitySkill
- agent-registrySkill
- agent-room-opsSkill
- audio-transcribeSkill
- bee-actionsSkill
- bot2bot-postSkill
- call-diagnosticsSkill
- claude-codexSkill
- claude-geminiSkill
- claude-piSkill
- claude-routerSkill
- collaboration-intelligenceSkill
- connect-appsSkill
- context-dropSkill
- context-reconstructSkill
- db-browserSkill
- deal-finderSkill
- doc-ingestSkill
- electron-overlay-dimmingSkill
- email-findSkill
- engine-conflict-resolveSkill
- gemini-ttsSkill
- image-generationSkill
- import-claude-contextSkill
- local-workspace-serverSkill
- macos-toolsSkill
- macos-useSkill
- make-viral-videoSkill
- marketplaceSkill
- media-transcriptSkill
- meeting-prepSkill
- meeting-schedulerSkill
- mention-gateSkill
- model-switchSkill
- morning-briefingSkill
- ms365-connectSkill
- observeSkill
- obsidian-vaultSkill
- openai-ttsSkill
- open-sutando-refSkill
- overlay-appsSkill
- phone-conversationSkill
- proactive-loopSkill
- pr-shepherd-contractSkill
- quota-trackerSkill
- regression-searchSkill
- relaySkill
- releaseSkill
- report-feedbackSkill
- review-preflightSkill
- room-collabSkill
- schedule-cronsSkill
- screen-companionSkill
- screen-recordSkill
- self-diagnoseSkill
- self-upgradeSkill
- session-recapSkill
- skill-usage-reportSkill
- The first 60 shown.
The file
Files
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 # -> ParisOr 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

