Skip to content

fix(writing-plans): use 4-backtick fence for nested code blocks in Task Structure template - #457

Merged
obra merged 1 commit into
obra:mainfrom
ColtWindy:fix/writing-plans-nested-code-fence
Feb 12, 2026
Merged

obra merged 1 commit into
obra:mainfrom
ColtWindy:fix/writing-plans-nested-code-fence

Conversation

@ColtWindy

@ColtWindy ColtWindy commented Feb 12, 2026 •

Copy link
Copy Markdown

Summary

The Task Structure template in skills/writing-plans/SKILL.md (lines 49-88) uses a 3-backtick ```markdown outer fence containing inner 3-backtick code blocks (```python, ```bash). Since both use the same fence length, the first inner closing ``` prematurely terminates the outer fence, breaking the template rendering on GitHub and other markdown viewers.

Fix

Change the outer fence from 3-backtick to 4-backtick (````), per CommonMark Spec §4.5 — Fenced Code Blocks:

"The closing code fence must be at least as long as the opening fence."

This is the same pattern already used throughout skills/writing-skills/anthropic-best-practices.md in this project.

Changes

  • skills/writing-plans/SKILL.md line 49: ``` → ```` (opening fence)
  • skills/writing-plans/SKILL.md line 88: ``` → ```` (closing fence)

@coderabbitai

coderabbitai Bot commented Feb 12, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This PR modifies code fence markers in skills/writing-plans/SKILL.md. The opening fence changed from ```markdown to ````markdown and the closing fence from ``` to ````. No content changes.

Changes

Cohort / File(s) Summary
Markdown Code Fence Update
skills/writing-plans/SKILL.md
Added one backtick to both opening and closing code fence markers; no content modifications.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

Four backticks, not three, we say,
A fence adjustment for the day,
The markdown holds its beauty still,
With fences tall—a rabbit's thrill! 🐰````

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly describes the main fix: changing to 4-backtick fences for nested code blocks in the Task Structure template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@obra

obra commented Feb 12, 2026

Copy link
Copy Markdown
Owner

Thanks so much.

@obra
obra merged commit b97b5f2 into obra:main Feb 12, 2026
@ColtWindy
ColtWindy deleted the fix/writing-plans-nested-code-fence branch February 13, 2026 06:03
qqhard pushed a commit to qqhard/superpowers-ML that referenced this pull request Mar 6, 2026
…ode-fence

fix(writing-plans): use 4-backtick fence for nested code blocks in Task Structure template
samuelfa pushed a commit to samuelfa/superpowers that referenced this pull request Mar 8, 2026
…ode-fence

fix(writing-plans): use 4-backtick fence for nested code blocks in Task Structure template
shihao-hc pushed a commit to shihao-hc/superpowers that referenced this pull request Apr 6, 2026
…ode-fence

fix(writing-plans): use 4-backtick fence for nested code blocks in Task Structure template
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.

2 participants