cli-setup
Skill9 starsChanged 43 days agoApache-2.0View on GitHub
Walk a user through configuring core-agent for interactive (TUI / REPL) use against their project. Use when the user asks to "set up core-agent", "configure core-agent for my repo", "help me get started with core-agent", "what should my AGENTS.md look like", "what permissions should I use", "how do I add a skill", or asks any question implying they're customizing core-agent for the first time or expanding an existing configuration.
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- cheaper-inference/OmniRoutetheir own version, first seen Oct 25, 2026
- diegosouzapw/OmniRoutetheir own version, first seen Oct 22, 2026
- vikas8520-coder/nervetheir own version, first seen Jul 31, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- cheaper-inference/OmniRoute★ 86ksame name
- diegosouzapw/OmniRoute★ 86ksame name
- MMACABRE/SKILLS★ 1same name
- vikas8520-coder/nerve★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/reviewer/AGENTS.mdAGENTS.md
- adversarial-review-gateSkill
- changelog-bulletSkill
- prefix-failure-verificationSkill
- presubmit-sweepSkill
- stacked-pr-orderSkill
- autonomous-setupSkill
- library-embeddingSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Confirm the context: Ask the user what they're trying to do — a quick code-reviewer, a docs helper, something else.
- Very specific: line 19
Set the permission posture: After the four layers are in place, walk the user through choosing a starting mode (ask for new projects, allow …
- Very specific: line 38
Use these references when the user's question is more specific than the runbook above.
- Very specific: line 114
When writing files, use write_file (or edit_file if updating).
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When invoked:
- Confirm the context. Ask the user what they're trying to do — a quick code-reviewer, a docs helper, something else. A 30-second clarification up front prevents a misaligned configuration.
Walk the four customization layers IN ORDER, stopping at the user's confirmation between each:
- Provider + model —
.agents/config.json - Personality —
AGENTS.md - (Optional) Skills —
.agents/skills/<name>/SKILL.md - (Optional) MCP servers —
.agents/mcp.json
For each layer, propose a starting configuration based on the user's stated goal, explain why those choices, and ask for confirmation or adjustments before writing files.
- Provider + model —
- Set the permission posture. After the four layers are in place, walk the user through choosing a starting mode (
askfor new projects,allowwith a curated allowlist for established workflows). Use thereferences/permission-posture.mdreference for the patterns. - Verify it works. Suggest the user run
core-agentand try a representative prompt. If anything misbehaves, diagnose against the failure modes in the references below. - Check it in. Remind the user to
git add .agents/ AGENTS.md && git commitso teammates inherit the configuration.
Triggers in detail
The description above lists the verbatim phrasings. Also match on:
- "Help me write an AGENTS.md"
- "How do I tell the agent to use X library / follow Y convention"
- "What should I put in config.json"
- "Add a skill for [domain]"
- "Wire up [MCP server] so the agent can [capability]"
- "The agent keeps asking me before [common operation] — make it stop"
References
Use these references when the user's question is more specific than the runbook above. Fetch with read_file; only the relevant one for the user's current question, not all of them up front.
references/agents-md-patterns.md—AGENTS.mdauthoring patterns. Read when the user is writing their personality file or asking why their existing one isn't producing the behavior they want.references/skills-and-mcp.md— Extending the tool surface: when to write a skill vs anAGENTS.mdrule, and how to wire MCP servers. Read when the user wants the agent to do something the built-in tools don't cover.references/permission-posture.md— Choosing betweenask/allow/yolo, writing allow patterns, the path-scope safety floor. Read when the user is being prompted too often (or not often enough).
Procedure: provider + model
The minimal .agents/config.json:
{
"version": 1,
"model": {
"provider": "anthropic-vertex",
"name": "claude-opus-5"
}
}Pick the provider based on what credentials the user has. Don't auto-detect from env vars in a checked-in config — that depends on per-operator environment and breaks reproducibility.
| Provider | When | Notes |
anthropic | Public Anthropic API key (ANTHROPIC_API_KEY) | Simplest if the user just has a key |
anthropic-vertex | User has GCP project + ADC | Cheaper for sustained use; uses GCP billing |
gemini | Public Gemini API key (GEMINI_API_KEY or GOOGLE_API_KEY) | Free tier covers a lot of dev work |
vertex | User has GCP project + ADC | Gemini via Vertex; uses GCP billing |
Model picks:
- Coding-heavy work:
claude-opus-5ORgemini-3.1-pro-preview-customtools(the customtools variant prefers function-tools over raw shell; recommended for coding agents). - Lighter Q&A, doc explanation:
claude-sonnet-5ORgemini-3.5-flash-lite(both much cheaper). - Mixed:
claude-opus-5parent +--agentic-tools --agentic-small-model claude-haiku-4-5for cost-efficient tool work.
Procedure: AGENTS.md
Walk the user through writing the role + scope + house style + do/don't list. Fetch references/agents-md-patterns.md if they're stuck on what to put.
The minimum viable AGENTS.md is ~15 lines: one paragraph defining the role, one section listing what's in scope, one section with 3-5 house-style rules, one "don't do" list with 2-3 specific anti-patterns. Resist the urge to make it longer — long AGENTS.md dilutes attention.
Procedure: skills
Most projects start with zero skills and add them as recurring procedures surface. If the user is asking for a skill, fetch references/skills-and-mcp.md for the design patterns.
Quick test: if the procedure applies to every turn of any task, it's AGENTS.md content. If it applies to specific named requests, it's a skill.
Procedure: MCP servers
Wire MCP only if the user needs capabilities outside the built-in nine tools (read_file, read_many_files, write_file, edit_file, list_dir, glob, grep, bash, todo). Common MCP additions: web search (tavily), GitHub API, internal databases.
Fetch references/skills-and-mcp.md for mcp.json schema + the namespacing rules.
Procedure: permission posture
Walk through the modes table:
| Mode | When |
ask (default) | First-time setup, exploratory use. Every gated tool prompts. |
allow | Established workflows. Build the allowlist via in-session "always allow" prompts; the entries land in config.json automatically. |
yolo | CI / scripted runs / known-safe workflows. Never prompts. Use only when you can audit the tool surface. |
Fetch references/permission-posture.md for the pattern grammar (bash:git diff*, read_file:internal/**) and the path-scope safety floor.
When NOT to use this skill
- The user is asking about autonomous / headless configuration (long-running unattended workers). Use the
autonomous-setupskill instead. - The user is embedding
core-agentin their own Go binary rather than using the CLI. Use thelibrary-embeddingskill instead. - The user is asking a quick reference question ("what flag disables compaction?") — answer directly from the docs, don't walk the whole runbook.
- The user has an existing well-configured agent and is asking about a specific failure mode. Investigate the failure first; only walk the configuration runbook if the failure traces back to a missing/misconfigured layer.
Output style
Conversational. For each layer, propose → confirm → write → next. Don't dump the entire 4-layer configuration up front; that's overwhelming. Walk one layer at a time, showing the user what's about to land in their repo.
When writing files, use write_file (or edit_file if updating). Show the user what's about to be written before writing it; ask for adjustments. Once written, briefly confirm and move to the next layer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

