code-init

code-init is a skill for Claude Code, Codex from alexeyshishin/as-skill. It costs 94 tokens per session (1,877 once invoked), scanned A, original, MIT.

A project setup guide generator that creates a CLAUDE.md file, a text file containing instructions and useful commands for an AI coding assistant. It detects the project's layout and available build, test, and lint commands.

In plain words
What is it for?
Use it to document repository commands, checks, structure, version-control rules, and common pitfalls in a new or existing project.
Why use it?
It gives an agent a concise, project-specific reference instead of making it guess how the repository works. It also checks existing instruction files before changing them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to document repository commands, checks, structure, version-control rules, and common pitfalls in a new or existing project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexeyshishin/as-skill/code-init
Install

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.

Any agent
npx skills add alexeyshishin/as-skill --skill code-init
Clone the repo
git clone --depth 1 https://github.com/alexeyshishin/as-skill

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for code-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexeyshishin/as-skill/code-init/github.svg)](https://agentmods.dev/skills/alexeyshishin/as-skill/code-init)
Your own site
<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.

agentmods 80×15 button for code-init

Your own site · 80×15
<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>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 58324a88e5f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

domains/code/skills/code-init/SKILL.md · 143 lines

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.md exists, plan to reference it with a leading @AGENTS.md import instead of duplicating its content — put only Claude-Code-specific guidance in CLAUDE.md.

Step 2. Detect the project (cheap, a few reads)

Gather only what you can observe — never invent commands:

  • Commands & checks: package.json scripts, Makefile targets, 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 -5 for 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)>

## Подводные камни

<ненавязчиво: сгенерированные файлы (правим источник), платные команды, нестандартное>

Read the full file on GitHub · 143 lines

Files

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.

Changes

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.

  1. yesterday First seen · 143 lines · 94 tokens per session scan A 58324a88e5f7

Subscribe to this mod's changes

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.

Related

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…

gapmiss/obsidian-plugin-skill · 105 tokens

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.

Mark393295827/third-brain-v7-skills · 35 tokens

harness-engineering

Use when an agent workflow needs production-like runtime controls for context, tools, permissions, observability, scheduling, evaluation, recovery, or maintenance.

Mark393295827/third-brain-v7-skills · 34 tokens

wiki-ingest

Use when a PDF, URL, transcript, clipping, or raw note must become source-grounded, linked, governed knowledge in an Obsidian vault.

Mark393295827/third-brain-v7-skills · 35 tokens

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.

Mark393295827/third-brain-v7-skills · 39 tokens

agentic-engineering

Use when designing or refactoring a model-native engineering workflow with bounded autonomy, probes, custom evaluation, durable state, and verified write-back.

Mark393295827/third-brain-v7-skills · 33 tokens