← ClaudeAtlas

code-initlisted

Generate a project AGENTS.md (canonical) and, when a claude install exists, a CLAUDE.md containing only `@AGENTS.md` — detects build/test/lint commands and the directory layout, then writes a concise rules-and-commands reference. Always embeds four fixed house rules (always use /caveman, no code comments, answer in Russian, report only hash and subject after commit/push). With the code harness installed it also records which executing agents (backend / frontend / devops) /code-build must call for which files, and when agents update the Memory Bank. With consent it registers the installed code hooks via `scripts/register-hooks.sh` (Claude-only) and sets up project-local ast-index (Claude-only). Use when the user wants to "create an AGENTS.md", "create a CLAUDE.md", "init project rules", "code-init".
alexeyshishin/as-skill · ★ 6 · AI & Automation · score 78
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