agentleFS
drinkspillerdrinkspiller/skills/diagramming-app-routes/SKILL.md

diagramming-app-routes

Skill1 starsChanged 8 days agoUnlicenseView on GitHub

Builds or updates code-grounded static HTML sitemaps and inline-SVG routing flowcharts (auth/allowlist/waitlist/terms gates and route-by-user-state tables) with dated backups. Use when diagramming app routes or request gates across commits or PRs.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read new gate modules in full at <head> to get: what decides "allowed", which environments enforce it, dev overrides (query params, env …

    line 31
  2. Distinctive:

    Don't trust PR descriptions for behavior.

    line 39
  3. Very specific:

    Start from the existing page if there is one (keep its geometry and palette).

    line 46
  4. Distinctive:

    Add the request-perimeter SVG when the changes add server-side checks.

    line 53
  5. Distinctive:

    Add the pending-changes callout if any change is unmerged, and the source-changes grid (PR/commit links), stating which changes don't …

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Diagramming App Routes

Produces a one-file, zero-JS HTML page that answers "what happens when a user hits route X in state Y", grounded in code. Visual and editorial decisions live in design_system.md; the page skeleton with layout-grid coordinates is template.html. Read both before drawing.

1. Collect the changes

  • Identify the change set: a PR list, a commit range, or a branch. For stacked PRs or branches, read the top of the stack for the final state and use each PR's description only to attribute features.
  • Pull only the diffs that define routing:

    git diff <base>...<head> -- '<client>/routes.*' '<client>/*guard*' '<server>/<entry handler>'
    # or, per PR:
    gh pr diff <num> --repo <owner>/<repo> -- <paths>
  • Read new gate modules in full at <head> to get: what decides "allowed", which environments enforce it, dev overrides (query params, env vars), the controlling feature flag, and the exact deny behavior (404 vs redirect vs error code).
  • For the request perimeter, open the service/handler at a representative endpoint and record the order of checks (e.g. allowlist → terms → content safety → backend → output check) and their status codes. Find which endpoints skip the allowlist check.
  • Don't trust PR descriptions for behavior; confirm in code.

2. Draw

  1. Back up first: cp index.html index.v<N>-<YYYY-MM-DD>.html next to the live page (date = the old page's modification date). Link it from the new footer.
  2. Start from the existing page if there is one (keep its geometry and palette); otherwise copy assets/template.html.
  3. Apply design_system.md: happy path down x=680, public left, deny right, new nodes teal-dashed with a NEW pill, arrow color = outcome, ≤2 lines per diamond.
  4. Rebuild the route table with one column per user state the gates now distinguish; mark new rows is-new + badge-new.
  5. Add the request-perimeter SVG when the changes add server-side checks.
  6. Add the pending-changes callout if any change is unmerged, and the source-changes grid (PR/commit links), stating which changes don't affect routing.

3. Verify the render

scripts/render_check.sh <page.html> /tmp/routing.png

Open the PNG and fix every defect from design_system.md §8 (diamond text spill, label overlaps, text wider than its box, lines past the SVG edge). Re-render once after fixes.

4. Publish and report

  • Copy the file to wherever the page is hosted (static host, gh-pages branch, docs folder). No build step.
  • Reply with what changed per section, and call out anything plausible but unverified that was deliberately left off the diagram.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.