Skip to content
Back to skills

Readme Regen

ASecurity

Regenerate docs/guide.md's machine-owned settings region from package.json's contributes.configuration, then run a feature-coverage check that flags drift between the hand-written feature prose and the extension's real contribution points. Use whenever README.md or a `contributes.*` entry in package.json changes. Never rewrites feature prose — it only reports.

  • 19 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
developmentgonodesecurity

Works with

  • vscode
  • terminal

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add SinnConsulting/LoopBoard --skill readme-regen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Readme Regen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Readme Regen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sinnconsulting-readme-regen/badge)](https://www.skillsdirectory.com/skills/sinnconsulting-readme-regen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: readme-regen
description: Regenerate docs/guide.md's machine-owned settings region from package.json's contributes.configuration, then run a feature-coverage check that flags drift between the hand-written feature prose and the extension's real contribution points. Use whenever README.md or a `contributes.*` entry in package.json changes. Never rewrites feature prose — it only reports.
---

# readme-regen

`docs/guide.md` has two halves that need opposite treatment, and this skill is the line between them.

- The **settings region** is machine-owned. It sits between `<!-- loopboard:settings:begin -->` and
  `<!-- loopboard:settings:end -->`, and is re-derived from `package.json` on every run, so it can
  never drift. Never hand-edit inside the sentinels — the next run overwrites it.
- The **showcase region** (`<!-- loopboard:showcase:begin/end -->`) is machine-owned too: a copy
  of the same-sentinel slice of `docs/showcase/README.md`, relative links made absolute raw URLs.
  Edit the showcase page, never docs/guide.md's copy. `make readme` regenerates both regions + checks;
  `make showcase` re-records the GIFs and then runs it.
- The **feature prose** ("Small on purpose", storage, sidebar, security, the settings prose) is
  hand-written and stays that way. The tool validates its COVERAGE against the real contribution
  points and FLAGS drift. It never rewrites a sentence. Auto-derived feature prose is out of scope.

## Run it

Containers only: never `node` on the host (CLAUDE.md non-negotiable 1). From the repo root:

```
make readme
```

`generate` is idempotent: running it twice is a no-op, so the README stays fixpoint-stable exactly
like the `loopboard:sync:*` blocks. `check` exits non-zero and lists every problem it found.

The same logic is asserted by `test/readme-settings.test.js` under `make test` / `make check`, which
is the real backstop: a stale settings region or an undocumented command fails the build for an
editor who never read this file.

## When to run it

- Any change to `contributes.configuration` in `package.json` — a setting added, removed, renamed,
  re-defaulted, re-ordered, deprecated, or its `markdownDescription` reworded.
- Any change to `contributes.commands` or `contributes.views`.
- Any edit to `docs/guide.md`, to confirm you did not break coverage.

## What `check` enforces

1. **Settings region is current** — byte-equal to what `generate` would write.
2. **Every command is documented** — each `contributes.commands[].title` appears somewhere in the
   README.
3. **Every view is documented** — the activity-bar container title and each view name appear.
4. **Documented behaviours still have prose** — the `DOCUMENTED_BEHAVIOURS` list in
   `readme-tool.js` (three human actions, markdown source of truth, groom/work loops, multi-model
   slots, loop terminals, `.loopboard/cache/` attachments, sidebar, `DONE.md` archival, atomic
   field-level saves, zero runtime dependencies).

A failure is a prompt to WRITE prose, not a prompt to loosen the check. Only edit
`DOCUMENTED_BEHAVIOURS` when a behaviour genuinely stops existing.

## Boundaries

- Dependency-free plain Node. No new runtime deps, no new devDependencies, no bundler.
- Never imports `vscode`, and is not compiled into `out/` or `out-test/`.
- Never ships: `.vscodeignore` excludes `.claude/**`, and `make package` asserts no `.claude/`
  entry is in the `.vsix`. Keep it that way — do not add it to the packaged file set.
- Facts stated in the README must be true of the repo. When adding prose, verify against the
  source (`CLAUDE.md`, `.loopboard/LOOP.md`, the `Makefile`, `package.json`) rather than the
  README's own earlier wording, which is what drifts.

The short `README.md` is hand-written and links to the guide. Keep it concise; generation must never overwrite it. Run the coverage check after changes to either page.

Files in this skill

  • SKILL.md3.5 KB
  • readme-tool.js7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.