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 agentmods add skills/agentailor/fullstack-langgraph-nextjs-agent/agent-prompt-engineeringnpx skills add agentailor/fullstack-langgraph-nextjs-agent --skill agent-prompt-engineeringgit clone --depth 1 https://github.com/agentailor/fullstack-langgraph-nextjs-agentWrote 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/agentailor/fullstack-langgraph-nextjs-agent/agent-prompt-engineering)<a href="https://agentmods.dev/skills/agentailor/fullstack-langgraph-nextjs-agent/agent-prompt-engineering"><img src="https://agentmods.dev/badge/skills/agentailor/fullstack-langgraph-nextjs-agent/agent-prompt-engineering.svg" alt="Measured on agentmods" 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.00111 | $0.02997 |
| Opus 5 | $0.00056 | $0.01499 |
| Sonnet 5 | $0.00022 | $0.00599 |
| Haiku 4.5 | $0.00011 | $0.00300 |
Grade C, and why
agent-prompt-engineering scanned grade C with 1 finding 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 yesterday.
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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- Instructions --> How it starts
The opening of the file, as written. The whole thing — 394 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Prompt Engineering
Overview
Agent prompt engineering differs fundamentally from traditional prompt engineering. Agents operate autonomously in loops, making decisions and using tools without human intervention. This requires conceptual engineering: providing heuristics, principles, and decision-making frameworks rather than rigid templates.
This skill distills Anthropic's production experience building agents like Claude Code into actionable principles for creating reliable, production-ready agent prompts.
Core Principles
1. Start Simple, Iterate Based on Reality
Begin with a straightforward prompt defining role and core task. Avoid premature optimization.
Initial structure:
<!-- Role -->
You are [Agent Name], a [domain] assistant.
Your task is to [primary objective].
<!-- Dynamic Content -->
You will be provided with [data sources].
<data_source>
{{VARIABLE}}
</data_source>
<!-- Instructions -->
When [handling requests], follow these steps:
1. [Step 1]
2. [Step 2]
3. [Step 3]
<!-- Repeat Critical Instructions — only in long prompts, see note below -->
Remember to [most important constraint].
On repeating the critical instruction: this earns its place in a long prompt, where the constraint would otherwise sit hundreds of lines from the decision it governs. On a frontier model with a short prompt it's unnecessary by default — the instruction was already read, and the restatement just spends tokens. Start without it and add it back if a constraint is actually being missed.
Perfect prompts emerge through iteration. Use AI to draft initial versions, then refine through testing.
2. Think Like Your Agent
Critical rule: If a human cannot follow your instructions with only the tools provided, neither can the agent.
Simulate being the agent: given only your prompt and tool descriptions, can you accomplish tasks?
Common gaps to check:
- Missing tool usage instructions: "To access [data], use the
tool_name(params)tool" - Unclear data locations: Specify where information lives and how to retrieve it
- Ambiguous decision criteria: Define when to use which approach
- Undefined success conditions: Clarify what "complete" means
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.
- yesterday First seen · 394 lines · 111 tokens per session scan C 6583d16f0e99
agent-prompt-engineering is a skill published in the GitHub repository agentailor/fullstack-langgraph-nextjs-agent (131 stars, last pushed 2d ago), licensed MIT. It adds 111 tokens to every session and 2,997 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
Other skills, from other repositories
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions.
code-review
This skill should be used when the user asks for a code review of a change — a pull request, merge request, branch, commit range, working-tree change, or pasted diff — covering correctness, security, performance, structure, and repository-specific rules. Trigger on phrases like "review this PR", "review this MR"…
plan
This skill should be used when the user asks to explore a codebase and design implementation plans without making any changes. Trigger when users say 'plan how to implement X', 'design an approach for Y', 'explore the codebase before changing Z', 'create an implementation strategy', 'analyze how to refactor X', 'map…
security-audit
This skill should be used when the user asks to review code for security vulnerabilities, audit a pull request or merge request for risks, check if code is safe, find injection flaws or hardcoded secrets, or assess the security posture of a feature or codebase area. Use this skill even when the user doesn't say…
init
This skill should be used when a user asks to initialize a repository for AI agents, create or update an AGENTS.md file, scaffold agent instructions for a codebase, or improve existing agent guidance. Triggers include phrases like 'create an AGENTS.md', 'set up agent instructions', 'initialize this repo for coding…
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.