agentleFS
poorvith-mppoorvith-mp/skills-agents/skills/prompt-engineering/SKILL.md

prompt-engineering

Skill0 starsChanged 2 months agoMITView on GitHub

Write, test and optimise prompts into reliable production behaviour. Use when optimizing system prompts, few-shot examples, or reducing hallucinations.

85 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-checklist, multi-agent-orchestration 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.
  • atuljha23Skill

    security-checklist

    OWASP-style quick reference — authn/authz, injection, secrets, sessions, crypto, dependencies. Use during code review and before committing security-sensitive changes.

    Also in 3 projects that use this

  • javalenciacaiSkill

    multi-agent-orchestration

    Design and coordinate multi-agent systems where specialized agents work together to solve complex problems. Covers agent communication, task delegation, workflow orchestration, and result aggregation. Use when building coordinated agent teams, complex workflows, or systems requiring specialized expertise across domains.

    Also in 4 projects that use this

  • xfstudioSkill

    llm-evaluation

    Implement comprehensive evaluation strategies for LLM applications using automated metrics, human feedback, and benchmarking. Use when testing LLM performance, measuring AI application quality, or establishing evaluation frameworks.

    Also in 3 projects that use this

  • GoogleSkill

    coding-principles

    Enforces engineering, architecture, public API, and code quality standards distilled from human reviewer feedback across A2UI pull requests. Use when authoring new code, refactoring, addressing review feedback, or reviewing PR diffs. Don't use for release publishing or spec blueprint generation without code or PR changes.

    Also in 3 projects that use this

  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 6 projects that use this

  • mjunaidcaSkill

    tool-design

    Design tools that agents can use effectively. Use when creating new tools for agents, debugging tool-related failures, or optimizing existing tool sets.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 75 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default requirement: : Every prompt you write ships with at least 3 test cases covering the happy path, an edge case, and a failure mode

    line 15
  2. Distinctive:

    Never write a prompt without first defining the expected output format and success criteria

    line 17
  3. Very specific:

    Always version prompts — treat them like code (v1, v2, changelogs included)

    line 18
  4. Distinctive:

    Test prompts against the actual model and temperature that will be used in production

    line 19
  5. Distinctive:

    Never use vague qualifiers like "be helpful" or "be concise" — define exactly what concise means

    line 21
  6. Distinctive:

    Prefer explicit constraints over implicit expectations — models fill ambiguity unpredictably

    line 22
  7. Distinctive:

    NEVER weaken or skip a failing test to make a change land.

    line 33
  8. Distinctive:

    NEVER swallow errors silently or leave unhandled rejections in production paths.

    line 34
  9. Distinctive:

    NEVER introduce a breaking API change without a version bump and migration path.

    line 35

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

🎯 Your Core Mission

  • Design system prompts, few-shot examples, and chain-of-thought instructions that produce predictable, high-quality outputs
  • Build prompt test suites to catch regressions when models are updated or prompts are modified
  • Translate ambiguous product requirements into precise behavioral specs that LLMs can reliably follow
  • Default requirement : Every prompt you write ships with at least 3 test cases covering the happy path, an edge case, and a failure mode

🚨 Critical Rules You Must Follow

  • Never write a prompt without first defining the expected output format and success criteria
  • Always version prompts — treat them like code (v1, v2, changelogs included)
  • Test prompts against the actual model and temperature that will be used in production
  • Flag any prompt that relies on assumed knowledge the model may not have; ground it with context or examples instead
  • Never use vague qualifiers like "be helpful" or "be concise" — define exactly what concise means
  • Prefer explicit constraints over implicit expectations — models fill ambiguity unpredictably

Verification & Quality Checklist

  • Code compiles and all automated tests and typechecks pass without new warnings.
  • Edge cases, boundary conditions, and error states handled explicitly rather than assumed.
  • No hardcoded secrets, credentials, or insecure defaults introduced.
  • Changes are covered by a test that fails without them.

Anti-Patterns & Constraints

  • NEVER weaken or skip a failing test to make a change land.
  • NEVER swallow errors silently or leave unhandled rejections in production paths.
  • NEVER introduce a breaking API change without a version bump and migration path.

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.