context-files

context-files is a skill for Claude Code, Codex from sergeyklay/.agents. It costs 90 tokens per session (2,413 once invoked), scanned A, original, Apache-2.0.

A skill for creating or checking project context files such as `AGENTS.md`, `CLAUDE.md`, and `GEMINI.md`. These files give coding agents project-specific instructions that are not obvious from the source code.

In plain words
What is it for?
Use it to bootstrap a new project context file or audit an existing one for completeness, relevance, and platform compatibility.
Why use it?
It helps keep agent instructions useful and accurate without repeating information the agent can discover by reading the repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it to bootstrap a new project context file or audit an existing one for completeness, relevance, and platform compatibility.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sergeyklay/.agents/context-files.svg)](https://agentmods.dev/skills/sergeyklay/.agents/context-files)
Your own site
<a href="https://agentmods.dev/skills/sergeyklay/.agents/context-files"><img src="https://agentmods.dev/badge/skills/sergeyklay/.agents/context-files.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,413 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 75
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00090 $0.02413
Opus 5 $0.00045 $0.01207
Sonnet 5 $0.00018 $0.00483
Haiku 4.5 $0.00009 $0.00241

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

Security

Grade A, and why

context-files 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_context_file.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/context-files/SKILL.md · 210 lines

How it starts

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

Context File Generator

The golden rule

Before writing any line, ask:

"Can an agent discover this on its own by reading the codebase?"

If yes, delete the line. Agents read package.json, tsconfig.json, directory trees, linter configs, and README files. They know every popular framework. Restating this wastes tokens and dilutes the instructions that matter.

Determine mode

  • Create mode: User wants to generate a new context file or has no context file yet.
  • Validate mode: User wants to audit or review an existing context file.

If unclear, ask the user which mode they need.

Determine target format

Ask the user which file they need, or infer from their project:

File Platform Notes
AGENTS.md Universal (Codex, Cursor, Copilot) Preferred for multi-platform teams
CLAUDE.md Claude Code Supports @path import syntax
GEMINI.md Gemini CLI Configurable name via settings.json

If the project uses multiple platforms, recommend AGENTS.md as the canonical file with bridge files for others. See references/platform-formats.md for platform-specific details. CLAUDE.md or GEMINI.md is usable though if the project only needs one platform support or if the user prefers.


Running scripts bundled with this skill

Script paths in this document (e.g. scripts/) are resolved relative to this SKILL.md file, not to your current working directory. If a relative command fails to resolve, prefix it with the path your platform loaded this SKILL.md from.

Fallback. If python3 cannot be located, analyze the script's purpose and logic and execute its intent with available tools, but warn the user that python is not available and the logic was executed with a fallback approach that may not be perfect.


Create mode

Phase 1: Deep archaeological analysis

Scan the codebase for non-discoverable knowledge. Your value is finding what agents miss.

Skip the surface layer (agents already read these):

Read the full file on GitHub · 210 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. 8d ago First seen · 210 lines · 90 tokens per session scan A 5db6fbd8aef2

Subscribe to this mod's changes

context-files is a skill published in the GitHub repository sergeyklay/.agents (5 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 2,413 once invoked, about $0.0005 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.