agent-context-generator
БесплатноБез исполняемых скриптовНе проверенGenerate project-level AGENTS.md guides that capture conventions, workflows, and required follow-up tasks. Use when a repository needs clear agent onboarding…
от majiayu000★ 31 звезда на GitHubОб этом скилле
Agent Context Generator
What You'll Do
- 🔍 Inventory the repository's structure, capture a
.gitignore-awaretreeoutput, and record automation entry points (preferringjust/maketasks when available) - 🧭 Capture coding conventions, directory ownership, testing expectations, and review workflows so future agents can navigate confidently
- 🧩 Produce an
AGENTS.mdfile 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
- Check for existing AGENTS.md
- Use
findalternative (globor repo tree) to discover current files. Determine scope inheritance so you can update or extend instead of duplicating.
- Use
- Read Core Docs
- Skim
README.md,CONTRIBUTING.md, and other onboarding docs for project philosophy, setup, and workflows. - If
docs/ordocumentation/exists, scan for architectural or process references worth surfacing.
- Skim
- Survey Project Layout
- Note primary directories, languages, build targets, and ownership (e.g., "
src/uimaintained 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.
- Note primary directories, languages, build targets, and ownership (e.g., "
- Build a Git-aware Tree
- Use the
treecommand with the--gitignoreflag (tree ≥ 2.0) so ignored paths stay hidden:tree --gitignore -a -L 3 > tmp/tree.txt. - If your
treebuild lacks--gitignore, runtree -a -L 3 --pruneand 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).
- Use the
- Identify Automation Runners
- If
Justfileexists, runjust --list(orjust --list --unsortedfor extra notes). - If
Makefileexists (andjustdoes not), runmake helpor 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.
- If
- 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.
- Clarify Testing & Quality Gates
- Identify test suites, coverage expectations, linting, formatting, and CI workflows.
- 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.
Outcome: A structured notes list describing layout, tooling, commands, testing, release process, documentation references, pending questions, and update expectations.
Phase 2 · Plan the AGENTS.md Structure
Follow this opinionated order to keep files consistent and scannable:
- Header — Title + short purpose statement.
- Quick Facts — Table or bullet summary (languages, package manager, key scripts, CI).
- Repository Tour — High-level directory map with responsibilities and ownership hints.
- Tooling & Setup — Required runtimes, package managers, environment variables, secrets.
- Common Tasks — Lint/test/build/deploy commands. Prefer listing
justrecipes first, thenmaketargets, then raw commands. - Testing & Quality — When and how to run tests, linting, formatting, coverage, and CI expectations.
- Workflow Expectations — Branching model, review norms, feature flagging, deployment cadence.
- Documentation Duties — When to update
README.md, architecture diagrams, or other docs. - Finish the Task — Mandatory wrap-up checklist for every agent task.
For deeper directories (e.g., services/api/), include a "Scope" note at the top clarifying inheritance from parent AGENTS instructions. Always confirm with the developer before drafting new per-directory AGENTS files so you do not duplicate existing guidance or create unnecessary overhead.
Phase 3 · Compose AGENTS.md
Use the template below and adapt each section to the project:
# Project Agent Guide
> Scope: Root project (applies to all subdirectories unless overridden)
## Quick Facts
- **Primary language:**
- **Package manager:**
- **Entrypoints:**
- **CI/CD:**
## Repository Tour
- `path/` — description & owner
## Tooling & Setup
- Install instructions (per OS)
- Required environment variables (with purpose)
- Secrets management notes
## Common Tasks
- `just <task>` — what i
Установить agent-context-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBash(ls:*)Bash(git:*)Bash(just:*)Bash(make:*)Вложенные файлы
FAQ
Что делает скилл agent-context-generator?
Generate project-level AGENTS.md guides that capture conventions, workflows, and required follow-up tasks. Use when a repository needs clear agent onboarding covering structure, tooling, testing, task flow, README expectations, and conventional commit summaries.
Как установить скилл agent-context-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-context-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic