init
Set up docflow in a repo with no docs yet: scaffold the docs tree, write docflow.json, add agent guidance. Use when asked to "set up docflow", "init…
它会碰到什么
扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
init
Goal: initialize docflow only when doctor says this repo has no meaningful docs yet. Keep existing user-authored files; generated maintenance files may be refreshed.
Steps
- Run doctor first.
bash scripts/docflow-doctor.sh --target <REPO ROOT>
- Route by recommendation.
docflow-init: continue.docflow-adopt: stop and run/docflow:adoptinstead (preserves existing docs).docflow-repair: stop and run/docflow:repairinstead.
- Pick docs root.
- Use
docs/unless the user explicitly chooses another root.
- Pick project name.
- Prefer repo folder name.
- If root
README.mdhas clear project title, use that.
- Run scaffold from plugin root (idempotent; skips existing user content, refreshes generated files):
bash scripts/scaffold.sh --docs-root <DOCS_ROOT> --project "<PROJECT NAME>" --target "<REPO ROOT>"
This creates the category tree, drops templates, writes docflow.json, and scaffolds AGENTS.md + GEMINI.md + .cursorrules.
- Add root README link if missing:
## Documentation- link to
<DOCS_ROOT>/README.md
- Seed the first changelog. Create
<DOCS_ROOT>/changelog/(mmm-yy).mdfor the current month from the template, summarizing recent history (git log --no-merges --pretty='%h %ad %s' --date=short -20). Use thechangelogskill for the format.
- Regenerate the map and validate:
bash scripts/docflow-map.sh "<REPO ROOT>/<DOCS_ROOT>"
bash scripts/docflow-validate.sh --target "<REPO ROOT>"
Fresh template placeholders are warnings; validation errors are blockers.
- Report what was created (docs root,
docflow.json,AGENTS.md,GEMINI.md,.cursorrules, validation status) and point the user at/docflow:author(writing),/docflow:router(reading),/docflow:validate(readiness),/docflow:repair(maintenance).
Rules
- Never overwrite existing user-authored docs files.
- If docs already exist, prefer
/docflow:adoptover/docflow:init. - Keep
AGENTS.mdanddocflow.jsonaligned on docs root. - Follow the naming rules in
<DOCS_ROOT>/NAMING.mdfor every file you create after.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 1,027
本站分层T1
该仓技能数1910
原文件路径
plugins/MedAdemBHA/docflow/skills/init/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 6 个不同仓库或目录里都有叫 init 的技能。它们内容并不相同,别混用:
- hashgraph-online/awesome-codex-plugins — First-time Archcore setup. Detects repo scale and shape, then composes a full first-day se
- hashgraph-online/awesome-codex-plugins — Initialize KERNEL links and AgentDB in a confirmed Vaults directory.
- hashgraph-online/awesome-codex-plugins — Write or refresh the "## Tech debt operations" section in AGENTS.md so a team shares one s
- hashgraph-online/awesome-codex-plugins — Records Clean Room initialization preferences, separated artifact locations, model policy,
- hashgraph-online/awesome-codex-plugins — Initialize team config for a project. Creates .agenteam/config.yaml (or legacy agenteam.ya