Files
trailofbits__skills/plugins
Dan Guido 7be90d6e55 Close unterminated fences in cairo, algorand, and ton scanner skills (#268)
* Close unterminated fences in three chain scanner skills

The cairo, algorand, and ton scanner SKILL.md files each opened a code
fence for the "Example Output" report and never closed it. Everything
after that point - sections 6 through 12, roughly two thirds of each
skill - rendered as one code block instead of as markdown. Each file
also carried three sections numbered "## 5.".

Close the fence at the end of the surviving example report in each file,
then renumber the H2 sections 1..12 in document order so they are unique
and increasing. This matches solana-vulnerability-scanner, the fourth
sibling, which was repaired the same way in #160.

The example reports themselves are still truncated: cairo retains only
its banner line, and algorand and ton both announce two findings but
show one. That content was already gone in the initial import (695119c)
and is not recoverable from history, so it is left as is rather than
invented.

Bumps building-secure-contracts 1.1.3 -> 1.1.4 in plugin.json and
marketplace.json so clients pick up the fix.

Fixes #260

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Widen the Finding Template fence so sections 9 and 10 render

The Finding Template opens a ```markdown block and nests ```python/```func
snippets inside it. Per CommonMark a closing fence must be bare, so the first
bare ``` after a nested snippet closes the outer markdown block early; the later
bare ``` then opens a fresh block that swallows "## 9. Priority Guidelines" and
"## 10. Testing Recommendations" as code. A parity count of fence lines cannot
see this, which is why the earlier render check reported 12/12 when a CommonMark
parser renders only 10.

Widen the outer Finding Template fence to four backticks in all four scanners so
the nested triple-backtick fences stay content. solana shares the template and
the same defect, so it is fixed here too even though the earlier split left it
untouched. A CommonMark parser now renders 12/12 sections in every file.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014UFqJu1ada7gXjD9peo1rX

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: kz-tob <kara.zaffarano@trailofbits.com>
2026-08-20 12:26:56 -04:00
..