Skip to content
Back to skills

List Rule Test

ASecurity

List rule test IDs with filtering and stats. Use when checking test ID coverage, finding missing [rule-name-NNN] prefixes, or picking the next available ID number of a rule. Trigger keywords: test id, test ids, rule test list, missing id prefix, next test id, list-rule-test.

  • 632 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
developmentbashnode

Security analysis

A100/100

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

Scanned November 24, 2026

npx -y skills add markuplint/markuplint --skill list-rule-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of List Rule Test?

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

Security grade badge for List Rule Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/markuplint-list-rule-test/badge)](https://www.skillsdirectory.com/skills/markuplint-list-rule-test)

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: list-rule-test
metadata:
  internal: true
description: >
  List rule test IDs with filtering and stats. Use when checking test ID
  coverage, finding missing [rule-name-NNN] prefixes, or picking the next
  available ID number of a rule. Trigger keywords: test id, test ids, rule test
  list, missing id prefix, next test id, list-rule-test.
argument-hint: "[--rule <name>] [--next <name>] [--no-id] [--stats] [--json]"
---

List the test IDs of the behavior tests of `packages/@markuplint/rules/src/**/*.spec.ts` (what a behavior test is: `packages/@markuplint/rules/CLAUDE.md`). The script finds the repository from its own location, so it runs from any directory. Pass the user's arguments (`$ARGUMENTS`) as the options — only the documented flags, nothing else:

```bash
node .claude/skills/list-rule-test/scripts/list-rule-test.mjs $ARGUMENTS
```

Options (`--rule`, `--next`, `--no-id`, `--stats`, `--json`) are documented in the script's header comment — read it before choosing flags. `--next <rule>` prints the ID to give the next test of a rule: the highest number present plus one. When the test that had the highest number was removed, take the number after it from the history of the file: the script cannot know it.

`--no-id` output must be empty, and its exit code is 0: any hit is a behavior test missing its mandatory `[rule-name-NNN]` ID prefix (a prefix of another form counts as missing), and makes it exit with 1. (`src/test-ids.spec.ts` enforces this in `yarn test`, and also that no other test has an ID.) An option that the script does not list, or `--rule` / `--next` without a value, is an error: nothing is listed.

Files in this skill

  • SKILL.md1.2 KB
  • scripts/list-rule-test.mjs3.6 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.