marketplace/bundles/pm-documents/skills/recipe-verify-ascii-diagrams/SKILL.md
Recipe for verifying and fixing alignment of ASCII box diagrams across .md skill source and .adoc documentation, one deliverable per offending file
npx skillsauth add cuioss/plan-marshall recipe-verify-ascii-diagramsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Recipe for sweeping ASCII box diagrams repo-wide, validating their alignment via
the pm-documents:ref-ascii-diagrams validator, and creating one fix deliverable
per offending file. Discovers candidate .md (marketplace) and .adoc (doc)
files, classifies which contain misaligned boxes via the validator's check
mode, and outlines a fix per offending file via the validator's fix mode.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| plan_id | string | Yes | Plan identifier |
| recipe_domain | string | Yes | Domain key (auto-assigned: documentation) |
| recipe_profile | string | No | Not used |
| recipe_package_source | string | No | Not used |
Documentation skills provide formatting and content standards:
python3 .plan/execute-script.py plan-marshall:manage-config:manage-config \
resolve-domain-skills --domain documentation --profile core
Store all resolved skill names. Deliverables use profile implementation since
.md / .adoc files are modified by the validator's fix mode.
Run the canonical manage-files discover resolver twice to enumerate candidate
files in both surfaces, capturing each returned paths array:
python3 .plan/execute-script.py plan-marshall:manage-files:manage-files discover \
--root marketplace/bundles \
--glob "**/*.md" \
--include-files
python3 .plan/execute-script.py plan-marshall:manage-files:manage-files discover \
--root doc \
--glob "**/*.adoc" \
--include-files
Concatenate the two paths arrays into the candidate file list. If both are
empty, report empty scope and return.
For each candidate file, run the ref-ascii-diagrams validator's check mode to
classify whether it contains a misaligned box:
python3 .plan/execute-script.py pm-documents:ref-ascii-diagrams:ascii_diagrams check \
--path {file}
Parse the returned TOON. Classify each file as:
misaligned_count >= 1 — include in deliverables.misaligned_count == 0 — skip.Show the offending files with their misaligned-line findings (file / line
pairs from each check result). Report the clean-file count for context. No
user decision is required — every offending file becomes a fix deliverable — but
surface the inventory so the user sees the sweep's scope before the outline is
written.
One deliverable per offending file:
Fix ASCII box alignment: {file}change_type: tech_debtexecution_mode: automateddomain: documentationmodule: documentationdepends: noneimplementation{file}fix mode over the file to re-pad
interior lines and rebuild top/bottom rules to a consistent width:
python3 .plan/execute-script.py pm-documents:ref-ascii-diagrams:ascii_diagrams fix --path {file}ascii_diagrams check --path {file} and confirm
misaligned_count == 0.check reports zero misalignment).fix pass changes nothing).4a. Read the deliverable template:
Read: marketplace/bundles/plan-marshall/skills/manage-solution-outline/templates/deliverable-template.md
4b. Resolve the target path:
python3 .plan/execute-script.py plan-marshall:manage-solution-outline:manage-solution-outline \
resolve-path --plan-id {plan_id}
4c. Write the solution outline using the Write tool to {resolved_path}:
# Solution: Verify ASCII Diagrams header with plan_id, created,
compatibility metadata.## Summary — scope description ({N} offending files of {M} candidates).## Overview — resolved skills, discovery surfaces (marketplace/bundles/**/*.md,
doc/**/*.adoc), offending-file inventory.## Deliverables — one deliverable per offending file from Step 3, using the
template structure from 4a.4d. Validate the written outline:
python3 .plan/execute-script.py plan-marshall:manage-solution-outline:manage-solution-outline \
write --plan-id {plan_id}
pm-documents:ref-ascii-diagrams — the authoring standard and check / fix
validator this recipe drives.pm-documents:recipe-verify-architecture-diagrams — sibling diagram recipe
(PlantUML / SVG surface; same 4-step recipe pattern).pm-documents:recipe-doc-verify — documentation quality verification recipe.plan-marshall:phase-3-outline Step 3 — Loads this skill with input parameters.development
The single append-only change-ledger — one worktree_sha-stamped substrate for kind=build and kind=change entries — plus the first-class worktree-sha freshness API
development
Authoring standards for ASCII box diagrams in skill and doc source — box-drawing conventions, right-border alignment, and a deterministic check/fix validator over fenced/literal code blocks in .md and .adoc files
development
Pure platform-agnostic terminal-title composition consumed by platform-runtime via PYTHONPATH
development
Cross-session coordination primitives — the unified file-based merge mutex and the build-queue concurrency limiter on one shared, TOCTOU-safe, main-anchored core