initlisted
Install: claude install-skill grinchenkoedu/claude-skills
# /gku:init — give this repository a CLAUDE.md
`CLAUDE.md` is read at the start of every session in a repository. It is the one place to record
how to build the project, how to test it, and the handful of rules that are actually violated
here. This skill writes it, and can refresh the shared part later without touching your own.
Run it once per repository, and again whenever the family rules improve.
## Arguments
- `--family <name>` — force the family: `moodle-plugin`, `php-app`, `cms`, `python-app`.
Normally detected.
- `--refresh` — update the managed block in an existing file, leaving everything else alone.
- `--dry-run` — show what would be written; change nothing.
## How the file is structured
Two parts, and the distinction is the whole point:
```markdown
# <Project> — notes for Claude
...your own sections: what this project is, its quirks,
anything you want said every session...
<!-- toolkit:begin family-rules -->
...maintained by /gku:init — replaced wholesale on --refresh...
<!-- toolkit:end family-rules -->
...more of your own sections if you like...
```
**Never edit inside the markers** — a refresh overwrites it. **Never let a refresh touch
anything outside them** — that is someone's work.
## Step 1 — Profile the repository
Read `.claude/repo-profile.json`, or detect and cache it per `reference/repo-profile.md`. You
need: family, language and version, base branch, install / lint / test / build commands, the
execution environment, the runtime surfac