360 Secure SkillHub
360 安全技能中心

diagnose

该 Skill 面向 Sigrid 系统,读取仓库根目录的 .sigrid/profile.md 或请求上下文,在可维护性与架构两种模型中选择,并依据参考文件给出系统状态、最值得修复的属性或目录及具体修复建议;不修改代码,可生成交接供 autofix 使用。

分类:开发
Software-Improvement-Group
热度 0.00
最近更新 2026-11-26 11:47:46

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add software-improvement-group/agent-integrations/diagnose
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
diagnose
argument-hint
[maintainability|architecture]
description
Finds the one thing most worth fixing in a Sigrid system, or reports that nothing qualifies. Maintainability: the property and the candidates driving it. Architecture: the directory and the concrete fix. Never changes code; /autofix acts on its plan. Use for "what is our biggest maintainability problem", "where should we start improving code quality", "why is our architecture rating low", "diagnose the architecture of <directory>".

Diagnose

Diagnose covers the metrics-based models: it reports the system's state and names the one fix most worth making.

Which model

Take it from $ARGUMENTS or the request. None named: ask, maintainability or architecture.

Findings-based models (security, reliability, open-source) are a list to go through, not a state to diagnose. Say that in one line and hand off to /triage-findings <model>.

Context

Customer, system, and baseline branch come from .sigrid/profile.md at the repository root, or from the request. Missing: ask, suggest /setup, and write the answer back to the profile. Apply any behavior guidance the profile records.

Then follow the model's reference file:

  • maintainability: references/maintainability.md
  • architecture: references/architecture.md, which reads references/architecture-graph.md

Closing

When there is something to fix, write and offer a handover as described in ../autofix/references/handover.md, carrying what the model's reference file asks for.