project-docs-init
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "project-docs-init" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7b91fddb8900ff7ba3d39861b0a5c110f7cf98a8041c02cc35d58c2236225eda. Verify the upstream source and version against https://skillhub.cn/skills/user_2689f551/project-docs-init before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A tool to initialize AI collaboration documentation in a new project with one action, creating a docs/ai/ directory and generating CLAUDE.md and AGENTS.md.
Introduction source: third_party · user_2689f551 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: project-docs-init
description: 在新项目中一键初始化 AI 协作文档体系(docs/ai/ + CLAUDE.md + AGENTS.md)project-docs-init
在任意项目根目录初始化 AI 协作文档骨架。从通用模板复制 docs/ai/(00-08 编号文件 + 7 个子目录)和根入口 CLAUDE.md、AGENTS.md。
触发
用户说「初始化 AI 协作文档」「初始化 docs/ai」「初始化项目文档体系」或 /project-docs-init 时触发。
执行流程
1. 确认目标
- 目标 = 当前工作目录(项目根)
- 向用户复述一次目标路径
- 如果不在项目根(没有
.git或典型项目文件),提示确认
2. 安全检查
检查以下目录/文件是否已存在:
docs/ai/CLAUDE.mdAGENTS.md.gitignore
任一存在 → 停止,列出冲突项,询问用户决定:
- 跳过冲突的文件 — 不覆盖已有文件,只创建不存在的
- 覆盖 — 用模板覆盖已有文件
- 手动处理 — 停止,让用户自己处理
绝不默认覆盖,必须等用户明确选择。
3. 复制模板
用户确认后,将本 skill 的 template/ 目录下所有内容复制到目标项目根:
template/CLAUDE.md→<项目根>/CLAUDE.mdtemplate/AGENTS.md→<项目根>/AGENTS.mdtemplate/.gitignore→<项目根>/.gitignoretemplate/docs/ai/*→<项目根>/docs/ai/*
保留子目录结构和 .gitkeep 文件。
4. 替换占位符
在已复制的文件中做文本替换:
| 占位符 | 替换为 | 出现位置 |
|---|---|---|
{{PROJECT_NAME}} |
项目根目录名(basename) | 00_PROJECT_CONTEXT.md |
{{DATE}} |
当天日期 YYYY-MM-DD | 00_PROJECT_CONTEXT.md、01_CURRENT_PROGRESS.md、02_TASK_LOG.md、07_CURRENT_SYSTEM_BASELINE.md、08_INTERFACE_CATALOG.md |
5. 可选问答(收集项目基本信息)
询问用户最多 3 个问题(每个都可以答「跳过」):
- 项目一句话定位:这个项目是做什么的?
- 主要技术栈:Python / TypeScript / Rust / 其他?
- 当前阶段:刚起步 / 已有基础 / 迭代中?
如果用户答了,写入 00_PROJECT_CONTEXT.md 对应段落,替换待填提示。
如果用户说「跳过」,保留待填提示不变。
6. 收尾
输出完成清单:
初始化完成。已创建:
入口文件:
CLAUDE.md
AGENTS.md
.gitignore
docs/ai/ 核心文件:
00_PROJECT_CONTEXT.md ← 建议先填:项目定位 + 关键文件
01_CURRENT_PROGRESS.md ← 建议先填:当前状态 + 下一步
02_TASK_LOG.md
03_ISSUE_KNOWLEDGE_BASE.md
04_REUSABLE_PATTERNS.md
05_DECISIONS.md
06_AI_WORKFLOW.md ← AI 工作流核心规则
07_CURRENT_SYSTEM_BASELINE.md
08_INTERFACE_CATALOG.md
子目录:designs/ plans/ domain/ runs/ retrospectives/ evidence/ archive/
下一步:
1. 打开 docs/ai/00_PROJECT_CONTEXT.md 填入项目定位和关键文件
2. 打开 docs/ai/01_CURRENT_PROGRESS.md 填入当前状态
3. 如果项目有领域知识文档,在 00_PROJECT_CONTEXT.md 中声明
如果目标不是 git 仓库,加一句提示:「当前目录不是 git 仓库,建议 git init。」
不自动 git commit。
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决新项目快速搭建 AI 协作文档体系的痛点
- 提升开发者协作效率,具有明确实用价值
Highlights
- 触发词覆盖合理,边界清晰
- 支持多种表达方式和命令触发
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但缺少明确的 When to Use 使用场景说明章节
Recommendation: 建议添加 When to Use 章节,明确说明适用场景和使用时机
Highlights
- 执行流程分 6 个清晰步骤,结构合理
- 包含完整的安全检查与用户确认机制
- 提供详细的完成清单和后续操作指引
Highlights
- 文件冲突检查机制完善
- 不可逆操作有明确用户确认流程
- 占位符替换逻辑清晰,参数处理正确
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.