agentleFS
sabahattinksabahattink/antigravity-fullstack-hq/skills/prompt-engineering/SKILL.md

prompt-engineering

Skill30 starsChanged 2 months agoMITView on GitHub

Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. Use when creating prompts, optimizing existing prompts, or improving AI instructions.

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use llm-evaluation, data-engineering and 7 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.
  • 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

  • CloudAI-XSkill

    database-design

    Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.

    Also in 4 projects that use this

  • dylantarreSkill

    performance-optimization

    Use when animation runs slow, janky, or causes frame drops

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 55 edited versions we read keep these.

  • 1

    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:

    Before creating any prompt, understand:

    line 20

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

Workflow

User Request
|
+-- "Create a prompt" --> EXPLORATION PHASE
+-- "Optimize this prompt" --> OPTIMIZATION PHASE
+-- "Fix this issue" --> ANALYSIS PHASE

Phase 1: Exploration

Before creating any prompt, understand:

  • What task will this prompt accomplish?
  • Who will use it?
  • What does success look like?
  • What are the constraints?

Phase 2: Analysis

Task Classification

DimensionOptions
ComplexitySimple vs multi-step
OutputCreative vs analytical vs structured
StakesHigh vs experimental

Strategy Selection

Task TypeApproach
SimpleDirect instructions
ComplexChain-of-thought
CreativeRole setting
StructuredFormat specs + examples

Phase 3: Implementation

Version 1 - Minimal

  • Core instructions only
  • Test basic functionality

Version 2 - Enhanced

  • Add examples
  • Clarify ambiguities
  • Add constraints

Version 3+ - Optimized

  • Refine wording
  • Remove redundancy

Key Techniques

Role Setting

As an experienced code reviewer, analyze...

Chain-of-Thought

Think step-by-step:
1. First, identify...
2. Then, analyze...
3. Finally, conclude...

Few-Shot Learning

Example 1:
Input: "Great product"
Output: { "sentiment": "positive" }

Now analyze: "It was okay"

Explicit Constraints

- Limit to 3 paragraphs
- Focus on technical aspects only
- Do not include pricing

Prompt Template

## Context
[Background information]

## Role (Optional)
You are a [ROLE] with expertise in [DOMAIN].

## Task
[Clear instruction]

## Constraints
- Constraint 1
- Constraint 2

## Output Format
[Format specification]

## Examples (Optional)
[Input/Output examples]

Common Mistakes

MistakeFix
Vague instructionsBe specific
No examplesAdd 1-2 examples
Too many rulesSimplify
No format specDefine output structure

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.