writing-skills

Tests discipline-enforcing agent skills using RED-GREEN-REFACTOR loops with loophole counters.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/junevm/avtoolz --skill writing-skills-junevm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/junevm/avtoolz/tree/main/.agents/skills/writing-skills
Command: npx skills add https://github.com/junevm/avtoolz --skill writing-skills-junevm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing agent skills without real validation leads to rationalizations, loopholes, and instructions that fail under pressure.

Core Features & Use Cases

  • Pressure-tested documentation: Convert TDD concepts into a “RED-GREEN-REFACTOR” loop for skill content so compliance is verified against baseline behavior.
  • Loophole prevention: Identify exact rationalizations agents use when tempted to bypass rules, then encode explicit negations and red flags.
  • Better discovery and selection: Enforce high-signal YAML frontmatter (name/description) and ensure the description specifies triggering symptoms rather than summarizing workflow.
  • Use case: When you create or edit a discipline-enforcing skill (e.g., “must verify before proceeding”), this helps ensure it’s actually followed by other agents under time, authority, sunk-cost, and exhaustion pressure.

Quick Start

Use the writing-skills guide to draft your new skill, run a baseline “watch the skill fail” scenario, then update the skill until the same scenario passes.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I test agent instructions to prevent rationalization under pressure?

To prevent agents from bypassing discipline-enforcing process rules, identify exact rationalizations they use under time, authority, sunk-cost, or exhaustion pressure, then encode explicit negations and red flags directly into the skill documentation to close those loopholes.

How do I write YAML discovery metadata for agent skills?

Writing YAML discovery metadata requires high-signal name and description fields where the description specifies triggering symptoms rather than summarizing workflow, ensuring better skill selection and discovery by other agents.

Why do agents bypass discipline-enforcing process rules during execution?

Agents bypass discipline-enforcing process rules because unvalidated skill instructions contain loopholes that allow rationalization under pressure, meaning the rules fail when agents face time, authority, sunk-cost, or exhaustion pressures during task execution.

Can I use a TDD approach to harden documentation-based agent skills?

Yes, you can use a TDD approach to harden documentation-based agent skills by running a baseline scenario to watch the skill fail first, then updating the skill content until that same scenario passes compliance verification.

What's the best way to enforce agent compliance with third-party language in skills?

The best way to enforce agent compliance is using third-person compliance language within skill instructions combined with a RED-GREEN-REFACTOR evaluation loop that pressure-tests the rules and re-verifies that explicit loophole counters prevent bypass attempts.