agent-infra: Skill for Claude Code

.agents/skills/init-milestones/SKILL.md

init-milestones is a skill for Claude Code from fitlab-ai/agent-infra. It costs 27 tokens per session (843 once invoked), scanned A, original, MIT.

A repository setup process for creating a standard set of milestones, which are named checkpoints used to group and track work.

In plain words
What is it for?
Use it to inspect version tags and existing milestones, then create the required backlog, release-line, current-version, and optional historical milestones.
Why use it?
It establishes a repeatable milestone structure and avoids creating duplicates when some milestones already exist.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: installed under .agents/ (shared by several agents).

This is fitlab-ai/agent-infra's own configuration. It tells Claude Code how to work on agent-infra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-infra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fitlab-ai/agent-infra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fitlab-ai/agent-infra/main/.agents/skills/init-milestones/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fitlab-ai/agent-infra

Made for: Claude Code.

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-milestones

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/init-milestones"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/init-milestones.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 843 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.00843
Opus 5 $0.00014 $0.00421
Sonnet 5 $0.00005 $0.00169
Haiku 4.5 $0.00003 $0.00084

Measured 2d ago against content hash 311fa4aeeb1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

init-milestones 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/init-milestones.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/init-milestones/SKILL.md · 84 lines

What it actually says

初始化 milestones

一次性初始化仓库的标准 milestones 体系。

执行流程

1. 验证前置条件

确认以下条件成立:

  • 执行前先读取 .agents/rules/label-milestone-setup.md
  • 请求的 milestone 参数已准备完成

如果任一条件失败,停止并输出对应错误。

2. 运行 milestones runtime intent

执行以下命令,完成整套里程碑初始化流程:

agent-infra-internal platform-metadata init-milestones $ARGUMENTS

runtime intent 与 .agents/rules/label-milestone-setup.md 共同负责:

  • 接收 --history 请求并规划目标里程碑
  • 按既定基线、history、状态和标题幂等契约生成结果
  • 由 runtime/provider 读取并写入当前里程碑
  • 输出最终执行摘要

3. 标准里程碑定义

按固定描述创建以下里程碑:

  • General BacklogAll unsorted backlogged tasks may be completed in a future version.(state=open
  • {major}.{minor}.xIssues that we want to resolve in {major}.{minor} line.(state=open
  • 具体版本:兼容默认来源使用基线 0.1.0;合法 tag 来源使用 {major}.{minor}.{patch+1}。描述为 Issues that we want to release in v{version}.(state=open

当传入 --history 时,每个历史 vX.Y.Z tag 还会额外贡献:

  • X.Y.x 作为开启状态的线里程碑
  • X.Y.Z 作为关闭状态的版本里程碑(state=closed

4. 输出与行为保证

摘要必须包含:

  • 版本基线
  • 版本基线来源
  • 是否启用 --history
  • 创建与跳过的里程碑数量
  • 新创建的里程碑标题
  • 已存在的里程碑标题

执行说明:

  • Milestone titles are treated as the idempotency key.
  • General Backlog 是未分类工作的兜底里程碑。
  • 不带 --history 时,只创建一个标准版本里程碑:兼容默认来源使用基线 0.1.0,合法 tag 来源使用下一次 patch 版本。
  • 历史 X.Y.Z tag 会生成开启状态的 X.Y.x 和关闭状态的 X.Y.Z
  • 标签较多的仓库可能触发平台 API rate limit。

5. 告知用户

渲染下一步前先读取 .agents/rules/next-step-output.md,仅为已选场景调用统一 helper,并将 stdout 填入 {next-step-commands}

输出 milestones 初始化摘要后,提示:

使用 agent-infra-internal agent-client next-steps --skill init-labels 生成本场景的 {next-step-commands}

下一步 - 初始化 Labels(可选):
{next-step-commands}

错误处理

  • 平台能力、认证或仓库访问失败:如实报告 runtime 的非零退出状态和诊断输出;不得声称远端已变更。
  • 版本解析失败:报告 runtime 返回的版本基线错误
  • --history 模式下未找到合法 SemVer v* git tags:报告 runtime 返回的 history 诊断
  • 权限不足:提示 "No permission to manage milestones in this repository"
  • API 限流:提示 "platform API rate limit reached, please retry later"
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. 2d ago Changed · -2 lines 311fa4aeeb1a
  2. 6d ago Changed · -2 lines 9a6c5c396c3f
  3. 10d ago First seen · 88 lines · 27 tokens per session scan A 59ea6be1f300

Subscribe to this mod's changes

init-milestones is a skill published in the GitHub repository fitlab-ai/agent-infra (83 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 843 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.

Related

Other skills, from other repositories

dream

Batch-execute SHIP-ready wishes overnight — pick wishes, orchestrate workers, review PRs, wake up to results.

automagik-dev/genie · 27 tokens

clickup

Use when managing ClickUp tasks, sprints, or comments via the cup CLI tool. Triggers: task queries, status updates, sprint tracking, creating subtasks, posting comments, threaded replies, standup summaries, searching tasks, checking overdue items, assigning tasks, listing spaces and lists, opening tasks in browser…

krodak/clickup-cli · 125 tokens

sw-do

Implement a SpecWeave increment task by task through the ledger, with evidence per task and a verified close. Use for "implement this", "start working", "continue the increment", "keep going".

anton-abyzov/specweave · 41 tokens

handoff

Write a portable, secret-scrubbed handoff doc so this work can continue in any AI tool or on any machine. Use when saying "handoff", "running out of tokens", or "continue elsewhere".

anton-abyzov/specweave · 44 tokens

linear-graphql-skill

Operate Linear workspace issues, projects, and teams through Linear GraphQL API using UXC. Use when tasks require querying or creating issues, managing projects, or interacting with Linear workflow. Supports both Personal API Key and OAuth authentication.

holon-run/uxc · 51 tokens

genie-orca-wish

Turn a brainstorm/design into an APPROVED-able wish whose Dispatch plan is the literal input to Orca tasks and Linear issues. High-reasoning pass: pre-decide everything so fast workers can execute without judgment calls.

automagik-dev/genie · 51 tokens