Skip to content

refactor(aidd-context): conform 09-mermaid to the skill contract#286

Merged
blafourcade merged 2 commits into
mainfrom
refactor/aidd-context-mermaid
Jun 17, 2026
Merged

refactor(aidd-context): conform 09-mermaid to the skill contract#286
blafourcade merged 2 commits into
mainfrom
refactor/aidd-context-mermaid

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

🎯 What & why

Bring aidd-context:09-mermaid in line with the skill contract the other context skills now follow. The old SKILL.md embedded its action file instead of routing, the action used plural Inputs/Outputs with frozen yaml/mermaid data blocks, and the README still carried a stale 04 heading.

🛠️ How it works

  • SKILL.md is a real router: an ## Actions table plus transversal rules (plan, confirm, generate only the confirmed plan, follow the conventions), and a tight description with when and not-for.
  • The action uses the singular Input/Output/Process/Test anatomy and drops the frozen blocks.
  • The LR default and the minimum Mermaid version move into references/mermaid-conventions.md, where the per-format data belongs.
  • README heading fixed from 04 to 09, framework link corrected.

🧪 How to verify

  • grep -rnE '—|->|;' plugins/aidd-context/skills/09-mermaid/SKILL.md plugins/aidd-context/skills/09-mermaid/actions is clean; the action carries the four anatomy sections; SKILL.md has Actions + transversal rules + References.
  • Validated via headless claude -p: the skill plans the diagram, generates a valid flowchart LR from the confirmed plan, and applies the conventions reference (title via ---, declare-first/link-last, datastore cylinder).

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

Make the skill follow the same conventions as the reworked context skills.

- SKILL.md becomes a real router: an Actions table and transversal rules,
  instead of embedding the action file. Tight description with when and
  not-for. Title is "Mermaid", not "Skill: mermaid".
- the action uses the Input/Output/Process/Test anatomy (singular) and
  drops the frozen yaml input block and the frozen mermaid output block.
- move the LR default and the minimum version into the conventions
  reference, where the per-format data belongs.
- README: fix the stale "04" heading to "09" and the framework link.

Validated via headless claude -p: the skill plans, generates a valid
flowchart from the confirmed plan, and applies the conventions reference.
Verified the rules against the official Mermaid syntax docs and fixed
three that were wrong or misleading:

- `==>` is a thick link, not a self-loop. A self-loop is `A --> A`.
- `<br>` is supported, so drop the absolute ban; keep it a style
  preference (a literal `\n` does render wrong, that ban stays).
- a `:` in a state id collides with the description delimiter, so keep
  it out of the id rather than swapping it for `$`.

Also reword the styling rule to its real intent (do not style unless
asked) and state that the global sections apply to every diagram type.
@blafourcade blafourcade merged commit 4d8e942 into main Jun 17, 2026
9 checks passed
@blafourcade blafourcade deleted the refactor/aidd-context-mermaid branch June 17, 2026 07:38
@aidd-bot aidd-bot Bot mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant