agentleFS
niki914niki914/zafiro/.agents/skills/prompt-engineering/SKILL.md

prompt-engineering

Skill221 starsChanged 2 months agoMITView on GitHub

Guidelines to writing prompts, docs, or tasks for AI to read or execute, with strict context isolation.

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-checklist, nextjs-app-router 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

  • desilokesh1Skill

    nextjs-app-router

    Next.js App Router best practices, Server Components, Server Actions, routing patterns, and data fetching strategies. Use when building Next.js applications with the App Router.

    Also in 3 projects that use this

  • stefan-jansenSkill

    llm-evaluation

    LLM evaluation and testing patterns including prompt testing, hallucination detection, benchmark creation, and quality metrics. Use when testing LLM applications, validating prompt quality, implementing systematic evaluation, or measuring LLM performance.

    Also in 3 projects that use this

  • rohitg00Skill

    data-engineering

    Data engineering patterns for ETL pipelines, data warehousing, Apache Spark, and data quality validation

    Also in 3 projects that use this

  • qodex-aiSkill

    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 3 projects that use this

  • mrgoonieSkill

    context-engineering

    Master context engineering for AI agent systems. Use when designing agent architectures, debugging context failures, optimizing token usage, implementing memory systems, building multi-agent coordination, evaluating agent performance, or developing LLM-powered pipelines. Covers context fundamentals, degradation patterns, optimization techniques (compaction, masking, caching), compression strategies, memory architectures, multi-agent patterns, LLM-as-Judge evaluation, tool design, and project development.

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 3

    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 every update as a clean-slate rebuild.

    line 23
  2. Distinctive:

    Delete obsolete content entirely — no ghost context, no "(Updated)" labels.

    line 24
  3. Distinctive:

    Always pass explicit contextual constraints.

    line 52

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

Translate user commands into precise prompts or documentation edits. Eliminate context pollution ruthlessly.

<prompt_engineering_standards>

  • AX First: System architecture must be designed for AI consumption.
  • Clear Delimiters: Use explicit XML tags to isolate context, delimit instructions, and prevent injection. Skip XML wrappers when the content already has its own unambiguous boundary (e.g., a markdown heading, a code fence) — adding XML on top adds ceremony without improving isolation.
  • CoT & Verification: Perform internal step-by-step reasoning before outputting. Implement reverse-verification (e.g., "What specific error occurs if this info is missing?").
  • Mandatory Pre-flight Checklist: BEFORE outputting a file diff, executing a tool, or delegating a task, internally verify: 1. Is the payload/memory written strictly in English? 2. Are credentials (Token/PAT) completely scrubbed? Halt execution if validation fails.
  • Few-shot Examples: Provide 3-5 examples including Negative Examples to establish clear boundaries.
  • Zero Silent Drops: Log drops/errors explicitly. No backpressure blackholes.
  • Semantic Precision: Eliminate abstract adjectives; use executable metrics. </prompt_engineering_standards>

<stateless_document_modification> To prevent "version baggage" and "context pollution" when modifying documentation:

  • Treat every update as a clean-slate rebuild. Replace old facts with new facts directly. Never explain history, deltas, or reasoning in the text.
  • Delete obsolete content entirely — no ghost context, no "(Updated)" labels. No version tags or timestamps in headers unless explicitly requested.

Examples

Bad (meta-tagging noise):

- # Auth Module
+ # Auth Module (v2 Updated)

Good: no title change needed.

Bad (conversational baggage):

- Auth validates tokens.
+ Auth validates tokens and sessions. (Note: it no longer only validates tokens.)

Good:

- Auth validates tokens.
+ Auth validates tokens and sessions.

</stateless_document_modification>

<agent_dispatch_rules>

  • Task content for subagents MUST be in English and strictly adhere to <prompt_engineering_standards>. Preserve native hardcoded strings from the source code.
  • Output in the same language the user used in the request.
  • Always pass explicit contextual constraints. Never override user requirements with generic implementations. </agent_dispatch_rules>

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.