pm-preview SKILL.md skillA
pm-preview from konglong87/superpm is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add konglong87/superpm/pm-preview@git:20260924.7250d3aPins git:20260924.7250d3a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- konglong87/superpm
- Path
skills/pm-preview/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260924.7250d3a, committed Sep 24, 2026
- First version recorded
- Jun 12, 2026
- Size
- 4,266 bytes
- Repository stars
- 86
- License
- MIT
产品文档实时预览 - 在浏览器中预览 docs/ 下的所有 MD 文档,文档更新时自动刷新 Use when: 需要预览产品文档、查看 PRD/BRD/MRD 等 MD 文档的渲染效果 Do NOT use when: 文档尚未生成(docs/ 为空).
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
## Preamble (run first)
```bash
# 检查 docs/ 目录和文档数量
echo "📊 文档预览状态:"
echo ""
if [ ! -d docs ]; then
echo " ❌ docs/ 目录不存在"
echo " 💡 请先执行产品流程(/pm-brainstorm → /pm-demand → ... → /pm-docs)生成文档"
exit 0
fi
total=0
for prefix in "01-需求调研" "02-方案设计" "03-增长迭代" "04-风控管理" "05-产品战略"; do
count=$(ls docs/$prefix/*.md 2>/dev/null | wc -l | tr -d ' ')
if [ "$count" -gt 0 ]; then
echo " $prefix: $count 个文档"
total=$((total + count))
fi
done
# 递归统计所有 .md 文件
all=$(find docs -name "*.md" 2>/dev/null | wc -l | tr -d ' ')
echo ""
echo " 📄 总计: $all 个 MD 文档"
echo ""
if [ "$all" -eq 0 ]; then
echo " ❌ 没有找到任何文档"
echo " 💡 请先执行产品流程生成文档"
fi
```
---
## 执行流程
### 步骤 1: 启动预览服务器
先从已加载的本 skill 路径确定其绝对目录(单独安装时不在项目的 `skills/` 目录内),再使用 `Bash` 启动:
```bash
bash "<当前 pm-preview skill 所在目录>/scripts/start-preview.sh" --project-dir .
```
**说明**:
- 服务器在随机高端口启动(49152-65535)
- 使用 `--project-dir .` 将 session 持久化到 `.superpm/preview/`,服务器停止后文件保留;验收完毕后应删除不再需要的 session
- 后台运行,不阻塞终端
**输出示例**:
```json
{"type":"server-started","port":52341,"url":"http://localhost:52341","docs_dir":"/path/to/docs","state_dir":"/path/to/.superpm/preview/..."}
```
### 步骤 2: 告知用户打开预览
从输出中提取 `url` 字段,告知用户:
…Read the whole file at its exact version.
How to install
mdr add konglong87/superpm/pm-preview@sha256:99d19dc703438c26The line at the top of this page pins the label git:20260924.7250d3a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_2ifvla23bnr6lbrm)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jun 12, 2026 and Sep 24, 2026, about one every 35 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260924.7250d3a latest | 2026-09-24 | 7250d3a | 4,266 B | A | view · diff |
| git:20260924.e4cde07 | 2026-09-24 | e4cde07 | 4,101 B | A | view · diff |
| git:20260618.eebf31a | 2026-06-18 | eebf31a | 4,013 B | A | view · diff |
| v1.0.0 | 2026-06-12 | 21e0b1d | 4,028 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4266 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
konglong87/superpm · 86 stars · license MIT · pushed 2026-10-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2ifvla23bnr6lbrm GET https://markdownregistry.com/api/v1/resolve?ref=konglong87/superpm/pm-preview GET https://markdownregistry.com/api/v1/blob/99d19dc703438c26ad1b7357212e0482f55306e4deeff1f55da9c6e6e55e559d
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.