skill-authoring
CLAWHUB · Unverified
Guide creating Claude Code skills with TDD and persuasion principles. Use for new skill development Skill: skill-authoring Owner: athola Summary: Guide creating Claude Code skills with TDD and persuasion principles. Use for new skill development Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:04:21.565Z | user Release v1.9.19 v1.9.18 | 2026-08-15T21:28:31.177Z | user Release v1.9.18 v1.9.17 | 2026-07-30T05:28:22.990Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:45:26.649Z | user Release v1.9.16 v1.9.
- 62
- Rank
- 84
- Safety
- 1.8k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.8K downloadsadoption · Oct 10, 2026
- Latest release
- 1.9.19release · Aug 26, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.9.19release
Release v1.9.19
Observed Aug 26, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-abstract-skill-authoring- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-skill-authoring/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
147,858 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: skill-authoring
description: |
Guide creating Claude Code skills with TDD and persuasion principles. Use for new skill development
version: 1.9.8
triggers:
- authoring
- tdd
- skills
- writing
- best-practices
- validation
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/abstract", "emoji": "\ud83d\udee0\ufe0f", "requires": {"config": ["night-market.modular-skills"]}}}
source: claude-night-market
source_plugin: abstract
---
> **Night Market Skill** — ported from [claude-night-market/abstract](https://github.com/athola/claude-night-market/tree/master/plugins/abstract). For the full experience with agents, hooks, and commands, install the Claude Code plugin.
# Skill Authoring Guide
## 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. This framework also includes anti-rationalization patterns to prevent the assistant from bypassing requirements.
### 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/analyze.py
# Estimate tokens
python scripts/tokens.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_meta.json
{
"ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
"slug": "nm-abstract-skill-authoring",
"version": "1.9.19",
"publishedAt": 1787749461565
}modules/advanced-patterns.md
# Advanced Skill-Authoring Patterns Patterns for skill authors who have shipped a working skill and now need to coordinate with other skills, scale across many activation contexts, or expose conditional behavior. Read this after the core SKILL.md and `tdd-methodology.md` modules. The Iron Law still applies: every advanced pattern below assumes a baseline failing test exists for the behavior being added. ## When to reach for these patterns Most skills do not need any of this. Add an advanced pattern only when a baseline scenario fails because of coordination, scale, or context, not because of missing content. If the failure can be fixed by adding a section to a single SKILL.md, do that first. | Symptom in baseline tests | Pattern below | |---------------------------|---------------| | Two skills give conflicting advice on same task | Multi-skill coordination | | One SKILL.md exceeds 500 lines and still grows | Hub-and-spoke loading | | Skill activates on irrelevant tasks | Trigger narrowing | | Skill must behave differently per environment | Conditional activation | | Same module needed by 3+ skills | Shared module extraction | ## Multi-skill coordination Skills frequently overlap. `abstract:skill-authoring` writes new skills, `abstract:skills-eval` audits them, and `abstract:subagent-testing` validates them. When a task touches all three, the user does not want three skills shouting in parallel. They want a chain. ### Establish a primary skill per task In each SKILL.md, declare which other skills it defers to and which it owns. Example from `abstract:skill-authoring/SKILL.md`: ```markdown ## 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. ``` This single paragraph prevents the three skills from racing. The user reading any one of them learns where the boundaries live. ### Cross-reference real targets, not abstractions Use the fully qualified `plugin:skill` form so the reference resolves regardless of which marketplace the user installed: ```markdown For pressure testing the new skill, see `Skill(abstract:subagent-testing)`. ``` Anti-pattern: `see the testing skill`. There are six skills with "testing" in the name across this repo. The reader cannot route. ### Hand off, do not duplicate When skill A needs behavior owned by skill B, link to skill B rather than restating its content. Duplicated guidance drifts. The version in `abstract:skill-authoring` will say one thing and the copy in `abstract:skills-eval` will say something else after two PRs. Pick an owner and link. ## Hub-and-spoke loading The hub-and-spoke pattern is documented in `progressive-disclosure.md`. The advanced variant adds two rules that only matter once a skill has 5+ modules. ### Rule 1: the hub never loads more than two spokes If your SKILL.md routinely says "for X, see module-a; for Y, see module-b;
modules/anti-rationalization.md
# Anti-Rationalization Techniques ## Overview Claude is sophisticated at finding justifications to bypass requirements while appearing compliant. Skills must explicitly counter these rationalization patterns to maintain effectiveness. ## Understanding Rationalization ### What It Is **Rationalization**: The process of finding logical-sounding reasons to justify not following a requirement, even when the requirement clearly applies. ### Why It Happens 1. **Path of Least Resistance**: Following requirements takes effort; bypassing is easier 2. **Context Sensitivity**: Claude tries to optimize for perceived user intent 3. **Ambiguity Exploitation**: Any wiggle room gets exploited 4. **Confidence Bias**: "I know what the user really wants" ### Example **Requirement**: "Every API endpoint must include input validation" **User Request**: "Quickly add a user profile update endpoint" **Rationalization**: ``` "Since this is a quick implementation for an internal tool, we can use basic validation now and add detailed validation in a later iteration. The user emphasized speed, so I'll focus on core functionality first." ``` **Why It's Wrong**: Requirement has no "unless it's quick" exception. Security doesn't wait for "later iterations." ## Common Rationalization Patterns ### Pattern 1: Scope Minimization **Rationalization**: "This is just X, so Y doesn't apply" **Variations:** - "This is just a prototype" - "This is just an internal tool" - "This is just a simple endpoint" - "This is just for testing" **Counter Strategy: Universal Application Table** ```markdown ## When This Requirement Applies | Scope | Required? | Rationale | |-------|-----------|-----------| | Production | OK | Security non-negotiable | | Prototype | OK | Prototypes → production | | Internal | OK | Internal = attack vector | | Simple | OK | Complexity ≠ security need | | Testing | OK | Test environments get exposed | | Quick fix | OK | Breaches are permanent | **No exceptions**. Only valid override: Explicit user statement "Skip [requirement] because [documented reason]." ``` ### Pattern 2: Temporal Deferral **Rationalization**: "We can add X later" **Variations:** - "We'll add security in the next iteration" - "Let's get it working first, then harden" - "We can refactor later when we have time" - "I'll add tests after we ship" **Counter Strategy: Immediacy Requirement** ```markdown ## No Deferral Allowed These requirements apply NOW, not later: - Input validation - Error handling - Authentication - Tests ### Why "Later" Fails Statistics from 1,000+ projects: - 80% of "later" items never happen - Security added later requires 3x effort - Bugs found post-deployment cost 15x more ### The Rule If it's important enough to do "later," it's important enough to do now. If it's not important enough to do now, remove it from the plan entirely. ``` ### Pattern 3: Trust Assumptions **Rationalization**: "We can skip X because users are trusted" **Variations:** - "The
modules/authentication.md
# Authentication in Skills Skills frequently invoke authenticated tools: GitHub via `gh`, GitLab via `glab`, MCP servers that hold OAuth tokens, internal APIs that expect bearer tokens. This module covers how to author a skill that handles credentials safely. The Iron Law applies: write a baseline test where Claude leaks or mishandles a credential, then write the skill that prevents it. ## Scope This module is about authoring. For runtime patterns shared across skills (token rotation, OAuth dance, key storage), defer to `Skill(leyline:authentication-patterns)`. This module covers the authoring decisions: how the SKILL.md should describe auth, what to delegate, what to refuse. ## Three auth shapes a skill must distinguish | Shape | Example | Skill responsibility | |-------|---------|----------------------| | Pre-authenticated CLI | `gh`, `glab`, `aws` | Assume valid session, fail loud if not | | MCP server with stored token | GitHub MCP, Drive MCP | Delegate auth to MCP, never read token | | Bearer token in env or file | Custom REST API | Document where, never echo the value | Conflating these shapes produces skills that either ask the user for credentials they already have, or worse, write credentials into transcripts. ## Pre-authenticated CLI tools The common case. The user has already run `gh auth login` before starting Claude. Your skill should: 1. Verify the session at the top of the workflow. 2. Fail loudly with a remediation step if absent. 3. Never attempt to authenticate inline. Pattern: ```markdown ## Activation Gate Before using this skill, verify `gh` is authenticated: \`\`\`bash gh auth status \`\`\` If the command returns a non-zero exit, stop and tell the user: "This skill requires `gh` authentication. Run `gh auth login` and retry." Do not attempt to log in on the user's behalf. ``` Why "do not attempt": running `gh auth login` opens a browser or prints a device code. Claude cannot complete either flow and will hang or hallucinate a success. ## MCP server delegation When the skill uses an MCP server (Gmail, Calendar, Drive, GitHub via MCP, Slack), the credential lives inside the MCP server, not the skill. The authoring rule is short: never read, log, or echo tokens from MCP context. Pattern: ```markdown ## Tools This skill uses the `mcp__plugin_context7_context7__query-docs` tool. The MCP server holds the credential. Do not request it from the user. Do not print the configured server URL. If the MCP tool returns an authentication error, surface the error verbatim and tell the user to reauthenticate via their MCP configuration. ``` The phrase "surface the error verbatim" matters. Skills that paraphrase auth errors lose the diagnostic detail (expired vs revoked vs scope mismatch) the user needs to fix the problem. ## Bearer tokens and API keys When a skill calls a custom API that needs a key, the key lives in an environment variable or a file the user controls. The skill must: 1. Document the variable name in
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-athola-nm-abstract-skill-authoring. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about skill-authoring. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-athola-nm-abstract-skill-authoring, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/athola/skills/nm-abstract-skill-authoring",
"sourceUrl": "https://clawhub.ai/athola/skills/nm-abstract-skill-authoring",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T02:05:44.489Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-skill-authoring/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-skill-authoring/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T02:05:44.489Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.8K downloads",
"href": "https://clawhub.ai/athola/nm-abstract-skill-authoring",
"sourceUrl": "https://clawhub.ai/athola/nm-abstract-skill-authoring",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T02:05:44.489Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.9.19",
"href": "https://clawhub.ai/athola/nm-abstract-skill-authoring",
"sourceUrl": "https://clawhub.ai/athola/nm-abstract-skill-authoring",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-08-26T13:04:21.565Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-skill-authoring/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-skill-authoring/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.9.19",
"description": "Release v1.9.19",
"href": "https://clawhub.ai/athola/nm-abstract-skill-authoring",
"sourceUrl": "https://clawhub.ai/athola/nm-abstract-skill-authoring",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-08-26T13:04:21.565Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-athola-nm-abstract-skill-authoring/run-check
