agent-infra: Skill for Claude Code

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

import-dependabot is a skill for Claude Code, Codex from fitlab-ai/agent-infra. It costs 41 tokens per session (1,552 once invoked), scanned A, original, MIT.

A workflow for importing a Dependabot security alert into a tracked repair task. Dependabot is a service that reports vulnerable software dependencies used by a project.

In plain words
What is it for?
Use it to retrieve an alert's vulnerability and dependency details, create the task skeleton, and update the task status and activity log.
Why use it?
It turns an alert into an assigned task record without changing application code or falsely marking the alert as fixed.

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-dependabot/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-dependabot

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/import-dependabot"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/import-dependabot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,552 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.00041 $0.01552
Opus 5 $0.00020 $0.00776
Sonnet 5 $0.00008 $0.00310
Haiku 4.5 $0.00004 $0.00155

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

Security

Grade A, and why

import-dependabot 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 3d 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-dependabot/SKILL.md · 141 lines

How it starts

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

导入 Dependabot 安全告警

导入指定的 Dependabot 安全告警并创建修复任务。

行为边界 / 关键规则

  • 本技能仅负责导入告警并创建任务骨架 —— 不直接修改业务代码或关闭告警
  • 不要自动提交。绝不自动执行 git commitgit add
  • 执行本技能后,你必须立即更新 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):

- {started_at} — **Import Dependabot [started]** by {agent} — started
- {done_at} — **Import Dependabot** by {agent} — {完成说明}

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

执行流程

1. 获取告警信息

执行前先读取 .agents/rules/security-alerts.md,然后运行 agent-infra-internal platform-security read --kind dependabot --number {alert-number},解析其 JSON 结果获取告警详情。

提取关键信息:

  • number:告警编号
  • state:状态(open/dismissed/fixed)
  • security_advisory:安全公告详情(ghsa_id、cve_id、severity、summary、description)
  • dependency:受影响的依赖(包名、生态系统、清单路径)
  • security_vulnerability:受影响版本范围、首个修复版本

2. 创建任务目录和文件

检查 .agents/workspace/active/ 中是否已存在该告警的任务。

  • 如果找到,默认复用现有任务,不询问用户;在最终告知中明确「已复用现有任务 {task-id},未重新导入」。如需重新导入,需先归档/删除已有任务
  • 如果未找到,创建新任务

创建目录:.agents/workspace/active/TASK-{yyyyMMdd-HHmmss}/

任务元数据需包含:

id: TASK-{yyyyMMdd-HHmmss}
security_alert_number: <alert-number>
cve_id: <CVE-ID>
ghsa_id: <GHSA-ID>

3. 更新任务状态

获取当前时间:

date "+%Y-%m-%d %H:%M:%S%z" | sed 's/\([+-][0-9][0-9]\)\([0-9][0-9]\)$/\1:\2/'

更新 task.md:current_step -> requirement-analysis

  • 追加## Activity Log(不要覆盖之前的记录):
    - {YYYY-MM-DD HH:mm:ss±HH:MM} — **Import Dependabot** by {agent} — Dependabot alert #{alert-number} imported
    

4. 完成校验

先调用短号分配(保证注册表 entry 已分配;完成校验阶段会读取):

node .agents/scripts/task-short-id.js alloc "$task_id"

Read the full file on GitHub · 141 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. 3d ago Changed 0f7ef6c9cde0
  2. 7d ago Changed 80b366b7817f
  3. 11d ago First seen · 141 lines · 41 tokens per session scan A e758894a61e5

Subscribe to this mod's changes

import-dependabot is a skill published in the GitHub repository fitlab-ai/agent-infra (83 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 1,552 once invoked, about $0.0002 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

work

Execute an approved wish plan — orchestrate subagents per task group with fix loops, validation, and review handoff.

automagik-dev/genie · 26 tokens

preview-design

Render a real artifact through this branch's local MERIDIAN design code (not the published npm package) so the team can test the new Design Convention on the document / handoff / platform surfaces before it ships. Use for /preview-design, "preview the design convention", "render this with the new design", or Design…

egregore-labs/egregore · 71 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

done

Close an increment: ledger check, specweave verify, optional review, then specweave complete. Use when all tasks are done and saying "close increment", "we are done", or "finish up".

anton-abyzov/specweave · 0 tokens

xiaohongshu-image-creator

An image-making assistant for Xiaohongshu, a Chinese social platform for lifestyle, product, and educational posts. It creates vertical covers and supporting images matched to the post’s topic, audience, and visual style.

huangrichao2020/pretty-skills · 121 tokens

atomic-tdd

Test-first discipline. Auto-triggers on "let's implement X", "add feature Y", "fix bug Z", "write a test for", "implement", "build out", and similar pre-code-change phrases. Iron rule: failing test exists before production code. Skip only for pure docs/config changes with an explicit "skipped because:" note. Explicit…

damusix/atomic-claude · 142 tokens