

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456# Prompt Engineering Templates78Guidelines and templates for effective AI prompt engineering. Use `@prompt-engineering` to include this rule.910## Prompt Engineering Best Practices1112### 1. Prompt Structure Templates13```typescript14// System prompt template15const SYSTEM_PROMPT = `16You are an expert assistant specialized in [DOMAIN].17Your responses should be:18- Accurate and factual19- Concise but comprehensive20- Professional in tone21- Focused on [SPECIFIC_GOAL]2223Context: [CONTEXT_INFORMATION]24`;2526// User prompt template27const createUserPrompt = (input: string, context?: string) => `28Task: ${input}29${context ? `Additional context: ${context}` : ''}3031Please provide a response that follows the system guidelines.32`;33```3435### 2. Prompt Versioning36- Store prompts in separate configuration files37- Version prompts for A/B testing38- Track prompt performance and iterate39- Document prompt changes and rationale4041### 3. Dynamic Prompt Generation42```typescript43interface PromptConfig {44 system: string;45 temperature: number;46 maxTokens: number;47 stopSequences?: string[];48}4950const generatePrompt = (51 task: string,52 userInput: string,53 config: PromptConfig54) => {55 // Build context-aware prompts56 // Include relevant examples57 // Optimize for token efficiency58};59```6061### 4. Context Management62- Implement conversation memory63- Manage context window limits64- Prioritize relevant information65- Handle context overflow gracefully6667### 5. Prompt Optimization Techniques68- Use few-shot learning examples69- Implement chain-of-thought prompting70- Apply role-based prompting71- Include output format specifications7273### 6. Testing and Validation74- Create test suites for prompt effectiveness75- Measure response quality metrics76- Compare different prompt versions77- Monitor prompt performance in production
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.clinerules/01-core-principles.md · 17 | Cline rules | gitsecuritydeploymentdo-not+1 | 51/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/README.md · 17 | Windsurf rules | typesdo-not | 51/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/documentation-standards.md · 17 | Windsurf rules | docs | 30/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.clinerules/02-development.md · 17 | Cline rules | setupbuildteststyle+3 | 92/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/ai-development.mdc · 17 | Cursor rules | stylesecuritydependenciesapi+1 | 54/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/project-structure.mdc · 17 | Cursor rules | stylearchui | 66/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/security.mdc · 17 | Cursor rules | setupstylesecuritydatabase+1 | 54/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/testing-advanced.mdc · 17 | Cursor rules | teststyletesting-strategyperformance | 58/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.cursorrules · 17 | .cursorrules | setupbuildtestlint-format+13 | 96/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/ai-optimization.md · 17 | Windsurf rules | no sections | 30/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/security-api-keys.md · 17 | Windsurf rules | securityapido-not | 37/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/testing-ai-components.md · 17 | Windsurf rules | testtesting-strategy | 34/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/typescript-javascript.md · 17 | Windsurf rules | styletypesdo-not | 49/100 | 14 days ago | |
| HerringtonDarkholme/megarepoGEMINI.md · 17 | GEMINI.md | setupstylearchtypes+5 | 50/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.clinerules/04-security.md · 17 | Cline rules | setupstylesecurityapi+1 | 65/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/ai-development-core.md · 17 | Windsurf rules | do-notdocs | 45/100 | 14 days ago | |
| HerringtonDarkholme/megarepoAGENTS.md · 17 | AGENTS.md | archagent-behaviour | 52/100 | 14 days ago | |
| HerringtonDarkholme/megarepoCLAUDE.md · 17 | CLAUDE.md | setupteststylearch+6 | 88/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.clinerules/03-documentation.md · 17 | Cline rules | securitydocs | 50/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/code-quality.mdc · 17 | Cursor rules | teststyletypestesting-strategy+3 | 58/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/herringtondarkholme-megarepo-cursor-rules-prompt-engineering)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.