Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add The-AI-Directory-Company/agents-and-skills --skill ai-prompt-writinggit clone --depth 1 https://github.com/The-AI-Directory-Company/agents-and-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/ai-prompt-writing)<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/ai-prompt-writing"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/ai-prompt-writing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/ai-prompt-writing"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/ai-prompt-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.01596 |
| Opus 5 | $0.00023 | $0.00798 |
| Sonnet 5 | $0.00009 | $0.00319 |
| Haiku 4.5 | $0.00005 | $0.00160 |
Grade A, and why
ai-prompt-writing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Prompt Writing
Before you start
Gather the following from the user. If anything is missing, ask before proceeding:
- What tool are you prompting? — Claude Code, GitHub Copilot, Cursor, Gemini CLI, ChatGPT, or another AI coding tool
- What task should the prompt accomplish? — Code generation, refactoring, debugging, review, documentation, or explanation
- What is the codebase context? — Language, framework, project conventions, relevant files
- What does a good result look like? — Expected output format, quality criteria, or a reference example
- What has gone wrong so far? — Previous prompt attempts and how the output missed the mark
Prompt writing procedure
1. State the Task Before the Context
Lead with what you want, then provide supporting information. AI tools process instructions sequentially — burying the task after paragraphs of context reduces accuracy.
Structure:
[What to do] — 1-2 sentences
[Constraints] — format, style, boundaries
[Context] — relevant code, files, architecture
[Examples] — input/output pairs if helpful
Bad: "Here is my React component that uses useState and useEffect to fetch data from /api/users and display it in a table. The table has sorting and pagination. I want you to..."
Good: "Refactor this React component to replace useState+useEffect data fetching with React Query. Keep the existing sorting and pagination behavior. Here is the component: ..."
2. Be Specific About Constraints
Vague prompts get vague results. Constrain the output to match your project's conventions:
- Language/framework version: "Use TypeScript 5, React 19, Next.js 15 App Router"
- Style conventions: "Follow the existing pattern in src/hooks/ — named exports, no default exports"
- What NOT to do: "Do not add new dependencies. Do not change the public API."
- Scope boundaries: "Only modify the fetchUsers function. Do not touch the rendering logic."
Each constraint eliminates a category of wrong answers.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 150 lines · 45 tokens per session scan A c0916195d1ee
ai-prompt-writing is a skill published in the GitHub repository The-AI-Directory-Company/agents-and-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 45 tokens to every session and 1,596 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
happyhorse-prompt-studio
Interactive prompt studio for HappyHorse 1.0 video generation. Guides users through scenario discovery with vivid examples, then assembles production-ready prompts in JP/CN/EN. Use when someone wants to create AI video content with HappyHorse but doesn't know where to start, or when they have a specific scenario and…
ai-orchestration-langchain
LangChain.js patterns for building LLM applications — chat models, LCEL chains, prompt templates, structured output, agents, tools, RAG, streaming, and LangSmith tracing.
ai-observability-promptfoo
Testing and evaluation framework for LLM prompts and applications -- promptfooconfig.yaml, assertions, model-graded evals, red teaming, CI/CD integration, custom providers, and comparative evaluation.
prompt-enhancer
Refines vague, unstructured user prompts into clear, constraint-driven prompts with explicit formats and rules.
prompt-testing
Use this skill when you need to test prompt behavior, regression risk, and output boundaries across versions; triggers include prompt testing.
ai-llm-engineering
Design, integrate, evaluate, and operate AI/LLM systems using model- and framework-agnostic engineering principles.