project-init

project-init is a skill for Claude Code, Codex from metahub-tech/agent-fleet. It costs 88 tokens per session (2,165 once invoked), scanned A, original, Apache-2.0.

A read-only project inspection skill that maps a repository from its files to its generated outputs and running parts, then reports its current state, drift, and suggestions.

In plain words
What is it for?
Use it when starting work in a repository, switching versions, resuming after a long pause, or checking a specific project area.
Why use it?
It gives an agent a repeatable way to understand an unfamiliar or stale codebase before making changes, instead of relying on guesswork.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/gen_docs.py --check.

Good fit Use it when starting work in a repository, switching versions, resuming after a long pause, or checking a specific project area.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/metahub-tech/agent-fleet
agentmods
npx agentmods add skills/metahub-tech/agent-fleet/project-init

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/metahub-tech/agent-fleet/project-init/github.svg)](https://agentmods.dev/skills/metahub-tech/agent-fleet/project-init)
Your own site
<a href="https://agentmods.dev/skills/metahub-tech/agent-fleet/project-init"><img src="https://agentmods.dev/badge/skills/metahub-tech/agent-fleet/project-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 project-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/metahub-tech/agent-fleet/project-init"><img src="https://agentmods.dev/badge/skills/metahub-tech/agent-fleet/project-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,165 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.00088 $0.02165
Opus 5.5 $0.00035 $0.00866
Sonnet 5.5 $0.00018 $0.00433
Haiku 4.5 $0.00009 $0.00216

Measured 9d ago against content hash d502c4144d84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-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 9d 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.

.dsh/skills/project-init/SKILL.md · 128 lines

How it starts

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

project-init · 项目装载与刷新

目标:在动手之前,用可复现的步骤把「这个仓库现在是什么样」变成事实,而不是印象。 本技能默认只读:只做勘察与报告,不改任何文件。发现漂移 → 报告,不顺手修(修不修、走哪条 PR,由人或下一次任务决定)。


0. 先确认前提

  1. 工作目录是仓库根(含 .git)。DSH 会自动加载根目录 AGENTS.md —— 若它不在上下文里,先读它。
  2. 判断这次要「全量装载」还是「主题化装载」:
    • 全量:用户刚接手 / 很久没碰 / 要做跨模块改动 → 走完 §1–§4。
    • 主题化:用户已点名范围(只改文档 / 只改某平台工具)→ 走 §1 的 1–3 步 + §3 中相关项即可。

1. 读的顺序(不要随机读文件)

按「结论 → 操作 → 结构 → 历史」四层,每层只读必要的:

层 读什么 目的 时间盒
A 结论 AGENTS.md 硬约束、真源顺序、已知漂移 必读
B 操作 docs/project-map.md 拓扑、命令、门禁、漂移登记、任务配方 必读
C 结构 docs/internal/blueprint/MAP.md → INTERFACE.md(按需)→ platform.toml 模块在哪、工具签名是什么 按需
D 为什么 docs/internal/blueprint/DECISIONS/ → CHANGELOG.md [Unreleased] 设计取舍、近期在做什么 按需
E 冷冻 docs/internal/{design,plans,specs}/、docs/superpowers/** 只用来理解「当时为什么」,不当作现状 极少

SNAPSHOT.md 的用法:它自称周更快照,但先看 base_commit: 与 git log -1 --format=%H 的差距;差得远就跳过它的细节,改用 MAP.md + 代码。别把过期快照当事实。

不要读:CHANGELOG.md 全文(597 行,只读 [Unreleased] 与最近两节)、四份 docs/platforms/*.md 全文(按主题挑一份)、platforms/*/skills/(那是产品给调用方 agent 的规范,只在改产品行为时读)。


2. 体检命令(能跑就跑,跑不了要明说)

在仓库根执行;每条都记录「命令 / 结果 / 是否为本机能力限制」。

# 2.1 仓库状态与版本事实
git log -1 --format="%h %ad %s" --date=short
git rev-list --left-right --count main...$(git tag -l --sort=-v:refname | Select-Object -First 1)
git tag -l --sort=-v:refname | Select-Object -First 3

# 2.2 文档漂移(工具数 + 端口表)。预期在当前 main 上是 exit 1,不算你的锅
python3 scripts/gen_docs.py --check

# 2.3 代码契约与共享层(--basetemp 必带;仓库外目录,避免污染工作区)
python3 -m pytest platforms/tests -q --basetemp="$env:TEMP\af-init\pt"
python3 -m pytest platforms/common/tests -q --basetemp="$env:TEMP\af-init\ct"
#   Windows 上预期 ~10 个环境性失败(bash 硬编码 / GBK 解码 / 路径进 regex),不是回归

# 2.4 只有本机有 bash / pwsh 7 才做(Windows 裸机通常没有 → 记「交 CI」)
# ./scripts/gen-blueprint-map.sh --check
# ./scripts/gen-blueprint-interface.sh --check
# ./scripts/check-blueprint-refs.sh
# ./scripts/check-ps-syntax.sh

# 2.5 CLI(依赖未装会直接 collection error,先 uv sync 或 pip install -e ".[dev]")
cd cli; $env:PYTHONPATH="src"; python3 -m pytest -q; cd ..

Read the full file on GitHub · 128 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. 9d ago First seen · 128 lines · 88 tokens per session scan A d502c4144d84

Subscribe to this mod's changes

project-init is a skill published in the GitHub repository metahub-tech/agent-fleet (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 88 tokens to every session and 2,165 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-11-22.

Related

project-init compared with skills from other repositories

project-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-initmetahub-tech/agent-fleetSkill32d agoApache-2.0A88Claude Code, Codex
macro-outlookTauricResearch/TradingAgentsSkill124k6d agoApache-2.0A0Claude Code, Codex
nano-banana-pro-openrouteropensquilla/opensquillaSkill7.2k5d agoApache-2.0A49Claude Code
skill-creator-linteropensquilla/opensquillaSkill7.2k5d agoApache-2.0A84Claude Code
clinicaltrials-databasesynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A47Claude Code, Codex
esmsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A86Claude Code, Codex
openalex-databasesynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A76Claude Code, Codex