360 Secure SkillHub
360 安全技能中心

Project Truth Audit

该 Skill 要求从项目根目录盘点文档、配置、入口、测试、脚本与构建产物,按 verified、partial、stale、contradicted、unknown 核对项目声明、执行路径和证明,输出分级发现、真值表、未知项及最小验证步骤;默认只审计,不修改文件。

uncmatteth
uncmatteth
热度 16.16
最近更新 2026-06-25 00:43:29
分类:开发依赖:代码执行 / 读写文件应用场景:代码审查 / 调试排错 / 研究 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add project-truth-audit
Metadata
name
project-truth-audit
description
Audit a whole repo or project from the root before claims or edits. Use when the user asks for a project truth audit, whole-repo reality audit, stop-and-think pass, reality check, contract drift audit, stale docs audit, half-finished implementation audit, unsupported-claims audit, or asks what is wrong with the actual system shape.

Project Truth Audit

Use this when the user wants the agent to stop, inspect the actual project, and compare what the system claims with what the code, docs, tests, install paths, release paths, and live probes actually prove.

This is an audit mode, not a normal module map. It should catch bad assumptions, nearby-file tunnel vision, stale documentation, optional-vs-required drift, half-implemented contracts, and claims of success without proof.

Contract

The audit must report current project truth from the requested scope. Memory, handoffs, comments, README claims, old reports, and previous-agent summaries are hints only. Current files, current command output, current tests, current repo state, and current live probes win.

Do not edit files during the audit unless the user explicitly asked for fixes. If fixes are requested, audit first, then change only the named scope after you can name the affected files and the proof command for the fix.

Workflow

  1. Resolve the requested root and scope.

    • Read project rules first: AGENTS.md, CLAUDE.md, CONTEXT.md, or any path-specific instruction files that apply.
    • Keep named paths, products, branches, refs, and only constraints binding.
    • If the requested root is unclear or missing, stop and report that before substituting another project.
  2. Build the truth map from the root, not just the mentioned file.

    • Inventory top-level structure with rg --files, find, package manifests, build configs, CI configs, docs, scripts, tests, and generated-output boundaries.
    • Identify the project's claims: README, install docs, release docs, website copy, public package metadata, examples, comments, and handoff notes.
    • Identify enforcement: runtime entrypoints, config loading, validation, API boundaries, migrations, build scripts, deploy scripts, and error paths.
    • Identify proof: unit tests, integration tests, smoke tests, CI workflows, local commands, packaged artifacts, live endpoints, or registry checks.
  3. Trace high-risk seams one level beyond the obvious file.

    • Entry points and caller/callee paths.
    • Required vs optional config and environment variables.
    • Install, packaging, release, deployment, and generated artifacts.
    • Auth, secrets, payments, network calls, database writes, file deletion, migrations, and other irreversible side effects.
    • Fallbacks, TODOs, placeholders, dead scripts, duplicate implementations, stale docs, and unchecked assumptions.
  4. Compare claim, enforcement, and proof.

    • Mark each important contract as verified, partial, stale, contradicted, or unknown.
    • Treat passing tests as proof only for the behavior they actually exercise.
    • Treat docs and comments as claims, not proof.
    • Separate source-repo truth from installable artifact, deployed site, published package, registry, or live-service truth.
  5. Report before fixing.

    • Findings come first, ordered by severity and grounded in file paths, line numbers, commands, or live-probe output.
    • Include the smallest proof command that would validate each fix.
    • If the user asked for implementation after the audit, state the planned edit scope before patching.

Output Format

Return:

  • Scope: requested root, branch/ref if relevant, and any exclusions.
  • Read: important docs, configs, entrypoints, tests, scripts, and artifacts inspected.
  • Proof: commands or live probes run, with pass/fail/blocked status.
  • Findings: severity-ordered issues. For each issue include claim, actual, impact, evidence, and fix/proof.
  • Truth table: important claims with claim, enforcement, proof, and status.
  • Unknowns: what could not be verified and why.
  • Next: the smallest safe fix or proof step, if any.

Credit

Inspired by Matt Pocock-style agent skills and the /zoom-out idea, then extended into a stricter whole-project truth audit that compares claims, enforcement, and proof.

Anti-Patterns

  • Do not summarize only the nearby module and call it whole-project context.
  • Do not trust memory, handoffs, generated reports, or README language without checking current files or commands.
  • Do not call something ready, final, rebuilt, reviewed, or verified without fresh proof.
  • Do not broaden scope into unrelated repos, cleanup, rewrites, or tool installation.
  • Do not collapse partial, stale, unknown, and contradicted into a single vague "needs work" bucket.
  • Do not hand-edit built artifacts and present them as source truth.