scan-all
Parallelizes all reference document scans to keep project knowledge fresh.
Install
mkdir -p .claude/skills/scan-all && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16765" && unzip -o skill.zip -d .claude/skills/scan-all && rm skill.zipInstalls to .claude/skills/scan-all
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
[Documentation] Use when you need orchestrate all reference doc scans in parallel.Key capabilities
- →run all 12 scan-* skills in parallel
- →collect results from reference docs
- →clear the staleness flag
- →build a knowledge graph
- →enhance generated docs
- →summarize refreshed content
How it works
The skill orchestrates 12 scan skills in parallel to populate reference documents, then clears a staleness flag, builds a knowledge graph, and enhances the generated documentation.
Inputs & outputs
When to use scan-all
- →Refresh docs
- →Onboard project
- →Clear staleness
About this skill
Quick Summary
Goal: Run all 12 scan-* skills in parallel and clear the staleness gate.
Workflow:
- Check Prerequisites — Verify project has content (not empty)
- Launch Parallel Scans — All 12 skills simultaneously
- Collect Results — Read scan output from reference docs
- Clear Staleness Flag — Re-evaluate all docs via
refreshScanStaleFlag(), which removes.claude/.scan-staleonce every doc is fresh (see Post-Scan Cleanup) - Build Knowledge Graph — Run
/graph-buildto update structural graph - Enhance Docs — Run
/prompt-enhanceon all 12 scanned docs - Summarize — Report what was refreshed
Key Rules:
- All 12 scans run in PARALLEL for speed
- Does NOT modify code — only populates docs/project-reference/
- Clears
.claude/.scan-staleflag after completion /prompt-enhanceensures AI attention anchoring on all generated docs
When to Use
- Staleness gate blocks prompts ("BLOCKED: Reference docs are stale")
- First time using easy-claude on an existing project (project onboarding)
- Periodic refresh when codebase has changed significantly
- User runs
/scan-allmanually
When to Skip
- Empty/greenfield project (no code to scan)
- All reference docs are already fresh (no staleness warning)
Execution
Each scan reads real code evidence and (re)populates ONE reference doc under docs/project-reference/. Those docs are injected into AI context downstream, so scanning is what keeps that guidance true to the current codebase — the Purpose column says what each scan documents and therefore why it matters. Launch all 12 code-derived scans in parallel:
| # | Invocation | Target Doc | Purpose — what the scan documents |
|---|---|---|---|
| 1 | /scan --target=project-structure | project-structure-reference.md | Service architecture, ports, directory layout, tech stack, deployment & module registry (spans backend, frontend, infra) |
| 2 | /scan --target=backend-patterns | backend-patterns-reference.md | Repository, CQRS, validation, entity, event & migration patterns |
| 3 | /scan --target=seed-test-data | seed-test-data-reference.md | Seeder patterns & conventions, from real code evidence |
| 4 | /scan --target=frontend-patterns | frontend-patterns-reference.md | Component, state, form, API, routing & styling patterns |
| 5 | /scan --target=integration-tests | integration-test-reference.md | Integration-test base classes, fixtures, helpers & service setup |
| 6 | /scan --target=feature-spec | feature-spec-reference.md | Feature-doc structure, app→service mapping, spec templates & conventions |
| 7 | /scan --target=code-review-rules | code-review-rules.md | Code conventions, anti-patterns, architecture rules & review checklists |
| 8 | /scan --target=scss-styling | scss-styling-guide.md | SCSS architecture, BEM conventions, mixins, variables, theming & responsive patterns |
| 9 | /scan --target=design-system | design-system/README.md | Design tokens, component inventory & app→doc design-system mappings |
| 10 | /scan --target=e2e-tests | e2e-test-reference.md | E2E architecture, page objects, step definitions, config & framework patterns |
| 11 | /scan --target=domain-entities | domain-entities-reference.md | Domain entities, DTOs, aggregate boundaries, sync patterns & ER diagrams |
| 12 | /scan --target=docs-index | docs-index-reference.md | Documentation structure, categories, relationships & lookup tables |
Coverage & count. These 12 are the code-derived docs. The child
scanskill exposes a 13th key,ui-system— a meta-target that only fan-runs #4, #8, #9 together — intentionally excluded here to avoid double-scanning. Curated/static docs (lessons.md,spec-principles.md,spec-system-reference.md,workflow-spec-test-code-cycle-reference.md) are hand-authored, not scanned, so they are absent by design. Purpose text mirrors each target'sdescriptionin.claude/skills/scan/references/targets.md— update it THERE first if a target's scope changes, then reflect it here.
Post-Scan Cleanup
After all scans complete, clear the staleness flag:
node -e "require('./.claude/hooks/lib/session-init-helpers.cjs').refreshScanStaleFlag()"
This re-evaluates all docs and removes the .scan-stale gate if all are now fresh.
Post-Scan: Build Knowledge Graph (MANDATORY)
After all scans complete, MUST ATTENTION create a follow-up task:
TaskCreate: "Run /graph-build to build/update code knowledge graph"
The knowledge graph uses project-config.json (populated by scans) for API connector patterns and implicit connection rules. Building the graph after scans ensures:
- Frontend↔backend API_ENDPOINT edges use accurate service paths
- MESSAGE_BUS implicit edges use correct consumer patterns
- Graph trace shows full system flow (frontend → backend → cross-service consumers)
python .claude/scripts/code_graph build --json
Post-Scan: Enhance Generated Docs (MANDATORY)
Each scan-* sub-skill now self-enhances its own doc as its final step. After graph build, MUST ATTENTION confirm /prompt-enhance ran on every scanned doc and backfill any that were skipped. Reference docs are injected into AI context — attention anchoring (top/bottom summaries, inline READ summaries, token density) directly improves AI output quality.
TaskCreate one task per doc, parallel OK:
| # | Target File |
|---|---|
| 1 | docs/project-reference/project-structure-reference.md |
| 2 | docs/project-reference/backend-patterns-reference.md |
| 3 | docs/project-reference/seed-test-data-reference.md |
| 4 | docs/project-reference/frontend-patterns-reference.md |
| 5 | docs/project-reference/integration-test-reference.md |
| 6 | docs/project-reference/feature-spec-reference.md |
| 7 | docs/project-reference/code-review-rules.md |
| 8 | docs/project-reference/scss-styling-guide.md |
| 9 | docs/project-reference/design-system/README.md |
| 10 | docs/project-reference/e2e-test-reference.md |
| 11 | docs/project-reference/domain-entities-reference.md |
| 12 | docs/project-reference/docs-index-reference.md |
Run via: /prompt-enhance docs/project-reference/{filename}
Summary Output
After all scans complete, report:
"Scan All Complete:
- {X}/12 scans succeeded
- Reference docs refreshed in docs/project-reference/
- Staleness gate cleared
- Prompt-enhanced {Y}/12 docs
- Knowledge graph rebuilt via /graph-build"
<!-- SYNC:critical-thinking-mindset -->[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting.
<!-- /SYNC:critical-thinking-mindset --> <!-- SYNC:output-quality-principles -->Critical Thinking Mindset — Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence >80% to act. Anti-hallucination: Never present guess as fact — cite sources for every claim, admit uncertainty freely, self-check output for errors, cross-reference independently, stay skeptical of own confidence — certainty without evidence root of all hallucination.
<!-- /SYNC:output-quality-principles --> <!-- SYNC:ai-mistake-prevention -->Output Quality — Token efficiency without sacrificing quality.
- No inventories/counts — AI can
grep | wc -l. Counts go stale instantly- No directory trees — AI can
glob/ls. Use 1-line path conventions- No TOCs — AI reads linearly. TOC wastes tokens
- No examples that repeat what rules say — one example only if non-obvious
- Lead with answer, not reasoning. Skip filler words and preamble
- Sacrifice grammar for concision in reports
- Unresolved questions at end, if any
AI Mistake Prevention — Failure modes to avoid on every task:
Re-read files after context changes. Context compaction, resume, or long-running work can make memory stale; verify current files before acting. Verify generated content against source evidence. AI hallucinates APIs, names, claims, and document facts. Check the relevant source before documenting or referencing. Check downstream references before deleting or renaming. Removing an artifact can stale docs, generated mirrors, configs, and callers; map references first. Trace the full impact chain after edits. Changing a definition can miss derived outputs and consumers. Follow the affected chain before declaring done. Verify ALL affected outputs, not just the first. One green check is not all green checks; validate every output surface the change can affect. Assume existing values are intentional — ask WHY before changing OR flagging one as a defect. Before changing or reporting a constant, limit, flag, cutoff, wording, or pattern, read nearby context and history, the CALLER's ordering, and 2+ sibling call sites of the same convention. A doc stating WHAT without WHY is missing rationale, not proof of a missing guard. Surface ambiguity before acting — don't pick silently. Multiple valid interpretations require an explicit question or stated assumption with risk. Assert the outcome your system owns, not the intermediate state your infrastructure owns. When verifying async work, assert the final business state — never the delivery/retry bookkeeping held in shared infrastructure that any co-running process can write. Such a check passes when run alone and flakes the moment anything else shares that infrastructure. Keep shared guidance role-relevant. Universal guidance must help every receiving skill or agent; code
Content truncated.
When not to use it
- →when the project is empty or greenfield
- →when all reference docs are already fresh
- →when only a single scan is needed
Limitations
- →does NOT modify code
- →only populates docs/project-reference/
- →requires a project with content to scan
How it compares
This skill automates the parallel execution of multiple documentation scans and subsequent knowledge graph building, which is more efficient than running each scan and update process manually.
Compared to similar skills
scan-all side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| scan-all (this skill) | 0 | 1mo | Review | Intermediate |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
| skill-forge | 11 | 9mo | Review | Intermediate |
| notion-knowledge-capture | 10 | 9mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by duc01226
View all by duc01226 →You might also like
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-forge
WilliamSaysX
Automated skill creation workshop with intelligent source detection, smart path management, and end-to-end workflow automation. This skill should be used when users want to create a new skill or convert external resources (GitHub repositories, online documentation, or local directories) into a skill. Automatically fetches, organizes, and packages skills with proactive cleanup management.
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.
feishu-doc
openclaw
Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx links.
openspec-continue-change
studyzy
通过创建下一个产出物继续处理 OpenSpec 变更。当用户想要推进其变更、创建下一个产出物或继续其工作流程时使用。
add-provider-doc
lobehub
Guide for adding new AI provider documentation. Use when adding documentation for a new AI provider (like OpenAI, Anthropic, etc.), including usage docs, environment variables, Docker config, and image resources. Triggers on provider documentation tasks.