test-skill

test-skill is a cursor rule for Cursor from pr-pm/prpm. It costs 9 tokens per session (496 once invoked), scanned A, original, MIT.

A set of coding guidelines for testing whether skills and editor rules convert correctly between Claude Skills and Cursor Rules.

In plain words
What is it for?
Use it to validate converted rules or skills, run unit and integration tests, check edge cases, and record implementation details.
Why use it?
It gives a repeatable checklist for understanding requirements, writing code, testing edge cases, and documenting the result during format-conversion work.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/pr-pm/prpm/test-skill
Clone the repo
git clone --depth 1 https://github.com/pr-pm/prpm

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-skill

README.md
[![agentmods](https://agentmods.dev/badge/rules/pr-pm/prpm/test-skill.svg)](https://agentmods.dev/rules/pr-pm/prpm/test-skill)
Your own site
<a href="https://agentmods.dev/rules/pr-pm/prpm/test-skill"><img src="https://agentmods.dev/badge/rules/pr-pm/prpm/test-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00496
Opus 5 $0.00005 $0.00248
Sonnet 5 $0.00002 $0.00099
Haiku 4.5 $0.00001 $0.00050

Measured 2d ago against content hash 3a905de05d65, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tests/e2e/fixtures/conversion-test/.cursor/rules/test-skill.mdc · 96 lines

What it actually says

Test Skill

Overview

This is a comprehensive test skill for validating format conversion between Claude Skills and Cursor Rules.

Core Principles

  • Write clean, maintainable code
  • Test thoroughly before deploying
  • Document your work clearly
  • Follow established patterns

Workflow

  1. Understand Requirements

    • Read the task description carefully
    • Identify all constraints and dependencies
    • Ask clarifying questions if needed
  2. Plan Implementation

    • Break down the task into steps
    • Identify potential challenges
    • Consider edge cases
  3. Write Code

    • Follow coding standards
    • Keep functions small and focused
    • Use meaningful variable names
  4. Test Thoroughly

    • Write unit tests
    • Run integration tests
    • Verify edge cases
  5. Document Solution

    • Add code comments
    • Update README if needed
    • Document any gotchas

Best Practices

  • Version Control: Commit often with clear messages
  • Code Review: Always get feedback before merging
  • Refactoring: Improve code structure continuously
  • Learning: Stay updated with best practices

Integration

This skill works well with:

  • Systematic debugging approaches
  • Test-driven development
  • Code review practices

Examples

Good Code Pattern

function calculateTotal(items: Item[]): number {
  return items.reduce((sum, item) => sum + item.price, 0);
}

Bad Code Pattern (Avoid)

function calc(x) {
  let t = 0;
  for (let i = 0; i < x.length; i++) {
    t = t + x[i].p;
  }
  return t;
}

Troubleshooting

  • Issue: Code not working

    • Solution: Check syntax errors, verify inputs
  • Issue: Tests failing

    • Solution: Review test assertions, check mock data
  • Issue: Performance problems

    • Solution: Profile code, optimize bottlenecks

Converted from: Claude Code Skill - test-skill Format: Cursor Rules (.mdc)

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 96 lines · 9 tokens per session scan A 3a905de05d65

Subscribe to this mod's changes

test-skill is a cursor rule published in the GitHub repository pr-pm/prpm (120 stars, last pushed 2mo ago), licensed MIT. It adds 9 tokens to every session and 496 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.