agent-init

agent-init is a skill for Claude Code, Codex from dyxushuai/agent-skills. It costs 82 tokens per session (1,308 once invoked), scanned A, original, MIT.

A guide for creating or improving AGENTS.md files, which tell coding agents how to work in a repository.

In plain words
What is it for?
Use it to initialize agent instructions, audit an existing AGENTS.md, document testing and build commands, or create a Claude Code link to AGENTS.md.
Why use it?
It helps make agent instructions concrete, consistent, and specific about commands, project structure, permissions, and things to avoid.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to initialize agent instructions, audit an existing AGENTS.md, document testing and build commands, or create a Claude Code link to AGENTS.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dyxushuai/agent-skills/agent-init
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 dyxushuai/agent-skills --skill agent-init
Clone the repo
git clone --depth 1 https://github.com/dyxushuai/agent-skills

Made for: Claude Code, 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 agent-init

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dyxushuai/agent-skills/agent-init"><img src="https://agentmods.dev/badge/skills/dyxushuai/agent-skills/agent-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,308 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.
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.00082 $0.01308
Opus 5 $0.00041 $0.00654
Sonnet 5 $0.00016 $0.00262
Haiku 4.5 $0.00008 $0.00131

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

Security

Grade A, and why

agent-init 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 9d 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/agent-init/SKILL.md · 128 lines

How it starts

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

AGENTS.md Guide

Overview

Provide a repeatable workflow and quality bar for writing or updating AGENTS.md files so agents receive concrete, repo-specific instructions.

Trigger examples

  • "Create an AGENTS.md for this repo and include exact test commands."
  • "Replace our agent init command with a proper AGENTS.md file."
  • "Audit our existing AGENTS.md for missing boundaries and commands."
  • "Update AGENTS.md to reflect the current build and lint commands."
  • "Create CLAUDE.md as a symlink to AGENTS.md for Claude Code."

Core Principles (condensed)

  • Be concrete: prefer executable commands and code examples over prose.
  • Put commands early and include flags/options.
  • Use real code examples over explanations.
  • Remove ambiguity: state boundaries and non-goals explicitly.
  • Be specific about the tech stack; include versions and key dependencies.
  • Define the agent's role/persona and how it fits the team.
  • Cover the six core areas: purpose, code organization, run/test/validate, change management, dependencies/environment, and avoid list.
  • Use three-tier boundaries: Always / Ask first / Never.
  • Start small and iterate as the repo evolves.

Brainstorming Mode (divergent Q&A)

Use this mode when requirements are unclear or the repo structure will influence the document shape.

  • Ask one question at a time. Prefer multiple choice when possible.
  • Base questions on the actual repo shape (single app vs monorepo).
  • Confirm which agents will consume the docs and their expectations.
  • If Claude Code is in scope, plan a CLAUDE.md symlink to AGENTS.md.
  • Ask for exact commands (with flags) and a real code example.
  • Propose 1-2 AGENTS.md layouts (section order) with tradeoffs, then converge.
  • Keep questions short and actionable, then confirm before drafting.
  • Read references/agents-md-brainstorm.md for question banks and decision heuristics.

Workflow

1) Clarify scope and placement

  • Confirm whether the task is to create new docs or revise existing ones.
  • Default output is root AGENTS.md.
  • If the user asks for a different location, confirm the exact path and proceed.
  • If Claude Code is in scope, create CLAUDE.md as a symlink to AGENTS.md.
  • Still maintain a single AGENTS.md (no per-agent files unless explicitly requested).
  • Confirm which agents will consume the docs and align content with their workflows.
  • If the repo uses a different location or filename, ask before proceeding.

Read the full file on GitHub · 128 lines

Files

What ships with it

4 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. 9d ago First seen · 128 lines · 82 tokens per session scan A 060ff7c88da3

Subscribe to this mod's changes

agent-init is a skill published in the GitHub repository dyxushuai/agent-skills (2 stars, last pushed 7mo ago), licensed MIT. It adds 82 tokens to every session and 1,308 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

tokf-discover

Find missed token savings by scanning AI coding session files for commands that ran without tokf filtering.

mpecan/tokf · 24 tokens

skillnote

Self-hosted skill registry for OpenClaw. Stores procedures your team writes (name, description, body), syncs them to disk before each task, and collects which-helped/which-failed signals from the agent so the registry improves over time.

luna-prompts/skillnote · 54 tokens

dashiai-ppt

A presentation-making add-on that creates an HTML slide deck from preset visual page designs. The result can open offline in a browser and can be exported as a PowerPoint or PDF file.

huangrichao2020/pretty-skills · 62 tokens

xiaohongshu-image-creator

An image-making assistant for Xiaohongshu, a Chinese social platform for lifestyle, product, and educational posts. It creates vertical covers and supporting images matched to the post’s topic, audience, and visual style.

huangrichao2020/pretty-skills · 121 tokens

sansheng-distill

A book and text summarizer that creates one self-contained HTML page with five sections: an overview, chapter notes, the book’s central idea, an action checklist, and questions for judging its reliability. The page includes an embedded Mermaid mind map and works offline without a web server.

huangrichao2020/pretty-skills · 108 tokens

cross-campaign

Discover and reference other camps, projects, and files across camp boundaries. Use when the user mentions another camp or campaign by name, references work done "in another project/camp", or needs to find/copy/compare code across camps.

Obedience-Corp/festival · 52 tokens