writing-skills

Apply the RED-GREEN-REFACTOR cycle to develop Copilot skills with failing baseline tests.

6|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Sentry01/copilot-cli-skills --skill writing-skills-sentry01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/Sentry01/copilot-cli-skills/tree/main/writing-skills
Command: npx skills add https://github.com/Sentry01/copilot-cli-skills --skill writing-skills-sentry01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a rigorous, test-driven framework for creating and refining Copilot skills, ensuring they are robust, discoverable, and effective even under pressure.

Core Features & Use Cases

  • TDD for Skills: Applies the RED-GREEN-REFACTOR cycle to skill documentation.
  • Pressure Testing: Develops scenarios to test skill compliance under realistic constraints (time, sunk cost, authority).
  • Rationalization Countermeasures: Identifies and explicitly addresses common excuses agents use to bypass rules.
  • Use Case: When developing a new skill to enforce a critical coding standard, use this skill's methodology to write failing tests first, then build the skill, and finally refactor it to withstand agent attempts to circumvent the standard.

Quick Start

Follow the RED-GREEN-REFACTOR process to create a new skill.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I use TDD to build Copilot skills that don't get bypassed?

To build Copilot skills with TDD, you enforce the RED-GREEN-REFACTOR cycle by writing failing baseline tests for pressure scenarios first, then developing the skill documentation, and refactoring until it withstands rationalization.

What is pressure testing for Copilot skill development?

Pressure testing for Copilot skill development involves creating realistic scenarios with constraints like time, sunk cost, and authority to test skill compliance and ensure the agent adheres to critical coding standards under stress.

Why does my Copilot skill keep getting ignored under pressure?

Copilot skills get ignored under pressure when they lack explicit countermeasures against rationalization; this TDD methodology solves that by developing rigorous pressure scenarios to expose common excuses and refactor the skill against them.

How do I apply the RED-GREEN-REFACTOR cycle to skill documentation?

You apply the RED-GREEN-REFACTOR cycle to skill documentation by writing a failing baseline test first, building the skill documentation to pass the test, and then refactoring the documentation until it is bulletproof.

Can I test Copilot skill compliance against agent rationalization?

Yes, you can test Copilot skill compliance against agent rationalization by identifying common excuses agents use to bypass rules and explicitly addressing them within the skill documentation during the refactoring phase.

What's the best way to enforce a critical coding standard with Copilot?

The best way to enforce a critical coding standard with Copilot is using a test-driven development methodology that requires failing baseline tests first, followed by building and refactoring the skill until it withstands common agent bypass attempts.