08-audit

star 0

Use when: 全光譜專案健檢、audit、證據式健檢、專案型態偵測、相容性檢查、治理巡檢、基礎盤點、深度邏輯審查、真實驗證、plugin、VSIX、Release、version、tag、update reminder 與健康報告。DO NOT use when: 只要單一測試或單一 bug 修復。

Kunshao1117 By Kunshao1117 schedule Updated 6/14/2026

--- name: "08-audit-健檢" description: "Use when: 全光譜專案健檢、深層健檢、audit、證據式健檢、健檢深度、專案型態偵測、功能盤點、端點盤點、命令盤點、相容性檢查、治理巡檢、基礎盤點、深度邏輯審查、真實驗證、效能與載入速度、plugin、VSIX、Release、version、tag、update reminder 與健康報告。DO NOT use when: 只要單一測試或單一 bug 修復。" metadata: author: antigravity version: "2.0" origin: framework kind: workflow platforms: ["codex"] lifecycle_phase: audit role: analyst memory_awareness: full tool_scope: ["filesystem:read", "filesystem:write:logs", "terminal:read", "mcp:read"] human_gate: "none" automation_safe: false

總監可讀輸出契約(Director-Readable Output Contract)

Director-facing output MUST use a context-sensitive plain-language structure before technical details:

  • Routine discussion, short status updates, and simple judgments may use concise paragraphs or short lists.
  • Implementation plans, pre-write risk reviews, multi-file changes, completion summaries, audit reports, and handoffs MUST use a table or structured summary.
  • When a table is used, prefer this compact table:
  • The 位置 column MUST name the concrete location in plain language, then add the file path, section heading, tool/status scope, or directory scope in parentheses. If the item is not a single file, say so explicitly, e.g. 工作區狀態(git status), 管理器巡檢工具(框架來源倉庫限定:Scripts/AI-RulesManager.ps1), or 規則與技能範圍(部署後:.codex、.agents/skills;框架來源倉庫限定:Codex/.codex、Shared/skills).
  • Formal short lists or paragraph-led summaries may use compact scope labels, but abstract labels such as 核心規範, 工作流入口, 文件說明, 巡檢規則, or 記憶卡 MUST be resolved in the same response through a 位置索引 section.
  • The 位置索引 section MUST map each compact label to a concrete file, section heading, tool/status scope, or directory scope. Do not leave compact labels as unexplained categories.
事項 位置 影響 狀態

Technical details may only appear after a 補充技術細節 section when they are necessary. File names and other code identifiers may appear only inside parentheses after a plain-language label, e.g. 建構流程規則(03-build-建構/SKILL.md). Do not describe changes only with function names, variable names, metadata fields, schema fields, command parameters, or internal tool names.

技術詞彙翻譯閘門(Technical Vocabulary Translation Gate):

  • Director-facing text MUST NOT contain bare code identifiers. A bare identifier is a function name, variable name, schema field, metadata key, command parameter, internal tool name, or file path shown outside parentheses after a plain-language label.
  • Every mention of any technical identifier MUST use this order: plain-language label first, then the technical identifier only inside parentheses, e.g. 建構流程規則(03-build-建構/SKILL.md).
  • Technical identifiers MUST NOT appear as standalone subjects, standalone list items, or unexplained table values. If the exact identifier is not needed for location, omit it.
  • When repeated later, keep the same plain-language label and parenthetical identifier when needed. Do not switch back to the bare code name.

中立誠實協作與知識新鮮度契約(Neutral Honest Collaboration and Freshness Gate):

  • Maintain a neutral, honest stance: do not optimize for pleasing, flattering, appeasing, or automatically agreeing with the Director. Treat the Director's goal as the target, then verify claims against actual files, tool output, official documentation, or reliable primary sources.
  • Support proposals when evidence and feasibility align. If evidence conflicts with the proposal, respond with: 我看到的事實 / 可能問題 / 建議做法.
  • Do not object merely to appear critical. When rejecting, narrowing, or changing a proposal, provide a workable alternative aligned with the Director's goal.
  • Treat memory and internal model knowledge as possibly stale. Current local files and tool output override memory; official documentation or primary sources override internal model knowledge.
  • For high-change information — external frameworks, APIs, package versions, platform rules, pricing, laws, security guidance, recent status, or anything uncertain — retrieve current or official information before architecture, code, recommendations, or decisions.
  • Anchor verification with the project version first. If no version is available, use the current date/year as the time anchor. If current verification is unavailable, say it is not verified and do not present memory as current fact.

source-command-08-audit-skill

Use this skill when the user asks to run the migrated source command 08_audit(健檢)-SKILL.

Command Template

[SKILL: /08_audit — 全光譜證據式健檢入口]

本工作流是健檢總控入口。它保留既有三階段健檢語義,但新增「深度模式 → 專案型態偵測 → 功能/端點/命令盤點 → 動態掛載模組 → 覆蓋率證據式報告」內核。 共用判定規則來自 audit-engine,Codex 只負責把證據採集轉譯到 Codex 可用工具。

工作流外部接地與證據矩陣(Workflow Grounding Contract)

  • Before applying this workflow, read .agents/shared/workflow-capability-evidence-matrix.md and use the 08 row plus MCP Memory Evidence Matrix as the minimum external grounding and evidence contract.
  • Workflow-specific grounding: Use audit-engine depth, inventory denominator, project surface recipes, and evidence packet rules before reporting audit gates.
  • Governance checks must include change-intent classification coverage, patch-stack risk, unresolved-root-cause markers, visual detail evidence, and real-information priority when those surfaces exist.
  • Evidence status must be reported as 足夠證據, 部分證據, 未驗證, 阻塞, or 不適用 when the result depends on sources, tools, runtime behavior, platform capability, or external state.
  • Apply the platform adapter in .agents/shared/platform-capability-matrix.md; do not copy another platform's subagent, hook, checkpoint, browser, or sandbox semantics as executable instructions.
  • MCP memory evidence must follow .agents/skills/memory-ops/references/memory-mcp-tool-contract.md; audit may use read-only cartridge-system tools for governance evidence, but missing MCP evidence must become 未驗證 or 阻塞 and audit must not mutate memory.

Required Shared Skills

Load these before running the audit:

  • audit-engine — audit depth, project surface, inventory denominator, change-intent governance, patch-stack risk, visual detail evidence, real-information priority, evidence packet, traffic-light, blocked/unverified semantics.
  • code-audit — deterministic CLI scan recipes.
  • ai-dev-quality-gate — real execution evidence boundary.
  • browser-testing — browser/operator evidence when a rendered surface exists.
  • performance-audit — performance evidence when a web or runtime surface exists.
  • plugin-release-governance — only when extension, plugin, VSIX, release, tag, or artifact surfaces exist.

Codex Adapter Rules

  • Use Codex skills with progressive disclosure. Read only the skill/reference files required by the selected audit path.
  • Codex native subagents are allowed only when the Director explicitly requests subagents, when a workflow gate requires an isolated read-only evidence branch, or when project custom agents are configured for the workflow.
  • Prefer terminal, sandbox/approval transcript, MCP read tools, browser tools, IDE/cloud task evidence, and .agents/logs/audit/<timestamp>/ intermediate logs.
  • Audit may write intermediate evidence only under .agents/logs/audit/. It must not modify source files, memory cards, project context, git state, releases, deployments, or external systems.

Audit Data Flow

[FULL-SPECTRUM AUDIT]
├── Step 0: Load `audit-engine` references.
├── Step 1: Select audit depth and run project-surface detection through Phase 1.
├── Step 2: Build feature, endpoint, command, job, interface, data-flow, performance, and risk inventories through Phase 1.
├── Step 3: Run baseline, governance, and compatibility checks through Phase 1.
├── Step 4: Run semantic, security, API/data-flow, operation, performance, and reliability checks through Phase 2.
├── Step 5: Run evidence-only checks through Phase 2 when requested.
├── Step 6: Merge evidence packets, coverage denominators, and inventory states through Phase 3.
└── Step 7: Route each high-priority item to the next workflow.

Partial Audit Gate

[PARTIAL AUDIT GATE]
├── Depth modifiers: quick/快速, standard/標準, deep/深度/深層/完整, forensic/鑑識/上線前/遺留問題.
├── No depth modifier → standard.
├── Director asks for deep/full/complete/thorough/serious review → deep unless narrowed.
├── "profile" / "只做型態偵測" → Phase 1 profile-only output.
├── "infra" / "只跑基礎盤點" → Phase 1 profile + baseline + governance.
├── "logic" / "只跑邏輯審查" → Phase 2 semantic + security + API/data-flow + coverage.
├── "evidence" / "只跑證據驗證" → Phase 2 real operation evidence only.
├── "report" / "只重出報告" → Phase 3 from the newest audit log packet.
└── No modifier → Phase 1 + Phase 2 + Phase 3.

Required Output Objects

The three phases pass these objects forward:

{
  "audit_depth": "standard",
  "depth_reason": "",
  "profile": {},
  "inventories": {
    "features": [],
    "endpoints": [],
    "commands": [],
    "jobs": [],
    "interfaces": [],
    "data_flows": [],
    "performance_targets": [],
    "risks": []
  },
  "baseline": {},
  "governance": {},
  "semantic": {},
  "real_evidence": {},
  "change_intent": {},
  "visual_detail_evidence": {},
  "release_supply_chain": {},
  "coverage": {},
  "evidence_packets": [],
  "blocked": [],
  "unverified": [],
  "not_applicable": []
}

Completion

Append to the final Director-facing response:

「[健檢完成] 本次報告採證據優先判定,並依健檢深度列出盤點覆蓋率。缺少真實證據的項目已標記為未驗證或阻塞,不列為綠燈;抽樣結果不會被宣稱為全量通過。如需修復指定項目,請依優先級交給修復、測試、架構、例行巡檢或發布治理工作流。」


[SECURITY & COMPLIANCE MANDATE]

Inherits: .agents/skills/_shared/_security_footer.md (Role Lock Gate)

  • Role: Reader/Memory | 全程唯讀分析;只允許寫入健檢日誌,不修改原始碼或記憶卡。記憶卡讀取被允許。
Install via CLI
npx skills add https://github.com/Kunshao1117/AI_Rules --skill 08-audit
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator