writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Skill by KalarisLabs
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kalarislabs-writing-skills
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
writing-skills- Description
- Use when creating new skills, editing existing skills, or verifying skills work before deployment
- License
- Apache-2.0
- Instructions
- 270 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Writing Skills
## Overview
**Writing skills IS Test-Driven Development applied to process documentation.**
**Personal skills live in your runtime's skills directory** (`~/.claude/skills/` on Claude Code) — see [codex-tools.md](../using-superpowers/references/codex-tools.md) or [gemini-tools.md](../using-superpowers/references/gemini-tools.md) for the path on those runtimes. Codex, Copilot CLI, and Gemini CLI all also recognize `~/.agents/skills/` as a cross-runtime alias.
You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).
**Core principle:** If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.
**REQUIRED BACKGROUND:** You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill adapts TDD to documentation.
**Official guidance:** For Anthropic's official skill authoring best practices, see anthropic-best-practices.md. This document provides additional patterns and guidelines that complement the TDD-focused approach in this skill.
## What is a Skill?
A **skill** is a reference guide for proven techniques, patterns, or tools. Skills help future agents find and apply effective approaches.
**Skills are:** Reusable techniques, patterns, tools, reference guides
**Skills are NOT:** Narratives about how you solved a problem once
## TDD Mapping for Skills
| TDD Concept | Skill Creation |
|-------------|----------------|
| **Test case** | Pressure scenario with subagent |
| **Production code** | Skill document (SKILL.md) |
| **Test fails (RED)** | Agent violates rule without skill (baseline) |
| **Test passes (GREEN)** | Agent complies with skill present |
| **Refactor** | Close loopholes while maintaining compliance |
| **Write test first** | Run baseline scenario BEFORE writing skill |
| **Watch it fail** | Document exact rationalizations agent uses |
| **Minimal code** | Write skill addressing those specific violations |
| **Watch it pass** | Verify agent now complies |
| **Refactor cycle** | Find new rationalizations -> plug -> re-verify |
The entire skill creation process follows RED-GREEN-REFACTOR.
## When to Create a Skill
**Create when:**
- Technique wasn't intuitively obvious to you
- You'd reference this again across projects
- Pattern applies broadly (not project-specific)
- Others would benefit
**Don't create for:**
- One-off solutions
- Standard practices well-documented elsewhere
- Project-specific conventions (put in your instructions file)
- Mechanical constraints (if it's enforceable with regex/validation, automate it—save documentation for judgment calls)
## Skill Types
### Technique
Concrete method with steps to follow (condition-based-waiting, root-cause-tracing)
### Pattern
Way of thinking about problems (flatten-with-flags, test-invariants)
### Reference
API docs, syntax guides, tool documentation (office docs)
## Directory Structure
```
skills/
skill-name/
SKILL.md # Main reference (required)
supporting-file.* # Only if needed
```
**Flat namespace** - all skills in one searchable namespace
**Separate files for:**
1. **Heavy reference** (100+ lines) - API docs, comprehensive syntax
2. **Reusable tools** - Scripts, utilities, templates
**Keep inline:**
- Principles and concepts
- Code patterns (< 50 lines)
- Everything else
## SKILL.md Structure
**Frontmatter (YAML):**
- Two required fields: `name` and `description` (see [agentskills.io/specification](https://agentskills.io/specification) for all supported fields)
- Max 1024 characters total
- `name`: Use letters, numbers, and hyphens only (no parentheses, special chars)
- `description`: Third-person, describes ONLY when to use (NOT what it does)
- Start with "Use when..." to focus on triggering conditions
- Include specific symptoms, situations, and contexts
- **NEVER summarize the skill's process or workflow** (see SDO section for why)
- Keep under 500 characters if possible
```markdown
---
name: Skill-Name-With-Hyphens
description: Use when [specific triggering conditions and symptoms]
---
# Skill Name
## Overview
What is this? Core principle in 1-2 sentences.
## When to Use
[Small inline flowchart IF decision non-obvious]
Bullet list with SYMPTOMS and use cases
When NOT to use
## Core Pattern (for techniques/patterns)
Before/after code comparisonFrom KalarisLabs/Skill-Doctor, Apache-2.0.
More from KalarisLabs/Skill-Doctor
- 0.596score
rust-idioms
KalarisLabs
Everyday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
ci-cd
KalarisLabs
GitHub Actions, required checks, TestMu, OS matrix, and merge gates for Skill Doctor.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-skills
leonardomso
Comprehensive Rust coding guidelines with 265 rules across 26 categories.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-invariants
KalarisLabs
Nine non-negotiable Skill Doctor product invariants.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-workspace
KalarisLabs
Cargo workspace layout, crate boundaries, and dependency policy for Skill Doctor.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-testing
KalarisLabs
How to write Skill Doctor tests — unit, integration, CLI, fixtures, determinism, additive-only.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-perf
KalarisLabs
Rust performance and memory optimization for Skill Doctor L1.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
project-context
KalarisLabs
Skill Doctor product and architecture context.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
neutralize-sd11
KalarisLabs
SD-11 scanner-mediated injection — neutralize untrusted skill bytes before any model; additive-only scoring.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
release-publish
KalarisLabs
Pre-publish and publish path for crates.io, npm installer, GitHub Releases, SBOM.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
unsafe-sandbox
KalarisLabs
Rules for unsafe Rust and the L3 behavioral process harness.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
yara-rules
KalarisLabs
Author and compile YARA-X rules for SDTM-v1.
SkillBFreshness: B★ 13Claude Code +9
Signals
- Stars
- 13
- Forks
- 1
- Open issues
- 30
- Last commit (this folder)
- Sep 10, 2026 (1 month ago)
- Last release
- Sep 12, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/KalarisLabs/Skill-Doctor
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.745score
writing-skills
obra
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.415score
writing-skills
GanyuanRan
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.399score
writing-skills
rpamis
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.371score
writing-skills
guanyang
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 980Claude Code +9 - 0.357score
writing-skills
transparent-pegasus
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 12Claude Code +9 - 0.344score
writing-skills
dragoshont
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 2Claude Code +9 - 0.336score
writing-skills
PanPanFR
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 12Claude Code +9 - 0.334score
writing-skills
CraftOS-dev
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 400Claude Code +9 - 0.332score
writing-skills
mehrlander
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 2Claude Code +9 - 0.332score
writing-skills
andrei649
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 9Claude Code +9 - 0.314score
writing-skills
BlinkVoid
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 2Claude Code +9 - 0.313score
writing-skills
coco-research
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 784Claude Code +9
More from KalarisLabs
- 0.596score
rust-idioms
KalarisLabs
Everyday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-invariants
KalarisLabs
Nine non-negotiable Skill Doctor product invariants.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-testing
KalarisLabs
How to write Skill Doctor tests — unit, integration, CLI, fixtures, determinism, additive-only.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
ci-cd
KalarisLabs
GitHub Actions, required checks, TestMu, OS matrix, and merge gates for Skill Doctor.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
project-context
KalarisLabs
Skill Doctor product and architecture context.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-perf
KalarisLabs
Rust performance and memory optimization for Skill Doctor L1.
SkillBFreshness: B★ 13Claude Code +9
Cite this page
writing-skills. Agent Mart. https://agentmart.dev/skills/kalarislabs-writing-skills (last updated 2026-10-24)