agentleFS
zhamannzhamann/skills/prompt/SKILL.md

prompt

Skill2 starsChanged 29 days agoMITView on GitHub

Create, review, debug, and refactor prompts, system instructions, and skills as clear, minimal specifications of intended behavior. Use when writing a prompt, incorporating feedback, or fixing unexpected model behavior, so corrections generalize into principles instead of accumulating as exceptions.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brainstorm, init and 1 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.
  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 4 projects that use this

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat a prompt as a specification of intended behavior, not a record of past corrections.

    line 10
  2. Distinctive:

    When several prompts would produce the same behavior, prefer, in order:

    line 30
  3. Distinctive:

    Semantic over textual compression: Remove redundant concepts, not wording the model needs to interpret and apply the instruction correctly.

    line 56
  4. Distinctive:

    Before adding or changing an instruction, ask:

    line 61

“Common” is measured: kept by at least 6 in 10 of the 18 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

Prompt

Objective

Treat a prompt as a specification of intended behavior, not a record of past corrections.

Maximize behavioral accuracy with the fewest necessary independent concepts. Semantic complexity should grow only when the intended behavior grows. The goal is not minimum word count; it is minimum unnecessary complexity.

Core principle

Examples and failures are evidence, not automatic requirements.

observed behavior → intended behavior → general principle

not:

observed behavior → permanent exception

A failure shows what happened, not necessarily what should have happened. Establish the intended behavior first, then generalize the correction.

When several prompts would produce the same behavior, prefer, in order:

  1. Rewriting an existing rule.
  2. Merging related rules.
  3. Replacing specific cases with a broader principle.
  4. Adding a rule only for a genuinely new requirement.

Example

Intent: characters should have realistic, naturally occurring hair colors. Observed failure: the model gave a character neon blue hair.

"Do not generate neon blue hair" encodes one instance and invites the next one (green, purple, pink). "Use realistic, naturally occurring hair colors" states the requirement and covers the whole category.

Workflow

  1. Establish intent. Identify the behavior, scope, constraints, and outcomes the prompt must produce or preserve. Do not infer the rule from a failure alone.
  2. Diagnose complexity. Find redundant or conflicting instructions, overly narrow constraints, enumerated examples that should be categories, and historical patches.
  3. Generalize. Replace narrow cases with the principle that accurately represents the intent. Keep explicit distinctions where behavior genuinely differs.
  4. Simplify. Rewrite the governing instruction instead of appending a correction, merge related rules, and remove instructions already implied elsewhere.
  5. Validate. Confirm the result preserves intended behavior, generalizes beyond the examples, adds no unintended restrictions, stays internally consistent, and is clearer or more expressive than before. Test against real inputs when possible.

Editing rules

  • Principles over examples: Examples should teach a reasoning pattern, not become permanent constraints. "Communicate respectfully" beats "Never say 'that's stupid.'"
  • Abstraction over enumeration: Name the category when it accurately covers the intended cases. "Use natural colors" beats a list of forbidden ones.
  • Rewriting over appending: Strengthen the existing instruction ("Be concise" → "Be concise and direct") rather than adding a second one that restates it.
  • Semantic over textual compression: Remove redundant concepts, not wording the model needs to interpret and apply the instruction correctly.
  • Consistency over isolated fixes: Resolve conflicting instructions at the level of the specification, not by adding a tie-breaker for each collision.

Complexity gate

Before adding or changing an instruction, ask:

  1. Does it express a genuinely new requirement?
  2. Is the behavior already implied elsewhere?
  3. Could it be expressed more generally?
  4. Is it a principle or merely an observed example?
  5. Would removing it change expected behavior?

Reject changes that add complexity without improving behavioral accuracy or expressive power.

Stability test

A well-maintained prompt converges. Applying this process again should produce little or no meaningful change. If each review adds more exceptions, the prompt is accumulating history instead of expressing principles, and the underlying specification needs rethinking.

Guiding maxim: A prompt should describe what the system must do, not the history of mistakes that shaped it.

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.