CH

check-spacing

Enforces test spacing rules in test files.

Install

mkdir -p .claude/skills/check-spacing && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15855" && unzip -o skill.zip -d .claude/skills/check-spacing && rm skill.zip

Installs to .claude/skills/check-spacing

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Detect and report blank-line spacing violations between consecutive
67 chars · catalog descriptionno explicit “when” trigger
Beginner

Key capabilities

  • Detect blank-line spacing violations between `test()` calls
  • Report violations with line range and gap details
  • Identify single-line versus multi-line test calls
  • Enforce spacing conventions in `*.test.ts` files
  • Check spacing after editing or reorganizing test files

How it works

This skill analyzes `*.test.ts` files to detect and report blank-line spacing violations between consecutive `test()` calls. It applies specific rules for single-line and multi-line test definitions.

Inputs & outputs

You give it
A path to a `*.test.ts` file
You get back
A report of spacing violations or 'No spacing violations found.'

When to use check-spacing

  • Check test file spacing
  • Lint test file structure
  • Fix spacing violations

About this skill

Check Spacing

Detect blank-line spacing violations between consecutive test() calls in test files.

Usage

node .github/skills/check_spacing/check_spacing.mjs <path/to/file.test.ts>

Rules enforced

Consecutive pairExpected gap
single-line → single-line0 (no blank line)
any other combination1 (exactly one blank line)

A test is single-line when the entire test(…) call ends with ); on the same line. Everything else is multi-line.

Output

  • No violations: No spacing violations found.
  • Violations found: one entry per violation showing the line range, the actual vs expected gap, and the test types involved.
VIOLATION L12→L15: gap=2 expected=1 (multi → single)
  line 10: test('#01 => status is "available"', () => {
  line 15: test('#02 => counter.count is 1', () => expect(counter.count).toBe(1));

1 violation(s) total.

When to use

Run this after editing or reorganising any *.test.ts file to ensure blank-line spacing between tests conforms to the project conventions (see .github/instructions/organize-tests.instructions.md § 3).

Fix every reported violation, then re-run until the output is No spacing violations found.

When not to use it

  • The task is not related to `*.test.ts` files
  • The task is about general code formatting not specific to test spacing

Limitations

  • The skill focuses on `*.test.ts` files
  • The skill enforces specific rules for single-line versus multi-line test calls
  • The skill reports violations showing line range, actual vs expected gap, and test types involved

How it compares

This workflow provides a specialized linting tool for test file spacing, enforcing project-specific conventions that generic linters might not cover, ensuring consistent test file structure.

Compared to similar skills

check-spacing side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
check-spacing (this skill)04moReviewBeginner
dependency-upgrade265moReviewIntermediate
angular-best-practices213moNo flagsAdvanced
validate-typescript59moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry