Agent skill

Handsontable Test Writing Discipline

by handsontable in handsontable/handsontable

Keeps tests honest: write them from the requirement, treat the code as the first suspect when a test is red, and refuse every way of faking a passing run.

Custom licenceAuto-check passedTesting & QA

Install Handsontable Test Writing Discipline

skills CLI
$ npx skills add handsontable/handsontable --skill test-writing-discipline -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install handsontable/handsontable test-writing-discipline --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/handsontable/handsontable.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/test-writing-discipline .claude/skills/test-writing-discipline && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-writing-discipline
GitHub stars
22k
Token cost
~1.3k tokens
SKILL.md length
698 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
Custom licence

At a glance

Keeps tests honest: write them from the requirement, treat the code as the first suspect when a test is red, and refuse every way of faking a passing run.

  • Works in 3 steps: Reproduce the bug as a test and watch it… → Apply the fix and watch the same test… → On a bugfix PR, name the spec that fails…
  • Writing or reviewing tests for any Handsontable change
  • SKILL.md covers Intent, not implementation, When a test is red, Bug fixes: failing test first and Cover what the change adds, plus 4 more sections
  • Calls npx

What it does

Correct behavior is the goal, not a green run, and a test that asserts nothing or asserts the buggy output certifies the bug. The skill has the agent write each test from the requirement, ideally before the implementation, and when a test fails, check whether the code is wrong, the expectation mis-encoded the intent, or the requirement needs rereading. It sits on top of the Handsontable Playwright, legacy E2E and unit-testing skills.

A list of banned shortcuts covers deleting or loosening assertions, widening tolerances, `.skip` and `.only` variants, try/catch blocks that swallow failures, snapshots of buggy output and retries hiding a real intermittent failure. Weakening an assertion because of a race needs a filed ticket in the same pull request. A pass on retry or in isolation is not proof of determinism, so the agent repeats the spec across every theme and bundle leg. Bug fixes start with a failing test that fails for the right reason.

When your agent uses it

  • Writing or reviewing tests for any Handsontable change
  • A test turns red during feature work and you must decide what is wrong
  • Fixing a bug test-first with a reproduction that fails for the right reason
  • Reviewing a pull request that loosens or skips an assertion

Example prompts

  • “This unit test fails after my change. Decide whether the code or the test is wrong before touching either.”
  • “Write the failing test for the column header bug first, then fix it.”
  • “Review this PR for tests that skip, loosen assertions or only snapshot the current output.”

Requirements

  • A checkout of the Handsontable repository

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Reproduce the bug as a test and watch it fail for the right reason (the missing behavior, not a typo or bad selector).
  2. Apply the fix and watch the same test pass.
  3. On a bugfix PR, name the spec that fails without the fix.

What it can do on your machine

Read from SKILL.md and the folder at commit fff66b1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Handsontable Test Writing Discipline loads about 1.3k tokens when it runs. Until then it costs about 154 tokens; SKILL.md has 698 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~154
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 698 words (~1,314 tokens).

“Correct behavior is the goal, not green. A test that asserts nothing, or asserts the buggy output, certifies the bug. Fix a red test by correcting the code or tightening the test. These rules apply on top of handsontable-playwright-e2e, handsontable-e2e-testing…”

— opening of SKILL.md by handsontable, Custom licence
name
test-writing-discipline

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/test-writing-discipline of handsontable/handsontable.

Open the folder on GitHubat commit fff66b1

Compare with similar skills

Handsontable Test Writing Discipline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Handsontable Test Writing Discipline compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Handsontable Test Writing Discipline this skillhandsontable/handsontable22k—~1.3kAutomated safety check: PassCustom licence
Test Guidelinesgetsentry/sentry-react-native1.8k—~1.3kAutomated safety check: PassMIT
Test Guidelinesgetsentry/sentry-dart873—~3.1kAutomated safety check: PassMIT
Agent Harness Testing Methodologyhuiliyi37/Tianshu-harness1.1k—~1kAutomated safety check: NotesApache-2.0
Feature Plannerserendipity1004/cc-feature-implementer176—~2.4kAutomated safety check: PassNone
TDD Bug Fixcursor/plugins10k8 repos~786Automated safety check: PassNone

Similar skills

  • Test Guidelines

    getsentry/sentry-react-native

    Official

    Enforce Sentry React Native SDK test conventions for naming, structure, mocking, and fixtures with Jest.

    1.8k GitHub stars~1.3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Test Guidelines

    getsentry/sentry-dart

    Official

    Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.

    873 GitHub stars~3.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Agent Harness Testing Methodology

    huiliyi37/Tianshu-harness

    Guides an agent through probing an unfamiliar project's test setup, then choosing a red-light-first testing strategy matched to the task type.

    1.1k GitHub stars~1k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Feature Planner

    serendipity1004/cc-feature-implementer

    Creates phase-based feature plans with quality gates and incremental delivery structure.

    176 GitHub stars~2.4k tokensUpdated 9 mo ago
    Testing & QAAuto-check passed
  • TDD Bug Fix

    cursor/plugins

    Official

    Fixes a bug with a failing regression test first when a cheap, focused test path exists, and falls back to the closest practical check when it does not.

    10k GitHub starsUsed in 8 repos~786 tokens
    Testing & QAAuto-check passed
  • Pest Testing

    slimani-dev/muraqib

    Tests applications using the Pest 4 PHP framework. An agent skill from slimani-dev/muraqib.

    128 GitHub stars~1.2k tokensUpdated 9 days ago
    Testing & QAAuto-check passed

More from handsontable/handsontable

All 31 skills in this repo
  • Handsontable Playwright E2E Tests

    handsontable/handsontable

    Guides writing and changing Playwright end-to-end tests for Handsontable using page objects, data-testid hooks and deterministic waits.

    22k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Guides changes to the @handsontable/angular-wrapper package: the HotTableComponent lifecycle, NgZone performance handling, settings services and the ng-packagr build.

    22k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • BrowserStack Live Testing

    handsontable/handsontable

    Opens a live BrowserStack session on a real Android, iOS or desktop browser for a local or public URL, tunneling localhost through Cloudflare when needed.

    22k GitHub stars~950 tokensUpdated yesterday
    Auto-check passed
  • Handsontable Changelog Entry

    handsontable/handsontable

    Decides whether a code change needs a changelog entry and creates the JSON file in .changelogs with the right type, framework and user-facing title.

    22k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Code Review Graph Navigator

    handsontable/handsontable

    Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.

    22k GitHub stars~939 tokensUpdated yesterday
    Auto-check passed
  • Handsontable Coordinate Systems

    handsontable/handsontable

    Explains Handsontable's physical, visual and renderable row and column coordinate spaces and how to convert between them with IndexMapper, for debugging misplaced rows or columns.

    22k GitHub stars~721 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Handsontable Test Writing Discipline

What does Handsontable Test Writing Discipline do?

Keeps tests honest: write them from the requirement, treat the code as the first suspect when a test is red, and refuse every way of faking a passing run. Correct behavior is the goal, not a green run, and a test that asserts nothing or asserts the buggy output certifies the bug. The skill has the agent write each test from the requirement, ideally before the implementation, and when a test fails, check whether the code is wrong, the expectation mis-encoded the intent, or the requirement needs rereading.

When should I use Handsontable Test Writing Discipline?

Handsontable Test Writing Discipline fits situations like: writing or reviewing tests for any Handsontable change; A test turns red during feature work and you must decide what is wrong; fixing a bug test-first with a reproduction that fails for the right reason; reviewing a pull request that loosens or skips an assertion.

How do I install Handsontable Test Writing Discipline in Claude Code?

Run `npx skills add handsontable/handsontable --skill test-writing-discipline -a claude-code`. Or copy the skill folder (.claude/skills/test-writing-discipline in handsontable/handsontable) into .claude/skills/test-writing-discipline in your project. Claude Code loads it when a task matches its description.

How do I install Handsontable Test Writing Discipline in Codex?

Run `npx skills add handsontable/handsontable --skill test-writing-discipline -a codex`. Or copy the skill folder (.claude/skills/test-writing-discipline in handsontable/handsontable) into .agents/skills/test-writing-discipline in your project. Codex loads it when a task matches its description.

Can I use Handsontable Test Writing Discipline in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add handsontable/handsontable --skill test-writing-discipline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-writing-discipline, .gemini/skills/test-writing-discipline, .github/skills/test-writing-discipline and .opencode/skills/test-writing-discipline in your project.

What does Handsontable Test Writing Discipline need to run?

Going by SKILL.md and its folder, Handsontable Test Writing Discipline needs the command-line tools its instructions call (npx). Our summary lists: A checkout of the Handsontable repository.

Does Handsontable Test Writing Discipline access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Handsontable Test Writing Discipline safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Handsontable Test Writing Discipline use?

Handsontable Test Writing Discipline has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Handsontable Test Writing Discipline use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Handsontable Test Writing Discipline?

Skills that share tags, products or a category with Handsontable Test Writing Discipline: Test Guidelines (getsentry/sentry-react-native, 1.8k stars), Test Guidelines (getsentry/sentry-dart, 873 stars), Agent Harness Testing Methodology (huiliyi37/Tianshu-harness, 1.1k stars) and Feature Planner (serendipity1004/cc-feature-implementer, 176 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Handsontable Test Writing Discipline?

handsontable (a GitHub organization) maintains it in handsontable/handsontable, which has 22,060 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 8, 2026.

Source: handsontable/handsontable on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.