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 AnastasiyaW/codex-claude-code-config --skill agents-best-practicesgit clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-configWrote 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/anastasiyaw/codex-claude-code-config/agents-best-practices)<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/agents-best-practices"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/agents-best-practices/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/anastasiyaw/codex-claude-code-config/agents-best-practices"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/agents-best-practices.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.00092 | $0.04420 |
| Opus 5 | $0.00046 | $0.02210 |
| Sonnet 5 | $0.00018 | $0.00884 |
| Haiku 4.5 | $0.00009 | $0.00442 |
Grade A, and why
agents-best-practices 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 5d 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.
This is a copy
89% identical to agents-best-practices — 30 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agents Best Practices
Use this skill when the user asks how to build, improve, debug, or evaluate an agentic harness. This is a general-purpose agent architecture skill. Coding agents are one subdomain only; apply the same principles to research, finance, legal, support, operations, sales, healthcare, education, data analysis, procurement, and workflow automation agents.
Core stance
An agent harness is the control plane around a model. The model proposes actions; the harness validates, authorizes, executes, records, summarizes, and returns observations. Keep the loop simple and make the runtime rigorous.
Default architecture:
user/task
-> instruction and context builder
-> model call
-> tool/action proposal
-> schema validation
-> permission decision
-> execution or approval pause
-> structured observation
-> context update
-> repeat within budget or finish
Completion and reconciliation
For an action request, treat a discovered problem as a state transition, not a terminal report. Before calling the request complete, reconcile every required item using the contract in completion-reconciliation.md. Diagnosis-only internal gaps re-enter owned work; final prose is never a completion signal.
When to activate this skill
Use this skill for prompts involving any of these intents:
- build an agent, agentic workflow, AI worker, autonomous assistant, or harness;
- create a domain-specific MVP agent design, starter harness, implementation blueprint, or first production-safe version;
- choose between OpenAI, Anthropic, OpenAI-compatible APIs, direct tool loops, hosted tools, or SDKs;
- design tools, permissions, guardrails, approval flows, or sandboxing;
- design an agent for a partially known or changing environment using capability discovery, safe probing, runtime binding, schema verification, or drift invalidation;
- reduce code-mode or programmatic-tool latency through speculative execution, partial-program analysis, futures, exact claim semantics, or cancellation of unused work;
- create planning mode, workflow orchestration, goal mode, todo tracking, or long-running task behavior;
- add context compaction, memory, retrieval, scoped instructions, or prompt hierarchies;
- design a recursive language model (RLM), programmable-context runtime, self-refining or continual harness, retained child agents, daemon-backed or scheduled agent, or executable skills;
- attach Agent Skills, reusable workflows, MCP servers, external connectors, or tool search;
- audit an existing agent for reliability, cost, prompt-cache hit rate, safety, latency, or observability;
- create system prompts or developer instructions for a domain-specific agent;
- make source-of-truth knowledge, validation signals, logs, metrics, or workflow state legible to an agent.
What ships with it
24 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.
- ATTRIBUTION.md 844 B
- LICENSE-upstream 1.0 KB
- references/agent-legibility-feedback-loops.md 7.6 KB
- references/agentic-loop.md 6.7 KB
- references/architecture.md 9.1 KB
- references/checklists.md 15 KB
- references/coding-agents.md 17 KB
- references/completion-reconciliation.md 6.8 KB
- references/context-memory-compaction.md 7.8 KB
- references/coverage-audit.md 8.2 KB
- references/environment-adaptive-tools.md 22 KB
- references/evals.md 14 KB
- references/mvp-agent-blueprint.md 16 KB
- references/planning-and-goals.md 7.2 KB
- references/prompt-caching-and-cost.md 7.4 KB
- references/provider-api-patterns.md 7.3 KB
- references/security-observability.md 6.5 KB
- references/self-refining-recursive-harnesses.md 26 KB
- references/skills-and-connectors.md 8.6 KB
- references/source-links.md 7.5 KB
- references/speculative-tool-execution.md 18 KB
- references/system-prompts-instructions.md 4.3 KB
- references/tools-and-permissions.md 8.2 KB
- references/workflow-orchestration.md 13 KB
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.
- 5d ago First seen · 262 lines · 92 tokens per session scan A bb686824cb06
agents-best-practices is a skill published in the GitHub repository AnastasiyaW/codex-claude-code-config (149 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 4,420 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to agents-best-practices, differing in 30 lines, and is treated as a copy.
Other skills, from other repositories
ai-content-filter
Professional Ai Content Filter Expert skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.
ai-engineer
Professional Ai Engineer skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.
ai-product-manager
Professional Ai Product Manager Expert skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.
embedding-architect
Professional Embedding Architect skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.
eval-harness
Professional Eval Harness Expert skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.
feature-engineer
Professional Feature Engineer skill. Integrate LLM API workflows, safe system prompt guidelines, and agentic workflows.