static-bug-validation

Validate and link static bug analysis placeholders to dynamic bug records.

207|45|Updated May 27, 2025
One-click install
npx skills add https://github.com/XS-MLVP/UCAgent --skill static-bug-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: static-bug-validation
Source: https://github.com/XS-MLVP/UCAgent/tree/main/ucagent/lang/zh/skills/unitytest/static-bug-validation
Command: npx skills add https://github.com/XS-MLVP/UCAgent --skill static-bug-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

本技能为静态 Bug 分析阶段的占位标签 <LINK-BUG-[BG-TBD]> 提交最终动态验证结果前的对齐工作。通过提供一套规范化流程,帮助工程团队在静态分析与动态验证之间建立稳定的一一或一对多的追踪关系。

Core Features & Use Cases

  • 支持从待验证的静态 Bug 条目中识别需要更新的 <LINK-BUG-[BG-TBD]> 标签并定位涉及的 FG/FC/CK/源代码定位信息。
  • 提供凭借已有的动态验证结果来回填静态 Bug 的能力,或者在没有结果时指导记录新的动态 Bug。
  • 保障在回填前的多项校验:静态 Bug 是否存在于汇总与详情中、链接目标是否已在 bug_analysis.md 存在等。

Quick Start

只需通过 RunSkillScript 调用脚本,将 -SBG 设置为 BG-STATIC-xxx-XXX,-LBG 指定要回填的一个或多个 BG-标签(或 BG-NA),脚本将完成更新并输出结果路径。

Frequently Asked Questions about static-bug-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I link static bug analysis results to dynamic bug verification records?

To link static bug analysis to dynamic verification, this Skill automates identifying <LINK-BUG-[BG-TBD]> placeholders and applying final BG tags. It enforces correct FG/FC/CK/BG mappings and validates existence in bug_analysis.md to preserve the static_bug_analysis.md structure.

What is the best way to track static and dynamic bugs with consistent FG/FC/CK mappings?

Tracking static and dynamic bugs with consistent mappings requires validating FG/FC/CK/BG relationships before applying links. This Skill automates this by checking that static bugs exist in summary and detail records, ensuring stable one-to-one or one-to-many tracking relationships.

How do I record new dynamic bugs when no existing dynamic verification result is available?

To record new dynamic bugs without existing results, this Skill guides the documentation process during the linking workflow. It handles steps from identifying placeholders to recording new dynamic bugs and applying final links back to the static analysis file.

How do I backfill a static bug placeholder using a specific dynamic BG tag?

To backfill a static bug placeholder, call the script with the -SBG parameter set to BG-STATIC-xxx-XXX and -LBG set to the target BG tag or BG-NA. The script completes the update and outputs the resulting file path.

Does this bug validation script require any external dependencies to run?

No external dependencies are required to run this bug validation script. It operates independently to enforce correct FG/FC/CK/BG mappings, validate existence in bug_analysis.md, and preserve the static_bug_analysis.md structure.

Why does static bug linking fail when the target BG tag is missing from bug_analysis.md?

Static bug linking fails because this Skill enforces multiple validations before backfilling, including verifying that the link target already exists in bug_analysis.md. This ensures the static_bug_analysis.md structure remains preserved without broken references.