writing-skills

Enforce Test-Driven Development cycles for creating and modifying AI skills.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/ZJUxjy/opencode_lite --skill writing-skills-zjuxjy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/ZJUxjy/opencode_lite/tree/main/skills/writing-skills
Command: npx skills add https://github.com/ZJUxjy/opencode_lite --skill writing-skills-zjuxjy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that new and updated skills are rigorously tested and documented, preventing common errors and rationalizations that lead to ineffective or bypassed skills.

Core Features & Use Cases

  • Test-Driven Skill Development: Adapts the RED-GREEN-REFACTOR cycle to skill creation.
  • Pressure Scenario Testing: Uses subagents and combined pressures (time, sunk cost, authority) to simulate real-world stress.
  • Rationalization Countermeasures: Explicitly addresses and closes loopholes agents use to bypass rules.
  • Use Case: Before deploying a new skill that enforces a critical coding standard, you would use this skill's methodology to write failing tests, create the skill, and then refactor it until agents comply under pressure.

Quick Start

Follow the RED-GREEN-REFACTOR process outlined in this skill's documentation to test your 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 test AI agent compliance for new skill documentation?

To test agent compliance for skill documentation, apply Test-Driven Development principles using RED-GREEN-REFACTOR cycles and pressure scenarios with subagents to verify rules are followed under stress.

What is the best way to prevent AI agents from bypassing skill rules?

The best way to prevent agents from bypassing skill rules is implementing explicit rationalization countermeasures during skill creation, closing loopholes agents use to skip established protocols.

How do I apply TDD principles to skill development?

Apply TDD to skill development by adapting the RED-GREEN-REFACTOR cycle: write failing tests for agent compliance, create the skill to pass tests, and refactor until agents comply under pressure.

Why do AI skills fail under real-world pressure scenarios?

AI skills fail under pressure scenarios when documentation lacks rigorous testing against combined pressures like time constraints, sunk cost, and authority, allowing agents to rationalize bypassing rules.

Do I need subagents to test skill effectiveness?

Yes, you need subagents to simulate real-world stress during pressure scenario testing, verifying that your skill enforces coding standards and maintains agent compliance under combined pressures.

When should I use test-driven skill development?

Use test-driven skill development before deploying any new skill that enforces critical coding standards, ensuring the skill is rigorously tested and documented against agent rationalization and bypass attempts.