agents-brain
FreeRuns bundled scriptsNot checkedMaintain README.md, AGENTS.md/CLAUDE.md, skills, and repo context. Create, scaffold, or initialize AGENTS.md files and project-local agent skills. Use task…
by PaulRBerg★ 109 GitHub starsAbout this skill
Agents Brain
If these instructions are already present in the conversation from a slash or dollar invocation, follow them directly. In that case, do not invoke this skill again through a skill tool.
Apply explicit user instructions and established authorization before this skill's defaults. Do not ask again for an unchanged decision. Preserve host restrictions and required destructive-action approval.
Read this file and each reference in separate reads, each sized to the whole file. A truncated read drops rules silently.
Routes
maintain [path] [target ...] [flags]: Maintain context and apply task-backed skill lifecycle changes. Use this route by default for context maintenance or inspection. Read references/maintain.md.create-skill [skill-name]: Create a project-local skill from an explicit request. Read references/create-skill.md. Apply its repository catalog guard before scaffolding. Explicit creation does not require recurring-use evidence.create-agents-md [path] [--root-only] [--dry-run] [--force]: Initialize AGENTS.md files for a scope from an explicit request. Create the scope-root file and judge each subtree for a nested file. Read references/create-agents-md.md.
Choose the route before discovery or writes. All routes use the prompting and STE requirements below. The maintenance
sections govern maintain. Each creation reference owns its route's scope, workflow, validation, and report.
Maintenance Scope
Maintain repo-local context as one coherent system. It includes these targets:
- Human-facing README.md files.
- Agent-facing AGENTS.md files and companion CLAUDE.md symlinks. See Claude Code Compatibility.
- Existing project-installed skills under
.agents/skillsand eligible source-catalog skills underskills/<name>/. - Context docs: other Markdown files, under any name or directory, that provide durable guidance for agents or humans. Examples include conventions, command catalogs, data-format rules, workflow runbooks, and reference material.
Maintain repo-owned skills as task work reveals obsolete workflows, meaningful overlap, or recurring procedures worth capturing.
Success means every selected target meets these criteria:
- Repository evidence supports its content.
- It respects its audience and scope.
- It spends agent context only on guidance that changes behavior.
- It passes the narrowest repository-defined validation.
Stop after reporting completed or planned changes, validation, and any blockers.
Prompting and Context Optimization
Write reusable agent-facing context for current Claude and GPT agent models. Reserve model names, versions, and
model-specific defaults for content that selects, configures, or attributes a model. This includes routing tables,
model: fields, and API parameters. Preserve README.md as clear human-facing documentation.
Read the prompting guides before create-skill, create-agents-md, --force regeneration, and maintain runs that
create or rewrite skill instructions, prompt text, or a whole AGENTS.md section. Do not run the helper or read either
guide for factual corrections, README.md edits, single rule additions or removals, link fixes, moves, or deletions. For
those runs, report guides: skipped (<reason>).
Before a run that needs the guides, resolve scripts/fetch-guidance.sh relative to this skill directory. Run it once
for anthropic and once for openai. The two runs are independent, so start both in the same turn. Read the guides
separately. For the Anthropic guide, list its ## headings first. Read every section that applies across current models
completely. Read a section about a capability, a model, or migration only when the task targets it. Read the OpenAI
guide completely.
The helper retrieves Anthropic's prompting best practices and OpenAI's latest-model guide because their recommendations may change. The Anthropic guide gives shared guidance and links model-specific pages. The OpenAI guide covers the current GPT model family and identifies advice about specific models. For examples of prompt structure, see OpenAI's prompt engineering guide and General principles in the Anthropic guide.
Treat model-specific observations as evidence for the models they name. Check the relevant model-specific section or linked page when a task depends on that behavior. Apply the advice to other models only when shared guidance supports it. Before applying a model-specific technique from anywhere in the Anthropic guide to another model, evaluate it on that model. When defaults differ, state the desired behavior directly. F
Install agents-brain in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the agents-brain skill do?
Maintain README.md, AGENTS.md/CLAUDE.md, skills, and repo context. Create, scaffold, or initialize AGENTS.md files and project-local agent skills. Use task evidence to delete obsolete skills, merge overlapping skills, and capture recurring workflows.
How do I install the agents-brain skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the agents-brain skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic