一键导入
update-test-snapshots
Regenerate test snapshot files after intentional markdown output changes. Use after modifying templates or rendering logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Regenerate test snapshot files after intentional markdown output changes. Use after modifying templates or rendering logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Minimum-requirements checklist for any change — code or docs-only. Run this before every PR creation or push to avoid CI failures on the first attempt.
Generate PNG screenshots for release notes using the repository's HtmlRenderer and ScreenshotGenerator tools. Use when asked to add screenshots to release notes or documentation.
Determine the next available issue number across all change types (feature, fix, workflow) by checking both local docs and remote branches, then reserve it by pushing an empty branch.
Convert the mermaid diagram in docs/agents.md to a blueprint-styled SVG for the website. Use when the workflow diagram in agents.md is updated and needs to be reflected on the website.
Run a focused accessibility pass for website changes (WCAG 2.1 AA-oriented).
Create and update interactive examples for the Eleventy website using page entrypoints and src/examples fragments.
| name | update-test-snapshots |
| description | Regenerate test snapshot files after intentional markdown output changes. Use after modifying templates or rendering logic. |
| compatibility | Requires .NET SDK and access to the test project. |
Regenerate all test snapshot (golden file) baselines when intentional changes are made to markdown output. This updates the expected outputs that snapshot tests compare against.
scripts/update-test-snapshots.shscripts/update-test-snapshots.sh
This single command:
src/tests/Oocx.TfPlan2Md.Tests/TestData/Snapshots/[INFO] Deleting existing snapshot files...
[INFO] ✓ Deleted 6 snapshot files
[INFO] Running snapshot tests to regenerate files...
[INFO] (Tests will fail on first run, but will create new snapshots)
[INFO] ✓ Generated 6 new snapshot files
[INFO] Running snapshot tests again to verify...
[INFO] ✅ All snapshot tests pass!
Snapshots updated successfully. Review changes with:
scripts/git-diff.sh src/tests/Oocx.TfPlan2Md.Tests/TestData/Snapshots
Snapshot files in src/tests/Oocx.TfPlan2Md.Tests/TestData/Snapshots/:
comprehensive-demo.md - Full comprehensive demo outputsummary-template.md - Summary template outputbreaking-plan.md - Edge cases with escapingrole-assignments.md - Role assignment renderingfirewall-rules.md - Firewall rule semantic diffmulti-module.md - Multi-module plan outputAlways review the changes:
scripts/git-diff.sh src/tests/Oocx.TfPlan2Md.Tests/TestData/Snapshots/
Verify the changes match your expectations, then stage and commit:
git add src/tests/Oocx.TfPlan2Md.Tests/TestData/Snapshots/
git commit -m "test: update snapshots after [describe change]"