skills/understanding-first/SKILL.md
When generating wiki pages, READMEs, POC docs, integration write-ups, architecture notes, design docs, or any artefact whose purpose is for the user to *understand* a topic — not just record information. Apply BEFORE writing the artefact, then validate against the checklist before saving. The "outsource thinking, not understanding" principle.
npx skillsauth add RonanCodes/ronan-skills understanding-firstInstall 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.
Outsource thinking. Don't outsource understanding.
Generated docs must teach the reader, not just record facts. When a reader (you, a future agent, a teammate) is done with the page, they should know why the thing exists, how it works at a glance, and where to dig deeper. If they only learn what the page is about, the doc failed.
Auto-load when generating:
Don't apply to:
coding-principles instead)Every doc covered by this skill must include the seven elements below, in this order where practical.
| # | Element | Why | |---|---------|-----| | 1 | Plain-English explainer (lead paragraph) | The "what is this and why does it exist" before any detail. Reader should be able to stop here and have the gist. | | 2 | Acronym handling (inline-on-first-use + glossary if dense) | Every acronym expanded the first time it appears. No "of course you know what an ORM is." | | 3 | Mermaid diagram of flow or structure | Diagrams compress 200 words of prose. One per page minimum for any flow or relationship. | | 4 | Concrete worked example | One real scenario walked end-to-end with real values, not placeholders. Examples teach faster than abstractions. | | 5 | Citations (sources of facts) | Every non-obvious claim cites where the fact came from: vendor docs URL + version, API spec endpoint, source file path, meeting date. | | 6 | Further reading (links to learn more) | External links to vendor docs, blog posts, talks, related concept pages. Distinct from citations: citations are where this fact came from; further reading is where to go to deepen understanding. | | 7 | Open questions (explicit section) | Anything not known goes in its own "Open" section with the question + who can answer it + how to chase it. Never bury uncertainty in prose. |
First use of any acronym, format:
SSR (Server-Side Rendering — pages rendered on the server, not in the browser)
RSC (React Server Components — server-rendered component model used in Next.js / TanStack Start)
ORM (Object-Relational Mapper — e.g. Prisma, Drizzle)
ADR (Architecture Decision Record)
MOC (Map of Content — an Obsidian convention for hub pages)
For docs with 4+ distinct acronyms, add a Glossary section at the top, ordered alphabetically, one line per acronym.
| | Citations | Further reading |
|---|---|---|
| Purpose | Where this fact came from | Where the reader can deepen understanding |
| Format | Inline links + sources: frontmatter | Footer section ## Further reading |
| Required? | Yes, for every non-obvious claim | Yes, ≥3 links for any tech topic |
| Examples | Vendor docs URL + version, OpenAPI spec POST /webhooks v2.4, screenshot path raw/<source-slug>/screen.png, dated meeting note | Vendor developer docs, related blog post, conference talk recording, vendor's GitHub repo |
For any third-party technology mentioned (e.g. your auth provider, database, payments processor, file-storage vendor, message queue) include at least one online further-reading link so the reader can verify or extend.
A "gold-standard" understanding-first doc lets a stranger become productive in one sitting. They leave knowing why the system exists, how the major pieces fit, and where to go next — without follow-up questions. Karpathy's tutorial-style READMEs (e.g. nanoGPT) are a public example of this pattern. Use any similarly-written OSS doc as a model.
A page titled "Webhooks" containing:
We use a payments provider for checkout. There are 2 webhook events
we care about. The signing secret is stored somewhere. See the wiki.
What's wrong:
Before saving any doc covered by this skill, verify:
sources: frontmatter)If any box is unticked, the doc is not understanding-first. Revise before saving.
Default to a consistent palette across a project for visual consistency. A balanced default:
#e0af40 for user / source nodes#5bbcd6 for engine / skill / system nodes#7dcea0 for output / result nodesAdjust per project's brand palette if one exists.
Pages produced under this contract should carry frontmatter that makes citations and further reading machine-readable:
---
title: <human-readable title>
page-type: integration | concept | architecture | adr | onboarding | poc-explainer
sources:
- "docs-cms:<space>:<page-id>@<version>"
- "openapi:<api-name>:<endpoint>"
- "raw:<source-relative-path>"
- "meeting:<date>:<topic>"
further-reading:
- url: https://...
title: "..."
why: "Vendor docs for the API used in this integration"
open-questions:
- question: "Which endpoint owns this data — A or B?"
owner: "<person to chase>"
raised: <YYYY-MM-DD>
---
Skills that surface "everything with open questions" or "everything citing docs-cms page X" rely on this shape — keep it consistent.
development
--- name: worktree description: Coordinate multiple agents on one repo via a worktree-lock pool, so two agents never clobber each other's working tree. Acquire the first free slot (main, then beta/gamma… worktrees, created on demand), work there on your own branch, release when you've pushed. Use before modifying any repo that might be in use by another agent (factory, dataforce, etc.), or whenever you're told a repo is being worked on. Backed by `ro worktree`. category: development argument-hin
testing
--- name: ship description: Ship a feature branch the local-CI-first way — run the full local gate, push, open a PR, squash-merge, then deploy, without waiting on GitHub Actions. Use when a branch is ready for main and you want it merged and deployed now. Reads CI policy from `ro ci` (default skips remote CI because GitHub Actions billing keeps hitting limits). Sibling to /ro:gh-ship (waits on GitHub checks) and /ro:cf-ship (the deploy half). Triggers on "ship it", "ship this", "merge and deploy
testing
--- name: setup-logging description: Set up (or audit) the observability stack in a TanStack Start + Cloudflare Workers app so it is "diagnosable by default" — structured logging (logtape) with a request context carrying trace_id + userId + tenant/orgId, a trace_id propagated FE→BE→logs→Sentry→PostHog, Cloudflare Workers observability enabled, and Sentry + PostHog wired. Two modes: `setup` (wire it into an app) and `audit` (check an existing app + report gaps). Use when scaffolding a new app, wh
development
Manage credentials INSIDE the active ~/.claude/.env file — read which token/account to use for a given app (Simplicity vs Dataforce vs Ronan-personal), add or update a secret WITHOUT it passing through the chat (an interactive Terminal window prompts for it), and track secrets that were exposed in a transcript so they get rotated. Sibling to /ro:context (which switches WHICH env file is active). Use when the user wants to add an API key/token/secret, asks "which credential do I use for X", needs the env organized/labelled, or a secret was pasted into the chat and should be rotated.