repo-docs-skills

作者 YurunChen已验证

Living project docs for coding agents: keep guides, progress logs, change maps, and handoff context updated as your repo evolves.

455
Stars
6
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/YurunChen/repo-docs-skills

快速入门

使用 repo-docs-skills 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Repo-Docs logo

Repo-Docs: Keep up with the code your agents write.

An evidence atlas for agent-built code.

Vibe coding makes code move faster than memory. Repo-Docs turns each real run into walkthroughs, concepts, references, and sync rules that live beside the source.

RedNote(小红书) Project homepage

Chinese README | Skill contract | Project homepage | Install

Why now | The loop | Artifacts | Quality bar

Repo-Docs main preview

Understand the repo before you memorize paths.


The Problem

Agent-built repos often feel like this

  • Code changed quickly, but the reason stayed in chat.
  • Files exist, yet no one can explain the real behavior path.
  • README, source, tests, and agent memory drift apart.
  • The next agent starts by rediscovering the same context.

Repo-Docs leaves this behind

  • A walkthrough of one real run from entry to output.
  • Concept pages for the few ideas that actually matter.
  • Evidence pages for source proof and quality review.
  • A sync rule that keeps future answers tied to current source.

Repo-Docs is not a file-tree tour, a generated API dump, or a chat transcript. It is a small project guide that tells a reader what the repo does, how the behavior moves, where the proof lives, and how to keep that understanding fresh.

Why This Exists Now

AI coding is no longer a niche workflow. Two 2026 open-source studies make the scale visible: AIDev reports 932,791 agent-authored pull requests across 116,211 GitHub repositories, while a multi-method census of 180 million repositories shows that many agent traces are missed by single-signal detection.

That growth creates a new maintenance problem: the code may be real, but the project understanding is often temporary. Repo-Docs gives coding agents a repeatable way to preserve the reasoning layer inside the repository itself.

The Repo-Docs Loop

flowchart LR
  A["User asks or agent changes repo"] --> B["Understanding sync check"]
  B --> C["Update README and walkthrough"]
  B --> D["Update change-log"]
  B --> E["Patch modules / glossary / references"]
  B --> F["Update AGENTS.md / CLAUDE.md"]
  C --> G["User can read the current project"]
  D --> G
  E --> G
  F --> G

The loop is intentionally conservative. A good update touches the page that would otherwise mislead the next reader, not every page that could be polished.

What It Builds

ArtifactJob
repo-docs/README.mdOrient the reader and point to the first useful path.
walkthroughs/one-real-run.mdFollow one real behavior from observable entry to output.
code-map.mdMap in-scope source directories to responsibilities, important code, tests, and likely change points.
modules/Explain durable concepts the walkthrough names.
references/Hold source evidence and optional quality review.
glossary.mdTranslate repeated project terms into plain meaning.
change-log.mdRecord meaningful guide work, verification, and sync anchors.
AGENTS.md / CLAUDE.mdTell future coding agents when and how to keep docs current.

Install In 30 Seconds

Give this natural-language install request to your coding agent:

Install the repo-docs skill from this project:
https://github.com/YurunChen/repo-docs-skills

Make both repo-docs and repo-docs-zh available in my agent skill directory.

Then ask it to run the skill in any repository:

Use the repo-docs skill to create docs for this repository.
Command-line install

Use this when you prefer a shell install. The URL is a GitHub repository raw-file URL; GitHub serves the raw script bytes through its raw content host after redirect.

curl -fsSL https://github.com/YurunChen/repo-docs-skills/raw/main/install.sh | bash

Windows PowerShell:

irm https://github.com/YurunChen/repo-docs-skills/raw/main/install.ps1 | iex

From this source checkout:

./install.sh

# Install into all known locations: ~/.codex/skills, ~/.claude/skills, ~/.agents/skills
./install.sh --agent all

# Install into one explicit skills directory
./install.sh --target ~/.agents/skills

Use It Naturally

Use the repo-docs skill to create docs for this repository.
Use repo-docs-zh to create a Chinese repo guide for this project.
Explain how this subsystem works using repo-docs and the current source.

Modes

ModeUse whenWhat it preserves
SeedThe repo is new or has little runtime evidenceGoals, decisions, planned work, and unknowns
BuildThe repo needs its first guideWalkthrough, concepts, references, glossary, and sync rule
SyncA repo question or guide-covered behavior may make docs staleThe smallest page that would otherwise mislead
CleanupThe user asks to remove generated docsDocs package and stale root-agent pointers
Question refinementA question exposes a wrong reader modelThe corrected page, then an answer linked to it

Validation

python skills/repo-docs/scripts/validate_repo_docs.py /path/to/repo-docs --repo-root /path/to/repo

Use --lite for small projects and --seed for repositories that still need status-labeled plans instead of implementation claims. --repo-root checks source locators and post-anchor drift.

Quality Bar

A good Repo-Docs package is useful after the chat ends.

PrincipleMeaning
Behavior before inventoryTeach one real workflow before listing files.
Reader handles before locatorsExplain the concept, then link to the exact path, function, field, or command.
One durable fact, one homeConcepts and needed details live in modules; evidence and quality audit live in references; history lives in the change log.
Evidence stays visibleCurrent source, tests, config, data, commands, and artifacts outrank memory or stale docs.
Patches stay surgicalWhen understanding drifts, update the smallest page that fixes the reader model.

Source Layout

repo-docs-skills/
├── skills/
│   ├── repo-docs/        # installable skill package
│   └── repo-docs-zh/     # Chinese language overlay
├── site/                 # homepage source
├── docs/                 # GitHub Pages publish tree
├── install.sh
├── install.ps1
├── README.md
└── README_CN.md

The installable skill source lives under skills/. The site/ directory is homepage source, while docs/ is the GitHub Pages publish tree.

Installed Package Contents

<skills-dir>/
├── repo-docs/
│   ├── SKILL.md
│   ├── REFERENCE.md
│   ├── WRITING.md
│   ├── PAGE_RULES.md
│   ├── SCOPE_MODES.md
│   ├── SYNC_RULES.md
│   ├── QUALITY_RULES.md
│   ├── EXAMPLES.md
│   ├── validate_repo_docs.py
│   └── scripts/
│       └── validate_repo_docs.py
└── repo-docs-zh/
    └── SKILL.md

Acknowledgements

Repo Docs Skills is developed by the AI4GC Lab at Zhejiang University.


Repo-Docs: make the repository explain itself.
Walkthroughs, evidence, references, sync rules, and project memory for fast-moving code.

visitors

常见问题

What is repo-docs-skills?

repo-docs-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by YurunChen. Living project docs for coding agents: keep guides, progress logs, change maps, and handoff context updated as your repo evolves. It has 455 GitHub stars.

Is repo-docs-skills safe to use?

Yes. repo-docs-skills passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install repo-docs-skills?

Clone the repository with "git clone https://github.com/YurunChen/repo-docs-skills" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is repo-docs-skills written in?

repo-docs-skills is primarily written in Python. It is open-source under YurunChen on GitHub, so you can review or fork the full source.

Are there alternatives to repo-docs-skills?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh repo-docs-skills against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情