Skip to content

fix(pstack): double-quote Mermaid flowchart labels in teach - #1350

Open
eldano1995 wants to merge 1 commit into
cursor:mainfrom
eldano1995:fix/pstack-teach-mermaid-quotes
Open

eldano1995 wants to merge 1 commit into
cursor:mainfrom
eldano1995:fix/pstack-teach-mermaid-quotes

Conversation

@eldano1995

Copy link
Copy Markdown

Why

An unquoted Mermaid flowchart label that starts with /, such as P[/run-pipeline with 55s timeout], opens the parallelogram delimiter [/.../]. The parser fails with Lexical error ... Unrecognized text.

teach step 5 redraws earlier nodes in each diagram of a series. One unquoted route label therefore breaks every diagram after it.

What changed

  • pstack/skills/teach/SKILL.md step 5: one sentence after "A mermaid diagram fits a flow or structure where the labels carry the meaning." telling the agent to double-quote node and edge labels (A["..."], -->|"..."|).
  • harness/pstack/claude-code/skills/teach/SKILL.md: regenerated.

Scope

Only those two files.

Verification

  • npm install --no-save ajv ajv-formats fast-check@4.5.3
  • node scripts/validate-plugins.mjs: passed
  • node scripts/generate-pstack-harness-trees.mjs --check: passed
  • node scripts/check-pstack-docs.mjs: 0 problems
  • git diff --check: clean
  • mermaid.parse(): P[/run-pipeline with 55s timeout] fails with Lexical error on line 2. Unrecognized text.; P["/run-pipeline with 55s timeout"] parses.

Co-authored-by: Cursor <cursoragent@cursor.com>
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