writing-skills

Convert process documentation into compliance-enforcing agent Skills using test-driven development.

35|5|Updated Sep 20, 2025
One-click install
npx skills add https://github.com/zhanglongxiao111/indesign-cli --skill writing-skills-zhanglongxiao111
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/zhanglongxiao111/indesign-cli/tree/main/.codex/skills/writing-skills
Command: npx skills add https://github.com/zhanglongxiao111/indesign-cli --skill writing-skills-zhanglongxiao111

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps an AI agent create and maintain process documentation (Skills) that reliably enforce correct behavior, by adapting Test-Driven Development to writing instructions and preventing common rationalizations.

Core Features & Use Cases

  • TDD for documentation: Define pressure scenarios (RED), write minimal documentation to fix failures (GREEN), and then close loopholes (REFACTOR).
  • Skill usage discovery optimization: Ensures the YAML frontmatter name/description are written for discoverability and correct triggering behavior.
  • Anti-rationalization tooling: Adds explicit negations, foundational principles, and “red flags” to prevent “spirit vs letter” workarounds.
  • Skill authoring guidance: Provides structure patterns, writing constraints, and workflow checklists for robust Skill deployment.

Quick Start

Use the writing-skills Skill when authoring a new process Skill or revising an existing one that must remain compliant under pressure, and verify it by first running an identical baseline scenario without the Skill, then updating the Skill to address the exact failures you observed.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I write process documentation that prevents AI agents from rationalizing workarounds?

To prevent agent rationalization, write process documentation using test-driven development by defining pressure scenarios, capturing verbatim failures, and adding explicit negation counters to close loopholes. This structured Skill authoring approach enforces strict compliance by addressing exact observed failures iteratively.

What is the best way to apply test-driven development to writing agent instructions?

Applying test-driven development to writing agent instructions involves a RED-GREEN-REFACTOR cycle: define pressure scenarios for failures, write minimal documentation to fix them, then close loopholes. This validates instruction reliability against rationalizations before deployment.

How do I optimize YAML frontmatter name and description for better Skill discoverability?

Optimizing YAML frontmatter for discoverability requires writing accurate name and description triggers that match user search intent. This ensures reliable Skill triggering and correct behavior activation when users query related tasks without manual invocation.

How do I test if my process documentation fails under pressure before deployment?

Test process documentation failures by running an identical baseline scenario without the Skill, then updating the documentation to address the exact verbatim failures observed. This RED phase pressure testing exposes rationalization vulnerabilities before agent deployment.

When should I use structured Skill authoring guidance for process documentation?

Use structured Skill authoring guidance when creating or editing process documentation that must resist rationalizations and remain compliant under pressure. This is essential when instructions require reliable behavior enforcement and accurate YAML discoverability triggers.

Why does my AI agent bypass process instructions despite explicit documentation?

AI agents bypass process instructions due to "spirit vs letter" workarounds. Counter this by adding explicit negations, foundational principles, and red flags to your documentation, closing loopholes identified during REFACTOR pressure testing.