prompt-engineering
Skill27 starsChanged 3 months agoApache-2.0View on GitHub
Use when designing, optimizing, testing, or deploying robust prompt systems for AI agents. This skill provides frameworks for structured prompt engineering, meta-prompting, and automated optimization workflows.
63 other projects use a version of this.
Adopted by
Most recently taken up by
- niki914/zafirotheir own version, first seen Oct 3, 2026
- dimitritholen/1337-claudetheir own version, first seen Sep 23, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- emtcmca/guildprooftheir own version, first seen Sep 20, 2026
- sabahattink/antigravity-fullstack-hqtheir own version, first seen Sep 20, 2026
Used with
Projects with it also use security-checklist, nextjs-app-router and 5 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.
atuljha23Skillsecurity-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
desilokesh1Skillnextjs-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-jansenSkillllm-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
rohitg00Skilldata-engineering
Data engineering patterns for ETL pipelines, data warehousing, Apache Spark, and data quality validation
Also in 3 projects that use this
dylantarreSkillperformance-optimization
Use when animation runs slow, janky, or causes frame drops
Also in 4 projects that use this
ArogyaReddySkillchangelog-generator
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Also in 3 projects that use this
Other versions63 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 63
- rohitg00/awesome-claude-code-toolkit★ 2.7ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- niki914/zafiro★ 221same name
- CodeAlive-AI/ai-driven-development★ 153same name
- nahid-sparktales/agent-dispatcher★ 59same name
- martinholovsky/claude-skills-generator★ 47same name
- Bbar0n234/learnflow-ai★ 35same name
- geekatron/jerry★ 35same name
- sabahattink/antigravity-fullstack-hq★ 30same name
- liqiongyu/my-agents★ 29same name
53 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository163 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-memorySkill
- claukitSkill
- mcp-agent-patternsSkill
- multi-agent-orchestrationSkill
- workflow-state-machinesSkill
- ai-multimodalSkill
- geo-fundamentalsSkill
- media-processingSkill
- screenshotSkill
- seo-fundamentalsSkill
- soraSkill
- aestheticSkill
- figma-implement-designSkill
- figmaSkill
- frontend-designSkill
- mobile-designSkill
- tailwind-patternsSkill
- ui-stylingSkill
- agentic-ragSkill
- api-patternsSkill
- app-builderSkill
- architectureSkill
- ask-mattSkill
- aspnet-coreSkill
- backend-developmentSkill
- better-authSkill
- clean-codeSkill
- code-agent-patternsSkill
- codebase-designSkill
- code-review-checklistSkill
- code-reviewSkill
- context-engineeringSkill
- context-optimizationSkill
- database-designSkill
- databasesSkill
- diagnoseSkill
- diagnosing-bugsSkill
- docs-seekerSkill
- domain-modelingSkill
- frontend-dev-guidelinesSkill
- graph-ragSkill
- i18n-localizationSkill
- implementSkill
- improve-codebase-architectureSkill
- lint-and-validateSkill
- llm-evalsSkill
- nextjs-best-practicesSkill
- nodejs-best-practicesSkill
- openai-docsSkill
- performance-profilingSkill
- playwright-interactiveSkill
- playwrightSkill
- prototypeSkill
- python-patternsSkill
- react-patternsSkill
- render-deploySkill
- repomixSkill
- researchSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
9
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
- Distinctive: line 14
When developing new LLM-powered features or agents.
- Distinctive: line 15
When existing prompts produce inconsistent, fragile, or hallucinated outputs.
- Distinctive: line 16
When implementing complex reasoning tasks that require strict output formatting.
- Distinctive: line 17
When you need to scale prompt maintenance across a team or large codebase.
- Distinctive: line 18
When setting up automated prompt optimization or regression testing pipelines.
- Distinctive: line 33
Chain-of-Symbol (CoS): Use compact symbol-based notation for complex logic to minimize token usage and improve coherence.
- Distinctive: line 42
Define: Create a declarative signature for the task.
- Very specific: line 44
Optimize: Run meta-prompting loops (using pro models) to critique and refine.
- Distinctive: line 45
Validate: Test against a set of representative inputs and boundary cases.
- Distinctive: line 46
Iterate: Use DSPy optimizers to refine instruction logic.
“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.
Files
Prompt Engineering Skill
Overview
The prompt-engineering skill establishes a disciplined approach to LLM instruction design within the KILO-KIT ecosystem. Moving beyond ad-hoc prompting, this skill treats prompts as first-class code, emphasizing contract-based structures, declarative signatures, and rigorous validation loops to ensure reproducible, high-quality AI behavior.
When To Use
- When developing new LLM-powered features or agents.
- When existing prompts produce inconsistent, fragile, or hallucinated outputs.
- When implementing complex reasoning tasks that require strict output formatting.
- When you need to scale prompt maintenance across a team or large codebase.
- When setting up automated prompt optimization or regression testing pipelines.
Core Concepts
Contract-First Prompt Architecture
Prompts are defined using a 5-part structure to ensure clarity and modularity:
- Identity: Define the persona, expertise, and operational boundaries.
- Context Boundaries: Explicitly define what data is in-scope and what is off-limits.
- Operational Rules: Step-by-step logic and prioritized directives.
- Edge Cases: Explicit handling of ambiguous, empty, or adversarial inputs.
- Output Schemas: Declarative JSON, XML, or Pydantic schemas to enforce structured output.
Reasoning Model Steerability
Optimizing for advanced reasoning models (e.g., o1, o3, Gemini 2.0+):
- Reasoning Effort Control: Explicitly specify constraints to trade-off speed vs. reasoning depth.
- Chain-of-Symbol (CoS): Use compact symbol-based notation for complex logic to minimize token usage and improve coherence.
- XML/Markdown Boundary Formatting: Utilize strict XML tags (e.g.,
<thought>,<logic>,<result>) to segment reasoning from content.
DSPy Integration
Leverage programmatic prompt optimization:
- Signatures: Define declarative Input/Output contracts.
- Optimizers: Apply
BootstrapFewShot,MIPROv2, orCOPROto automatically refine prompts based on validation datasets.
Workflow
- Define: Create a declarative signature for the task.
- Draft: Implement using the Contract-First structure.
- Optimize: Run meta-prompting loops (using
promodels) to critique and refine. - Validate: Test against a set of representative inputs and boundary cases.
- Iterate: Use DSPy optimizers to refine instruction logic.
- Deploy & Monitor: Version control the final prompt as code.
Key Patterns
- Semantic Diversity: Select Few-Shot examples based on embedding-space diversity rather than arbitrary selection.
- Negative Constraint Prioritization: Explicitly list what NOT to do, placing these at the beginning of the operational rules.
- Structured Output First: Enforce JSON/Schema output early in the instruction stream to prevent preamble bloat.
- Self-Correction Loops: Instruct the model to critique its own intermediate steps before generating the final output.
Quality Gates
- Contract Adherence: Does the output strictly follow the schema?
- Ambiguity Check: Can the prompt produce valid responses for empty or malformed input?
- Few-Shot Quality: Are examples diverse, representative, and error-free?
- Regression Testing: Does this version outperform the previous version on the golden test set?
- Token Efficiency: Have unnecessary filler instructions been removed?
References
- DSPy Documentation
- Anthropic Prompt Engineering Guide
- OpenAI Prompt Engineering Best Practices
- KILO-KIT Architecture ADRs on Prompt Versioning
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
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.

