doc-and-modernize
Fungsinya
Alat ini membantu Anda memahami dan mengatur proyek kode. Alat ini dapat membuat dokumen terperinci tentang arsitektur proyek Anda atau rencana untuk memodernisasinya.
Kapan dipakai
- βSaat Anda bergabung dengan proyek baru dan perlu memahaminya dengan cepat.
- βSaat Anda ingin mendokumentasikan struktur proyek yang sudah ada.
- βSaat Anda berencana memperbarui atau menulis ulang sistem lama.
Link skill
https://github.com/github/awesome-copilot/blob/main/skills/doc-and-modernize/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βDokumentasikan arsitektur repositori ini dan beri tahu saya cara memodernisasinya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini membaca file proyek Anda secara lokal untuk memahami cara kerjanya. Setelah itu, alat ini membuat dokumen berisi arsitektur atau rencana modernisasi berdasarkan temuannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
β¦
Pertanyaan umum
Mengapa alat ini membaca file secara lokal?
Membaca secara lokal lebih cepat, tidak ada batasan penggunaan, dan memastikan dokumentasi sesuai dengan kode yang Anda miliki, bukan versi yang ada di internet.
Apa yang terjadi jika alat membutuhkan informasi yang tidak ada di kode lokal?
Alat ini dapat mencari informasi secara online sebagai pilihan terakhir, tetapi selalu memberi tahu Anda ketika hal itu terjadi agar Anda tahu sumber informasinya.
Apa perbedaan antara mode dokumentasi dan mode modernisasi?
Mode dokumentasi membuat peta terperinci tentang proyek. Mode modernisasi menggunakan peta tersebut untuk membuat rencana langkah demi langkah guna memperbarui sistem.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 40k
- Peringkat
- #7174
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.