agent-skills AGENTS.md

agent-skills AGENTS.md is an instructions file for Codex, OpenCode from rolandbrecht/agent-skills. It costs 542 tokens per session, scanned A, original, MIT.

Repository instructions that tell an AI coding agent how to handle architecture changes, refactoring, debugging, and test failures.

In plain words
What is it for?
Finding references, tracing dependencies, refactoring code, investigating failures, and reviewing the work after a task.
Why use it?
They require structured code analysis and root-cause investigation before changing code, reducing unsafe guesses and missed dependencies.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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.

agentmods
npx agentmods add instructions/rolandbrecht/agent-skills/agents-md
Clone the repo
git clone --depth 1 https://github.com/rolandbrecht/agent-skills

Made for: Codex, OpenCode.

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 agent-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rolandbrecht/agent-skills/agents-md.svg)](https://agentmods.dev/instructions/rolandbrecht/agent-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rolandbrecht/agent-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/rolandbrecht/agent-skills/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 542 This file is loaded in full into every session.
When invoked 542 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00542 $0.00542
Opus 5 $0.00271 $0.00271
Sonnet 5 $0.00108 $0.00108
Haiku 4.5 $0.00054 $0.00054

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

Security

Grade A, and why

agent-skills AGENTS.md 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 30 lines

How it starts

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

Agent Instructions

This project uses the agent-skills repository to enforce strict coding constraints and avoid common LLM pitfalls.

As an AI coding agent, you MUST follow these directives when working in this repository:

1. Architectural Changes & Refactoring

Trigger: ANY time you need to search for code structure, refactor symbols, analyze impact, find dead code, or trace dependencies. (e.g., "find all calls to fetch", "rename oldApi to newApi safely"). Skill to use: ast-code-graph Directive: You MUST NOT use basic text search (grep) or guess at references for structural modifications. You must use this skill's ast-grep CLI instructions to parse the AST semantically, generate JSON outputs, and safely perform refactoring or impact analysis.

2. Debugging & Test Failures

Trigger: AUTOMATICALLY anytime you encounter a stack trace, test failure, production bug, or unexpected behavior. Skill to use: systematic-debugging Directive: You MUST NOT guess the solution or propose random fixes. You are constrained to the "No fixes without root cause" protocol. You must trace the error boundary, heavily utilize grep_search to understand context, and prove the failure with a reproduction script before any code modification. If 3 fixes fail, you MUST escalate and stop modifying code.

3. Structural Code Refactoring

Trigger: ANY time you need to do bulk structural replacements across files — renaming function arguments at call sites, migrating deprecated API call shapes, rewriting patterns that regex/sed would botch (nested parens, multiline, string boundary issues), extracting code locations with file+line output. Also trigger for Python 2 → 3 migrations. Skill to use: structural-refactor Directive: Do NOT use sed or raw regex for structural code changes. Use comby for cross-language pattern replacement, 2to3 for Python 2 → 3 migrations, and pyupgrade to modernize Python 3 idioms. Always run a preview step (-diff or dry-run) before applying changes in-place.

Read the full file on GitHub · 30 lines

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. 5d ago First seen · 30 lines · 542 tokens per session scan A d47649c369a2

Subscribe to this mod's changes

agent-skills AGENTS.md is an instructions file published in the GitHub repository rolandbrecht/agent-skills (4 stars, last pushed 23d ago), licensed MIT. It adds 542 tokens to every session, about $0.0027 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-31.