Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add alexeyshishin/as-skill --skill code-initgit clone --depth 1 https://github.com/alexeyshishin/as-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/alexeyshishin/as-skill/code-init)<a href="https://agentmods.dev/skills/alexeyshishin/as-skill/code-init"><img src="https://agentmods.dev/badge/skills/alexeyshishin/as-skill/code-init/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/alexeyshishin/as-skill/code-init"><img src="https://agentmods.dev/badge/skills/alexeyshishin/as-skill/code-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.01877 |
| Opus 5.5 | $0.00038 | $0.00751 |
| Sonnet 5.5 | $0.00019 | $0.00375 |
| Haiku 4.5 | $0.00009 | $0.00188 |
Grade A, and why
code-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: /code-init — generate a project CLAUDE.md
Goal: write a CLAUDE.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 it ~90–120 lines (~6 KB). Avoid shouty NEVER/MUST everywhere — state a
rule once, clearly, with the criterion for when it applies.
Invocation
/code-init
Step 1. Guard against clobbering
Check for an existing CLAUDE.md at the project root.
- If it exists, read it, show the user a one-line summary of what's there, and ask: overwrite, merge the four house rules into it, or cancel. Do not overwrite silently.
- If
AGENTS.mdexists, plan to reference it with a leading@AGENTS.mdimport instead of duplicating its content — put only Claude-Code-specific guidance inCLAUDE.md.
Step 2. Detect the project (cheap, a few reads)
Gather only what you can observe — never invent commands:
- Commands & checks:
package.jsonscripts,Makefiletargets,go.mod,pyproject.toml/setup.cfg,Cargo.toml,justfile,Dockerfile, CI configs. Extract the real build / run / test / lint / typecheck invocations. - Architecture: top-level directories and what each holds (one line each). Don't map every file — just the map a newcomer needs.
- Git:
git log --oneline -5for commit-message language/style; note the default branch.
If a category yields nothing, omit that section rather than writing a placeholder.
Step 3. Compose CLAUDE.md
Fill this skeleton. Russian prose (per house rule 4); keep command names, paths, and tool names verbatim. Order sections as below.
# CLAUDE.md
<одна строка: что это за проект>.
<если есть AGENTS.md:> @AGENTS.md — общие правила ниже только дополняют его.
## Обязательные правила
1. **Не выполняй `git commit`.** Готовь изменения и формулируй сообщение, но сам коммит
оставляй пользователю — он коммитит вручную.
2. **Всегда вызывай навык `/caveman`** для ответов — ультра-сжатый режим, экономит токены.
3. **Не пиши комментарии в коде.** Код должен быть самодокументируемым: понятные имена,
маленькие функции. Исключение — комментарий, который требует линтер/формат файла.
4. **Отвечай на русском.** Технические термины и имена оставляй на английском.
## Команды
<build / run / test / lint / typecheck — только реально найденные>
## Проверки перед завершением
<линтер + типы + тесты — что прогнать, прежде чем считать задачу готовой>
## Структура проекта
<карта каталогов, по строке на каталог>
## Рабочий цикл (agent loop)
Разработка идёт через четыре скилл-оркестратора. Каждый сам не правит код в основном
цикле — он порождает субагентов (`Task`) и сводит их вывод. Артефакты между этапами —
в `swarm-report/<slug>-*.md`.
/code-plan "<фича>"
→ параллельно: code-planner (проектирует план) + code-skeptic (ищет, что
сломает) → merge → swarm-report/<slug>-plan.md
/code-build <slug>
→ читает affected_files из плана, роутит по scope → backend / frontend / devops
пишут код и гоняют тесты → swarm-report/<slug>-build.md
/code-review <slug>
→ code-reviewer, read-only, сверяет диф с планом → verdict: ship | rework
/code-debug "<симптом>"
→ code-debugger: воспроизводит → лестница гипотез → минимальный фикс
Петля: упал тест или `review: rework` → `/code-debug` → снова `/code-build` →
`/code-review`. Stop-хук `test-gate` не даёт объявить «готово», пока тесты реально не
прогнаны. Планировать до билда, ревьюить после; `/code-debug` — только когда что-то
сломалось, не для проектирования фич.
## Модели
Тяжёлое рассуждение (план, критика, ревью, дебаг) — на Opus; исполнение готового плана —
на Sonnet (быстрее и дешевле при достаточном качестве).
| Роль | Модель | Почему |
|------|--------|--------|
| code-planner | `claude-opus-4-8` | проектирование — самый дорогой по качеству этап |
| code-skeptic | `claude-opus-4-8` | adversarial-разбор, нужен сильный ризонинг |
| backend / frontend / devops (исполнители) | `claude-sonnet-5` | пишут по готовому плану — скорость и цена |
| code-reviewer | `claude-opus-4-8` | ловит тонкие баги в дифе |
| code-debugger | `claude-opus-4-8` | root-cause-анализ — сложное рассуждение |
| скилл-оркестратор (роутинг, merge) | `claude-sonnet-5` | координация без глубокого ризонинга |
Правь это под бюджет: если дорого — переводи ревью/дебаг на Sonnet; тривиальная механика
(слагификация, мелкие правки) спокойно живёт на `claude-haiku-4-5`.
## Git
<ветки, формат коммитов, язык сообщений — но коммит делает пользователь (см. правило 1)>
## Подводные камни
<ненавязчиво: сгенерированные файлы (правим источник), платные команды, нестандартное>
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 143 lines · 94 tokens per session scan A 58324a88e5f7
code-init is a skill published in the GitHub repository alexeyshishin/as-skill (5 stars, last pushed yesterday), licensed MIT. It adds 94 tokens to every session and 1,877 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
Other skills, from other repositories
obsidian
Comprehensive guidelines for Obsidian.md plugin development including ESLint rules from eslint-plugin-obsidianmd v0.4.2, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, popout window compatibility, community.obsidian.md submission process, and Scorecard optimization. Use…
loop-engineering
Use when a repeatable task must become a bounded Trigger -> Execute -> Verify -> State loop, scheduled automation, goal agent, or metric-driven research cycle.
harness-engineering
Use when an agent workflow needs production-like runtime controls for context, tools, permissions, observability, scheduling, evaluation, recovery, or maintenance.
wiki-ingest
Use when a PDF, URL, transcript, clipping, or raw note must become source-grounded, linked, governed knowledge in an Obsidian vault.
agent-teams-command
Use when work has genuinely independent streams or distinct builder, evaluator, domain, and integration roles that require bounded multi-agent command scaled from 5 to 100+ agents.
agentic-engineering
Use when designing or refactoring a model-native engineering workflow with bounded autonomy, probes, custom evaluation, durable state, and verified write-back.