AGENT SKILL

agent-workspace-audit

Audit a tool-agnostic agent workspace at any repository depth. Verifies AGENTS.md, .agents/ layout, workspace.json clients, relative symlinks, Codex TOML role pairs, repo-root-only MCP discovery, and contributing docs. Use check, report, or fix-safe modes after init or when changing adapters. Does not bootstrap a new layout.

License 许可
Apache-2.0
最近更新
2026-08-24
Stars
★ 0
Forks
0

01 前言 Front Matter

name
agent-workspace-audit
description
Audit a tool-agnostic agent workspace at any repository depth. Verifies AGENTS.md, .agents/ layout, workspace.json clients, relative symlinks, Codex TOML role pairs, repo-root-only MCP discovery, and contributing docs. Use check, report, or fix-safe modes after init or when changing adapters. Does not bootstrap a new layout.

02 资源文件 3

03 SKILL.md 正文

Agent workspace audit

Goal

Prove a workspace still matches the shared artifact mapping for its selected clients. Produce actionable findings. Apply only safe symlink/gitignore repairs when asked. Treat MCP discovery (.mcp.json, .cursor/mcp.json, .codex/config.toml) as git-repository-root-only.

Required reading

  1. mapping.md
  2. clients.md
  3. checks.md

Procedure

  1. Resolve workspace root (argument or ask).
  2. Select mode: check (default), report, or fix-safe.
  3. Read .agents/workspace.json if present; otherwise warn and use baseline clients from checks.md / report.
  4. Run the workspace verify script when available:
bash .agents/tools/verify-agent-workspace.sh .

If missing, run the plugin script:

bash <plugin>/scripts/verify-agent-workspace.sh .
  1. Perform manual check groups from checks.md.
  2. If mode is report, list inventory, DiscoveryRisk, and suggested init modes (migrate, extend-clients) without writing.
  3. If mode is fix-safe, apply only allowed repairs, then re-run the verify script.
  4. If the layout is missing entirely, stop and tell the user to run agent-workspace-init.

Done when

Verify script and mapping review agree; findings are empty or only accepted DiscoveryRisk advisories; fix-safe changes (if any) are summarized.

04 同仓库更多 Skills