Agent skill

Write Jest Tests

by rundeck in rundeck/rundeck

Write Vue component unit tests. An agent skill from rundeck/rundeck.

Apache-2.0Auto-check: notesTesting & QA

Install Write Jest Tests

skills CLI
$ npx skills add rundeck/rundeck --skill write-jest-tests -a claude-code

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

GitHub CLI
$ gh skill install rundeck/rundeck write-jest-tests --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/rundeck/rundeck.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/write-jest-tests .claude/skills/write-jest-tests && 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
write-jest-tests
GitHub stars
6.3k
Token cost
~486 tokens
SKILL.md length
198 words
Files
2
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Write Vue component unit tests. An agent skill from rundeck/rundeck.

  • Works in 4 steps: Read Guidelines → Write Tests → Verify Compliance → …
  • The user asks to write unit tests
  • SKILL.md covers Phase 1: Read Guidelines, Phase 2: Write Tests, Phase 3: Verify Compliance and Phase 4: Certify, plus 1 more section
  • Calls npm

What it does

Write Jest Tests is an agent skill from rundeck/rundeck. Write Vue component unit tests. Use when the user asks to write unit tests, write Jest tests, write Vue tests, add tests to a component, or test a Vue component.

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `VERIFICATION-CHECKLIST.md`).

It sits in Testing & QA, covering Unit testing. It works with Jest and Vue.js. The repository describes itself as: Enable Self-Service Operations: Give specific users access to your existing tools, services, and scripts. The licence is Apache-2.0.

When your agent uses it

  • The user asks to write unit tests
  • Write Jest tests
  • Write Vue tests
  • Add tests to a component

Example prompts

  • “/write-jest-tests”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob, Write, Edit, Bash

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Read Guidelines
  2. Write Tests
  3. Verify Compliance
  4. Certify

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • Write
    • Edit
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

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

  • Network

    No URLs in SKILL.md. Its commands use npm, 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

Write Jest Tests loads about 486 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 198 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Grep, Glob, Write, Edit, Bash

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

The full file from rundeck/rundeck at commit 9c3c82c, republished under its Apache-2.0 licence (© rundeck). 198 words, ~486 tokens.

Download SKILL.mdSave it as .claude/skills/write-jest-tests/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
write-jest-tests
description
Write Vue component unit tests. Use when the user asks to write unit tests, write Jest tests, write Vue tests, add tests to a component, or test a Vue component.
allowed-tools
Read, Grep, Glob, Write, Edit, Bash

Write Jest Tests

Reference: .claude/docs/jest-testing-guidelines.md — 21 rules with rationale and examples


Phase 1: Read Guidelines

Read .claude/docs/jest-testing-guidelines.md completely before writing any code.


Phase 2: Write Tests

  1. Read the component under test fully
  2. Check the closest jest.global-mocks.js before adding any mock
  3. Create test file at [component-dir]/tests/[ComponentName].spec.ts
  4. Write tests following all rules in the guidelines
  5. Run npm run test:unit [file] — fix until all pass

Phase 3: Verify Compliance

Open VERIFICATION-CHECKLIST.md (in this skill's folder) and execute Gates 1–4 sequentially.

  • Gate 1 (Priority 1 — 7 steps): fix all violations, restart Gate 1 if any fail
  • Gate 2 (Priority 2 — 9 steps): fix all violations, restart Gate 2 if any fail
  • Gate 3 (Priority 3 — 5 steps): document warnings + fix plans; does not block
  • Gate 4 (Final — 3 steps): tests pass, edge cases covered, conditional rendering tested

For every enumeration step: list ALL instances with line numbers — no sampling.


Phase 4: Certify

COMPLIANCE CERTIFICATION
Test File: _________________
Component: _________________
Gate 1 (Priority 1): [PASSED]
Gate 2 (Priority 2): [PASSED]
Gate 3 (Priority 3): [PASSED / WARNINGS: ...]
Gate 4 (Final):      [PASSED]
RESULT: COMPLIANT

Done: [test file created, N tests, all gates passed] Artifacts: [path to test file] Next: [deferred P3 fixes, or "none"]


Maintenance

This file orchestrates — it does not define rules or verification steps. If referenced file names change, update Phase 1 and Phase 3 references only.

© rundeck, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/write-jest-tests of rundeck/rundeck.

  • SKILL.md
  • VERIFICATION-CHECKLIST.md

Open the folder on GitHubat commit 9c3c82c

Compare with similar skills

Write Jest 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.

Write Jest Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write Jest Tests this skillrundeck/rundeck6.3k—~486Automated safety check: NotesApache-2.0
Data Client Vue Testingreactive/data-client2k—~2.7kAutomated safety check: PassApache-2.0
Jest Testing PatternsChrisWiles/claude-code-showcase6.1k7 repos~1.5kAutomated safety check: PassNone
Vitestsupabase/supabase111k12 repos~1.1kAutomated safety check: PassApache-2.0
Test GuardamElnagdy/guard-skills1.3k2 repos~2.1kAutomated safety check: PassMIT
Vitestpixel-point/animate-text1492 repos~1.3kAutomated safety check: PassNone

Similar skills

  • Data Client Vue Testing

    reactive/data-client

    Test @data-client/vue composables and components - renderDataCompose, mountDataClient, fixtures, jest, nock HTTP mocking, polling/subscription tests with fake timers, useSuspense, useLive…

    2k GitHub stars~2.7k tokensUpdated today
    Testing & QAAuto-check passed
  • Jest Testing Patterns

    ChrisWiles/claude-code-showcase

    Jest patterns for React Native style tests: TDD discipline, mock factory functions, module and GraphQL hook mocking, custom render helpers and anti-patterns to avoid.

    6.1k GitHub starsUsed in 7 repos~1.5k tokens
    Testing & QAAuto-check passed
  • Vitest

    supabase/supabase

    Official

    Vitest API and config reference (Jest-compatible) — mocking with vi., spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering.

    111k GitHub starsUsed in 12 repos~1.1k tokens
    Testing & QAAuto-check passed
  • Test Guard

    amElnagdy/guard-skills

    Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.

    1.3k GitHub starsUsed in 2 repos~2.1k tokens
    Testing & QAAuto-check passed
  • Vitest

    pixel-point/animate-text

    Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest).

    149 GitHub starsUsed in 2 repos~1.3k tokens
    Testing & QAAuto-check passed
  • 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 today
    Testing & QAAuto-check passed

More from rundeck/rundeck

All 10 skills in this repo
  • Backport PR

    rundeck/rundeck

    Backport commits from an existing GitHub Pull Request to a target branch and open a new backport PR.

    6.3k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Cve Remediation

    rundeck/rundeck

    Verify if a CVE affects the project and remediate it. An agent skill from rundeck/rundeck.

    6.3k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Generate standardized CONTEXT.md files for features. An agent skill from rundeck/rundeck.

    6.3k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • I18n Vue Template

    rundeck/rundeck

    Internationalize Vue component templates by replacing all hardcoded strings with $t() calls and adding translations to i18n.ts or enUS.js.

    6.3k GitHub stars~523 tokensUpdated today
    Auto-check: notes
  • Onboard Contributor

    rundeck/rundeck

    Guide a new contributor through the rundeck OSS repo. An agent skill from rundeck/rundeck.

    6.3k GitHub stars~848 tokensUpdated today
    Auto-check passed
  • Create API Endpoint

    rundeck/rundeck

    Create REST API endpoints with proper OpenAPI annotations, API versioning, and testing following Rundeck standards.

    6.3k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Write Jest Tests

What does Write Jest Tests do?

Write Vue component unit tests. An agent skill from rundeck/rundeck. Write Jest Tests is an agent skill from rundeck/rundeck. Write Vue component unit tests.

When should I use Write Jest Tests?

Write Jest Tests fits situations like: the user asks to write unit tests; write Jest tests; write Vue tests; add tests to a component.

How do I install Write Jest Tests in Claude Code?

Run `npx skills add rundeck/rundeck --skill write-jest-tests -a claude-code`. Or copy the skill folder (.claude/skills/write-jest-tests in rundeck/rundeck) into .claude/skills/write-jest-tests in your project. Claude Code loads it when a task matches its description.

How do I install Write Jest Tests in Codex?

Run `npx skills add rundeck/rundeck --skill write-jest-tests -a codex`. Or copy the skill folder (.claude/skills/write-jest-tests in rundeck/rundeck) into .agents/skills/write-jest-tests in your project. Codex loads it when a task matches its description.

Can I use Write Jest Tests 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 rundeck/rundeck --skill write-jest-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-jest-tests, .gemini/skills/write-jest-tests, .github/skills/write-jest-tests and .opencode/skills/write-jest-tests in your project.

What does Write Jest Tests need to run?

Going by SKILL.md and its folder, Write Jest Tests needs the command-line tools its instructions call (npm). Its frontmatter pre-approves these tools: Read, Grep, Glob, Write, Edit, Bash.

Does Write Jest Tests access the network?

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

Is Write Jest Tests safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Write Jest Tests use?

Write Jest Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Write Jest Tests use?

About 486 tokens (SKILL.md is roughly 1.9k 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 Write Jest Tests?

Skills that share tags, products or a category with Write Jest Tests: Data Client Vue Testing (reactive/data-client, 2k stars), Jest Testing Patterns (ChrisWiles/claude-code-showcase, 6.1k stars), Vitest (supabase/supabase, 111k stars) and Test Guard (amElnagdy/guard-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write Jest Tests?

rundeck (a GitHub organization) maintains it in rundeck/rundeck, which has 6,329 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 8, 2026.

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