agentleFS
xtieumextieume/testcase/.agents/skills/normalize/SKILL.md

normalize

Skill4 starsChanged 58 days agoMITView on GitHub

Rewrites a casual, rambling everyday prompt into a compact engineering prompt — structured sections, imperative instructions, explicit escalation and done criteria — ready to paste into an AI or in front of a slash command like /goalrun. Use when the user says "chuẩn hóa prompt", "viết lại prompt này", "làm prompt cho gọn", "prompt này dài quá", "rewrite this prompt", "turn this into a proper prompt", "clean up my prompt", "make this a technical prompt", "prompt for /goalrun", or pastes a long informal instruction and asks for a version to send to an AI.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use arrange, teach-impeccable and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 11 projects that use this

  • mtctSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

    Also in 11 projects that use this

  • nikafastovets-langSkill

    overdrive

    Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?

    Also in 6 projects that use this

  • jovijoviSkill

    extract

    Extract content from specific URLs using Tavily's extraction API. Returns clean markdown/text from web pages. Use when you have specific URLs and need their content without writing code.

    Also in 10 projects that use this

  • mickeylorenziniSkill

    harden

    Audits any substantial deliverable — documents, grant sections, strategies, protocols, skills, configs, roadmaps, plans — against domain-specific quality criteria before delivery. Searches the web for best practices, runs dual-pass thematic and structural audit with severity classification, fixes all issues, and iterates until convergence. Activates when producing deliverables exceeding 4 paragraphs or 20 lines, or when the user says "harden", "audit", "stress test", or "review before delivering", or when re-auditing a modified deliverable for regressions. Does not activate for conversational responses, brainstorming, web search summaries, or rough drafts.

    Also in 10 projects that use this

  • +4 more from mtct
  • +1 more from nikafastovets-lang

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every line of the output traces to a phrase in the input: No invented scope, no added acceptance criteria, no "best practice" section the …

    line 13
  2. Distinctive:

    Never execute the normalized prompt.

    line 19
  3. Distinctive:

    Read the input twice and answer, in the input's own words:

    line 31
  4. Distinctive:

    Every line goes in exactly one of the two lists, by one test: after the work is finished, could someone check it without having watched the …

    line 63
  5. Distinctive:

    Keep the user's emphasis: If they wrote it in caps, bold or repeated it, it stays loud.

    line 85
  6. Very specific:

    Default limit: 4000 characters for the whole block.

    line 91
  7. Distinctive:

    Never cut a requirement to fit.

    line 100
  8. Very specific:

    Never translate: file paths, folder names, filenames, code identifiers, command names, product/system names, status labels the user quoted …

    line 108
  9. Distinctive:

    Do not emit before this. Walk the *input* sentence by sentence and mark each one:

    line 121
  10. Distinctive:

    No commentary on how it was rewritten.

    line 140

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Normalize — everyday prompt → engineering prompt

Same requirements. Less prose. Shape an AI can execute.

The rule

Every line of the output traces to a phrase in the input. No invented scope, no added acceptance criteria, no "best practice" section the user never asked for.

Dropping a requirement fails the same way inventing one does. This is a rewrite, not a redesign — you have no authority to decide the task is bigger or smaller than stated.

Never execute the normalized prompt. The deliverable is the text.

Workflow

  • 1. Extract — pull every requirement out of the input, verbatim-ish
  • 2. Shape — group into sections, convert each to an imperative
  • 3. Budget — fit the character limit
  • 4. Second pass ⚠️ REQUIRED — diff output against input, both directions
  • 5. Emit — one fenced block, nothing else

1. Extract

Read the input twice and answer, in the input's own words:

  • Target — what file, path, URL, repo, ticket or command is this pointed at? Copy it character-for-character. A path is not paraphrasable.
  • Goal — what state does the user want at the end? Usually one sentence buried in the middle of the rambling.
  • Sources of truth — which folders, docs or systems did they name as authoritative, and in what order? Keep any reading order they gave ("trace newest → oldest").
  • Escalation — what did they say to do when something is unclear? (ask, mark draft, widen the search, guess)
  • Done / output — what artifact proves it, and what format?
  • Meta — character limit, language, tone, "don't explain, just instruct".

Anything you cannot place in one of these is still a requirement. Give it its own section rather than dropping it.

2. Shape

<target line — path, URL, or the command it will follow>

## Goal
<1–3 sentences: the end state>

## Must be true
<one line each: a behaviour, a number, a file that exists, a thing that must not change>

## How to work
<one line each: sources and their order, who to ask, when to stop and report, what to try
first, what to record where while working, the user's hunches>

Every line goes in exactly one of the two lists, by one test: after the work is finished, could someone check it without having watched the work being done? Yes → Must be true. No → How to work. "Session lasts 8 hours" is checkable afterwards; "check yesterday's logs first" is not. "No new dependencies" is checkable; "ask before touching the schema" is not.

The first line of Must be true is the goal's end state, as a checkable fact — "CSV export exists on the orders page", not only a sentence under Goal.

A sentence carrying both halves splits in two. "Write a reproducing test first, then fix" → a reproducing test exists under Must be true, write it before the fix under How to work. "Run the benchmark before and after and paste the numbers in the PR" → the PR has before and after numbers, and run it before and after.

A hunch stays a hunch: "i think the n+1 is part of it but idk" becomes "User suspects the N+1 in the product loader (unconfirmed)" under How to work — never a task, never a requirement.

Rewriting rules:

  • Imperative, second person implied. "Do NOT guess." not "The AI should avoid guessing."
  • One instruction per line. Split compound sentences.
  • Negative constraints stay negative. "Do not close a code because the implementation looks reasonable" is a guardrail; softening it to "close codes with evidence" loses it.
  • Keep the user's emphasis. If they wrote it in caps, bold or repeated it, it stays loud.
  • Cut the rationale, keep the rule. Explanations of why are the first thing to go.
  • No preamble, no praise, no "Sure, here is". The block starts at the first instruction.

3. Budget

Default limit: 4000 characters for the whole block. --max N overrides.

Count the block before emitting. Over budget, cut in this order:

  1. Explanatory clauses and justifications
  2. Examples that repeat an adjacent rule
  3. Sub-bullets merged into their parent
  4. Section headers merged (two thin sections → one)

Never cut a requirement to fit. If the requirements alone exceed the limit, emit them all and say in one line after the block that the limit was exceeded and by how much.

Language

Mirror the input. Vietnamese in → Vietnamese out; English in → English out; mixed → the language of the majority of the instructions. --en / --vi override.

Never translate: file paths, folder names, filenames, code identifiers, command names, product/system names, status labels the user quoted ([Draft], Q&A, PROGRESS.html).

Flags

FlagEffect
--max NCharacter budget (default 4000)
--for /cmdPut /cmd on the first line of the block, and shape for that command's style
--en / --viForce output language

4. Second pass ⚠️ REQUIRED

Do not emit before this. Walk the input sentence by sentence and mark each one:

  • covered — a line in the output carries it
  • dropped — not in the output → restore it
  • invented — a line in the output with no matching input sentence → delete it

A line that only restates the target, the goal, or a section header is not coverage of a requirement. Rules named once in a throwaway clause ("nhớ update vào progress html nhé") are requirements; casual phrasing does not make them optional.

Re-count characters after fixing.

5. Emit

Output exactly:

  1. One fenced code block containing the normalized prompt, and nothing else.
  2. One line after it: the character count, and any dropped-requirement warning.

No commentary on how it was rewritten. No offer to run it — the user asked for text.

Anti-patterns

Don'tInstead
Add "## Context", "## Background", "## Assumptions" the user never gaveOnly sections whose content came from the input
Turn a rule into a polite suggestion ("consider checking…")Keep the imperative force
Summarize a list of folders as "the relevant docs"Keep every path, in the order given
Explain the rewrite before or after the blockOne char-count line, nothing more
Translate PROGRESS.html or a path into the output languageIdentifiers stay verbatim
Pad to look thorough when the input was 3 linesA short input yields a short prompt
Open the target file to "understand it better"Pure text transform — the target is not read

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.