close-codescan

close-codescan is a command for Claude Code from fitlab-ai/agent-infra. It costs 10 tokens per session (71 once invoked), scanned A, original, MIT.

A command for closing Code Scanning alerts, which report possible security problems found in source code, while recording a reason.

In plain words
What is it for?
Use it to close a Code Scanning alert and explain why it was closed.
Why use it?
It provides a documented way to resolve an alert when it should no longer remain open.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/fitlab-ai/agent-infra/close-codescan
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 close-codescan

README.md
[![agentmods](https://agentmods.dev/badge/commands/fitlab-ai/agent-infra/close-codescan.svg)](https://agentmods.dev/commands/fitlab-ai/agent-infra/close-codescan)
Your own site
<a href="https://agentmods.dev/commands/fitlab-ai/agent-infra/close-codescan"><img src="https://agentmods.dev/badge/commands/fitlab-ai/agent-infra/close-codescan.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 71 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00010 $0.00071
Opus 5 $0.00005 $0.00036
Sonnet 5 $0.00002 $0.00014
Haiku 4.5 $0.00001 $0.00007

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

Security

Grade A, and why

close-codescan 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/close-codescan.md · 10 lines

What it actually says

读取并执行 .agents/skills/close-codescan/SKILL.md 中的 close-codescan 技能。

严格按照技能中定义的所有步骤执行。

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. 6d ago First seen · 10 lines · 10 tokens per session scan A e12ffff357d4

Subscribe to this mod's changes

close-codescan is a command published in the GitHub repository fitlab-ai/agent-infra (83 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 71 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 commands, from other repositories

sdd

Gemini CLI command "sdd" from AsiaOstrich/universal-dev-standards, a project described as: Universal, language-agnostic development standards for software projects. Includes coding standards, git workflows, testing guidelines, documentation structure, and AI collaboration rules.

AsiaOstrich/universal-dev-standards · 0 tokens

atdd

Gemini CLI command "atdd" from AsiaOstrich/universal-dev-standards, a project described as: Universal, language-agnostic development standards for software projects. Includes coding standards, git workflows, testing guidelines, documentation structure, and AI collaboration rules.

AsiaOstrich/universal-dev-standards · 0 tokens

refactor

Gemini CLI command "refactor" from AsiaOstrich/universal-dev-standards, a project described as: Universal, language-agnostic development standards for software projects. Includes coding standards, git workflows, testing guidelines, documentation structure, and AI collaboration rules.

AsiaOstrich/universal-dev-standards · 0 tokens

bdd

Gemini CLI command "bdd" from AsiaOstrich/universal-dev-standards, a project described as: Universal, language-agnostic development standards for software projects. Includes coding standards, git workflows, testing guidelines, documentation structure, and AI collaboration rules.

AsiaOstrich/universal-dev-standards · 0 tokens

dev-workflow

Gemini CLI command "dev-workflow" from AsiaOstrich/universal-dev-standards, a project described as: Universal, language-agnostic development standards for software projects. Includes coding standards, git workflows, testing guidelines, documentation structure, and AI collaboration rules.

AsiaOstrich/universal-dev-standards · 0 tokens

tdd

Gemini CLI command "tdd" from AsiaOstrich/universal-dev-standards, a project described as: Universal, language-agnostic development standards for software projects. Includes coding standards, git workflows, testing guidelines, documentation structure, and AI collaboration rules.

AsiaOstrich/universal-dev-standards · 0 tokens