agent-infra: Skill for Claude Code

.agents/skills/import-issue/SKILL.md

import-issue is a skill for Claude Code, Codex from fitlab-ai/agent-infra. It costs 29 tokens per session (2,879 once invoked), scanned A, original, MIT.

A workflow for importing an existing issue from a code-hosting platform into a local task file. An issue is a tracked report such as a bug, request, or discussion.

In plain words
What is it for?
Use it when work should begin from an existing issue and be tracked locally in task.md.
Why use it?
It gives developers a local starting point and task record without making them copy the issue details by hand. It does not modify business code.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .agents/scripts/task-short-id.js alloc "$task_id".

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/import-issue/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 import-issue

README.md
[![agentmods](https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/import-issue.svg)](https://agentmods.dev/skills/fitlab-ai/agent-infra/import-issue)
Your own site
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/import-issue"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/import-issue.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,879 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.00029 $0.02879
Opus 5 $0.00015 $0.01439
Sonnet 5 $0.00006 $0.00576
Haiku 4.5 $0.00003 $0.00288

Measured 8d ago against content hash 155481077614, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

import-issue 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 8d 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.

.agents/skills/import-issue/SKILL.md · 230 lines

How it starts

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

导入 Issue

--agent 取值见 .agents/rules/task-management.md「合作者 token 规范」。

导入指定的 Issue 并创建任务。参数:issue 编号。

行为边界 / 关键规则

  • 本技能的唯一产出是 task.md
  • 不要编写或修改业务代码。仅做导入
  • 执行本技能后,你必须立即更新任务状态

任务入参短号别名

如果 {task-id} 入参匹配 ^[#]?[0-9]+$(裸数字或带 # 前缀),先读取 .agents/rules/task-short-id.md 的「SKILL 入参解析」段执行解析;后续命令视 {task-id} 为解析后的全长 TASK-YYYYMMDD-HHMMSS 形式。

步骤开始:记录开始时间

本技能会创建 task.md,开始时尚无文件可写。先在内存记录开始时间 started_atdate "+%Y-%m-%d %H:%M:%S%z" | sed 's/\([+-][0-9][0-9]\)\([0-9][0-9]\)$/\1:\2/');在最后写活动日志时一次性补两条——started 行用 started_at、done 行用完成时间,二者同基名(started 行 action 加 [started] 后缀、note 用 started)。基名必须跟实际导入场景一致:

# 场景 B:新 Issue 导入
- {started_at} — **Import Issue [started]** by {agent} — started
- {done_at} — **Import Issue** by {agent} — {完成说明}

# 场景 C:从历史 Issue 评论恢复
- {started_at} — **Import Issue (Recovered) [started]** by {agent} — started
- {done_at} — **Import Issue (Recovered)** by {agent} — {完成说明}

ai task log 会按基名把两条配对成一行(进行中 → 已完成)。约定见 .agents/rules/task-management.md 的「Activity Log started / done 双标记约定」。

执行流程

1. 获取 Issue 信息

执行前先读取 .agents/rules/issue-pr-commands.md,并按其中的前置步骤完成认证和代码托管平台检测;随后按其中的 “读取 Issue” 命令获取 Issue 信息。

提取:issue 编号、标题、描述、标签。

从 Issue 标题派生任务标题:按下方契约剥掉可选的单层前导 Conventional Commits 前缀,其余描述原文与原始语言保持不变。下方 fenced 契约是权威的、与语言无关的规则——在所有 import-issue 变体中保持逐字节一致:

# title-derivation-contract
strip-prefix: type(scope):
prefix-types: feat fix docs style refactor perf test build ci chore revert
single-layer-only: true
preserve-body-colon: true
keep-when-no-prefix: true
example-strip: "feat(meta): create-pr summary" => "create-pr summary"
example-keep: "修复某问题" => "修复某问题"
example-single-layer: "feat: add A: B" => "add A: B"

只剥第一层前缀,且仅当前导 token 是 prefix-types 之一、其后可带 (scope)!,再接 : 和至少一个空格;描述正文中的冒号永远不算前缀。

2. 检查已有任务

2.1 搜索 .agents/workspace/active/ 中是否已有链接到此 Issue 的任务。

  • 如果找到,默认复用现有任务(场景 A),不询问用户;在最终告知中明确「已复用现有任务 {task-id},未重新导入」。若用户希望重新导入,需要先手动归档/删除已有任务再次执行本技能
  • 如果未找到,继续执行 2.2

Read the full file on GitHub · 230 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. 8d ago First seen · 230 lines · 29 tokens per session scan A 155481077614

Subscribe to this mod's changes

import-issue is a skill published in the GitHub repository fitlab-ai/agent-infra (83 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 2,879 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