Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pixel-process-ug avatar

Writing Skills

  • 66 installs
  • 1 repo stars
  • Updated March 16, 2026
  • pixel-process-ug/superkit-agents

Helps with ai & agent building tasks.

About

writing-skills is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • writing-skills
  • AI & Agent Building
  • AI-coding skill

Writing Skills by the numbers

  • 66 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #5,968 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill writing-skills

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs66
repo stars1
Last updatedMarch 16, 2026
Repositorypixel-process-ug/superkit-agents

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

Writing Skills

Overview

Create effective, well-tested Claude Code skills that trigger reliably, load efficiently, and produce consistent results. This skill enforces a TDD approach to skill creation — define test prompts first, write the minimal skill, then harden against misfire and rationalization.

This is a RIGID skill. Every step must be followed exactly. No shortcuts.

Phase 1: Define Test Prompts (RED)

[HARD-GATE] Before writing any skill content, define the prompts that should trigger it.

Write 3-5 test prompts:

#Test TypePurposeExample
1Obvious triggerShould clearly match"Create a new React component with tests"
2Subtle triggerShould also match"I need a reusable button"
3Near-missShould NOT match"Review this component code"
4Edge caseDefine expected behavior"Create a component and write its docs"
5AmbiguousDefine which skill wins"Set up the frontend"

Document expected behavior for each:

Test prompt: "Create a new React component with tests"
Expected: Should trigger component-creation skill
Should NOT trigger: testing-strategy, code-review, writing-skills

STOP — Do NOT proceed to Phase 2 until all test prompts are documented.

Phase 2: Write Minimal SKILL.md (GREEN)

Create the minimum skill definition that passes all test prompts from Phase 1.

Required Structure

Every SKILL.md MUST contain ALL of these elements:

ElementRequiredPurpose
Frontmatter (name, description)YesIdentification and trigger matching
CSO-optimized descriptionYesStarts with "Use when...", lists trigger conditions
Overview (2-3 sentences)YesPurpose and value
Multi-phase process with STOP markersYesNumbered phases with clear actions
Decision tablesYesTables for choosing between approaches
Anti-patterns / Common mistakes tableYes"What NOT to do" section
Anti-rationalization guardsYesHARD-GATE or "Do NOT skip" markers
Integration points tableYesHow skill connects to other skills
Concrete examplesYesCode/command examples where non-obvious
Skill type declarationYesRIGID or FLEXIBLE at the end

Frontmatter Rules

---
name: skill-name          # lowercase with hyphens, unique identifier
description: "Use when [trigger conditions]"  # Max 1024 chars
---

[HARD-GATE] The description field MUST start with "Use when".

CSO (Claude Search Optimization) Rules

The description field determines when a skill is selected. Optimize it like a search query.

RuleExplanation
Start with "Use when..."Trigger condition format
List specific conditions, not capabilitiesWhat activates the skill, not what it teaches
Maximum 1024 charactersBe concise
Use action verbs"creating", "debugging", "designing", "reviewing"

Good:

description: "Use when creating database migrations, designing table schemas, adding indexes, or optimizing SQL queries"

Bad:

description: "A comprehensive guide to database design covering normalization, indexing, query optimization, and migration strategies"

Trigger Condition Patterns

PatternFormatExample
Action-based"Use when creating..., updating..., deleting..."CRUD operations
Problem-based"Use when debugging..., fixing..., resolving..."Bug fixes
Artifact-based"Use when working with Docker files, CI configs..."File types
Phase-based"Use when starting a project, finishing a feature..."Workflow stage

STOP — Verify the description would match test prompts from Phase 1 before proceeding.

Phase 3: Harden the Skill (REFACTOR)

Review and close loopholes:

CheckQuestionFix If Failing
Over-triggeringDoes it match prompts it should NOT?Narrow the description
Under-triggeringDoes it miss valid prompts?Add missing trigger conditions
RationalizationWould an agent find a way to skip steps?Add "Do NOT skip" constraints
AmbiguityAre instructions interpretable multiple ways?Make them concrete with examples
Token bloatIs it over 500 lines?Move reference material to separate files
Missing gatesAre there checkpoints between phases?Add STOP markers

Token Efficiency Targets

Skill TypeTarget LinesStrategy
Getting-started workflows< 100 linesMinimal steps
Frequently-loaded skills< 200 linesTables over prose
Comprehensive reference skills< 400 linesSplit into phases
Maximum allowed500 linesMove extras to separate files

Token Reduction Strategies

  • Use tables instead of prose for structured information
  • Use terse imperative sentences, not explanatory paragraphs
  • Move reference material to separate files (loaded only when needed)
  • Eliminate redundancy — say it once
  • Use code examples only when the pattern is non-obvious

STOP — Re-run test prompts mentally. Does the skill trigger correctly for all 5? Does it NOT trigger for near-misses?

Phase 4: Validate and Save

1. Verify all 10 required elements from Phase 2 are present 2. Verify token budget is within target 3. Verify STOP markers exist between phases 4. Save the SKILL.md file 5. Test by invoking the skill with each test prompt

Validation Checklist

#CheckStatus
1Frontmatter has name and description[ ]
2Description starts with "Use when"[ ]
3Overview is 2-3 sentences[ ]
4Phases are numbered with STOP markers[ ]
5Decision tables present (not prose)[ ]
6Anti-patterns table present[ ]
7Anti-rationalization guards present[ ]
8Integration points table present[ ]
9Concrete examples present[ ]
10Skill type declared (RIGID/FLEXIBLE)[ ]
11Under 500 lines total[ ]

Skill Types and Testing

Testing by Skill Type

Skill TypeTest MethodWhat to Verify
Technique (TDD, debugging)Apply to problem X and unusual problem YProduces right steps; adapts correctly
Pattern (design patterns)Show code X (matches) and code Y (near-miss)Identifies correctly; rejects correctly
Reference (API docs, checklists)Ask "what is the rule for X?" and "what about edge case Z?"Finds right answer; handles gaps
Discipline (security review)Review correct code, then review under time pressurePasses clean code; enforces all rules even under pressure

Anti-Patterns / Common Mistakes

MistakeWhy It Is WrongWhat To Do Instead
Description describes content, not triggersSkill never gets selectedStart with "Use when..." and list trigger conditions
Too broad — triggers on everythingUseful for nothingNarrow to specific actions and artifacts
Too long — 1000+ linesWastes context tokens every invocationStay under 500 lines; split reference material
Missing constraintsAgents rationalize skipping stepsAdd "Do NOT" rules and HARD-GATE markers
Untested against real promptsWill misfire in productionWrite test prompts BEFORE writing the skill
External file dependenciesFragile — files may not existSelf-contained or check file existence first
Prose where tables workHarder to scan, more tokensUse tables for structured comparisons
No STOP markers between phasesAgent blasts through without checkpointsAdd STOP after each phase

Anti-Rationalization Guards

  • [HARD-GATE] Do NOT write a skill without defining test prompts first (Phase 1)
  • [HARD-GATE] Do NOT omit the description field or use a non-"Use when" format
  • Do NOT skip the hardening phase — every skill needs rationalization review
  • Do NOT skip the validation checklist — all 11 items must pass
  • Do NOT create skills over 500 lines — split into skill + reference file
  • Do NOT use prose where a table would be clearer

Integration Points

SkillRelationship
self-learningSkills are discovered and loaded via the skill system
auto-improvementTracks skill effectiveness and suggests improvements
spec-writingSkills can be specified using JTBD methodology
code-reviewSkills should be reviewed for quality before deployment
testing-strategyTest prompts follow testing methodology

Concrete Example: Complete Minimal Skill

---
name: docker-setup
description: "Use when creating Dockerfiles, docker-compose configurations, or containerizing an application for development or production"
---

# Docker Setup

## Overview

Guide the creation of Docker configurations for development and production environments. Produces Dockerfiles, docker-compose files, and .dockerignore with best practices.

## Phase 1: Discovery
[Ask about: runtime, ports, volumes, env vars, multi-stage needs]
STOP — confirm requirements.

## Phase 2: Generate Configuration
[Create Dockerfile, docker-compose.yml, .dockerignore]
STOP — present for review.

## Phase 3: Verify
[Build image, run container, verify health check]

## Anti-Patterns
| Mistake | Fix |
|---------|-----|
| Running as root | Use non-root USER |
| No .dockerignore | Always create one |

## Skill Type
**Flexible**

Skill Type

Rigid — The TDD approach (test prompts first), required structure elements, and validation checklist must be followed exactly. No elements may be skipped.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.