用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Divem/yuanwen-skills --skill docs-organizer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
为 Agent Skill 生成统一的落地页(landing)、手册页(manual)和 SKILL.md 源文档页(source)HTML。基于统一设计规范,确保所有 Skill 介绍页面视觉语言一致。触发场景:(1) 用户要求为某个 skill 生成 landing/介绍页面;(2) 用户要求为某个 skill 生成 manual/手册/文档页面;(3) 用户要求展示或渲染 SKILL.md 原文;(4) 用户要求生成 skill 介绍页、文档页或源码页。输入:skill 名称 + skill 文档内容。输出:三个互相链接的 HTML 文件。
为项目创建和优化 AGENTS.md(AI agent 行为指南文件,Claude Code / Codex 等通用)。两种模式——(1) 初始化:生成高质量、紧凑的 AGENTS.md + CLAUDE.md,包含动机、通用原则、项目红线、真实命令、架构 Gotchas 与自检清单;(2) 诊断:审查现有 AGENTS.md 的 11 个维度,包括事实准确性、可执行性、单一规则源、篇幅结构、内部去重、时效快照与信息密度,输出分级报告与优化建议。适用于:初始化或重做 AGENTS.md、检查质量与过时内容、精简冗余规则、收敛 CLAUDE.md / GEMINI.md / Cursor 等重复入口。触发场景——用户说"初始化/创建/生成 AGENTS.md""诊断/检查/审查/优化/精简 AGENTS.md""AGENTS.md 写得怎么样""帮项目定 agent 规则""CLAUDE.md 和 AGENTS.md 怎么组织"。
从B站视频采集评论数据,支持分页获取、子回复展开、写入飞书表格。 当用户提到"采集B站评论"、"获取B站评论"、"爬取bilibili评论"、"B站评论导出"、 "bilibili comments"时触发。支持传入BV号或完整URL,需要B站登录cookie。
基于 SOC 职业分类
正在显示 SKILL.md
| name | docs-organizer |
| description | 文档目录管理。Init: 初始化 docs/ 结构。Diagnose: 诊断现有文档。跨工具通用 — 支持 Claude Code、OpenCode、Cursor、Cline 等。仅手动触发。 |
| metadata | {"author":"wen.yuan"} |
Standardized documentation management for any project. Two modes: init (bootstrap), diagnose (audit). 手动触发 only — must be explicitly invoked by user.
When the user invokes /docs-organizer, determine the mode:
| User says... | Mode |
|---|---|
| "初始化文档", "setup docs", "新建 docs 规范" | init |
| "诊断文档", "整理 docs", "audit docs", project already has docs/ | diagnose |
No clear intent → has docs/ | diagnose |
No clear intent → no docs/ | init |
Load config from project root .claude/docs-organizer.yaml if it exists. If not found, use defaults and offer to create one.
# .claude/docs-organizer.yaml
language: zh # zh or en — language for docs-guide.md
protected_dirs: # Directories inside docs/ that are managed by frameworks/tools — never modify
- superpowers
- .vuepress
- .docusaurus
enabled_dirs: # Which standard directories to create. Uncomment to customize.
- prd
- tech
- design
- handover
- research
- reports
- planning
- archive
- raw-source
extra_dirs: # Custom directories beyond the standard set
# - decisions # example: architecture decision records
.claude/docs-organizer.yaml in project rootInitialize docs management for a project that has no (or minimal) docs/ structure.
Detect existing state
docs/ existsCollect preferences (skip if config file exists)
references/directory-mapping.md).claude/docs-organizer.yamlCreate directory structure
mkdir -p docs/{prd,tech,design,handover,research,reports,planning,archive}
# Only create directories listed in enabled_dirs config
Generate docs-guide.md
references/full-guide-template.md{{project_name}}, {{enabled_dirs}}, {{protected_dirs}}docs/docs-guide.mdCreate README.md index in each directory
| File | Topic | Last Updated |Inject CLAUDE.md rules
references/claude-md-snippet.mdReport results
✓ Created docs/ structure (prd/, tech/, design/, ...)
✓ Generated docs/docs-guide.md
✓ Created directory README.md indexes
✓ Injected docs rules into CLAUDE.md (line XX)
✓ Saved config to .claude/docs-organizer.yaml
Audit an existing docs/ directory and produce a migration report.
Load config (or create interactively)
Scan docs/
Compliance checks
For each file, verify against references/directory-mapping.md:
| Check | Rule |
|---|---|
| Directory | File type matches expected directory |
| Naming | No spaces, no parens, no version numbers, kebab-case |
| Cross-ref | PRD ↔ tech design docs have mutual links |
| Index | Directory README.md lists the file |
| Stale | Files in planning/ that are older than 3 months |
Generate report
Scanned docs/ — 23 files found:
✓ Compliant (14):
docs/tech/database-schema.md
docs/prd/dashboard-requirements.md
...
⚠ Non-compliant (7):
docs/PRD.md → rename to prd/requirements.md
docs/技术方案.md → move to tech/, rename to {topic}-design.md
docs/old-plan.md → archive to archive/old-plan.md
⊘ Protected (2):
docs/superpowers/ (framework directory, skipped)
Interactive migration (if user confirms)
git mv for each file to preserve historyWhen generating files from templates, replace these variables:
| Variable | Source | Example |
|---|---|---|
{{project_name}} | Directory name or package.json name | "coder-friends" |
{{enabled_dirs}} | Config enabled_dirs | "prd, tech, design" |
{{protected_dirs}} | Config protected_dirs | "superpowers" |
{{language}} | Config language | "zh" |
{{date}} | Current date | "2026-04-23" |
Load these on demand — do NOT load them into context unless the current mode needs them:
| File | When to load |
|---|---|
references/full-guide-template.md | init mode — generating docs-guide.md |
references/claude-md-snippet.md | init mode — injecting CLAUDE.md rules |
references/directory-mapping.md | all modes — validating file placement and naming |