code-initlisted
Install: claude install-skill alexeyshishin/as-skill
# Skill: code-init — generate project AGENTS.md (+ CLAUDE.md = `@AGENTS.md`)
Goal: write an `AGENTS.md` at the project root that is a **reference of commands and
processes**, not a wall of prohibitions. Best-practice backbone (ранжировано по тому, что
реально встречается в успешных проектах): commands → checks → architecture → git →
pitfalls. Keep the core ~90–120 lines (~6 KB); the code-harness block (loop, executors,
Memory Bank, models) is on top of that — keep it tight too. Avoid shouty `NEVER`/`MUST`
everywhere — state a rule once, clearly, with the criterion for when it applies and the
reason in a clause. Instructions for agents follow the same discipline: one trigger, one
definition of done, one owner per action.
## Invocation
run the code-init skill
## Step 1. Guard against clobbering
Platforms: read `.as-skill/lock.json` (older installs: `.claude/skills-lock.json`); each entry's `platforms` lists where it was
installed, an entry without `platforms` means `claude`. A **claude install exists** when
any entry has `claude`, or no lock file / no `platforms` info exists.
Check for existing `AGENTS.md` and `CLAUDE.md` at the project root.
- `AGENTS.md` exists: **read it**, show the user a one-line summary, and ask: overwrite,
merge the four house rules into it, or cancel. Do not overwrite silently.
- Only `CLAUDE.md` exists with content (migration): **read it**, show what would move into
`AGENTS.md`, and ask. Do not move silently.
- Both exist: **read both**. `AGEN