pm-docs

A documentation checker and drafting tool for project documents. It finds missing or possibly outdated core documents and can prepare drafts inside the project’s .pm folder.

In plain words
What is it for?
Use it to refresh the document index, identify missing or stale documents, create draft documents, and copy an approved draft to an official path.
Why use it?
It makes documentation gaps visible without silently changing official documents. Developers can supply their own files or review an AI-created draft before confirming its final location.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wei63w/pm-manager/pm-docs
Any agent
npx skills add wei63w/pm-manager --skill pm-docs
Clone the repo
git clone --depth 1 https://github.com/wei63w/pm-manager

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.00514
Opus 5 $0.00016 $0.00257
Sonnet 5 $0.00007 $0.00103
Haiku 4.5 $0.00003 $0.00051

Measured 3d ago against content hash 73813386604a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pm-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adapters/cursor/skills/pm-docs/SKILL.md · 42 lines

What it actually says

User Input

$ARGUMENTS

Accepted: empty | --draft | confirm DOC-xxx [path] | upload(用户自备).

Outline

/pm-docs 只管文档索引与补齐。用户以中文交互时用中文回复。正式文档未经确认不得写入业务树。

  1. Require .pm/。缺则建议 /pm-init
  2. 先读 .pm/architecture/map.json 与现有 .pm/state/doc-index.md(若有)。禁止为找文档做无过滤全库递归。
  3. 运行 pm docs(刷新索引 + .pm/state/doc-index.json)。列出缺失与 possibly_stale
  4. 双模式(对每条缺失):
    • 自备 / upload:告诉用户把文件放到索引 expected 路径,再跑一次 pm docs
    • 起草:运行 pm docs --draft,只写 .pm/docs/drafts/DOC-*.md。按地图 / README / 注释填草稿,保持可编辑。停下等确认
  5. confirm DOC-xxx [path]:仅在用户明确指定正式路径后,把草稿复制过去。默认建议 .pm/docs/ 或用户点名的 docs/*.md。未指定路径则继续只留在 drafts。
  6. 过期文档:只提示代码变更可能新于文档,默认不自动改正文。
  7. Closing:_closing.md 轻量档。指向 doc-index.md 与已有草稿。

Done When

  • 索引已更新(中文)
  • 草稿未写入业务树,除非用户确认了路径
  • 无秘密落盘

Shared Workflow

Map-first. Redact. Confirm-before-write for official docs. Design baseline: docs/prd.md + 宪章。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 42 lines · 33 tokens per session scan A 73813386604a

Subscribe to this mod's changes

pm-docs is a skill published in the GitHub repository wei63w/pm-manager (96 stars, last pushed 3d ago), licensed MIT. It adds 33 tokens to every session and 514 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

spec-driven-development

Creates specs before coding. Use when starting a new project, feature, or significant change and no specification exists yet. Use when requirements are unclear, ambiguous, or only exist as a vague idea. Use when a single requirement spans several independently testable capabilities and needs decomposing into a…

addyosmani/agent-skills · 67 tokens

idea-refine

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or…

addyosmani/agent-skills · 75 tokens

chinese-documentation

中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 62 tokens

chinese-git-workflow

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 69 tokens

chinese-code-review

中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 62 tokens

dispatching-parallel-agents

当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用.

jnMetaCode/superpowers-zh · 30 tokens