Thanks for helping improve pi-visualize-code-changes — a Pi skill that turns code changes into before / after / what-changed Mermaid diagrams.
By participating, you agree to uphold the Code of Conduct.
- Bug reports (validator false positives/negatives, broken skill steps, bad docs)
- Diagram quality improvements (lens recipes, syntax pitfalls, template)
- Docs and examples (
docs/diagrams/, README) - Skill workflow clarity (
skills/visualize-code-changes/SKILL.md)
git clone https://github.com/BlockedPath/pi-visualize-code-changes.git
cd pi-visualize-code-changes
# load the local package into Pi
pi install "$PWD"
# or one-shot without installing
pi -e "$PWD"Recommended companion (interactive lens prompts):
pi install npm:@juicesharp/rpiv-ask-user-questionOptional but useful for authoritative Mermaid checks and --render SVGs:
npm i -g @mermaid-js/mermaid-cli
# needs Chrome/Chromium, or Puppeteer's bundled browserskills/visualize-code-changes/
├── SKILL.md # agent workflow (main surface)
├── assets/template.md # output document skeleton
├── references/ # lens recipes + syntax pitfalls
└── scripts/validate_mermaid.py
docs/diagrams/ # example outputs (dogfood)
There are no runtime npm dependencies. The only executable is the Python 3 validator (stdlib only).
-
Branch from
main. -
Keep skill instructions concrete and testable — prefer commands the agent can run over vague guidance.
-
If you touch Mermaid guidance or the validator, update
references/syntax-pitfalls.mdwhen the failure mode is general. -
Validate any diagram Markdown you add or change:
python3 skills/visualize-code-changes/scripts/validate_mermaid.py path/to/file.md # force heuristics (no mmdc): python3 skills/visualize-code-changes/scripts/validate_mermaid.py --lint-only path/to/file.md -
Dogfood the skill when the change affects the workflow:
/skill:visualize-code-changes uncommitted /skill:visualize-code-changes HEAD
- Fill out the PR template.
- Keep PRs focused; separate refactors from behaviour changes when you can.
- Include before/after notes for skill or validator behaviour.
- Do not commit secrets, local Pi settings, or
node_modules. - New diagrams under
docs/diagrams/should passvalidate_mermaid.py.
Short imperative subjects are enough, e.g.:
docs: clarify gh requirement for pr scope
fix(validator): treat bare end node as error
Use the Bug report issue template. Include:
- Pi version (
pi --versionif available) - Whether
mmdc/ Chrome are installed - The diagram Markdown or a minimal repro
- Full
validate_mermaid.pyoutput when relevant
Use the Feature request template. Explain the review problem the change solves, not only the implementation idea.
Please do not open public issues for sensitive security reports. Contact the repository owner privately (GitHub profile / security advisory if enabled).
Contributions are licensed under the MIT License.