Agent skill

Analyze Codescan

by ModelEngine-Group in ModelEngine-Group/fit-framework

分析 Code Scanning (CodeQL) 告警,评估安全风险并创建修复任务。当用户要求分析 Code Scanning 告警、CodeQL 告警时触发。参数为告警编号。

MITAuto-check passedSecurity

Install Analyze Codescan

skills CLI
$ npx skills add ModelEngine-Group/fit-framework --skill analyze-codescan -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ModelEngine-Group/fit-framework analyze-codescan --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ModelEngine-Group/fit-framework.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/analyze-codescan .claude/skills/analyze-codescan && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
analyze-codescan
GitHub stars
2.1k
Token cost
~187 tokens
SKILL.md length
49 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

分析 Code Scanning (CodeQL) 告警,评估安全风险并创建修复任务。当用户要求分析 Code Scanning 告警、CodeQL 告警时触发。参数为告警编号。

  • Works in 7 steps: 获取告警信息 → 创建任务目录和文件,基于 .agents/templates/task.md 模板。 → 定位和分析源码 → …
  • Tasks that involve Static analysis and SAST
  • Calls gh

What it does

Analyze Codescan is an agent skill from ModelEngine-Group/fit-framework. 分析 Code Scanning (CodeQL) 告警,评估安全风险并创建修复任务。当用户要求分析 Code Scanning 告警、CodeQL 告警时触发。参数为告警编号。

Its SKILL.md is about 190 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Static analysis and SAST. The repository describes itself as: FIT: 企业级AI开发框架,提供多语言函数引擎(FIT)、流式编排引擎(WaterFlow)及Java生态的LangChain替代方案(FEL)。原生/Spring双模运行,支持插件热插拔与智能聚散部署,无缝统一大模型与业务系统。 The licence is MIT.

When your agent uses it

  • Tasks that involve Static analysis and SAST

Example prompts

  • “/analyze-codescan”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 获取告警信息
  2. 创建任务目录和文件,基于 .agents/templates/task.md 模板。
  3. 定位和分析源码
  4. 评估安全风险(代码路径可达性、可利用性、影响程度)。
  5. 输出分析文档到 analysis.md。
  6. 更新任务状态。
  7. 提示下一步: plan-task 设计修复方案,或 close-codescan 关闭告警。

What it can do on your machine

Read from SKILL.md and the folder at commit e2f285d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Analyze Codescan loads about 187 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 49 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~187

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ModelEngine-Group/fit-framework at commit e2f285d, republished under its MIT licence (© ModelEngine-Group). 49 words, ~187 tokens.

Download SKILL.mdSave it as .claude/skills/analyze-codescan/SKILL.md (or your agent's skills folder).
name
analyze-codescan
description
分析 Code Scanning (CodeQL) 告警,评估安全风险并创建修复任务。当用户要求分析 Code Scanning 告警、CodeQL 告警时触发。参数为告警编号。

分析 Code Scanning 告警

分析指定的 Code Scanning(CodeQL)告警,评估安全风险并创建修复任务。

执行步骤

  1. 获取告警信息:

    bash
    gh api repos/{owner}/{repo}/code-scanning/alerts/<alert-number>

    提取: rule (id/severity/description), tool (name), most_recent_instance (location/message)

  2. 创建任务目录和文件,基于 .agents/templates/task.md 模板。

  3. 定位和分析源码:

    • 根据 most_recent_instance.location 定位源码文件和行号
    • 读取告警所在的源码上下文
    • 理解 CodeQL 规则的含义和检测逻辑
    • 检查是否有其他位置也存在相同问题
  4. 评估安全风险(代码路径可达性、可利用性、影响程度)。

  5. 输出分析文档到 analysis.md。

  6. 更新任务状态。

  7. 提示下一步: plan-task 设计修复方案,或 close-codescan 关闭告警。

注意: Critical/High 级别立即处理,Medium 计划处理,Low 可延后。

© ModelEngine-Group, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/analyze-codescan of ModelEngine-Group/fit-framework.

Open the folder on GitHubat commit e2f285d

Compare with similar skills

Analyze Codescan next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Analyze Codescan compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Analyze Codescan this skillModelEngine-Group/fit-framework2.1k—~187Automated safety check: PassMIT
Semgrepvigolium/piolium1381 repos~2.4kAutomated safety check: NotesMIT
C To AstNarwhal-Lab/MagicSkills316—~1.1kAutomated safety check: PassMIT
Semgrep Security Scantrailofbits/skills7.4k—~3.7kAutomated safety check: NotesCC-BY-SA-4.0
LLM Sast ScannerSunWeb3Sec/llm-sast-scanner286—~6.2kAutomated safety check: PassNone
Sast SemgrepAgentSecOps/SecOpsAgentKit2192 repos~2.4kAutomated safety check: PassCustom licence

Similar skills

  • Semgrep

    vigolium/piolium

    Run Semgrep static analysis scan on a codebase using parallel subagents.

    138 GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check: notes
  • C To Ast

    Narwhal-Lab/MagicSkills

    Parse C source code into an Abstract Syntax Tree (AST). An agent skill from Narwhal-Lab/MagicSkills.

    316 GitHub stars~1.1k tokensUpdated 6 mo ago
    SecurityAuto-check passed
  • Semgrep Security Scan

    trailofbits/skills

    Official

    Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.

    7.4k GitHub stars~3.7k tokensUpdated 5 days ago
    SecurityAuto-check: notes
  • LLM Sast Scanner

    SunWeb3Sec/llm-sast-scanner

    General-purpose Static Application Security Testing (SAST) skill for code vulnerability analysis.

    286 GitHub stars~6.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    219 GitHub starsUsed in 2 repos~2.4k tokens
    SecurityAuto-check passed
  • Wp Phpstan

    Automattic/agent-skills

    A skill your agent uses when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins/themes/sites): phpstan.neon setup, baselines, WordPress-specific typing, and…

    211 GitHub starsUsed in 1 repo~1k tokens
    SecurityAuto-check passed

More from ModelEngine-Group/fit-framework

All 21 skills in this repo
  • Commit

    ModelEngine-Group/fit-framework

    提交当前变更到 Git,包含版权头年份检查和任务状态更新。当用户要求提交代码、git commit、保存变更时触发. An agent skill from ModelEngine-Group/fit-framework.

    2.1k GitHub stars~268 tokensUpdated 6 mo ago
    Auto-check passed
  • Create Release Note

    ModelEngine-Group/fit-framework

    从 PR/commit 中自动生成结构化的 Release Notes,并可选创建 GitHub Draft Release。支持 x.y.0 版本合并前一 minor 系列的 release notes。当用户要求生成发布说明、创建 release notes 时触发。参数为版本号和可选的上一版本号。

    2.1k GitHub stars~255 tokensUpdated 6 mo ago
    Auto-check passed
  • Test Integration

    ModelEngine-Group/fit-framework

    执行 FIT Framework 集成测试(服务启动 + 接口验证),需要先完成 Maven 构建。当用户要求运行集成测试、验证服务接口时触发。

    2.1k GitHub stars~218 tokensUpdated 6 mo ago
    Auto-check passed
  • Close Codescan

    ModelEngine-Group/fit-framework

    关闭 Code Scanning (CodeQL) 告警,需提供合理理由。当用户要求关闭 Code Scanning 告警、dismiss CodeQL 告警时触发。参数为告警编号。

    2.1k GitHub stars~185 tokensUpdated 6 mo ago
    Auto-check passed
  • Create PR

    ModelEngine-Group/fit-framework

    创建 Pull Request 到指定或自动推断的目标分支。当用户要求创建 PR、提交 PR、发起合并请求时触发。可选参数为目标分支。

    2.1k GitHub stars~179 tokensUpdated 6 mo ago
    Auto-check passed
  • Create Task

    ModelEngine-Group/fit-framework

    根据用户的自然语言描述创建任务并执行需求分析。当用户描述一个新功能、Bug 或改进需求,要求创建任务时触发。参数为任务的自然语言描述。

    2.1k GitHub stars~189 tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about Analyze Codescan

What does Analyze Codescan do?

分析 Code Scanning (CodeQL) 告警,评估安全风险并创建修复任务。当用户要求分析 Code Scanning 告警、CodeQL 告警时触发。参数为告警编号。. Analyze Codescan is an agent skill from ModelEngine-Group/fit-framework.

When should I use Analyze Codescan?

Analyze Codescan fits situations like: tasks that involve Static analysis and SAST.

How do I install Analyze Codescan in Claude Code?

Run `npx skills add ModelEngine-Group/fit-framework --skill analyze-codescan -a claude-code`. Or copy the skill folder (.agents/skills/analyze-codescan in ModelEngine-Group/fit-framework) into .claude/skills/analyze-codescan in your project. Claude Code loads it when a task matches its description.

How do I install Analyze Codescan in Codex?

Run `npx skills add ModelEngine-Group/fit-framework --skill analyze-codescan -a codex`. Or copy the skill folder (.agents/skills/analyze-codescan in ModelEngine-Group/fit-framework) into .agents/skills/analyze-codescan in your project. Codex loads it when a task matches its description.

Can I use Analyze Codescan in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ModelEngine-Group/fit-framework --skill analyze-codescan -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/analyze-codescan, .gemini/skills/analyze-codescan, .github/skills/analyze-codescan and .opencode/skills/analyze-codescan in your project.

What does Analyze Codescan need to run?

Going by SKILL.md and its folder, Analyze Codescan needs the command-line tools its instructions call (gh).

Does Analyze Codescan access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Analyze Codescan safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Analyze Codescan use?

Analyze Codescan is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Analyze Codescan use?

About 187 tokens (SKILL.md is roughly 748 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Analyze Codescan?

Skills that share tags, products or a category with Analyze Codescan: Semgrep (vigolium/piolium, 138 stars), C To Ast (Narwhal-Lab/MagicSkills, 316 stars), Semgrep Security Scan (trailofbits/skills, 7.4k stars) and LLM Sast Scanner (SunWeb3Sec/llm-sast-scanner, 286 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Analyze Codescan?

ModelEngine-Group (a GitHub organization) maintains it in ModelEngine-Group/fit-framework, which has 2,117 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on March 13, 2026.

Source: ModelEngine-Group/fit-framework on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.