
Testing
Writes test specs that check whether agent skills and agents trigger and behave correctly
Testing is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 155
- Last commit
- License
- ISC
- Listing updated
Similar skills
About Testing
This skill documents a test-driven workflow for natural-language artifacts such as skills, agents, commands, rules and hooks. The author writes a spec file in a .nlpm-test directory before building the artifact, runs the nlpm test command to see it fail, then iterates until every spec passes and the quality score meets a threshold.
A spec is a markdown file with YAML frontmatter that names the artifact, its type and a minimum score. The body can list queries that should or should not trigger a skill or agent, expected output elements and formats for agents and commands, input handling cases for commands, code samples that should or should not violate rules, and required frontmatter fields. The file also describes the expected test report layout and offers practice tips such as writing five to ten mixed trigger queries.
The skill points to two companion skills in the same plugin: one for the scoring rubric and one for the frontmatter schemas that specs check against. It needs the nlpm Claude Code plugin to run the test and score commands.
When your agent uses it
NL artifact test specs for /nlpm:test: spec format, TDD for skills and agents.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the nlpm plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add xiaolai/nlpm
/plugin install nlpm@xiaolaiOr copy only this skill to ~/.claude/skills/testing:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/testing &&
cp -R "$tmp/skills/nlpm/testing" ~/.claude/skills/testing &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/testing inside it instead.
Copy the skill folder to ~/.agents/skills/testing to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/testing &&
cp -R "$tmp/skills/nlpm/testing" ~/.agents/skills/testing &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/testing inside it instead.
Copy the skill folder to ~/.cursor/skills/testing to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/testing &&
cp -R "$tmp/skills/nlpm/testing" ~/.cursor/skills/testing &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/testing inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/xiaolai/nlpm.git --path skills/nlpm/testingOr copy the folder to ~/.gemini/skills/testing yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/testing:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xiaolai/nlpm.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/testing &&
cp -R "$tmp/skills/nlpm/testing" ~/.copilot/skills/testing &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/testing inside it instead.
Get the folder:
git clone --depth 1 https://github.com/xiaolai/nlpm.gitThen copy nlpm/skills/nlpm/testing into your agent's skills folder as testing. Agents that support SKILL.md read one folder per skill.
What it does
- Spec file format
- Defines the frontmatter and body sections a spec file can contain for each artifact type.
- Trigger query checks
- Lists positive and negative user queries to confirm a skill or agent activates only when expected.
- Output and input expectations
- Describes how to specify expected output elements, report formats and command input handling.
- Red-green workflow
- Walks through writing a failing spec first, building the artifact, then iterating to a passing score.
- Test report layout
- Shows how pass and fail results and fix items are reported for each spec.
- Spec discovery rules
- Explains how specs are matched to artifact files and how missing artifacts are treated.
Good for
- Write a failing spec before creating a new agent
- Check that a skill triggers on the right user requests
- Verify a command handles empty and invalid input
- Set a minimum quality score for an artifact
- Review which trigger queries a skill description misses
Testing FAQ
Does Testing run tests by itself?
No. It documents the spec format and the runner contract. The test and score commands come from the nlpm plugin.
Where do spec files go?
In a .nlpm-test directory in the project root or alongside the artifact, and each one names its artifact in frontmatter.
What happens if the artifact does not exist yet?
The spec is treated as RED by default, which matches the write-the-test-first step.
What default score threshold is suggested?
The guidance suggests 85 for new artifacts and 70 for legacy ones.
How do I install Testing in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/testing to use it in all your projects, or to .claude/skills/testing in one project. Or install the nlpm plugin, which includes it: /plugin marketplace add xiaolai/nlpm, then /plugin install nlpm@xiaolai.
Does Testing run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Testing?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Testing?
The closest alternatives to Testing are Mt spec, Create specification, Spec, Test and Spec coding.
Where this comes from
- Description: from the skill's own SKILL.md.
More from xiaolai/nlpm

Shared conventions for writing and scoring agent skills, memory files and prompts
- Open source
- 155 GitHub stars
- Developer tools

Reference for Antigravity and legacy Gemini CLI file layouts, extensions and hooks
- Open source
- 155 GitHub stars
- Developer tools

Reference schemas for Claude Code plugin files: manifests, skills, hooks, settings
- Open source
- 155 GitHub stars
- AI models and LLM tooling

Reference schemas for Codex CLI config, plugin manifests, skills, hooks and AGENTS.md
- Open source
- 155 GitHub stars
- Developer tools

Guides an agent through multi-agent workflow patterns like parallel dispatch and QC gates
- Open source
- 155 GitHub stars
- Developer tools

Checklist of anti-patterns and best practices for writing agent instructions and skills
- Open source
- 155 GitHub stars
- Developer tools




