ai-prompt-writer
Skill4 starsChanged 6 months agoMITView on GitHub
Design, review, and optimize secure AI prompts using advanced prompt engineering patterns, safety frameworks, and injection mitigation strategies.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- peterbamuhigire/business-plan-skillstheir own version, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- peterbamuhigire/business-plan-skills★ 4same 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 repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Very specific: line 24
Secure Construction: Never directly interpolate untrusted input.
- Distinctive: line 46
Document prompt purpose, scope, assumptions, and limitations.
- Distinctive: line 50
When writing strict procedural code (like Python or Bash scripts) where natural language ambiguity is unacceptable.
- Very specific: line 52
When generating general project documentation without targeting an AI consumer (use docs-writer instead).
- Distinctive: line 60
Ignoring Artifacts: Don't refine prompts based on error feedback.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: AI Prompt Writer
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Design, review, and optimize secure AI prompts using advanced prompt engineering patterns, safety frameworks, and injection mitigation strategies.
Core Process
- Contextualize: Define explicit tasks, target audience, and precise constraints (format, length, tone).
- Pattern Selection: Apply Zero-Shot for simple tasks, Few-Shot for formats, Chain-of-Thought for reasoning, and Role Prompting for specialized contexts.
- Harden: Sanitize all dynamic inputs to prevent prompt injection and data leakage.
- Validate: Red-team against bias, harmful outputs, and edge cases.
Core Principles
- Clarity over Verbosity: Issue concise, unambiguous directives. Drop conversational filler.
- Strict Constraints: Dictate exact output structures (JSON, markdown) and scope boundaries.
- Secure Construction: Never directly interpolate untrusted input. Use parameterization or robust sanitization (e.g.,
Translate this text: [SANITIZED_USER_INPUT]). - Data Minimization: Exclude sensitive, personal, or proprietary data from prompts.
- Neutrality: Enforce inclusive language; eliminate demographic or contextual assumptions.
When to Use
- Engineering system prompts, LLM templates, or Copilot instructions.
- Auditing existing prompts for injection vulnerabilities or data leakage risks.
- Defining automated prompt evaluation metrics or safety checklists.
Commands / Usage Patterns
- Role Setup:
You are a <role> with <years> experience in <domain>. Review <target> and identify <issues>. - Chain-of-Thought:
Solve this step-by-step: 1. <step 1> ... - Few-Shot Validation:
Input: <example_in> \n Output: <example_out> - Injection Defense: Replace
`Text: ${userInput}`with`Text: ${sanitizeInput(userInput)}`.
Best Practices
- Standardize inputs using clear delimiters (e.g.,
""",###,<tag>). - Implement content moderation pre/post-processing for user-facing AI pipelines.
- Establish A/B testing and automated evaluation for continuous prompt refinement.
- Document prompt purpose, scope, assumptions, and limitations.
When Not to Use
- When writing strict procedural code (like Python or Bash scripts) where natural language ambiguity is unacceptable.
- For managing low-level hardware or infrastructure where strict, deterministic APIs should be used instead of LLMs.
- When generating general project documentation without targeting an AI consumer (use
docs-writerinstead).
Common Pitfalls
- Too Vague: "Make the code better" → Specify exactly what "better" means.
- Too Restrictive: Over-constraining can prevent useful optimizations.
- Missing Context: Include relevant domain knowledge and terminology.
- No Examples: Concrete examples guide an LLM better than abstract descriptions.
- Ignoring Artifacts: Don't refine prompts based on error feedback.
What to Avoid
- Unbounded Inputs: Permitting raw user input to override system instructions.
- Overfitting: Hardcoding constraints tied to specific training data examples.
- Echoing Secrets: Designing prompts that inadvertently reflect sensitive inputs.
References
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.

