Install
$ agentstack add skill-bushuhui-skills-pd-doc ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
/pd-doc
基于文档索引的迭代开发工作流:自动管理项目文档,新建项目创建文档骨架,已有项目增量更新。
核心原则
- 基于实际代码分析,不猜测 — 无法确定的部分注明"待进一步分析"
- 利用对话上下文 — 已知刚才做了什么改动,不需重新分析代码
- 先验证再记录 — 运行确认没问题后再写文档,不记录半成品
- 大模块才独立文档 — 不为每次小改动新建 MD
文档目录约定
docs/
├── architecture.md # 项目架构总览(长期维护)
├── api.md # 接口定义汇总(长期维护)
├── changelog.md # 改动日志(持续追加)
└── modules/[module-name].md # 大模块说明(按需新增)
工作流
模式 A:新项目初始化(docs/ 不存在)
- 创建
docs/目录 - 生成
docs/architecture.md,包含:
- 技术栈与核心依赖
- 目录结构(树状图,标注核心/配置/资源目录)
- 模块划分及各模块职责
- 模块间的依赖关系和数据流向
- 生成
docs/api.md,包含:
- 所有 API 端点(路径、方法、参数、返回值)
- 路由定义位置
- 前后端交互方式
- 生成
docs/changelog.md,包含空模板:
```markdown # Changelog
## 格式说明 每次改动按以下格式追加到文件顶部:
## YYYY-MM-DD — 改动摘要
- 范围:涉及的模块
- 修改:filea.ts, fileb.py
- 接口变更:如有则列出
- 备注:破坏性变更、待办事项等
```
模式 B:已有项目增量更新(docs/ 已存在)
- 读取
docs/changelog.md,获取最近改动记录 - 读取现有项目文件,对比上次文档生成后的变更
- 增量更新
docs/architecture.md(如有架构变化) - 增量更新
docs/api.md(如有接口变化) - 追加变更记录到
docs/changelog.md顶部:
```markdown ## YYYY-MM-DD — 改动摘要
- 范围:涉及的模块
- 修改:具体文件列表
- 接口变更:如有则列出
- 备注:破坏性变更、待办事项等
```
模式 C:大模块新增独立文档
适用于新增功能模块、重构大组件等较大变动。
- 在
docs/modules/下新建[module-name].md,包含:
- 模块职责和设计思路
- 核心文件清单
- 对外暴露的接口/函数/类
- 与其他模块的依赖关系
- 使用示例(如适用)
- 更新
docs/architecture.md的模块划分章节 - 在
docs/changelog.md中追加一条大模块变动记录
最佳实践
- 初始分析只做一次 — architecture.md 和 api.md 是基准,后续只增量更新
- 每次提交前更新 changelog — 保证改动记录不遗漏
- 大模块才独立文档 — 不要为每次小改动新建 MD
- 新任务必带文档路径 — 避免 AI 盲目分析浪费时间
- 定期清理过时文档 — 重构后删除或更新旧文档
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: bushuhui
- Source: bushuhui/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.