prompt-library
Skill0 starsChanged 2 months agoMITView on GitHub
Maintain reusable prompt libraries: versioning, tagging, benchmarking and deduplication across teams. Use when curating, organizing, or categorizing reusable prompt collections.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- awaku7/agentclitheir own version, first seen Nov 2, 2026
- karim-bhalwani/agent-skills-collectiontheir own version, first seen Oct 20, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
- karim-bhalwani/agentic-harnesstheir own version, first seen Jul 12, 2026
- broomva/skillstheir own version, first seen Jun 13, 2026
- jornalistainclusivo/jinc-skillstheir own version, first seen Apr 22, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- awaku7/agentcli★ 12same name
- xfstudio/skills★ 9same name
- broomva/skills★ 4same name
- ai4brands-design/claude-skills★ 2same name
- jornalistainclusivo/jinc-skills★ 1same name
- karim-bhalwani/agent-skills-collection★ 0same name
- karim-bhalwani/agentic-harness★ 0same name
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 repository16 other files it gives its agents.
- agent-architectureSkill
- agent-identitySkill
- agent-orchestrationSkill
- agent-safetySkill
- automation-reviewSkill
- composioSkill
- create-skillSkill
- document-generationSkill
- mcp-builderSkill
- n8nSkill
- prompt-engineeringSkill
- rag-systemsSkill
- report-automationSkill
- skill-linterSkill
- trigger-devSkill
- workflow-mappingSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 38
Use deterministic templating engines (Mustache, Jinja2) with strict variable typing.
- Very specific: line 57
When updating a prompt (v1.1.0 -> v1.2.0):
- Distinctive: line 61
Never merge a prompt update that degrades benchmark pass rates.
- Very specific: line 98
If no vulnerabilities are present, respond with: {"status": "PASS", "findings": []}.
- Distinctive: line 99
If vulnerabilities exist, return structured findings matching the output schema.
- Distinctive: line 100
Do not comment on style, formatting, or performance.
“Common” is measured: kept by at least 6 in 10 of the 5 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-library
Core Philosophy
Storing system prompts as scattered string literals inside application code or unversioned Google Docs produces massive prompt drift, untracked regressions, and impossible debugging. System prompts are critical production software assets. A world-class prompt library treats prompts like code: strict Semantic Versioning, typed variable schemas, automated regression evals across model upgrades, and vector-based deduplication across teams.
4-Step Prompt Library Engineering System
Step 1: Versioning Architecture & File Structure
- Semantic Versioning (SemVer) for Prompts:
vMAJOR.MINOR.PATCH:- MAJOR: Radical architectural rewrite, changed input/output contract or role.
- MINOR: Added instructions, refined few-shot examples, improved nuance.
- PATCH: Typo fix, formatting polish, minor phrasing tweak.
- Directory Structure:
prompts/ ├── core/ │ └── code-reviewer/ │ ├── v1.2.0.md │ ├── schema.json │ └── evals.yaml └── metadata.json
Step 2: Typed Input/Output Schema Contracts
- Template Engine Standardization:
- Use deterministic templating engines (Mustache, Jinja2) with strict variable typing.
- Schema Definition (JSON Schema / Pydantic):
- Declare every dynamic input parameter explicitly:
{ "type": "object", "required": ["language", "code_snippet", "max_comments"], "properties": { "language": { "type": "string", "enum": ["typescript", "go", "python"] }, "code_snippet": { "type": "string", "maxLength": 50000 }, "max_comments": { "type": "integer", "default": 3 } } }
- Declare every dynamic input parameter explicitly:
Step 3: Automated Regression Evals & Benchmarking
- The Golden Dataset:
- Maintain a test suite of 20–50 canonical inputs with expected outputs and deterministic assertions for every prompt.
- Evaluation Gates:
- When updating a prompt (
v1.1.0->v1.2.0):- Deterministic Tests: Verify output matches required JSON schema, contains no markdown ticks if disallowed, stays under token limit.
- Semantic Similarity: Measure cosine similarity against baseline golden responses.
- LLM-as-Judge: Grade responses on accuracy, conciseness, and tone.
- Never merge a prompt update that degrades benchmark pass rates.
- When updating a prompt (
Step 4: Library Curation, Tagging & Deduplication
- Vector-Based Deduplication:
- Generate embeddings for all prompt system instructions.
- Flag semantic similarity $> 85%$ across different internal teams to merge redundant prompts and consolidate engineering effort.
- Taxonomy & Tagging:
- Tag by:
Domain(Code, Writing, Analysis),Model Target(Claude 3.5 Sonnet, GPT-4o),Latency Profile(Streaming, Batch).
- Tag by:
Deliverable Format: Prompt Registry Specification (PROMPT-SPEC.md)
# Prompt Registry Specification: [Prompt Name]
## 1. Metadata & Versioning
- **Prompt ID**: `code-review-security`
- **Current Version**: `v2.1.0`
- **Target Models**: Claude 3.5 Sonnet, GPT-4o
- **Author**: Platform Security Team
## 2. Input Parameter Schema
```json
{
"pull_request_diff": "string (required)",
"security_level": "enum: ['strict', 'standard']",
"language": "string"
}3. System Prompt Template (v2.1.0.md)
You are a Principal Security Engineer auditing a pull request diff in {{ language }}.
Audit the provided diff exclusively for security vulnerabilities: SQL injection, auth bypass, buffer overflows, and secret leaks.
Instructions:
1. If no vulnerabilities are present, respond with: `{"status": "PASS", "findings": []}`.
2. If vulnerabilities exist, return structured findings matching the output schema.
3. Do not comment on style, formatting, or performance.
Diff to audit:
{{ pull_request_diff }}4. Benchmark & Eval Results
- Golden Test Suite:
evals/security-suite-v1.yaml(42 test cases) - Schema Compliance: 100%
- Detection Rate (Precision / Recall): 96% / 92%
---
## Worked Example: Enterprise Customer Support Prompt Versioning
- **Challenge**: 4 product teams had built 4 separate customer support prompts, leading to inconsistent brand tone and broken JSON responses.
- **Solution**: Consolidated into a single prompt library module with SemVer. Added strict JSON schema validation for tool calls and 30 canonical test cases.
- **Outcome**: Eliminated JSON parse errors completely; prompt updates now run through CI evaluation before production deployment.
---
## Verification Checklist
- [ ] Prompt uses Semantic Versioning (`vMAJOR.MINOR.PATCH`).
- [ ] Input parameters are defined with strict types and validation schemas.
- [ ] Golden test suite exists with at least 15 representative inputs.
- [ ] Automated CI eval runs before prompt updates are promoted.
- [ ] Redundant prompts across teams are identified and deduplicated.
---
## Anti-Patterns
- **Hardcoded String Literals**: Burying 500-line prompt strings inside frontend components or database rows.
- **Prompt Tweaking Without Tests**: Editing a production prompt directly in response to a single bad output without running regression tests.
- **Schema-Free Outputs**: Asking the model to "give me some JSON" without providing a strict JSON schema contract.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.

