doc-and-modernize
Ce qu’il fait
Cet outil vous aide à comprendre et à organiser des projets de code. Il peut créer un document détaillé sur l'architecture de votre projet ou un plan pour le moderniser.
Quand l’utiliser
- ✓Lorsque vous rejoignez un nouveau projet et devez le comprendre rapidement.
- ✓Lorsque vous souhaitez documenter la structure d'un projet existant.
- ✓Lorsque vous prévoyez de mettre à jour ou de réécrire un ancien système.
Lien du skill
https://github.com/github/awesome-copilot/blob/main/skills/doc-and-modernize/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Documente l'architecture de ce dépôt et explique-moi comment le moderniser.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'outil lit localement les fichiers de votre projet pour comprendre son fonctionnement. Ensuite, il génère un document sur l'architecture ou un plan de modernisation basé sur ce qu'il a trouvé.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Documentation & Modernization
Two complementary workflows for a repository the user already has checked out locally, bundled as one skill:
- Documentation mode — produce one definitive, cited architecture document from the code on disk. Ideal for onboarding, system-design maps, or as the evidence base for a modernization effort.
- Modernization mode — turn that architecture into a phased, safety-laddered plan to upgrade, migrate, or rewrite a legacy system.
Mode selection
- If the user wants to understand, document, map, research, or onboard onto a codebase, run Documentation mode.
- If the user wants to modernize, migrate, upgrade, or rewrite a system, run Modernization mode. Modernization mode is self-sufficient: if no architecture document exists yet, it runs the Documentation mode workflow first (in the same pass), then continues straight through to the plan.
When in doubt, produce the architecture document first — it is the audited evidence base both modes rely on.
Documentation mode
Generate one definitive, cited architecture document for a repository the user already has checked out locally. The goal is a writeup someone could hand to a new engineer as their onboarding reference — broad enough to cover the whole system, deep enough on the hard parts to be useful, and trustworthy because every claim traces back to a file on disk.
Why local-first
Reading from the local checkout (not the GitHub API or the web) is the deliberate
default. It is faster, free, avoids rate limits, and — most importantly — it
describes the exact code in front of you rather than whatever main happens
to look like remotely. The one tradeoff is that remote-only facts (star counts,
full CI run history, sibling repos) aren't visible. That's fine: state those as
out-of-scope or mark them [UNVERIFIED] rather than guessing.
Local-first is not local-never-remote: a web/API lookup is a deliberate
last-resort fallback, reserved for a fact that genuinely cannot be determined
from disk and that materially matters to the document. When you do reach for it,
flag the result clearly (e.g. [UNVERIFIED] / sourced-remotely) so the reader
knows it didn't come from the checkout, and never let it become the easy path
that displaces reading the code on disk.
Workflow
- Establish identity first. Run
git remote -v,git branch --show-current, andgit log -1so the document is anchored to a specific remote, branch, and commit. A reader must be able to tell which snapshot this describes. Remote URLs can contain embedded credentials (e.g.https://<token>@github.com/...) — redact any credentials/tokens from the URL before recording it in the document. - Detect, don't assume. Read the real manifests (
go.mod,package.json,Cargo.toml,pyproject.toml,pom.xml, etc.), theMakefile/task runner, CI config, and any repo-specific agent or contributor docs (AGENTS.md,CONTRIBUTING,README,docs/). These are the source of truth for the tech stack and commands — prefer them over your prior knowledge of the framework. - Map breadth, then drill into depth. First build the whole-repo map (the three lenses below), then pick the 2-3 hardest subsystems and go deep on them.
- Verify as you go. Open the files you cite. If you reference a line number, you should have actually read that line. Unsupported claims are worse than omissions here — the whole value of this document is that it can be trusted.
Output structure
Produce a single Markdown file with the sections below, in this order. Adapt the headings to the actual project (a CLI tool has no "frontend" lens — fold that slot into whatever matters for that repo), but keep the three-lens shape and the verification discipline.
Part 1 — Whole-repo technical deep-dive
- What the repository is (one paragraph, cited to README).
- Tech-stack detection table: layer | technology | evidence (file+line).
- Entry points (backend, frontend, CLI — whatever applies).
- Commands & Verification Inventory — a table of the canonical project
commands (
command | purpose | evidence), verified against the task runner / manifests / CI config, not guessed. Cover build, run/serve, test (and how to run a single test), lint, format, and — where they exist — typecheck, end-to-end/smoke, contract, and any other gate commands, plus the CI
…
Questions fréquentes
Pourquoi l'outil lit-il les fichiers localement ?
La lecture locale est plus rapide, n'a pas de limites d'utilisation et garantit que la documentation reflète exactement le code que vous avez, et non une version en ligne.
Que se passe-t-il si l'outil a besoin d'informations absentes du code local ?
Il peut chercher des informations en ligne en dernier recours, mais il indiquera toujours quand c'est le cas, afin que vous connaissiez la source des informations.
Quelle est la différence entre le mode documentation et le mode modernisation ?
Le mode documentation crée une carte détaillée du projet. Le mode modernisation utilise cette carte pour élaborer un plan étape par étape visant à mettre à jour le système.
Détails
Description originale de l’auteur
Two related workflows for a locally-cloned codebase, in one skill. Documentation mode produces a single, comprehensive, verifiable architecture document primarily by reading files on disk (local-first) — use it whenever the user wants to understand, map, document, research, or onboard onto a codebase ("research this repo", "write up the architecture", "do an architecture deep dive", "document how
repo: github/awesome-copilot
Popularité
- Étoiles GitHub
- 40k
- Position au classement
- #7174
- Licence
- MIT
- Mis à jour
- 15/10/2026
Commentaires
- …
Autres skills de ce dépôt
acquire-codebase-knowledge
40kAide votre agent à comprendre et documenter un projet de code existant. Utile pour accueillir de nouveaux membres ou obtenir une vue d'ensemble de l'architecture.
acreadiness-assess
40kPermet à votre agent d'évaluer la préparation d'un projet à l'IA et de générer un rapport. Utile pour savoir dans quelle mesure un projet est prêt à utiliser des outils d'IA.
acreadiness-generate-instructions
40kAide votre agent à rédiger des instructions pour les outils d'IA à partir d'une évaluation, afin d'améliorer leur travail sur le code et combler les lacunes.
acreadiness-policy
40kPermet à votre agent d'aider à définir ou appliquer des politiques d'évaluation des projets d'IA. Utile pour standardiser les évaluations et garantir la conformité.
Skills similaires
technical-documentation
394kAide votre agent à rédiger et relire une documentation technique claire et les fichiers d'instructions pour agents, faciles à suivre pour tous.
architecture-decision-records
280kPermet à votre agent de consigner les décisions importantes sur la structure du projet. Cela aide à comprendre les raisons des choix et à garder un historique clair.
code-tour
280kPermet à votre agent de créer des visites guidées du code, étape par étape, avec références exactes aux fichiers et lignes. Utile pour présenter, expliquer ou relire.