Agent skill

Writing Skills

by sandgardenhq in sandgardenhq/sgai

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

Custom licenceAuto-check passedAgent Workflows

Install Writing Skills

skills CLI
$ npx skills add sandgardenhq/sgai --skill writing-skills -a claude-code

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

GitHub CLI
$ gh skill install sandgardenhq/sgai writing-skills --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/sandgardenhq/sgai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cmd/sgai/skel/.sgai/skills/meta/writing-skills .claude/skills/writing-skills && 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
writing-skills
GitHub stars
137
Token cost
~4.9k tokens
SKILL.md length
1,790 words
Files
1
Skills in repo
53
Repo updated
First seen
Licence
Custom licence

At a glance

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

  • Works in 5 steps: Rich descriptions with Symptoms → Keyword Coverage → Descriptive Naming → …
  • Tasks that involve Skill authoring
  • SKILL.md covers Overview, What is a Skill?, TDD Mapping for Skills and When to Create a Skill, plus 10 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Writing Skills is an agent skill from sandgardenhq/sgai. TDD for process documentation - test with subagents before writing, iterate until bulletproof. When you discover a technique, pattern, or tool worth documenting for reuse. When editing existing skills. When asked to modify skill documentation. When you've written a skill and need to verify it works before deploying. When skills fail to help agents, when documentation is unclear, when new patterns emerge that need standardization.

Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Skill authoring, Test-driven development and Operations and SOPs. The repository describes itself as: Sandgarden AI Software Factory.

When your agent uses it

  • Tasks that involve Skill authoring
  • Tasks that involve Test-driven development
  • Tasks that involve Operations and SOPs

Example prompts

  • “/writing-skills”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Rich descriptions with Symptoms
  2. Keyword Coverage
  3. Descriptive Naming
  4. Token Efficiency (Critical)
  5. Content Repetition

What it can do on your machine

Read from SKILL.md and the folder at commit 9efbb7b. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown, yaml, bash and dot).

    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

Writing Skills loads about 4.9k tokens when it runs. Until then it costs about 112 tokens; SKILL.md has 1,790 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~112
When it runs · the whole SKILL.md, loaded when a task matches
~4.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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,790 words (~4,898 tokens).

“Writing skills IS Test-Driven Development applied to process documentation.”

— opening of SKILL.md by sandgardenhq, Custom licence
name
writing-skills

Read the full SKILL.md on GitHub

Files

Just SKILL.md in cmd/sgai/skel/.sgai/skills/meta/writing-skills of sandgardenhq/sgai.

Open the folder on GitHubat commit 9efbb7b

Compare with similar skills

Writing Skills 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.

Writing Skills compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Skills this skillsandgardenhq/sgai137—~4.9kAutomated safety check: PassCustom licence
Writing Skillsed3dai/ed3d-plugins2501 repos~1.3kAutomated safety check: PassNone
Testing Skills With Subagentsed3dai/ed3d-plugins2503 repos~3.5kAutomated safety check: PassNone
Superpowers Writing Skillschristopherarter/superpowers-reasonix102—~2.8kAutomated safety check: PassMIT
Create SkillNeoLabHQ/context-engineering-kit1.8k—~7.6kAutomated safety check: PassGPL-3.0
Implementing Tasks with Subagent Reviewprime-radiant-inc/iterative-development181—~1.2kAutomated safety check: PassApache-2.0

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
  • A skill your agent uses when creating or editing skills, before deployment, to verify they work under pressure and resist rationalization - applies RED-GREEN-REFACTOR cycle to process documentation…

    250 GitHub starsUsed in 3 repos~3.5k tokens
    Testing & QAAuto-check passed
  • Superpowers Writing Skills

    christopherarter/superpowers-reasonix

    Creating, editing, or testing a Reasonix skill?. An agent skill from christopherarter/superpowers-reasonix.

    102 GitHub stars~2.8k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Create Skill

    NeoLabHQ/context-engineering-kit

    Guide for creating effective skills. An agent skill from NeoLabHQ/context-engineering-kit.

    1.8k GitHub stars~7.6k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Implementing Tasks with Subagent Review

    prime-radiant-inc/iterative-development

    Runs a batch of TDD-sized tasks by dispatching an implementer subagent per task, followed by two-stage parallel adversarial review and fix loops.

    181 GitHub stars~1.2k tokensUpdated 4 mo ago
    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

More from sandgardenhq/sgai

All 53 skills in this repo
  • Root Cause Tracing

    sandgardenhq/sgai

    A skill your agent uses when errors occur deep in execution and you need to trace back to find the original trigger - systematically traces bugs backward through call stack, adding instrumentation…

    137 GitHub starsUsed in 4 repos~1.4k tokens
    Auto-check passed
  • Condition Based Waiting

    sandgardenhq/sgai

    A skill your agent uses when tests have race conditions, timing dependencies, or inconsistent pass/fail behavior - replaces arbitrary timeouts with condition polling to wait for actual state…

    137 GitHub starsUsed in 3 repos~933 tokens
    Auto-check passed
  • Defense In Depth

    sandgardenhq/sgai

    A skill your agent uses when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally…

    137 GitHub starsUsed in 3 repos~970 tokens
    Auto-check passed
  • Agent Native Architecture

    sandgardenhq/sgai

    Build AI agents using prompt-native architecture where features are defined in prompts, not code.

    137 GitHub stars~2k tokensUpdated 20 days ago
    Auto-check passed
  • Adhoc

    sandgardenhq/sgai

    Run and manage ad-hoc AI prompts in sgai workspaces without starting a full agentic session.

    137 GitHub stars~1.2k tokensUpdated 20 days ago
    Auto-check passed
  • You must use this skill when debugging web UI bugs or testing interactive components that require multi-step browser interactions.

    137 GitHub stars~3.7k tokensUpdated 20 days ago
    Auto-check passed

Questions about Writing Skills

What does Writing Skills do?

TDD for process documentation - test with subagents before writing, iterate until bulletproof. Writing Skills is an agent skill from sandgardenhq/sgai. TDD for process documentation - test with subagents before writing, iterate until bulletproof.

When should I use Writing Skills?

Writing Skills fits situations like: tasks that involve Skill authoring; tasks that involve Test-driven development; tasks that involve Operations and SOPs.

How do I install Writing Skills in Claude Code?

Run `npx skills add sandgardenhq/sgai --skill writing-skills -a claude-code`. Or copy the skill folder (cmd/sgai/skel/.sgai/skills/meta/writing-skills in sandgardenhq/sgai) into .claude/skills/writing-skills in your project. Claude Code loads it when a task matches its description.

How do I install Writing Skills in Codex?

Run `npx skills add sandgardenhq/sgai --skill writing-skills -a codex`. Or copy the skill folder (cmd/sgai/skel/.sgai/skills/meta/writing-skills in sandgardenhq/sgai) into .agents/skills/writing-skills in your project. Codex loads it when a task matches its description.

Can I use Writing Skills 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 sandgardenhq/sgai --skill writing-skills -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-skills, .gemini/skills/writing-skills, .github/skills/writing-skills and .opencode/skills/writing-skills in your project.

What does Writing Skills need to run?

SKILL.md names no scripts, command-line tools or credentials: Writing Skills is instructions for the agent only. Our summary lists: Python 3.

Does Writing Skills 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 Writing Skills 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 Writing Skills use?

Writing Skills has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Writing Skills use?

About 4.9k tokens (SKILL.md is roughly 20k 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 Writing Skills?

Skills that share tags, products or a category with Writing Skills: Writing Skills (ed3dai/ed3d-plugins, 250 stars), Testing Skills With Subagents (ed3dai/ed3d-plugins, 250 stars), Superpowers Writing Skills (christopherarter/superpowers-reasonix, 102 stars) and Create Skill (NeoLabHQ/context-engineering-kit, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Skills?

sandgardenhq (a GitHub organization) maintains it in sandgardenhq/sgai, which has 137 GitHub stars. The repository holds 53 skills in this directory. The repository was last updated on September 21, 2026.

Source: sandgardenhq/sgai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.