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
- 参考文档references/checks.md2.1 KB
- 参考文档references/clients.md1.9 KB
- 参考文档references/mapping.md3.3 KB
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
Procedure
- Resolve workspace root (argument or ask).
- Select mode:
check(default),report, orfix-safe. - Read
.agents/workspace.jsonif present; otherwise warn and use baseline clients from checks.md / report. - 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 .
- Perform manual check groups from checks.md.
- If mode is
report, list inventory, DiscoveryRisk, and suggested init modes (migrate,extend-clients) without writing. - If mode is
fix-safe, apply only allowed repairs, then re-run the verify script. - 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
agent-workspace-init
Initialize or extend a tool-agnostic agent workspace at any repository depth. Discovers current layout state, asks which coding agents to configure from a known list, then bootstraps, adopts, migrates, extends clients, or adds a skill/agent/rule/tool/doc under .agents/ with thin client adapters. Use when creating AGENTS.md and .agents/, migrating duplicated client folders, or adding artifacts without copying into .claude or .cursor.
stateful-skill
Design new Agent Skills or convert existing linear skills into durable, interruptible workflows backed by authoritative external JSON state and bounded runtime context. Use when a skill must resume across sessions or context compaction, branch from explicit state, checkpoint multi-stage work, preserve key decisions for later judgment, recover safely after interruptions, or distinguish resumable and terminal states.
sample-check
Fixture skill for the nested workspace example. Prints that the package workspace is reachable.
movie-metadata-refresh
Refresh local movie metadata files and verify the catalog. Use when the repository's movie data needs normalization or its generated index must be rebuilt.