Testing
radix-ng/primitives
Test Radix NG primitives across every layer and pick the RIGHT one for a change: Vitest unit (zoneless), jest-axe a11y, Playwright browser regression (apps/visual-regression), SSR…
This rule helps in writing and running unit tests for components of blade design system
$ npx skills add razorpay/blade --skill write-unit-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install razorpay/blade write-unit-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/razorpay/blade.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/write-unit-tests .claude/skills/write-unit-tests && rm -rf skills-srcUse ~/.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/
Install the "write-unit-tests" agent skill from https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-tests into .claude/skills/write-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-unit-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add razorpay/blade --skill write-unit-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install razorpay/blade write-unit-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/razorpay/blade.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/write-unit-tests .agents/skills/write-unit-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "write-unit-tests" agent skill from https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-tests into .agents/skills/write-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-unit-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add razorpay/blade --skill write-unit-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install razorpay/blade write-unit-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/razorpay/blade.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/write-unit-tests .cursor/skills/write-unit-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "write-unit-tests" agent skill from https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-tests into .cursor/skills/write-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-unit-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/razorpay/blade.git --path .agents/skills/write-unit-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add razorpay/blade --skill write-unit-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install razorpay/blade write-unit-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/razorpay/blade.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/write-unit-tests .gemini/skills/write-unit-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "write-unit-tests" agent skill from https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-tests into .gemini/skills/write-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-unit-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install razorpay/blade write-unit-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add razorpay/blade --skill write-unit-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/razorpay/blade.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/write-unit-tests .github/skills/write-unit-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "write-unit-tests" agent skill from https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-tests into .github/skills/write-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-unit-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add razorpay/blade --skill write-unit-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install razorpay/blade write-unit-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/razorpay/blade.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/write-unit-tests .opencode/skills/write-unit-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "write-unit-tests" agent skill from https://github.com/razorpay/blade/tree/master/.agents/skills/write-unit-tests into .opencode/skills/write-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-unit-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
write-unit-testsThis rule helps in writing and running unit tests for components of blade design system
Write Unit Tests is an agent skill from razorpay/blade. This rule helps in writing and running unit tests for components of blade design system
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing and Design systems. The repository describes itself as: Design System that powers Razorpay. The licence is MIT.
Read from SKILL.md and the folder at commit e65bdec. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
yarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Write Unit Tests loads about 1.2k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 385 words of instructions outside code blocks.
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.
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.
The full file from razorpay/blade at commit e65bdec, republished under its MIT licence (© razorpay). 385 words, ~1,234 tokens.
.claude/skills/write-unit-tests/SKILL.md (or your agent's skills folder).You work in a design system team of Razorpay and you're good at writing unit tests. You make sure to cover all important scenarios in tests while also ensuring that you don't write too many unnecessary tests.
ComponentName.native.test.tsx tests since that is not maintained anymore__tests__ directory within the component folder.web.test.tsx for web-specific tests and .ssr.test.tsx for server-side rendering testsComponentName.web.test.tsx and ComponentName.ssr.test.tsxrenderWithTheme for web tests and renderWithSSR for SSR testsassertAccessible test to ensure components meet accessibility standards~utils/testing/import renderWithTheme from '~utils/testing/renderWithTheme.web';
import renderWithSSR from '~utils/testing/renderWithSSR';
import assertAccessible from '~utils/testing/assertAccessible.web';getByRole over anything else wherever possibletestID props for precise element targeting in other cases where getByRole is not possibletoMatchSnapshot over toMatchInlineSnapshot especially in complex snapshotsgetComputedStyle instead of adding snapshot for whole code// spacing.2 = 4px)Use this pattern for triggering any events
import userEvents from '@testing-library/user-event';
const user = userEvents.setup();
// ...render example
// click / other events
await user.click(getByRole('button', { name: 'Toggle Show' }));Test the core Logic
If there is any logic that is too complex or too flaky for unit tests, ignore it and suggest user to write integration test instead
// Component imports
import { ComponentName, SubComponent } from '../index';
// Testing utilities
import renderWithTheme from '~utils/testing/renderWithTheme.web';
import assertAccessible from '~utils/testing/assertAccessible.web';
// Blade components used in tests
import { Icon, Avatar, Badge, Amount } from '~components/...';describe('<ComponentName />', () => {
it('should render simple ComponentName', () => {
// Basic rendering test with snapshot
});
it('should render ComponentName with different complex configurations', () => {
// Test various prop combinations
});
// Test for any hacky implementations that we've added while writing code that are likely break or not intuitive
it('should test for any hacky implementations', () => {
// Test conditional behavior with actual assertions
});
// test for import styling scenario
it('should render the important style', () => {
// Test for 2 most important styles using getComputedStyle
});
// test for core functionality (ignore if component is non-interactive)
it('should render ComponentName with different complex configurations', () => {
// Test various prop combinations
});
it('should accept testID', () => {
// Test testID prop support
});
it('should not have accessibility violations', async () => {
// accessibility violation test
await assertAccessible(container);
});
});Run test using following command from packages/blade directory
yarn test:react ComponentName© razorpay, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/write-unit-tests of razorpay/blade.
Open the folder on GitHubat commit e65bdec
Write Unit Tests 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Write Unit Tests this skillrazorpay/blade | 656 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Testingradix-ng/primitives | 274 | — | ~3.3k | Automated safety check: Pass | MIT | |
| Cometchat Android V6 Testingcometchat/cometchat-skills | 130 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Docs LookupProgrammerAnthony/Expert-Coding-Harness | 235 | — | ~640 | Automated safety check: Pass | MIT | |
| TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph | 112 | 11 repos | ~2.4k | Automated safety check: Pass | None | |
| Testing OpenLogi UIAprilNEA/OpenLogi | 23k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 |
radix-ng/primitives
Test Radix NG primitives across every layer and pick the RIGHT one for a change: Vitest unit (zoneless), jest-axe a11y, Playwright browser regression (apps/visual-regression), SSR…
cometchat/cometchat-skills
Test an Android app that integrates the CometChat v6 UI Kit — make the SDK mockable behind a repository, unit-test the init/login gate and credential hygiene, write instrumented/Compose UI tests for…
ProgrammerAnthony/Expert-Coding-Harness
通过 Context7 MCP 获取库和框架的实时最新文档,而非依赖训练数据,防止 API 幻觉。适用于查询任何库或框架的用法、配置、示例代码。触发词:怎么用、怎么配置、API参考、文档、示例代码、用法、接口、库文档、框架文档、documentation、docs、how to use、API…
hellangleZ/burn-in-cceverywhere-ralph
A skill your agent uses when writing new features, fixing bugs, or refactoring code.
AprilNEA/OpenLogi
Verifies OpenLogi's native GPUI interface with focused tests, the component gallery and a mock agent, choosing the evidence that fits each change.
cxuu/golang-skills
A skill your agent uses when writing, reviewing, or improving Go test code — including table-driven tests, subtests, parallel tests, test helpers, test doubles, and assertions with cmp.Diff.
razorpay/blade
Review blade PRs by fetching diff, checking CI status, and getting Storybook URL.
razorpay/blade
Add React Native support (.native.tsx files) to Blade components that currently only have web implementations.
razorpay/blade
Orchestrate parallel migration of Blade React components to Svelte 5.
razorpay/blade
Important guidelines for writing frontend UI code. An agent skill from razorpay/blade.
razorpay/blade
Heal a Blade PR by fixing CI failures, missing changesets, and sanity issues.
razorpay/blade
Resolve PR review comments by pushing code fixes or replying with explanations.
Categories
This rule helps in writing and running unit tests for components of blade design system. Write Unit Tests is an agent skill from razorpay/blade.
Write Unit Tests fits situations like: tasks that involve Unit testing; tasks that involve Design systems.
Run `npx skills add razorpay/blade --skill write-unit-tests -a claude-code`. Or copy the skill folder (.agents/skills/write-unit-tests in razorpay/blade) into .claude/skills/write-unit-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add razorpay/blade --skill write-unit-tests -a codex`. Or copy the skill folder (.agents/skills/write-unit-tests in razorpay/blade) into .agents/skills/write-unit-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add razorpay/blade --skill write-unit-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-unit-tests, .gemini/skills/write-unit-tests, .github/skills/write-unit-tests and .opencode/skills/write-unit-tests in your project.
Going by SKILL.md and its folder, Write Unit Tests needs the command-line tools its instructions call (yarn).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Write Unit Tests is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Write Unit Tests: Testing (radix-ng/primitives, 274 stars), Cometchat Android V6 Testing (cometchat/cometchat-skills, 130 stars), Docs Lookup (ProgrammerAnthony/Expert-Coding-Harness, 235 stars) and TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
razorpay (a GitHub organization) maintains it in razorpay/blade, which has 656 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 7, 2026.
Source: razorpay/blade on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.