repo-doc-miner

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

Mine an existing Git repository using a two-stage "topology-first → module-deep-dive" method and generate a coordinated Markdown doc set — a repo topology map (Mermaid) plus developer guide, user guide, and from-beginner-to-expert tutorial — saved into the repository's docs folder. Use this skill when the user asks to "dig into / mine / analyze this project and produce documentation", "generate a repo topology / architecture map and docs", "write onboarding docs from the codebase", or any similar request where the deliverable is a coordinated doc set derived from reading the current repository.

一句话选型结论

按资料字段整理

repo-doc-miner是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_c1525ecd/repo-doc-miner
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_c1525ecd仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791625114
正文体量13.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
repo-doc-miner当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

13.1 KB
模型实际读到的说明书原文,来自技能仓库

Repo Doc Miner (v2 — Topology-First)

Overview

Mine a Git repository and produce a coordinated set of Markdown documents grounded in the actual code, configuration, and examples of the target repo. v2 restructures the process around a two-stage method:

  1. Topology generation (Phase 1) — first build a structural map of the repository: enumerate its entity types (packages, modules, agents, skills, commands, connectors, configs, scripts…) and extract the dependency edges between them (who references whom, what is a single source of truth vs. a synced copy). The topology map (Mermaid diagrams + an entity inventory table) is the primary deliverable and the backbone for everything else.
  2. Module deep-dive (Phase 2) — then read code along the edges of the topology rather than flat-file scanning. Modules are visited in priority order (highest complexity / highest value first), so the agent builds a correct mental model before descending into details.

This ordering is what lets the skill scale to very large repositories: a topology collapses O(N) files into an O(entity-type) structural view, and the dependency edges tell you which files to read and in what order — e.g. you must understand the single source of truth before reading its synced copies, otherwise you mistake a copy for an independent implementation.

The final deliverables are: topology.md (the map), developer_guide.md, user_guide.md, tutorial.md, and a README.md navigation hub.

When to Use

Trigger this skill when the user's request matches any of these patterns:

  • "挖掘当前项目/仓库,生成拓扑图 + 开发文档、用户文档和教程"
  • "Mine this repo, draw an architecture / dependency topology, and produce docs"
  • "为这个项目写一套完整的文档(开发者 + 用户 + 入门到精通),先给我结构图"
  • "Generate onboarding documentation for this codebase, save into docs/"
  • Any request where (a) the primary input is the current repository, and (b) the required output is a multi-audience doc set (with or without an architecture map) written in Markdown.

Do NOT trigger for: single-file API docs, README refresh only, translation tasks, or when the user already has a target doc framework (Sphinx/MkDocs site generation).

Workflow

Follow these six phases in order. Phases 1–2 are the new topology-first core; Phases 3–6 reuse the grounded-writing machinery from v1.

Phase 0 · Scope & Output Location

  1. Determine the repository root (usually the workspace root).
  2. Choose the output directory. Default: docs/guides/ under the repo root. If docs/ does not exist, create docs/guides/ anyway (it is a self-contained sub-folder and will not clash with Sphinx/MkDocs). Prefer an existing docs directory if it is clearly the convention of the repo.
  3. Confirm the four target files: topology.md (map), developer_guide.md, user_guide.md, tutorial.md, and a README.md navigation hub.

Phase 1 · Topology Generation (core deliverable)

This phase answers "what is in this repo and how is it wired?" before any prose is written.

  1. Enumerate entity types. Detect the repo flavor and list the entities it actually contains. Use scripts/gen_topology.py to produce a first draft automatically:

bash python scripts/gen_topology.py <repo-root> --out <repo-root>/docs/guides/topology.md [--project-name "<DisplayName>"]

The script detects, generically:
- Top-level directories as modules.
- Plugin-style entities: SKILL.md (skill), agents/*.md (agent), commands/*.md (command), .mcp.json (MCP connector), agent.yaml (managed agent).
- Language packages: pyproject.toml / setup.py / package.json / Cargo.toml / go.mod, and __init__.py / index.ts / lib.rs export surfaces.
- Tooling: *.py / *.sh scripts, Makefile, CI workflows.

  1. Extract dependency edges. For each pair of entities, determine whether one references the other. The script captures common edge kinds:
    - CodeBuddy/Claude plugin links: system.file:, from_plugin:, skills.path:, references:.
    - Cross-file references: import ... from, require(...), relative-path includes in YAML/JSON/MD.
    Classify each edge as source → copy (a single source of truth synced into copies) or use/depend (one entity consumes another). The "source → copy" edges are the most important — they reveal duplication that flat scanning would misinterpret.

  2. Human-refine the draft. Open the generated topology.md and verify the auto-detected edges against the real files (the script is heuristic; confirm the 2–3 most structurally important edges by reading the actual manifests). Edit the Mermaid graphs so they tell the true story of the repo. The refined topology.md is the first deliverable and the structural backbone for Phase 2.

  3. Produce an entity inventory table (count + location per entity type). This is the "map" the agent keeps open while deep-diving.

Phase 2 · Module Deep-Dive (evidence gathering, edge-ordered)

Now read code along the topology edges, not at random.

  1. Order by priority. Sort modules by complexity/value (e.g. largest/most-central skill first; the single source of truth before its copies). Use the inventory table to pick a reading order.
  2. Follow edges. For each module, read the files the topology points to, then follow outbound edges to the next module. This guarantees the agent understands a capability at its source before meeting its copies/deployments.
  3. Gather the evidence checklist. Reuse references/evidence_checklist.md, but select rows by repo flavor and order them by the topology. Keep a scratch note (internal, not a deliverable) with: project metadata, exported symbols per module, main class signatures, chosen example files, and the confirmed dependency edges.
  4. Mark gaps with > TODO(doc-miner): ... when evidence is missing; never fabricate.

For the concrete per-flavor "what to read" guidance, see references/evidence_checklist.md and the two-stage rationale in references/topology_method.md.

Phase 3 · Content Plan (one-screen outline per document)

Before writing prose, draft a one-screen outline for each of the four documents. Reuse the canonical outlines in references/doc_outlines.md and specialize their section titles with concrete names harvested in Phase 2 (package names, class names, config flags, and — new in v2 — the topology node/edge names). Verify that:

  • The topology clearly shows the top-level structure, the key dependency edges, and the entity inventory.
  • The developer guide covers architecture, every top-level module, runtime config, extension/contribution SOPs, and debugging tips.
  • The user guide walks from installation to the most advanced user-facing feature, using API names that actually exist in the repo.
  • The tutorial has 8–12 progressive chapters, each anchored in at least one real file from the repo.

Phase 4 · Writing

Use the templates under assets/templates/ as the structural scaffold, then fill them with repo-specific content. Run the scaffolder first to lay down skeletons:

python scripts/scaffold_docs.py <repo-root> --project-name "<DisplayName>" [--out docs/guides] [--force]

Then edit each file in place. Follow these rules:

  • Ground every claim in code: when mentioning a function, class, or behavior, include the file path (relative to repo root) the first time it is introduced (e.g. deepxde/model.py::Model.compile).
  • Prefer real code snippets taken from examples/ or tests; condense to ≤ ~30 lines. Preserve the original import style and function signatures; do not invent APIs.
  • Lead with the topology: topology.md is written first and referenced by the other three documents; the developer guide can embed or link the Mermaid diagrams rather than re-drawing them.
  • Cross-link the four documents: the tutorial references sections in the user guide; the developer guide references the user guide for API usage; README.md links all four.
  • Match the repo's host language: if the existing docs/ content is primarily Chinese, write in Chinese; primarily English, write in English; bilingual repositories default to the language of the user's current query.
  • Keep each file self-contained: duplicate a minimum amount of glossary/context so any one file can be opened first.
  • Mark unresolved gaps explicitly with > TODO(doc-miner): ... lines when evidence is insufficient; never fabricate behavior.

Phase 5 · Validation

Before reporting completion:

  1. Spot-check 5 random code snippets against their source files (open the referenced path, compare signatures).
  2. Run rg "TODO\(doc-miner\)" to surface unresolved gaps; either resolve them or list them in the final summary.
  3. Ensure every module mentioned in the developer guide actually exists (search_file).
  4. Confirm the topology's dependency edges are real by opening at least the 2–3 most important manifests.
  5. Confirm the four files render correctly as Markdown (headings monotonic, code fences closed, relative links valid, Mermaid blocks well-formed).

Phase 6 · Handover

Produce a short final summary containing:

  • Absolute paths of the five generated files (incl. topology.md).
  • Line-count per file.
  • A coverage bullet list (which modules / examples made it in).
  • Any TODO(doc-miner) items the user still needs to fill.
  • Note: topology.md is incrementally updatable — re-running scripts/gen_topology.py later diffs structural changes as the repo evolves.

Resources

scripts/

  • scripts/gen_topology.py — new in v2. Scans a repo, detects entity types and dependency edges, and writes a Mermaid-backed topology.md (structural graph + dependency-edge graph + entity inventory + per-module deep-dive scaffold). Heuristic but safe on arbitrary repos. Run it at the start of Phase 1.
  • scripts/scaffold_docs.py — creates <repo>/docs/guides/ and materializes the four document templates from assets/templates/ with their {{PROJECT_NAME}} placeholder substituted. Run at the start of Phase 4.

assets/templates/

Markdown skeletons carrying a fixed section schema. Use them as the literal starting point for each file; do not rewrite them from scratch. Replace every {{PLACEHOLDER}} with repo-specific content harvested in Phase 2.

  • assets/templates/topology.md — new in v2. The architecture-map scaffold (Mermaid blocks + inventory table + per-module sections).
  • assets/templates/developer_guide.md — 15-section schema (overview → architecture → module tours → extension SOPs → debugging).
  • assets/templates/user_guide.md — 20-section schema (install → runtime config → core objects → main loop → advanced features → FAQ → minimal runnable examples).
  • assets/templates/tutorial.md — 10-chapter "from beginner to expert" schema with slots for real example file paths.
  • assets/templates/README.md — navigation hub that indexes the four documents.

references/

Loaded into context on demand.

  • references/topology_method.md — new in v2. The two-stage methodology: why topology-first scales to large repos, how to detect entity types and edges, and a reusable process you can apply to any repository.
  • references/doc_outlines.md — canonical section-by-section outlines, with guidance on what each section must contain and how to source the evidence.
  • references/evidence_checklist.md — the minimum set of files and symbols to read during Phase 2, grouped by repo flavor (Python DL library, Python CLI, Node web app, Rust crate, Go service). Updated to be edge-ordered.
  • references/writing_style.md — writing-style conventions (tone, bilingual rules, code-citation format, TODO markers).

Failure Modes to Avoid

  • Writing generic docs that could apply to any library — always include at least one concrete class name, file path, or example per section.
  • Copying long code blocks verbatim (> 50 lines). Condense and cite the path instead.
  • Skipping Phase 1 and guessing the architecture. If you cannot draw the topology, you do not understand the repo — stop and read the manifests the script flagged.
  • Mistaking a synced copy for an independent implementation because you read it before its source. Always follow source → copy edges.
  • Clobbering existing docs/ content. Always write into a dedicated sub-folder (docs/guides/ by default).
  • Forgetting to produce the navigation README.md; without it the four documents feel disconnected.

常见问题

5 问
答案由本站依据条目字段整理
repo-doc-miner怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_c1525ecd/repo-doc-miner。安装方式为未标注。装完刷新技能列表或重开客户端。

repo-doc-miner支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

repo-doc-miner权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

repo-doc-miner收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

repo-doc-miner用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。