agents-best-practices

agents-best-practices is a skill for Codex from markoblogo/abvx-agent-skills. It costs 62 tokens per session (736 once invoked), scanned A, original, MIT.

A guide to designing the control system around an AI agent: the parts that prepare context, check proposed actions, enforce permissions, run tools, record results, and manage progress.

In plain words
What is it for?
Planning or reviewing agent tools, permissions, context handling, memory, monitoring, evaluations, and model-independent agent architecture. It is useful for building an early agent version or improving an existing one.
Why use it?
It helps prevent agents from taking unclear, unsafe, or untraceable actions. It also provides a way to handle stopping, approval, errors, memory, and long-running work.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Planning or reviewing agent tools, permissions, context handling, memory, monitoring, evaluations, and model-independent agent architecture. It is useful for building an early agent version or improving an existing one.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markoblogo/abvx-agent-skills/agents-best-practices
Install

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.

Any agent
npx skills add markoblogo/abvx-agent-skills --skill agents-best-practices
Clone the repo
git clone --depth 1 https://github.com/markoblogo/abvx-agent-skills

Made for: Codex.

Wrote 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.

agentmods badge for agents-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/agents-best-practices/github.svg)](https://agentmods.dev/skills/markoblogo/abvx-agent-skills/agents-best-practices)
Your own site
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/agents-best-practices"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/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.

agentmods 80×15 button for agents-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/agents-best-practices"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/agents-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00736
Opus 5 $0.00031 $0.00368
Sonnet 5 $0.00012 $0.00147
Haiku 4.5 $0.00006 $0.00074

Measured 10d ago against content hash 75a758a535e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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 10d 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.

skills/agents-best-practices/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agents Best Practices

An agent harness is the control plane around a model. The model proposes; the harness validates, authorizes, executes, records, and returns observations.

Start With The Boundary

Identify:

  • domain and user;
  • autonomy level: answer-only, draft-only, approval-gated action, or autonomous within policy;
  • risk level: read-only, internal write, external communication, financial, legal, healthcare, security, destructive, or privileged;
  • state duration: single turn, session, resumable workflow, or long-running goal;
  • tool surface;
  • validation signal.

Minimal Harness Shape

task
  -> context builder
  -> model call
  -> proposed tool/action
  -> schema validation
  -> permission decision
  -> execution or approval pause
  -> structured observation
  -> state update
  -> finish or continue within budget

Harness Checklist

Before recommending implementation, cover these surfaces:

  • agentic loop: turn budget, stop rules, loop detection, checkpoint/resume;
  • tool registry: static vs dynamic tools, schema quality, denial/error shape, MCP boundaries;
  • context assembly: priority order, just-in-time loading, compaction, source attribution;
  • memory: session state vs durable memory, write policy, contradiction handling;
  • guardrails: trust boundaries, prompt-injection exposure, sandbox/network/filesystem policy;
  • permissions: read/write/send/delete/pay/deploy classes, approval gates, classifier-assisted routing only with deterministic backstops;
  • observability: event log, tool outcomes, user-visible state, no hidden-reasoning leakage;
  • evals: success fixtures, safety fixtures, eval noise budget, floor/ceiling checks;
  • managed-agent architecture: separate brain, hands, credentials, session state, and worker lifecycle when the agent becomes long-running.

Design Rules

  • Application code enforces safety; prompts only describe desired behavior.
  • Every tool call returns a structured result, including denials and errors.
  • Risky side effects require explicit policy and usually human approval.
  • Draft and commit/send/pay/delete are separate actions.
  • Tool schemas should be narrow, typed, validated, and auditable.
  • Context should be tight, source-aware, and loaded just in time.
  • Skills and connectors use progressive disclosure; do not expose every capability up front.
  • Long-running goals need budgets, checkpoints, resumable state, and a measurable done condition.
  • Observability records events and outcomes without exposing hidden reasoning.
  • Sandboxes and permission gates belong in the harness, not in the agent's self-restraint.
  • Treat classifier-based permission helpers as advisory unless a deterministic policy layer can still deny unsafe actions.

Read the full file on GitHub · 85 lines

Files

What ships with it

2 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.

Changes

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.

  1. 10d ago First seen · 85 lines · 62 tokens per session scan A 75a758a535e5

Subscribe to this mod's changes

agents-best-practices is a skill published in the GitHub repository markoblogo/abvx-agent-skills (16 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 736 once invoked, about $0.0003 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-08-30.