scan
Was er macht
Dieser Agent analysiert den Code deines Projekts und erstellt automatisch Dokumentation. Er erzeugt zwei Dateien: eine technische Zusammenfassung des Projekts und eine Anleitung für andere KI-Agenten.
Wann du ihn nutzt
- ✓Wenn du ein neues Projekt startest und es dokumentieren willst.
- ✓Nach größeren Änderungen an der Code-Struktur.
- ✓Um zu prüfen, ob sich der Code seit der letzten Analyse geändert hat.
Link zum Skill
https://github.com/wshobson/agents/blob/main/plugins/ship-mate/skills/scan/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Scanne den Code und erstelle die Projektdokumentation und die Datei AGENTS.md.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Er prüft zuerst, ob zusätzliche Tools für die Analyse vorhanden sind. Dann entscheidet er, ob er alles analysiert (beim ersten Mal) oder nur das, was sich geändert hat. Zum Schluss schreibt er die Dokumentationsdateien.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Codebase Scanner
You are a technical analyst. Your job is to scan the project codebase and produce accurate, project-specific documentation used by all downstream agents.
Step 1: Check Optional Plugin Dependencies
Check whether the two optional enhancement plugins are available:
understand-anything → /plugin list | grep understand-anything
context-mode → /plugin list | grep context-mode
These plugins are optional. They improve scan quality but are not required:
- understand-anything (Lum1104/Understand-Anything) — provides deeper semantic code analysis
- context-mode (mksglu/context-mode) — routes large outputs through a sandbox to protect the context window
If both are present, use them in Steps 3–4 as described below. If either or both are missing, proceed with the native fallback approach: use find, grep, cat, and git commands directly, routing large outputs through ctx_execute / ctx_execute_file if context-mode is available, otherwise summarise inline.
Note: To install the optional plugins manually:
/plugin marketplace add Lum1104/Understand-Anything && /plugin install understand-anything /plugin marketplace add mksglu/context-mode && /plugin install context-mode@context-mode
Step 2: Determine Scan Mode
Check if .claude/pipeline/project-doc.md exists.
- Does not exist → FULL SCAN (first run)
- Exists → DELTA SCAN
Step 3A: Full Scan
Use understand-anything to analyse the entire codebase. If context-mode is available (verified in Step 1), route ALL output through its tools (ctx_batch_execute / ctx_execute_file) — never dump raw file contents into the main context window. If context-mode is not available, summarise each file's findings inline and avoid printing raw file contents.
Produce .claude/pipeline/project-doc.md using the following structure (based on the architecture-blueprint-generator pattern):
# Project Documentation
> Generated: [timestamp] | Mode: FULL
## Tech Stack
- Runtime: [e.g. Node.js 20, Python 3.11]
- Language: [e.g. TypeScript, Python]
- Framework: [e.g. Next.js 14 App Router, FastAPI]
- Database: [e.g. PostgreSQL via Prisma]
- Styling: [e.g. Tailwind CSS]
- State Management: [e.g. Zustand, Redux]
## Dependencies
[Key libraries with versions, grouped by: core / dev / testing]
## Architecture Pattern
[e.g. Feature-based, Layered MVC, Clean Architecture]
[Describe how the project is structured and why]
## Folder Structure
[Top-level directory map with purpose of each folder]
## Code Style Conventions
[Naming patterns, file naming, import ordering, export patterns]
[Inferred from actual code — not guessed]
## Modularity Practices
[How concerns are separated, shared module locations, service patterns]
## Data Architecture
[Entity relationships, data access patterns, ORM usage]
## Cross-Cutting Concerns
[Auth/authz approach, error handling patterns, logging, validation]
## Service Communication
[REST / GraphQL / event-driven — document what actually exists]
## Test Coverage
- Overall coverage: [X%]
- Testing framework: [e.g. Jest, Vitest, Pytest]
- Key untested areas: [list]
- Test patterns used: [unit / integration / e2e]
## Entry Points
[Main files, key config files, environment setup]
## Changed Files
[Only present in delta scans — list of files re-scanned]
## Last Scanned
[ISO timestamp]
After writing project-doc.md, proceed to Step 4 to generate AGENTS.md.
Step 3B: Delta Scan
- Run
git diff HEAD~1 --name-onlyto get changed files - If no changed files, report "No changes detected — project-doc.md is current" and exit
- Use
understand-anythingto re-analyse only the changed files; route output throughctx_execute_fileif context-mode is available, otherwise summarise inline - Patch only the affected sections of
.claude/pipeline/project-doc.md - Update the
Last ScannedandChanged Filesfields - Proceed to Step 4B (architectural change detection)
Step 4A: Generate AGENTS.md (First Run Only)
Write AGENTS.md to the repo root. This is NOT a copy of project-doc.md — it is rewritten as agent instructions, tailored to this specific project. Every agent reads this file first.
Before writing AGENTS.md, read and follow the complete project-specific instruction template, including its security rules and human-confirmed update requirements.
…
Häufige Fragen
Welche Dateien werden erstellt?
Die `project-doc.md` ist eine technische Zusammenfassung des Projekts (Sprache, Abhängigkeiten, Struktur). Die `AGENTS.md` ist eine Anleitung, damit andere KI-Agenten das Projekt verstehen und nutzen können.
Was passiert, wenn ich die zusätzlichen Tools nicht habe?
Der Agent nutzt dann einfache Standard-Tools des Systems für die Analyse. Die Dokumentation fällt dann aber vielleicht weniger detailliert aus.
Was ist ein 'Delta-Scan'?
Das ist eine Analyse, die nur die Teile des Codes prüft, die seit dem letzten Durchlauf des Agenten geändert wurden. Dadurch geht es schneller.
Details
Originalbeschreibung des Autors
Scans the codebase to generate project-doc.md and AGENTS.md. Use when bootstrapping a new agent-driven repo, refreshing project documentation after architectural changes, or running a delta scan to detect drift. Runs a full scan on first use and a smart delta scan on subsequent runs. Uses understand-anything + context-mode when available, falls back to native tools otherwise. Only updates AGENTS.m
repo: wshobson/agents
Beliebtheit
- GitHub-Sterne
- 41k
- Platz im Ranking
- #6786
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
screen-reader-testing
41kLässt deinen Agenten Webseiten mit Screenreadern testen, um sicherzustellen, dass sie barrierefrei sind.
wcag-audit-patterns
41kHilft deinem Agenten, Webseiten auf Barrierefreiheit zu prüfen und Probleme gemäß den WCAG-Richtlinien zu beheben.
multi-reviewer-patterns
41kErmöglicht deinem Agenten, parallele Code-Reviews zu koordinieren, doppelte Ergebnisse zu entfernen und Berichte zusammenzuführen.
parallel-debugging
41kErmöglicht dem Agenten, komplexe Fehler mit parallelen Untersuchungen und Ursachenanalyse zu debuggen.
Ähnliche Skills
technical-documentation
394kHilft deinem Agenten, klare technische Dokumentation und Agenten-Anleitungen zu schreiben und zu prüfen, damit Menschen und KI-Tools leicht folgen können.
architecture-decision-records
280kLässt deinen Agenten wichtige Entscheidungen zur Projektstruktur festhalten. So bleibt nachvollziehbar, warum etwas so gewählt wurde, und die Änderungen sind klar dokumentiert.
code-tour
280kLässt deinen Agenten Schritt-für-Schritt-Erklärungen des Codes mit genauen Datei- und Zeilenangaben erstellen. Nützlich für Einführungen, Erklärungen und Reviews.