writing-r-skills

Guide R skill creation through Test-Driven Development cycles.

19|1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/arthurgailes/awesome-r-skills --skill writing-r-skills
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: writing-r-skills
Source: https://github.com/arthurgailes/awesome-r-skills/tree/main/skills/writing-r-skills
Command: npx skills add https://github.com/arthurgailes/awesome-r-skills --skill writing-r-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a rigorous Test-Driven Development (TDD) framework for creating and verifying R skills, ensuring they are robust, effective, and meet specific agentic requirements.

Core Features & Use Cases

  • TDD Methodology: Guides the entire skill creation process through RED-GREEN-REFACTOR cycles.
  • Pressure Testing: Develops scenarios to test skills under realistic agentic pressures (time, sunk cost, authority).
  • Rationalization Countermeasures: Explicitly addresses and closes loopholes that agents might use to bypass skill rules.
  • Use Case: When developing a new R package skill, use this skill to ensure your SKILL.md is clear, testable, and guides agents correctly through complex R package interactions.

Quick Start

Use the writing-r-skills skill when you are about to create a new R skill or modify an existing one.

Frequently Asked Questions about writing-r-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use TDD to create R skills that resist agent bypass?▼

You can use TDD to create R skills by running RED-GREEN-REFACTOR cycles that build pressure scenarios, closing loopholes agents might use to bypass rules. This ensures skills remain bulletproof under realistic operational pressures.

What is test-driven development for R skill creation?▼

Test-driven development for R skill creation is a methodology that guides the entire skill creation process through RED-GREEN-REFACTOR cycles. It develops scenarios to test skills under realistic agentic pressures like time constraints, sunk cost, and authority.

Why do agents bypass skill rules under operational pressure?▼

Agents bypass skill rules under operational pressure through rationalization loopholes related to time, sunk cost, and authority. Countermeasures involve explicit rule-setting and pressure scenario testing to enforce discipline and ensure compliance.

Does this TDD framework work for modifying existing R skills?▼

Yes, this TDD framework works for modifying existing R skills. It guides the verification of existing SKILL.md files to ensure they remain clear, testable, and capable of guiding agents correctly through complex R package interactions.

What are the limitations of using TDD for R skill development?▼

The limitations of using TDD for R skill development include the compliance costs associated with discipline enforcement and the need to constantly address rationalization resistance through explicit pressure scenarios and rule-setting.