Agent skill

Skill Authoring

by athola in athola/claude-night-market

Guide creating Claude Code skills with TDD and persuasion principles.

MITAuto-check passedAgent Workflows

Install Skill Authoring

skills CLI
$ npx skills add athola/claude-night-market --skill skill-authoring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market skill-authoring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/abstract/skills/skill-authoring .claude/skills/skill-authoring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-authoring
GitHub stars
341
Token cost
~2.9k tokens
SKILL.md length
1,415 words
Files
15
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Guide creating Claude Code skills with TDD and persuasion principles.

  • New skill development
  • SKILL.md covers When NOT To Use, Overview, Skill Types and Quick Start, plus 9 more sections
  • Calls python
  • Tasks that involve Skill authoring

What it does

Skill Authoring is an agent skill from athola/claude-night-market. Guide creating Claude Code skills with TDD and persuasion principles. Use for new skill development.

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files (for example `README.md`, `modules/advanced-patterns.md` and `modules/authentication.md`).

It sits in Agent Workflows, covering Skill authoring and Test-driven development. It works with Python. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • New skill development
  • Tasks that involve Skill authoring
  • Tasks that involve Test-driven development

Example prompts

  • “/skill-authoring”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Authoring loads about 2.9k tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 1,415 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 1,415 words, ~2,941 tokens.

Download SKILL.mdSave it as .claude/skills/skill-authoring/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
skill-authoring
description
Guide creating Claude Code skills with TDD and persuasion principles. Use for new skill development.
alwaysApply
false
category
skill-development
tags
authoring, tdd, skills, writing, best-practices, validation
modules
modules/tdd-methodology.md, modules/persuasion-principles.md, modules/description-writing.md, modules/progressive-disclosure.md…
dependencies
modular-skills, abstract:skill-graph-audit
estimated_tokens
1500
model_hint
standard

Skill Authoring Guide

When NOT To Use

  • Scoring a skill that already exists (use abstract:skills-eval)
  • Authoring a hook (use abstract:hook-authoring)
  • Verifying the skill fires (use abstract:subagent-testing)

Overview

Writing effective Claude Code skills requires Test-Driven Development (TDD) and persuasion principles from compliance research. We treat skill writing as process documentation that needs empirical validation rather than just theoretical instruction. Skills are behavioral interventions designed to change model behavior in measurable ways.

By using TDD, we ensure skills address actual failure modes identified through testing. Optimized descriptions improve discovery, while a modular structure supports progressive disclosure to manage token usage. It states intent, constraints and exit criteria, and leaves the path between them to the session doing the work. modules/persuasion-principles.md carries the strength budget that decides which of the three each statement is.

The Iron Law

NO SKILL WITHOUT A FAILING TEST FIRST

Every skill must begin with documented evidence of Claude failing without it. This validates that you are solving a real problem. No implementation should proceed without a failing test, and no completion claim should be accepted without evidence. Detailed enforcement patterns for adversarial verification and coverage gates are available in imbue:proof-of-work.

Skill Types

We categorize skills into three types: Technique skills for specific methods, Pattern skills for recurring solutions, and Reference skills for quick lookups and checklists. This helps organize interventions into the most effective format for the task.

Quick Start

Skill Analysis

```bash

Analyze skill complexity

python scripts/skill_analyzer.py

Estimate tokens

python scripts/token_estimator.py ```

Validation

```bash

Validate skill structure

python scripts/abstract_validator.py --check ```

Verification: Run analysis and review token estimates before proceeding.

Description Optimization

Skill descriptions must be optimized for semantic search and explicit triggering. Follow the formula [What it does] + [When to use it] + [Key triggers]. Use a third-person voice (e.g., "Guides...", "Provides...") and include specific, concrete use cases. Avoid marketing language or vague phrases like "helps with coding."

Skill Character Budget (Claude Code 2.1.32+)

Skill description character budgets now scale with context window at 2% of available context. This means:

Context WindowDescription Budget
200K (Sonnet/Haiku)~4,000 characters
1M (Opus 4.6 GA)~20,000 characters

Previously constrained skills can use more descriptive text on larger windows. However, keep descriptions concise regardless: longer is not better. The scaling primarily prevents truncation for skills with legitimately complex trigger conditions, not as an invitation to add verbose content.

Plugin Name Auto-Display (Claude Code 2.1.33+)

Plugin names are now automatically shown alongside skill descriptions in the /skills menu. Do not repeat the plugin name in skill descriptions: it is redundant and wastes character budget. Focus descriptions on what the skill does and when to use it.

The TDD Cycle for Skills

RED Phase: Document Baseline Failures

Establish empirical evidence that an intervention is needed. Create at least three pressure scenarios that combine time pressure and ambiguity. Run these in a fresh instance without the skill active and document the exact failures, such as skipped error handling or missing validation.

GREEN Phase: Minimal Skill Implementation

Create the smallest intervention that addresses the documented failures. Write the SKILL.md with required frontmatter and content that directly counters the baseline failures. Include one example of correct behavior and verify that the same pressure scenarios now show measurable improvement.

REFACTOR Phase: Sharpen the Triggers

Eliminate the ability for Claude to explain away requirements. Run pressure scenarios with the skill active to identify common rationalizations, such as claiming a task is "too simple" for the full process. Add explicit counters, such as exception tables and red flag lists, until rationalizations stop.

Deciding Whether a Skill Applies

Skills must explicitly counter patterns where Claude attempts to bypass requirements. Common excuses include claiming a task is "too simple" or that a "spirit vs letter of the law" approach is sufficient. Skills should include red flag lists for self-checking, such as "Stop if you think: this is too simple for the full process." When exceptions are necessary, document them explicitly to prevent unauthorized shortcuts.

Module References

For detailed implementation guidance:

Core authoring cycle:

  • TDD Methodology: See modules/tdd-methodology.md for RED-GREEN-REFACTOR cycle details
  • Instruction Strength: See modules/persuasion-principles.md for how hard to push, and what earns an invariant
  • Description Writing: See modules/description-writing.md for discovery optimization
  • Progressive Disclosure: See modules/progressive-disclosure.md for file structure patterns
  • Skill Selection: See ../../shared-modules/skill-selection-judgment.md for deciding whether a skill applies
  • Graphviz Conventions: See modules/graphviz-conventions.md for process diagram standards

Working with concrete skills (load when implementing or debugging):

  • Annotated Examples: See modules/examples.md for walk-throughs of well-authored skills in this repo
  • Advanced Patterns: See modules/advanced-patterns.md for skill-to-skill coordination, conditional behavior, and scaling across activation contexts
  • Authentication: See modules/authentication.md for skills that invoke gh, glab, MCP servers, or other authenticated tools
  • Error Handling: See modules/error-handling.md for missing tools, timeouts, partial subagent results, and permission denials
  • Troubleshooting: See modules/troubleshooting.md for diagnosing skills that do not behave as the test corpus says they should

Validation and deployment (load when shipping):

  • Validation: See modules/validation.md for frontmatter parsing, reference resolution, and structural checks before merge
  • Testing with Subagents: See modules/testing-with-subagents.md for running the Iron Law test in a fresh subagent (and abstract:subagent-testing for the broader pressure-testing methodology)
  • Deployment Checklist: See modules/deployment-checklist.md for final validation before promoting a skill
Show full SKILL.md (567 more words)Show less

Deployment and Quality Gates

Before deploying, verify that the RED, GREEN, and REFACTOR phases are complete and documented. Frontmatter must be valid, descriptions optimized, and line counts kept under 500 lines. Ensure all module references are valid and at least one concrete example is included.

Audience Fit

A SKILL.md hub is a practitioner document: its reader knows the domain and is meeting this repository's take on it. Write the hub for that reader, and put anything only a maintainer of the skill would want into modules/, listed in the modules: frontmatter so progressive_loading keeps it off the hub's token budget. That is the same split the 500-line cap already forces, decided by reader rather than by line count.

When the skill's reader is not a practitioner, say so in the skill's opening line, and when the author has not decided, ask, do not guess. Tier table, Socratic set, and extraction protocol: scribe:slop-detector module audience-targeting.md.

Scribe Validation

All markdown files must pass scribe validation. This includes a slop scan to ensure a score under 2.5 and doc verification to confirm all file paths and command examples work. Bullet-to-prose ratios must remain under 60% to maintain readability. Use Skill(scribe:slop-detector) and Agent(scribe:doc-verifier) for these checks.

Integration and Best Practices

Individual skills are created using skill-authoring, while modular-skills handles the architecture of larger structures. skills-eval provides ongoing quality assessment. Avoid the common pitfall of writing skills based on theoretical behavior; always use documented failures to guide development. Use progressive disclosure to prevent monolithic files and ensure that each intervention remains focused and token-efficient.

Companion Skills
  • Skill(superpowers:writing-skills): the upstream superpowers take on authoring Claude Code skills. Load it as a complementary reference for skill structure and craft alongside this guide's TDD cycle.

Skill Directory Variable (2.1.69+)

Skills can reference their own directory using ${CLAUDE_SKILL_DIR} in SKILL.md content. This variable resolves to the absolute path of the directory containing the SKILL.md file. Use it for referencing sibling files, data assets, or module paths without hardcoding absolute paths:

markdown
See `${CLAUDE_SKILL_DIR}/modules/advanced-patterns.md`
for detailed patterns.

Run: `python3 ${CLAUDE_SKILL_DIR}/scripts/check.py`

This is especially useful for skills that ship alongside scripts or data files and need portable path references that work regardless of where the plugin is installed.

Description Colon Fix (2.1.69+)

Skill descriptions containing colons (e.g., description: "Triggers include: X, Y, Z") previously failed to load from SKILL.md frontmatter. This is fixed in 2.1.69. Skills without a description: field also now appear in the available skills list (previously they were silently excluded).

Troubleshooting

Common Issues

Skill not loading Check YAML frontmatter syntax and required fields. As of 2.1.69, skills without a description: field still appear in the skills list, but descriptions with colons must be quoted in YAML frontmatter.

Token limits exceeded Use progressive disclosure - move details to modules

Modules not found Verify module paths in SKILL.md are correct

Exit Criteria

  • The RED phase is documented with at least three pressure scenarios showing Claude failing without the skill, with exact failure descriptions recorded before implementation begins.
  • The GREEN phase produces a SKILL.md with valid YAML frontmatter (quoted description, required name field) that loads without error in Claude Code.
  • REFACTOR phase documents at least one discovered rationalization pattern and adds an explicit counter to the skill (exception table, red-flag list, or banned excuse list).
  • python scripts/abstract_validator.py --check exits 0 and SKILL.md is under 500 lines.
  • The hub serves one declared reader tier, and material for a different one lives in modules/ and is listed in the frontmatter.

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 14 other files in plugins/abstract/skills/skill-authoring of athola/claude-night-market.

  • SKILL.md
  • README.md
  • modules/advanced-patterns.md
  • modules/authentication.md
  • modules/deployment-checklist.md
  • modules/description-writing.md
  • modules/error-handling.md
  • modules/examples.md
  • modules/graphviz-conventions.md
  • modules/persuasion-principles.md
  • modules/progressive-disclosure.md
  • modules/tdd-methodology.md
  • modules/testing-with-subagents.md
  • modules/troubleshooting.md
  • modules/validation.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Skill Authoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Authoring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Authoring this skillathola/claude-night-market341—~2.9kAutomated safety check: PassMIT
Writing Skillsed3dai/ed3d-plugins2501 repos~1.3kAutomated safety check: PassNone
Writing SkillsTechDufus/oh-my-claude174—~1.3kAutomated safety check: PassMIT
Writing SkillsjnMetaCode/superpowers-zh8.3k—~3.2kAutomated safety check: PassMIT
Writing Skillssandgardenhq/sgai137—~4.9kAutomated safety check: PassCustom licence
SkillAnything Skill GeneratorAgentSkillOS/SkillAnything471—~1.9kAutomated safety check: PassMIT

Similar skills

  • Writing Skills

    ed3dai/ed3d-plugins

    A skill your agent uses when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing…

    250 GitHub starsUsed in 1 repo~1.3k tokens
    Agent WorkflowsAuto-check passed
  • Writing Skills

    TechDufus/oh-my-claude

    Methodology for creating effective skills using TDD principles.

    174 GitHub stars~1.3k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Writing Skills

    jnMetaCode/superpowers-zh

    当创建新技能、编辑现有技能或在部署前验证技能是否有效时使用

    8.3k GitHub stars~3.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Writing Skills

    sandgardenhq/sgai

    TDD for process documentation - test with subagents before writing, iterate until bulletproof.

    137 GitHub stars~4.9k tokensUpdated 18 days ago
    Agent WorkflowsAuto-check passed
  • SkillAnything Skill Generator

    AgentSkillOS/SkillAnything

    Generates a complete agent skill for a target tool, API, library or workflow through a seven-phase pipeline that ends with testing, tuning and packaging for several platforms.

    471 GitHub stars~1.9k tokensUpdated 6 mo ago
    Agent WorkflowsAuto-check passed
  • DBS Skill Maker

    dontbesilent2025/dbskill

    Turns a problem you keep running into into a single installable, tested skill, and prepares a GitHub repository only when you ask to share it.

    11k GitHub stars~1.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from athola/claude-night-market

All 154 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Skill Authoring

What does Skill Authoring do?

Guide creating Claude Code skills with TDD and persuasion principles. Skill Authoring is an agent skill from athola/claude-night-market. Guide creating Claude Code skills with TDD and persuasion principles.

When should I use Skill Authoring?

Skill Authoring fits situations like: new skill development; tasks that involve Skill authoring; tasks that involve Test-driven development.

How do I install Skill Authoring in Claude Code?

Run `npx skills add athola/claude-night-market --skill skill-authoring -a claude-code`. Or copy the skill folder (plugins/abstract/skills/skill-authoring in athola/claude-night-market) into .claude/skills/skill-authoring in your project. Claude Code loads it when a task matches its description.

How do I install Skill Authoring in Codex?

Run `npx skills add athola/claude-night-market --skill skill-authoring -a codex`. Or copy the skill folder (plugins/abstract/skills/skill-authoring in athola/claude-night-market) into .agents/skills/skill-authoring in your project. Codex loads it when a task matches its description.

Can I use Skill Authoring in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill skill-authoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-authoring, .gemini/skills/skill-authoring, .github/skills/skill-authoring and .opencode/skills/skill-authoring in your project.

What does Skill Authoring need to run?

Going by SKILL.md and its folder, Skill Authoring needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Skill Authoring access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Skill Authoring safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Skill Authoring use?

Skill Authoring is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Authoring use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skill Authoring?

Skills that share tags, products or a category with Skill Authoring: Writing Skills (ed3dai/ed3d-plugins, 250 stars), Writing Skills (TechDufus/oh-my-claude, 174 stars), Writing Skills (jnMetaCode/superpowers-zh, 8.3k stars) and Writing Skills (sandgardenhq/sgai, 137 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Authoring?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.