agent-infra: Skill for Claude Code

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

init-labels is a skill for Claude Code, Codex from fitlab-ai/agent-infra. It costs 26 tokens per session (1,124 once invoked), scanned A, original, MIT.

A setup workflow for creating a standard set of labels in a code repository. Labels are tags used to classify and filter issues and pull requests.

In plain words
What is it for?
Use it when setting up a repository or standardising its labels for issue and pull-request management.
Why use it?
It replaces ad hoc label creation with a consistent system for types, statuses, modules, and dependencies. It also records the existing labels before changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is fitlab-ai/agent-infra's own configuration. It tells Claude Code and Codex 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-labels/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fitlab-ai/agent-infra

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/init-labels.svg)](https://agentmods.dev/skills/fitlab-ai/agent-infra/init-labels)
Your own site
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/init-labels"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/init-labels.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,124 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.00026 $0.01124
Opus 5 $0.00013 $0.00562
Sonnet 5 $0.00005 $0.00225
Haiku 4.5 $0.00003 $0.00112

Measured today against content hash 617256aba2bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

init-labels 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/init-labels.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-labels/SKILL.md · 107 lines

How it starts

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

初始化 labels

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

执行流程

1. 验证前置条件

确认以下条件成立:

  • 执行前先读取 .agents/rules/label-milestone-setup.md
  • 仓库配置和请求的映射已准备完成

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

2. 运行 labels runtime intent

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

agent-infra-internal platform-metadata init-labels

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

  • 读取配置的 labels.in 映射并保留无关 label
  • 选择平台能力,或返回明确的 no-op/degraded 结果
  • 创建或更新标准 label 集合并输出最终摘要
  • 输出最终执行摘要

3. 标准分类体系

脚本管理以下通用 label 族:

  • type: labels,例如 type: bugtype: enhancementtype: featuretype: documentationtype: dependency-upgradetype: task
  • status: labels,例如 status: waiting-for-triagestatus: in-progressstatus: waiting-for-internal-feedback
  • 明确覆盖的 平台默认同名 labels:good first issuehelp wanted
  • 额外通用 labels,例如 dependencies
适用范围
Label 前缀 Issue PR 说明
type: Yes Issue 使用 平台原生 Type 字段;PR 无原生类型字段,需 type: label 驱动 changelog
status: Yes PR 有自身状态流转(Open/Draft/Merged/Closed);Issue 使用 status: label 标记项目管理状态
in: Yes Yes Issue 和 PR 均需按模块筛选

4. 配置 in: label 映射

检查 .agents/.airc.json 中是否已有 labels.in 字段。

4.1 已有映射

展示当前映射,询问用户是否需要更新。

  • 不需要:跳到步骤 4.3
  • 需要:按步骤 4.2 处理
4.2 无映射或用户要求更新
  1. 扫描项目顶层目录,排除隐藏目录和常见构建目录。
  2. 分析目录内容,给出有意义的模块分组建议。
  3. 向用户展示建议的 in: label 映射,并根据自然语言反馈迭代调整。
  4. 如果用户拒绝配置,则为每个顶层目录生成 1:1 默认映射({dir}/)。
4.3 写入配置并创建 label
  1. 将最终映射写入 .agents/.airc.jsonlabels.in 字段。
  2. 执行 agent-infra-internal platform-metadata init-labels,为每个映射 key 创建或更新 in: {key} label。
  3. 询问用户确认后,再使用 --cleanup-stale-in 重新执行 intent,清理不在最终映射中的旧 in: label。

5. 输出与行为保证

摘要必须包含:

  • 创建或更新的通用 labels 数量
  • 写入的 labels.in 映射结果
  • 按映射 key 计算的 in: labels 数量
  • 名称完全匹配的平台预置 labels 已被覆盖的说明
  • 仍然存在的未匹配平台预置 labels

执行说明:

  • 整个操作具备幂等性,因为 provider 叶子会按覆盖或更新方式处理已有 label。
  • in: labels 由 AI 引导步骤和 .airc.json 映射统一管理。

6. 告知用户

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

Read the full file on GitHub · 107 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. today Changed 617256aba2bf
  2. 4d ago Changed · -1 lines 26e582ffb009
  3. 8d ago First seen · 108 lines · 26 tokens per session scan A 7b3dcf9de66a

Subscribe to this mod's changes

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