setup-lean-coding-agent
Skill7 starsChanged 47 days agoMITView on GitHub
Initialize the current project with the Lean Coding Agent baseline for Codex, Claude Code, or both after installing its skills, including project guidance, skill overrides, and configurable subagents.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- find-skillsSkill
- git-conventional-commitSkill
- skill-creatorSkill
- code-reviewSkill
- define-conventionsSkill
- diagnoseSkill
- feature-specificationSkill
- git-conventional-commitSkill
- implementSkill
- lean-grill-with-docsSkill
- maintain-changelogSkill
- planSkill
- workflow-bug-fixingSkill
- workflow-feature-developmentSkill
- workflow-planningSkill
- workflow-refactorSkill
- workflow-reviewSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Ask which existing project directory to initialize.
- Very specific: line 13
Ask which coding agents to set up: codex, claude-code, or both.
- Distinctive: line 16
Codex: Check the official OpenAI model catalog and reasoning guide.
- Distinctive: line 24
Claude Code: Check the official Claude models overview and subagent documentation.
- Very specific: line 34
Run the bundled Node.js setup script from the target project, passing the selected coding agents and only the model options that apply to …
- Very specific: line 44
After setup completes, ask the user whether they want to run the define-conventions skill to capture project conventions in …
- Very specific: line 58
Use npx skills check to check for available skill updates.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Setup Lean Coding Agent
Run this skill after installing it with the Skills CLI to initialize the current project for Codex, Claude Code, or both. The Skills CLI owns skill installation, tracking, updates, and removal. The Node.js setup script copies baseline assets into the project, installs the subagents for each selected coding agent with the models chosen by the user and adds the upstream skills for the selected coding agents.
Workflow
- Ask which existing project directory to initialize. Offer the current working directory as the recommended default, and let the user choose it or provide another path. Do not silently assume the current directory.
- Ask which coding agents to set up:
codex,claude-code, orboth. Recommend the agent running this skill when the user has no preference. Do not silently assume a selection. For each selected coding agent, show its current models before asking about them. Treat these lists as current references; replace them with newer options if the official documentation has changed.
Codex. Check the official OpenAI model catalog and reasoning guide. Show the latest generally available coding-capable model IDs and their supported reasoning-effort levels, with a short description of each model:
gpt-6-astra— most capable for complex reasoning and coding; supportslow,medium,high,xhigh, andmax.gpt-6.1-sol— near-Astra performance for complex work at a lower cost; supportslow,medium,high,xhigh, andmax.gpt-6-sol— designed for complex coding and agentic workflows; supportsnone,low,medium,high,xhigh, andmax.gpt-6-luna— efficient for focused, high-volume work; supportsnone,low,medium,high,xhigh, andmax.
Codex subagents default to
gpt-6.1-solforplannerandcode-reviewer, andgpt-6-lunaforbug-diagnostician,implementer, andexplorer.Claude Code. Check the official Claude models overview and subagent documentation. Subagents accept an alias (
fable,opus,sonnet,haiku), a full model ID, orinheritto use the main conversation's model:fable(claude-fable-5-1) — for demanding reasoning and long-horizon agentic work; slowest and most expensive.opus(claude-opus-5-5) — for long-running agentic coding and knowledge work.sonnet(claude-sonnet-5-5) — the best combination of speed and intelligence.haiku(claude-haiku-5-5) — fastest.
Claude Code subagents default to
opusforplannerandcode-reviewer, andhaikuforbug-diagnostician,implementer, andexplorer.Codex
plannerandcode-revieweruselowreasoning effort,bug-diagnosticianandimplementerusexhigh, andexploreruseshigh. Claude Codeplannerandcode-revieweruseloweffort,bug-diagnosticianandimplementerusexhigh, andexploreruseshigh. Then ask: “Which models should setup assign toplanner,bug-diagnostician,implementer,code-reviewer, andexplorerfor each selected coding agent? Choose the defaults, or provide a model for each.” Preserve each agent's reasoning-effort setting.- Ask where
lean-grill-with-docsshould keep the project'sGLOSSARY.mdand ADRs. Recommend the skill's default,docs/conventions/(docs/conventions/GLOSSARY.mdanddocs/conventions/adr/), or let the user give a folder path relative to the project root, such asdocs/domain. Always pass the answer as--docs-dir, including--docs-dir docs/conventionsfor the default; that value removes a folder override from an earlier run. Run the bundled Node.js setup script from the target project, passing the selected coding agents and only the model options that apply to them:
node "<setup-skill>/scripts/setup-lean-coding-agent.mjs" "<target-project>" --tools <codex|claude-code|both> \ --planner-model <codex-model> --bug-diagnostician-model <codex-model> --implementer-model <codex-model> --code-reviewer-model <codex-model> --explorer-model <codex-model> \ --claude-planner-model <claude-model> --claude-bug-diagnostician-model <claude-model> --claude-implementer-model <claude-model> --claude-code-reviewer-model <claude-model> --claude-explorer-model <claude-model> \ [--docs-dir <folder>]Locate
<setup-skill>from this skill's installed directory. Do not ask the user to find or run the script. It uses Node.js and npm'snpxon Windows, macOS, and Linux. If setup fails, report the failed command and stop; rerun only after resolving the reported environment or network issue.- After setup completes, ask the user whether they want to run the
define-conventionsskill to capture project conventions indocs/conventions/. Run it only if they agree. If the skill is not available in the active session, read<target-project>/.agents/skills/define-conventions/SKILL.mdand follow it directly after they agree. - Confirm the project contains the baseline files,
.agents/skill-overrides/and its index,.agents/skills/, theplan,diagnose,implement, andcode-reviewskills, and the upstream skills. For Codex, also confirm.codex/config.tomlwith the bundled multi-agent defaults and.codex/agents/with all five agents. For Claude Code, confirm.claude/agents/with all five agents and the status line in.claude/statusline.mjsand.claude/settings.json. Summarize the selected coding agents, installed skills, selected models and reasoning effort, thelean-grill-with-docsdocumentation folder, and whetherdefine-conventionswas run or deferred.
Managed Files And Effects
- The script defaults to the current directory if the target path is omitted. It requires an existing directory.
--toolsdefaults tocodex. - If Codex is selected and
.codex/config.tomlis missing, setup copies the bundled baseline config, including a footer status line for the model and reasoning level, project name, Git branch, context window size, and used tokens. Setup does not create.codex/files when only Claude Code is selected. - If Claude Code is selected and
.claude/statusline.mjsis missing, setup copies the bundled two-line status line (model, effort, project, Git branch, context usage against the configuredautoCompactWindow, and 5-hour and 7-day rate limits). It addsstatusLineto.claude/settings.json, creating the file if needed, only when no status line is already set, and adds defaultmodelSettingsauto-compaction limits (autoCompactWindow: Opus 450000, Sonnet 350000, Haiku 250000 tokens) for each model that has none. It also appendsArtifactandPowerShelltopermissions.denywhen missing, keeping any existing deny rules.Artifactis denied because coding sessions do not need claude.ai artifacts and its tool and skill definitions consume context;PowerShellis denied so Claude Code on Windows runs every shell command through Bash (POSIX), keeping commands and scripts consistent across platforms. Setup does not create.claude/status line files when only Codex is selected. AGENTS.mdandCLAUDE.mdare copied verbatim fromreferences/baseline/on every run, regardless of--tools; this managed sync replaces the existing baseline copies. Do not skip this step because either file contains baseline instructions. Put project-specific shared rules indocs/conventions/and local, private notes inAGENTS.override.md.- The bundled subagents for each selected coding agent, baseline override files, and managed upstream skills are refreshed on each run. Other agents in
.codex/agents/or.claude/agents/, existing project context files, local-private files, and project-owned override index entries are preserved. - The setup creates
AGENTS.override.md,.agents/lessons/,.agents/skill-overrides/, and required.gitignoreentries when missing. It does not createdocs/conventions/; thedefine-conventionsskill writes those files. Managed ignore entries include the local files and agent task/report directories. - With
--docs-dir <folder>, setup writes.agents/skill-overrides/lean-grill-with-docs.mdand its index entry solean-grill-with-docskeepsGLOSSARY.md,GLOSSARY-MAP.md, andadr/in that folder. The folder must be inside the project. Reruns with a new folder update the generated override,--docs-dir docs/conventionsremoves it, and reruns without the option keep it. Setup stops rather than replace a project-ownedlean-grill-with-docs.mdoverride, which can set the same folder by hand. - Install the baseline skills you want through
npx skills add aloilor/lean-coding-agentbefore setup, selecting the same coding agents. Setup preserves that selection and does not copy, refresh, or delete those skill folders, except the four subagent skills below. Upstream dependencies are installed through the Skills CLI. - The planner, bug-diagnostician, implementer, and code-reviewer subagents load the
plan,diagnose,implement, andcode-reviewskills. Setup installs and refreshes them on every run throughnpx skills addfrom this repository for the selected coding agents, before it rewrites the subagents, because the subagents depend on them. Each bundles its artifact template underreferences/, so setup copies no templates. - Use
npx skills checkto check for available skill updates. - Upstream skills are installed through
npx skills addfor the selected coding agents and require network access. - The Node.js script is the cross-platform entry point for project configuration and upstream dependency installation. The Skills CLI manages the skills themselves.
Bundled References
See references/README.md for what each bundled file is and which source it snapshots.
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.

