agent-context-generator

agent-context-generator is a skill for Claude Code from majiayu000/claude-skill-registry. It costs 49 tokens per session (1,993 once invoked), scanned A, original, MIT.

A repository guide generator that creates an AGENTS.md file describing a project's structure, conventions, tools, tests, and work process for coding agents.

In plain words
What is it for?
It is for inspecting a repository and creating or extending project-level onboarding instructions.
Why use it?
It gives new agents the project knowledge they need without making developers explain the same rules repeatedly. It also records follow-up expectations such as updating the README.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Good fit It is for inspecting a repository and creating or extending project-level onboarding instructions.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/claude-skill-registry/agent-context-generator-tjmaynes-skills"><img src="https://agentmods.dev/badge/skills/majiayu000/claude-skill-registry/agent-context-generator-tjmaynes-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,993 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.00049 $0.01993
Opus 5 $0.00024 $0.00996
Sonnet 5 $0.00010 $0.00399
Haiku 4.5 $0.00005 $0.00199

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

Security

Grade A, and why

agent-context-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 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/agent/agent-context-generator-tjmaynes-skills/SKILL.md · 171 lines

How it starts

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

Agent Context Generator

What You'll Do

  • 🔍 Inventory the repository's structure, capture a .gitignore-aware tree output, and record automation entry points (preferring just/make tasks when available)
  • 🧭 Capture coding conventions, directory ownership, testing expectations, and review workflows so future agents can navigate confidently
  • 🧩 Produce an AGENTS.md file following the opinionated section order below, honoring scope rules for nested directories
  • ✅ Embed universal wrap-up tasks: ensure the README is updated after significant code changes and summarize changes per conventional commits while resolving any open questions with the developer

Phase 1 · Understand the Repository

  1. Check for existing AGENTS.md
    • Use find alternative (glob or repo tree) to discover current files. Determine scope inheritance so you can update or extend instead of duplicating.
  2. Read Core Docs
    • Skim README.md, CONTRIBUTING.md, and other onboarding docs for project philosophy, setup, and workflows.
    • If docs/ or documentation/ exists, scan for architectural or process references worth surfacing.
  3. Survey Project Layout
    • Note primary directories, languages, build targets, and ownership (e.g., "src/ui maintained by Frontend team").
    • Check for plans/, docs/, or other knowledge directories. Flag must-read files (ADR indexes, architecture overviews, runbooks) to reference later in AGENTS.md.
  4. Build a Git-aware Tree
    • Use the tree command with the --gitignore flag (tree ≥ 2.0) so ignored paths stay hidden: tree --gitignore -a -L 3 > tmp/tree.txt.
    • If your tree build lacks --gitignore, run tree -a -L 3 --prune and manually prune any ignored directories noted in .gitignore, or install an updated version via your package manager.
    • Capture or trim the output before placing it in AGENTS.md (focus on the top 2–3 levels, and note when you omitted details for brevity).
  5. Identify Automation Runners
    • If Justfile exists, run just --list (or just --list --unsorted for extra notes).
    • If Makefile exists (and just does not), run make help or inspect phony targets for canonical tasks.
    • Record which commands are recommended for linting, testing, building, syncing data, etc. Link the definitive task names you surface in your notes for inclusion later.
  6. Catalog Tooling & Environment
    • List required runtimes, package managers, env vars, secrets handling, and local services.
    • Note down any .env.example, config/, or secrets documentation that agents must review.
  7. Clarify Testing & Quality Gates
    • Identify test suites, coverage expectations, linting, formatting, and CI workflows.
  8. Resolve Ambiguities Early
    • Whenever conventions, ownership, or workflows seem unclear, prompt the developer with focused questions before drafting the guide.
    • Ask explicitly whether existing plans/ or documentation directories are authoritative or stale, and clarify what canon to reference.

Read the full file on GitHub · 171 lines

Files

What ships with it

1 file 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 · 171 lines · 49 tokens per session scan A e67ec0f947f7

Subscribe to this mod's changes

agent-context-generator is a skill published in the GitHub repository majiayu000/claude-skill-registry (606 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,993 once invoked, about $0.0002 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-09-03.