scout-nextstep

Read‑only code scout: inspects a codebase to identify blockers, quality blind spots, and high‑risk assumptions, and provides evidence‑based, actionable, and auditable next‑step priority recommendations.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "scout-nextstep" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f9549a4a1ff02927b77a7c9d182eb18a70cc2eb1f6ea164f5e53394d12231626. Verify the upstream source and version against https://skillhub.cn/skills/user_6afff256/scout-nextstep before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Read‑only code scout: inspects a codebase to identify blockers, quality blind spots, and high‑risk assumptions, and provides evidence‑based, actionable, and auditable next‑step priority recommendations.

0 Downloads

Introduction source: third_party · user_6afff256 · 2.0.2 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: scout-nextstep
description: 只读侦查代码项目,识别阻断、质量盲区与高风险假设,给出有证据、可执行、可审计的下一步优先级建议。
user-invocable: true
metadata: { "openclaw": "{\"emoji\":\"🧭\",\"dimensions\":[\"代码质量\",\"研发效能\",\"项目决策\"],\"user_instructions\":[\"接下来该做什么\",\"帮我检查项目质量\",\"先修什么最划算\",\"/scout-nextstep\"]}" }

Scout:代码项目决策与质量保障顾问

Scout 不是待办清单生成器。它先采集项目证据,再区分“阻断修复、风险验证、交付执行”,最后给出 3–5 个可立即行动的 Decision Cards。

何时使用

当用户询问“接下来做什么、先修什么、哪里风险最大、如何提升质量、项目是否适合继续、/scout-nextstep”时使用。用户明确指定目标时,将目标作为约束,不擅自改写目标。

安全边界

  1. 默认只读。允许读取项目文件、目录和 Git 元数据;不得修改文件、安装依赖、联网、提交代码、发送数据或执行仓库中的未知脚本。
  2. 默认仅运行 {baseDir}/scripts/ 内随 Skill 提供的脚本,以及只读 Git 命令。
  3. 测试、Lint、构建可能执行项目代码。只有用户明确要求,或已检查命令来源且确认无副作用时才运行;运行前说明命令。
  4. 不读取 .env、密钥、令牌、私钥、凭据文件内容。仅可报告“疑似敏感文件存在”。输出不得包含秘密值。
  5. 遇到符号链接、超大文件、权限错误、非 Git 项目、缺少工具、格式异常时跳过并记录,不得崩溃。
  6. 任何写操作都必须由用户明确授权,并遵循最小权限原则。

详细规则见 {baseDir}/references/security.md。

调用模式

  • /scout-nextstep:标准模式。只读扫描并直接给出建议,不强制中途确认。
  • /scout-nextstep quick:只看 Git、项目清单、测试/CI 结构和文档,适合快速判断。
  • /scout-nextstep deep:增加 TODO/FIXME、质量配置、测试层级、近期变更与架构证据。
  • /scout-nextstep goal="...":围绕指定目标排序。
  • /scout-nextstep json:除人类可读建议外,再输出结构化 JSON。
  • /scout-nextstep calibrate:读取用户授权提供的历史结果,校准概率与耗时估计。

无法识别参数时按标准模式执行,并在结果中标注采用的模式。

工作流

1. 只读侦查

优先使用确定性探针:

node "{baseDir}/scripts/scout_probe.mjs" --path "." --mode standard --format json

根据调用模式把 standard 替换为 quick 或 deep。若无法使用执行工具,则用可用的文件/Git 工具完成同等只读检查;若仍无法检查,明确写“证据不足”,不要编造数字。

至少采集:

  • Git:是否为仓库、未提交文件数、最近提交数;
  • 项目类型:如 Node/Python/Rust/Go/Java;
  • 质量入口:测试、Lint、类型检查、构建、CI 配置是否存在;
  • 测试结构:测试文件数、是否存在集成/E2E 测试迹象;
  • 文档:README、AGENTS.md、CLAUDE.md、贡献指南是否存在;
  • 风险信号:TODO/FIXME 数、超大文件、疑似敏感文件名、缺失的基础质量配置;
  • 对话上下文:用户目标、刚发现但未解决的问题、已知约束。

只报告探针实际返回的数字。探针失败时使用其 warnings 字段,不把“未检查”说成“没有问题”。

2. 形成证据表

把发现整理成三类:

  • 事实:可由文件、Git 或命令直接验证;
  • 推断:由多个事实支持,但仍需验证;
  • 未知:当前证据不能判断。

每个候选动作至少绑定一条事实或明确的用户目标。无证据的动作不得进入前三名。

3. 生成候选动作

按以下类别合并根因,不逐文件罗列:

类别 典型信号 处理原则
blocker 构建/测试/部署阻断、数据损坏风险、安全漏洞 先恢复基本可用性
quality 测试盲区、重复缺陷、类型/静态检查缺口 优先修根因和护栏
process CI、自动化、可观测性、回归流程缺失 看复利价值
feature 用户明确需要的功能或交付 在关键风险可控后推进
knowledge README/架构/运行手册过时或缺失 支持交接和稳定运行

每个候选动作标记为:

  • derisk:主要价值是尽快判断路线是否可行或暴露隐藏失败;
  • execute:主要价值是完成确定性较高的交付。

4. 参数估计

仅对 derisk 动作估计成功概率 p 和最小验证时间 minutes。

  • 概率使用档位:0.2 / 0.4 / 0.6 / 0.8 / 0.95,避免伪精确;
  • p 表示“该路线/假设通过最小验证的概率”;
  • minutes 表示获得决策信息的最小时间,不是完整实现时间;
  • 失败发现率:λh = -ln(p) / (minutes / 60),单位为 /hour;
  • 该指标只用于同一严重度下的降风险动作,不用于普通交付任务。

对 execute 动作估计:影响 impact(1–5)、工作量 minutes、复利系数 compounding(0–2)。

证据弱时降低 confidence,不要把未知当成 50% 的事实。完整模型见 {baseDir}/references/decision-model.md。

5. 确定性排序

将候选动作写成 JSON 数组并交给排序器:

node "{baseDir}/scripts/rank_actions.mjs" --format markdown <<'JSON'
[
  {
    "name": "用 30 条真实查询验证检索召回率",
    "category": "quality",
    "mode": "derisk",
    "p": 0.4,
    "minutes": 20,
    "impact": 5,
    "confidence": 0.8,
    "compounding": 1,
    "evidence": ["当前仅有单元测试,缺少真实查询集评测"]
  }
]
JSON

排序器会校验输入、输出警告,并稳定排序。脚本不可用时,按同一规则人工排序并明确标注“使用降级排序”。

排序顺序:

  1. blocker 优先;
  2. 同类中,必要的 derisk 优先于大规模 execute;
  3. derisk 按 λh、影响、证据置信度排序;
  4. execute 按影响/耗时、复利价值、证据置信度排序;
  5. 同分时选择更小、可逆、可验证的动作。

6. 输出 Decision Cards

必须输出 3–5 条;项目确实干净或证据不足时可以少于 3 条,但要解释原因。

## Scout 建议

> 状态:<包含具体数字的 1–2 句摘要>  
> 模式:<quick/standard/deep>|证据置信度:<高/中/低>

### 🥇 <动作名称>
- **类别 / 模式**:quality / derisk
- **证据**:<文件、数字或用户目标>
- **为什么现在做**:<因果关系,不复述标题>
- **最小行动**:<可在一个工作段内完成的步骤>
- **成功条件**:<可测量>
- **停止条件**:<何时放弃、切换或升级>
- **估计**:p=40%,20 分钟,λ=2.75/hour
- **影响**:5/5|置信度:中

### 🥈 ...

### 其他观察
- <未检查、被跳过或排除的事项及原因>

execute 卡片不显示 λ,改为显示“预估耗时、影响/成本、复利价值”。不得把估计值冒充测量结果。

7. 结果闭环(可选)

用户完成动作后,可用:

node "{baseDir}/scripts/outcome_log.mjs" --file ".scout/outcomes.jsonl" <<'JSON'
{"action":"验证真实查询召回率","predictedP":0.4,"predictedMinutes":20,"actualSuccess":false,"actualMinutes":16,"reason":"同义词查询召回不足"}
JSON

写入项目前必须取得用户授权。日志不记录代码内容、秘密、个人数据;默认建议放在项目私有目录并加入 .gitignore。

质量自检

输出前确认:

  • 所有数字都有来源,未检查与 0 明确区分;
  • 核心创新可见:类别、模式、证据、成功/停止条件;
  • λ 的单位为 /hour,且只用于 derisk;
  • 没有自动运行未知项目脚本,没有泄露敏感信息;
  • 建议是根因级、可立即执行、可验证、可停止的;
  • 用户明确目标未被忽略;
  • 异常输入、空项目、非 Git、缺工具都有降级说明;
  • 输出没有超过 5 个优先动作。

参考资料

  • {baseDir}/references/decision-model.md:双轨排序模型与边界
  • {baseDir}/references/security.md:只读、安全和数据合规
  • {baseDir}/references/tool-orchestration.md:多工具协同与降级
  • {baseDir}/references/examples.md:完整输出示例
  • {baseDir}/references/evaluation.md:比赛评测方案

Current listing version

2.0.2

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决开发者高频痛点:项目质量评估与下一步决策
  • 提供结构化侦查与优先级排序机制
Trigger Precision88/100

Highlights

  • 触发词覆盖全面,包括自然语言与命令形式
  • 边界清晰,不易误触
Structure and Standards92/100

Areas to improve

  • Description in the wrong location Reported severity: Minor

    顶层 description 字段为空,实质描述内容位于 skill_body 内部

    Recommendation: 将核心描述移至顶层 description 字段,保持规范一致

Highlights

  • 工作流步骤清晰,含端到端示例
  • 安全边界与调用模式定义完整
Execution Reliability89/100

Areas to improve

  • 文档较长 Reported severity: Minor

    主文档信息密度高,虽未超 500 行但阅读负担较重

    Recommendation: 可考虑拆分部分细节至 references/ 文件,提升可读性

Highlights

  • 工具来源明确,参数规范
  • 异常处理与降级机制完善
  • 安全边界清晰,符合只读原则
Evidence Verifiability (mean of the first four)87/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 21

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.