plugins/clade/skills/map/SKILL.md
Scan project structure and generate ARCHITECTURE.md with a Mermaid module relationship diagram. Use when user says "/map".
npx skillsauth add shenxingy/claude-code-kit mapInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This workflow runs directly in Codex. Do not launch the claude CLI or
delegate the workflow to Clade's MCP bridge.
Codex compatibility rules:
AGENTS.md files for repository instructions. If a project
has only CLAUDE.md, treat it as legacy project guidance and read it too..clade/ (or ~/.clade/ for personal
state). Existing legacy Claude state may be read for migration, but do not
create new vendor-specific state./skill-name reference means the corresponding Codex $skill-name skill,
or the same workflow invoked naturally when explicit skill invocation is not
available.<plugin-root>/... are relative to the installed Clade plugin
containing this SKILL.md; resolve that root before invoking a helper.Automatically scan the project structure and generate ARCHITECTURE.md with a module relationship diagram using Mermaid.
Read existing ARCHITECTURE.md
ARCHITECTURE.md exists at the project root, read it firstScan project structure
find . -maxdepth 2 -type d -not -path '*/\.*' -not -path '*/node_modules/*' -not -path '*/__pycache__/*'Identify modules and dependencies
Generate Mermaid diagram
graph TD (top-down) Mermaid diagram showing:
ModuleA --> ModuleB means ModuleA imports/uses ModuleBgraph TD
API["API Layer"]
DB["Database"]
Auth["Authentication"]
UI["Frontend"]
UI --> API
API --> Auth
API --> DB
Auth --> DB
Write ARCHITECTURE.md
Create or update ARCHITECTURE.md at the project root
Structure:
# Project Architecture
## Overview
[1-2 sentence high-level description of what the project does]
## Directory Structure
### src/
[Description of what this directory contains]
- Key files: file1.ts, file2.ts
### lib/
[Description]
- Key files: ...
[... repeat for each top-level directory ...]
## Module Relationships
```mermaid
[Your generated Mermaid graph]
[... repeat for each major module ...]
[Optional: describe how data flows through the system, if applicable]
Keep descriptions concise (1-3 lines per section)
Focus on "why" not "what" — what problem does each module solve?
Report success
✓ ARCHITECTURE.md exists at project root ✓ Diagram renders without syntax errors ✓ All major modules are represented ✓ Dependencies are correctly shown ✓ Descriptions are clear and concise
.clade/blockers.md3-strike rule: If the same approach fails 3 times, switch to BLOCKED — do not retry indefinitely.
development
Orchestrate a fleet of parallel `codex exec` workers with you (Claude Code) as the supervisor — spawn one per isolated git worktree, dispatch headless, verify each INDEPENDENTLY, PR/merge. The manual "codex-ultracode" pattern for fanning out real implementation, research, or review work onto Codex. Bakes in the hard gotchas (stdin blocking, background tracking, don't-trust-self-reports, writer isolation). Triggers on — orchestrate codex, codex workers, codex fleet, spawn codex, delegate to codex in parallel, manual ultracode, 开 codex 小弟, 派 codex worker — NOT for a single cross-vendor opinion (use the `second-opinion-codex` agent), NOT for web-UI worker decomposition (use `/orchestrate`).
development
Create and manage git worktrees for parallel Codex sessions
development
Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in /verify (which runs the app to observe a single change working) — this one walks the AGENTS.md "Features (Behavior Anchors)" list.
documentation
End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run /commit after to commit everything)