agent-starter

Skills, hooks, templates, and engineering guides for bootstrapping AI-agent-friendly projects, with a per-project self-improvement loop.
What it is
A toolkit for setting up projects that AI agents can work in safely and productively. It scaffolds new projects, retrofits existing ones, and ships enforcement hooks, drop-in configs, and engineering patterns. The differentiator is the self-improvement loop: scaffolded projects capture signal from their own usage and turn it into better rules over time.
| Component | What it does | Where |
|---|
| Skills | 10 slash commands: scaffold, adopt, commit, reflect, remember, dream, test-audit, dep-vuln-update | skills/ |
| Hooks | Enforcement (lint, file-size, dangerous-command) + signal capture for the loop | hooks/ |
| Templates | Drop-in configs: Biome, ESLint, ruff, pyright, CLAUDE.md, env boundaries | templates/ |
| Guides | 9 engineering patterns for AI-agent codebases | guides/ |
| Self-improvement loop | Projects learn from their own usage and propose their own rules | across the above |
Provenance: patterns marked "derived from Anthropic's Claude Code source" are reverse-engineered from the Claude Code CLI; everything else is added on top. See About.
Quick start
This repo doubles as a Claude Code plugin marketplace. Installing the plugin is the recommended path: it loads every skill and wires the enforcement hooks in one step.
/plugin marketplace add sneg55/agent-starter
/plugin install agent-starter@agent-starter
Then run /new-project (new codebase) or /adopt-project (existing one).
Install
Pick the path that matches what you want:
| I want... | Do this |
|---|
| Everything (skills + hooks), one step | Plugin install, see Quick start |
| Just the skills, globally | npx skills add sneg55/agent-starter -a claude-code -g |
Just the hooks in ~/.claude | git clone …/agent-starter && cd agent-starter && ./install.sh |
| To point an agent at the repo | See the table below |
Point an agent at the repo
No install needed. Give an agent the repo URL and it reads the matching entry file and drives the setup interactively (audit-first, opt-in, nothing overwritten):
| Situation | Say | Agent reads |
|---|
| New project | "read this repo and set up my project https://github.com/sneg55/agent-starter/" | AGENT.md |
| Existing project | "read this repo and apply it to my project" | ADOPT.md |
| Whole team | ship the setup with the repo so everyone gets it from a git pull | TEAM.md |
TEAM.md is the companion to ADOPT.md: where ADOPT.md installs into one developer's ~/.claude, TEAM.md vendors the setup (hooks, shared config, plugin defaults) into the repo itself.
Notes on the plugin and hooks
- The plugin wires five enforcement hooks (file-size, lint-on-edit, silent-error, dangerous-command, codebase-health) plus a
/loop instruction-review hook, all from hooks/hooks.json.
- The read-before-edit guard pair is left out of the plugin on purpose (recent Claude Code enforces read-before-edit natively). Opt into it with
./install.sh --with-read-guard.
install.sh merges its settings.json wiring idempotently via jq, so re-runs never duplicate entries.
Components
Skills
Install all skills globally with npx skills: npx skills add sneg55/agent-starter -a claude-code -g (or get them via the plugin).