Agent skill

Skill Writing

by millionco in millionco/expect

Write and improve agent skills (SKILL.md files). An agent skill from millionco/expect.

Custom licenceAuto-check passedDevelopment

Install Skill Writing

skills CLI
$ npx skills add millionco/expect --skill skill-writing -a claude-code

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

GitHub CLI
$ gh skill install millionco/expect skill-writing --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/millionco/expect.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/skill-writing .claude/skills/skill-writing && 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-writing
GitHub stars
3.6k
Token cost
~1.8k tokens
SKILL.md length
824 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Write and improve agent skills (SKILL.md files). An agent skill from millionco/expect.

  • Creating new skills
  • SKILL.md covers The Iron Law, When to Create a Skill, Core Principles and Description Optimization, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Refactoring existing ones

What it does

Skill Writing is an agent skill from millionco/expect. Write and improve agent skills (SKILL.md files). Use when creating new skills, refactoring existing ones, debugging why an agent ignores instructions, or improving compliance. Covers prompt structure, TDD for skills, description optimization, and rationalization bulletproofing.

Its SKILL.md is about 1.8k 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 Development, covering Skill authoring, Test-driven development and Refactoring. The repository describes itself as: Expect tests your agent's code in a real browser.

When your agent uses it

  • Creating new skills
  • Refactoring existing ones
  • Debugging why an agent ignores instructions
  • Improving compliance

Example prompts

  • “/skill-writing”

What it can do on your machine

Read from SKILL.md and the folder at commit 39e9750. 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 and yaml).

    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 Writing loads about 1.8k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 824 words of instructions outside code blocks.

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

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 824 words (~1,839 tokens).

“Skills are bundled instruction modules that load into an agent's context when activated. They are the highest-leverage mechanism for controlling agent behavior because they deliver focused instructions at the moment of relevance.”

— opening of SKILL.md by millionco, Custom licence
name
skill-writing

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/skill-writing of millionco/expect.

Open the folder on GitHubat commit 39e9750

Compare with similar skills

Skill Writing 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 Writing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Writing this skillmillionco/expect3.6k—~1.8kAutomated safety check: PassCustom licence
Pstack Skillfabricioctelles/skills106—~5kAutomated safety check: PassApache-2.0
Go Rigmudrii/openclaw-dashboard458—~2.8kAutomated safety check: PassMIT
Go Rigmudrii/openclaw-dashboard458—~682Automated safety check: PassMIT
Py Rigmudrii/hermesd118—~6.3kAutomated safety check: PassMIT
Happier Implementhappier-dev/happier1.9k—~4.2kAutomated safety check: PassMIT

Similar skills

  • Pstack Skill

    fabricioctelles/skills

    Rigorous engineering orchestrator ported from Lauren Tan's pstack (poteto-mode): reads your task, picks one of 23 playbooks (bug fix, feature, refactoring, perf, investigation, prototype, babysit…

    106 GitHub stars~5k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Go Rig

    mudrii/openclaw-dashboard

    A skill your agent uses when building, reviewing, or refactoring Go code that must follow strict design discipline — ATDD/TDD workflow, explicit dependency injection, package-boundary discipline…

    458 GitHub stars~2.8k tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • Go Rig

    mudrii/openclaw-dashboard

    A skill your agent uses when building, reviewing, or refactoring Go code in this repository.

    458 GitHub stars~682 tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • Py Rig

    mudrii/hermesd

    A skill your agent uses when building, reviewing, or refactoring Python code that requires strong maintainability discipline: SRP, DRY, OCP, explicit dependency injection, TDD/ATDD workflow, strict…

    118 GitHub stars~6.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Happier Implement

    happier-dev/happier

    Implement, change, build, fix, refactor, migrate, or apply accepted review findings in the Happier repositories with canonical-owner discovery, scope-preserving solution economy, TDD, efficient…

    1.9k GitHub stars~4.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Omk Coding

    KaimingWan/oh-my-kiro

    Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes, self-review, verification.

    107 GitHub stars~2.4k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed

More from millionco/expect

  • Effect Best Practices

    millionco/expect

    Enforces Effect-TS patterns for services, errors, layers, and atoms.

    3.6k GitHub stars~3.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Debug Agent

    millionco/expect

    Systematic evidence-based debugging using runtime logs. An agent skill from millionco/expect.

    3.6k GitHub stars~2.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Effect Portable Patterns

    millionco/expect

    Portable Effect patterns for robust promise execution. An agent skill from millionco/expect.

    3.6k GitHub stars~3.7k tokensUpdated 5 mo ago
    Auto-check passed
  • Expect

    millionco/expect

    A skill your agent uses when editing .tsx/.jsx/.css/.html, React components, pages, routes, forms, styles, or layouts.

    3.6k GitHub stars~988 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Skill Writing

What does Skill Writing do?

Write and improve agent skills (SKILL.md files). An agent skill from millionco/expect. Skill Writing is an agent skill from millionco/expect.md files).

When should I use Skill Writing?

Skill Writing fits situations like: creating new skills; refactoring existing ones; debugging why an agent ignores instructions; improving compliance.

How do I install Skill Writing in Claude Code?

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

How do I install Skill Writing in Codex?

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

Can I use Skill Writing 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 millionco/expect --skill skill-writing -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-writing, .gemini/skills/skill-writing, .github/skills/skill-writing and .opencode/skills/skill-writing in your project.

What does Skill Writing need to run?

SKILL.md names no scripts, command-line tools or credentials: Skill Writing is instructions for the agent only.

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

Skill Writing 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 Skill Writing use?

About 1.8k tokens (SKILL.md is roughly 7.4k 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 Writing?

Skills that share tags, products or a category with Skill Writing: Pstack Skill (fabricioctelles/skills, 106 stars), Go Rig (mudrii/openclaw-dashboard, 458 stars), Go Rig (mudrii/openclaw-dashboard, 458 stars) and Py Rig (mudrii/hermesd, 118 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Writing?

millionco (a GitHub organization) maintains it in millionco/expect, which has 3,558 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on May 6, 2026.

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