paste this link into your ai. it will know what to do.
Set up a project for agent work. Writes your profile's rules (chat language, repo language) into CLAUDE.md and AGENTS.md, installs a subagent roster for Claude Code, Codex and OpenCode and the safety hooks, and runs an environment check.
Kickoff
Set up the current project so your working rules apply now and in every later session, then report the environment in your chat language. The rules come from references/rules.template.md next to this skill, filled in with your profile and saved as ~/.config/kickoff/rules.md. Read that file after step 1 and follow it for the rest of this session.
A skill's text disappears from context on /clear; CLAUDE.md is reloaded every time. That is why step 3 links the rules file from the project's CLAUDE.md instead of relying on this message.
1. Profile
Your profile is ~/.config/kickoff/profile.json: chat_language and repo_language (default English). It is per user, so ask once per machine.
- Run
python3 <this skill's folder>/scripts/profile.py show. - Output
needs-profile(exit 2) means the profile is missing or has empty fields. Thedefault-<key>:lines list only the missing fields, with detected values. Ask the user one question per listed field, with the detected default as the first option (AskUserQuestion in Claude Code; a plain question in other agents). Then runprofile.py set key=value ...with the answers. - Run
python3 <this skill's folder>/scripts/profile.py render. It writes~/.config/kickoff/rules.mdand printswrittenorsame. Always run it, so a changed template or profile reaches the rules file. - Read
~/.config/kickoff/rules.md.
To change the profile later, run profile.py set key=value (or delete ~/.config/kickoff/profile.json to be asked again), then /kickoff again.
2. Find the project
scripts/env-check.sh runs the fixed checks of steps 2 and 6 and prints one key: value report. If an ENV-CHECK block appears below, use it. Otherwise run bash <this skill's folder>/scripts/env-check.sh from the project directory and use its output.
!bash ${CLAUDE_SKILL_DIR}/scripts/env-check.sh || true
- Project root: the
repo:line.not a git repo: use the current directory, still do steps 3 to 6, skip the git
rows, and say in the report that commits and PRs need git init and a remote. git is not runnable here: report that as ✗ instead; it is not the same as a missing repo.
- Default branch:
default-branch:(gh first, thenorigin/HEAD,init.defaultBranch, elsemain). - Remote:
remote:.nonemeans/cprand merge can't run yet; put that in the notes.
3. Wire the rules into CLAUDE.md and AGENTS.md
The project-root CLAUDE.md must end up with exactly one copy of this block:
<!-- kickoff:begin -->
@~/.config/kickoff/rules.md
<!-- kickoff:end -->- File missing: create it with the block.
- Block missing: append it after a blank line (add a trailing newline to the file first if it lacks one). Leave all
other content untouched.
- Block present but different, or present more than once: replace them with the single block above. An old
<!-- start-anil-session:begin --> block counts as different: replace it, and say so in the report.
- Block present and identical: nothing to do.
Do the same for the project-root AGENTS.md, read by Codex, Cursor and other agents. AGENTS.md has no @ imports, so its block holds a plain path reference instead, with the same markers and the same create, append, replace rules:
<!-- kickoff:begin -->
Follow the working rules in `~/.config/kickoff/rules.md`.
<!-- kickoff:end -->These are small config edits, so do them directly rather than through a subagent. They go into the next commit; the reference resolves only on machines with a kickoff profile and is ignored for other contributors.
4. Install the agents
The roster has seven agents. The references/agents/ folder next to this skill holds six of them (worker, tester, explorer, reader, researcher, writer). The seventh, reviewer, comes from the sibling review skill: <skills-dir>/review/reviewer.md (for a Claude Code user install, ~/.claude/skills/review/reviewer.md). /review spawns an agent named reviewer with that contract, so the installed one must be the same file. ~/.config/kickoff/rules.md routes work to them.
Claude Code:
- Run
mkdir -p ~/.claude/agents. - For each file in
references/agents/, copy it to~/.claude/agents/<same file name>only if that path does not
exist. Use a no-clobber copy such as cp -n.
- Copy the
reviewskill's reviewer file to~/.claude/agents/reviewer.mdthe same way. If thereviewskill is not
installed, skip it and say so in the report.
- Never overwrite or merge an existing file without the user's yes, even if it differs. The user's copy wins.
- Note which files you installed and which were already present, for the report. For a present file that differs from
this skill's copy (cmp -s), say so in the report and offer to replace it; replace it only on the user's yes.
Codex: run python3 <this skill's folder>/scripts/install-agents.py --target codex. It converts the same files to ~/.codex/agents/<name>.toml. Small agents (reader, writer) use the Codex small model; the rest inherit the session's model. worker and explorer replace Codex's built-in agents of the same name.
OpenCode: run python3 <this skill's folder>/scripts/install-agents.py --target opencode. On the first run it prints needs-models and exits 2. Then run opencode models, ask the user one question per tier with those models as the options plus "inherit" (small: reader, writer; medium: worker, tester, explorer, researcher; large: reviewer), and rerun with --models small=<id>,medium=<id>,large=<id>. The choice is saved, so later runs don't ask.
Cursor: it reads ~/.claude/agents/ as well, so the Claude Code step covers it.
For every target the script leaves a file that differs alone and reports it as differs; offer --update and pass it only on the user's yes. Do this directly rather than through a subagent, like the CLAUDE.md edit. Newly installed agents may only appear after a reload or in a new session.
5. Install the hooks
Claude Code only; other agents skip this step and the report says hooks are Claude Code only. Two rules in the rules file get a hook that enforces them, because markdown alone doesn't guarantee them:
hooks/guard.py(PreToolUse, Bash) deniesgit commiton the default branch, and migration, seed or schema-push
commands whose database host isn't localhost, 127.0.0.1, ::1 or a compose service, and asks the user when it can't resolve the host. It shows only the host. It asks the user before a git push that forces, deletes or mirrors, wherever the flag sits, because an allow rule such as Bash(git push:*) would pass it without a prompt.
hooks/stop-check.py(Stop) notices a feature branch left with uncommitted changes or unpushed commits. It starts in
observe mode: it logs to ~/.claude/hooks/famiglia/stop-observe.jsonl and never blocks. It also reads the session's context size and, past 150k tokens, shows the user one line per 50k step: /clear when the work is finished, /compact when it isn't.
- Both are best effort, a tripwire and not a sandbox; the real protection stays in the rules file and local-only
database credentials.
Steps:
- Run
python3 <this skill's folder>/scripts/install-hooks.py --dry-run. It prints what it would copy to~/.claude/hooks/famiglia/and the diff for~/.claude/settings.json. "Nothing to do" means they are already installed; skip the rest of this step. - Show the user that plan and ask one question: install the hooks? (AskUserQuestion in Claude Code.)
- On yes, run it without
--dry-run. It only adds handlers, never removes or reorders existing ones, and writessettings.json.bakfirst. On no, skip and note it. - Tell the user how to move past observe mode:
python3 ~/.claude/hooks/famiglia/stop-check.py --reportshows how often stops were flagged and why. Once the log looks right, add--enforceto the Stop hook's command in~/.claude/settings.json; it then blocks a flagged stop once and asks to run/dev-flowor say what remains.
6. Check the environment
The ENV-CHECK block from step 2 holds the results. Fix only what the "If wrong" column says to fix; everything else is reported. A line the block lacks (the script failed, or it couldn't run) is checked by hand with the commands in scripts/env-check.sh.
| Check | Lines | If wrong |
|---|---|---|
| GitHub account | gh-active:, gh-accounts: | Report the active account. Not logged in: tell the user to run gh auth login |
| Git author | git-author: (effective), git-author-global: | Report it. No name or email set: ask the user before the first commit |
| Branch | branch:, on-default-branch: | On the default branch: first task starts on a new kebab-case feature branch (note) |
| Docker | docker:, compose: (each service and its state) | Report; start services only when a test needs them |
| Test database | db: (file, key, host only, local / REMOTE / unresolved variable, template) | REMOTE in a non-template file the tests use: ⚠ in the report plus a note that tests, migrations and seeds stay blocked until it points at local Docker; offer to switch it to the compose DB service. unresolved variable: find where the value comes from before calling it local. Never print credentials |
| Tracked secrets | tracked-env:, gitignore-env: | Note it as a security risk; don't untrack or rewrite history without the user's yes |
| Stack | node:, python:, go: (installed or lockfile versions, (range) when only the manifest has one), compose-images:, stack-files: | Report main frameworks and services with versions, used later for docs research. For an ecosystem the script only lists in stack-files:, read its lockfile |
7. Report
Write the report in the profile's chat_language: translate the labels below too. Use ✓ for OK, ✗ for missing or failed, ⚠ for works but risky. Then a notes list for anything that needs attention (only include notes that apply), then ask what to work on.
Session ready: <repo> (<current branch>, default: <default branch>)
Profile: <chat_language>, repo in <repo_language> (saved | created now)
<✓|✗> GitHub: <active account>
<✓|✗> Git author: <name> <email>
<✓|✗|⚠> Docker: <daemon state>; <compose services and their state>
<✓|⚠> Test DB: <host>
Stack: <framework@version, ...>; services: <postgres:17, ...>
CLAUDE.md: rules wired | already wired | updated (old start-anil-session block replaced)
AGENTS.md: rules wired | already wired | updated (old start-anil-session block replaced)
Agents (<tool>): installed <list> | present, untouched <list> | older version, replace? <list>
Hooks: installed (observe mode) | already installed | skipped | Claude Code only
Notes:
- <default branch note, remote missing, non-local DB, tracked secrets, CLAUDE.md/AGENTS.md change goes into next commit>
What should we work on?If something fails
| Failure | Fix |
|---|---|
profile.py show prints needs-profile and the user skips the questions | Use the default-<key>: values the user accepts; for a field with no default, stop and say /kickoff needs it. Don't render or wire rules without a complete profile. |
profile.py render exits 1 and names a missing field | Ask for that field, run profile.py set <key>=<value>, then rerun render. |
No ENV-CHECK block, or it shows the literal ! line | Run bash <this skill's folder>/scripts/env-check.sh by hand from the project directory. |
git is not runnable here | Report git as ✗, still wire CLAUDE.md and AGENTS.md and install the agents, and skip the git rows. |
db: shows a REMOTE host the tests use | Stop and ask before any test, migration or seed; offer to point it at the compose DB service. |
scripts/install-hooks.py says ~/.claude/settings.json is not valid JSON | Stop the hook step and report the error; never overwrite the file. The user fixes it, then rerun. |
python3 is missing | Skip the hooks and say so in the report; the rules still apply as written. |
scripts/install-agents.py exits 2 with needs-models | Ask the user for the three OpenCode tiers, then rerun with --models. |
opencode models fails or lists nothing | Rerun with --models small=inherit,medium=inherit,large=inherit and note that every agent uses the session's model. |
gh is missing or not logged in | Report GitHub as ✗ and tell the user to run gh auth login; /cpr and merge wait until then. |
From here on, plan in the main thread and hand work to the agents as the rules file routes them.
keep it where your ai can reach it.
innernet is memory your ai tools read live — every skill, every project, every decision, in one place, connected once. save this skill to yours, or publish one of your own as a link like this.