x9-context-files-generator

x9-context-files-generator is a skill for Claude Code, Codex from xonika9/agent-skills. It costs 77 tokens per session (1,321 once invoked), scanned A, original, MIT.

A repository setup guide for creating and maintaining AGENTS.md, CLAUDE.md, and README.md files. These files explain a codebase to coding agents and human contributors.

In plain words
What is it for?
Use it to create, audit, or update repository instructions, agent guidance, and README onboarding documentation.
Why use it?
It helps keep onboarding instructions accurate, concise, and based on the repository’s actual structure. It also helps preserve useful existing content when files are updated.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the x9-agent-skills plugin — 18 skills shipped together

Good fit Use it to create, audit, or update repository instructions, agent guidance, and README onboarding documentation.

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

Made for: Claude Code, Codex.

Or install x9-agent-skills, the plugin that ships this one along with the rest of its 18 skills.

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 x9-context-files-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xonika9/agent-skills/x9-context-files-generator"><img src="https://agentmods.dev/badge/skills/xonika9/agent-skills/x9-context-files-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,321 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.00077 $0.01321
Opus 5 $0.00039 $0.00660
Sonnet 5 $0.00015 $0.00264
Haiku 4.5 $0.00008 $0.00132

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

Security

Grade A, and why

x9-context-files-generator 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/x9-context-files-generator/SKILL.md · 57 lines

How it starts

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

Repository context files

This package-owned skill is model-invoked in OpenCode, Claude Code, and Codex. Its portable claim is structural Agent Skills compatibility only, not proven invocation behavior.

Create concise, evidence-backed onboarding files for two audiences: agents (AGENTS.md/CLAUDE.md) and humans (README.md). Existing files are user-owned inputs, not blank templates.

For every Create, Audit, or Update that touches agent-facing instructional prose in AGENTS.md or an explicitly exceptional CLAUDE.md, load and apply x9-agent-instructions before writing or judging that prose. It is a subordinate instruction-quality rubric, not the primary context-file workflow, and owns language, prescription, duplication, artifact references, and what earns a line. This skill remains the owner of repository evidence, audience selection, canonical files, merge and preservation behavior, AGENTS.md/CLAUDE.md normalization, and README.md.

Do not apply the subordinate rubric to README.md or to a CLAUDE.md that contains only the canonical @AGENTS.md import. Fold its findings into this workflow's single report and approval gate rather than producing a second handoff. If x9-agent-instructions is unavailable, continue the remaining repository and structural checks, record the instruction rubric as degraded, and do not claim a complete or clean agent-file result. README-only work records it as not applicable.

Select the action

  • Create or update: an explicit request to create, update, fix, or rewrite a context file authorizes the requested in-scope edits; do not ask for the same permission again.
  • Audit: an explicit audit/check request is read-only. Report findings and proposed changes, then ask once whether to apply them.
  • Bare skill invocation: inspect the current repository read-only by default. If changes would help, show the proposal and ask once before editing.

Infer the action from the whole request, not only trigger words. When an authorized edit reveals an additional normalization outside the requested change, ask once before applying that extra change.

Read the full file on GitHub · 57 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. 10d ago First seen · 57 lines · 77 tokens per session scan A 4e40b266c013

Subscribe to this mod's changes

x9-context-files-generator is a skill published in the GitHub repository xonika9/agent-skills (4 stars, last pushed 5d ago), licensed MIT. It adds 77 tokens to every session and 1,321 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.