init-project

init-project is a skill for Claude Code, Codex from UfoMiao/zcf. It costs 20 tokens per session (638 once invoked), scanned A, original, MIT.

A project-initialization workflow that creates or updates CLAUDE.md files, which are written instructions and indexes for an AI working in a code repository.

In plain words
What is it for?
Use it to document a project’s architecture, modules, interfaces, dependencies, entry points, tests, and related navigation diagrams.
Why use it?
It gives the AI a concise project overview and more detailed guidance for individual modules, making the repository easier to navigate.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ufomiao/zcf/init-project
Any agent
npx skills add UfoMiao/zcf --skill init-project
Clone the repo
git clone --depth 1 https://github.com/UfoMiao/zcf

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 init-project

README.md
[![agentmods](https://agentmods.dev/badge/skills/ufomiao/zcf/init-project.svg)](https://agentmods.dev/skills/ufomiao/zcf/init-project)
Your own site
<a href="https://agentmods.dev/skills/ufomiao/zcf/init-project"><img src="https://agentmods.dev/badge/skills/ufomiao/zcf/init-project.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 638 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00638
Opus 5 $0.00010 $0.00319
Sonnet 5 $0.00004 $0.00128
Haiku 4.5 $0.00002 $0.00064

Measured 4d ago against content hash 75664c525f6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init-project 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 4d ago.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • ask — 88% identical, 75 lines differ
templates/skills/en/init-project/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Usage

/init-project <PROJECT_SUMMARY_OR_NAME>

Objective

Initialize project AI context using a mixed strategy of "concise at root + detailed at module level":

  • Generate/update CLAUDE.md at repository root (high-level vision, architecture overview, module index, global standards).
  • Generate/update local CLAUDE.md in identified module directories (interfaces, dependencies, entry points, tests, key files, etc.).
  • For improved readability, automatically generate Mermaid structure diagrams in the root CLAUDE.md and add navigation breadcrumbs to each module CLAUDE.md.

Orchestration Instructions

Step 1: Call the get-current-datetime sub-agent to obtain the current timestamp.

Step 2: Call the init-architect sub-agent once, with input:

  • project_summary: $ARGUMENTS
  • current_timestamp: (timestamp from step 1)

Execution Strategy (Agent adapts automatically, no user parameters needed)

  • Stage A: Repository Census (Lightweight) Quickly count files and directories, identify module roots (package.json, pyproject.toml, go.mod, apps/, packages/, services/*, etc.).
  • Stage B: Module Priority Scanning (Medium) For each module, perform targeted reading and sampling of "entry/interfaces/dependencies/tests/data models/quality tools".
  • Stage C: Deep Supplementation (As Needed) If repository is small or module scale is small, expand reading scope; if large, perform batch supplemental scanning on high-risk/high-value paths.
  • Coverage Measurement and Resumability Output "scanned files / estimated total files, covered module ratio, ignored/skipped reasons" and list "recommended next-step deep-dive sub-paths". When running /init-project repeatedly, perform incremental updates and breakpoint resumable scanning based on previous index.

Security and Boundaries

  • Only read/write documentation and indexes, do not modify source code.
  • Ignore common generated artifacts and binary large files by default.
  • Print "summary" in main dialog, write full content to repository.

Read the full file on GitHub · 55 lines

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. 4d ago First seen · 55 lines · 20 tokens per session scan A 75664c525f6c

Subscribe to this mod's changes

init-project is a skill published in the GitHub repository UfoMiao/zcf (6,085 stars, last pushed 3d ago), licensed MIT. It adds 20 tokens to every session and 638 once invoked, about $0.0001 per session on Opus 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-08-30.