writing-skills

writing-skills is a skill for Claude Code from oyi77/1ai-skills. It costs 20 tokens per session (2,043 once invoked), scanned A, original, MIT.

A workflow for creating, editing, and checking coding-agent skills before they are released. It treats process documentation like software that should be tested and refined.

In plain words
What is it for?
Use it to build new skills, revise existing ones, and verify that their instructions work in practice.
Why use it?
It reduces the chance that a skill is unclear, unreliable, or difficult for an agent to follow. Testing the instructions exposes problems before deployment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the 1ai-skills plugin — 209 skills, 4 commands shipped together

Good fit Use it to build new skills, revise existing ones, and verify that their instructions work in practice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/writing-skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add oyi77/1ai-skills --skill writing-skills
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 209 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for writing-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/writing-skills/github.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/writing-skills)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/writing-skills"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/writing-skills/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for writing-skills

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/writing-skills"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/writing-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,043 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 173
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 240
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.02043
Opus 5 $0.00010 $0.01022
Sonnet 5 $0.00004 $0.00409
Haiku 4.5 $0.00002 $0.00204

Measured 9d ago against content hash 8bf607a2abfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

writing-skills scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

content/writing-skills/SKILL.md · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing Skills

Overview

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

Anti-Rationalization Table

Rationalization Reality
"I'll figure it out as I go" A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising.
"I already know this topic" Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps.
"This doesn't apply to my situation" The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold.
"One more tool will fix it" Adding complexity rarely solves process gaps. Master the core workflow first.

When to Use

Trigger phrases:

  • "writing skills"

  • "Creating new skills"

  • "Editing existing skills"

  • "Verifying skills work before deployment"

  • Creating new skills

  • Editing existing skills

  • Verifying skills work before deployment

When NOT to Use

  • Just documenting what you did (that's narrative, not skill)
  • Technique isn't proven/reproducible
  • Haven't pressure-tested with subagents

Quick Reference

TDD Cycle: RED → GREEN → REFACTOR

Common Mistakes

  • Writing skill before running baseline test
  • Not documenting exact agent failures
  • Making skills too generic
  • Skipping refactor/loophole-closing phase
  • Not using lint harness

What is a Skill?

A skill is a reference guide for proven techniques, patterns, or tools.

Skills are: Reusable techniques, patterns, tools Skills are NOT: Narratives about one-off solutions

TDD Mapping

TDD Skills
Test case Pressure scenario
RED Agent violates without skill
GREEN Agent complies with skill
Refactor Close loopholes

SKILL.md Structure

Frontmatter:

  • name: letters, numbers, hyphens only
  • description: Start with "Use when..." (trigger, not workflow)
---
name: skill-name
description: Use when [specific triggering conditions]
---

Read the full file on GitHub · 293 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 293 lines · 20 tokens per session scan A 8bf607a2abfe

Subscribe to this mod's changes

writing-skills is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 2,043 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

project-setup

One-time interactive setup to configure a project for autonomous development. Use when setting up a new project for TDD-based autonomous development with HCF.

markshust/hcf · 33 tokens

obra/superpowers@test-driven-development

Use when implementing any feature or bugfix, before writing implementation code.

openakita/openakita · 21 tokens

testing-expert

Ultimate Kotlin testing skill. Use this whenever writing, reviewing, or debugging ANY Kotlin test — unit, integration, property-based, or coroutine. Covers TDD (RED/GREEN/REFACTOR), Kotest + MockK + Kover, anti-pattern detection, and four-pillar quality framework. Triggers on: write a test, add coverage, why is this…

JosephSanjaya/skills · 115 tokens

cf-tdd

Gate before writing production code — direct implementation by default, TDD (RED→GREEN→REFACTOR) with --add-tests or config tdd: true. TRIGGER — any new feature, implementation, or refactor: "implement this", "build this feature", "create a function", "add a new endpoint", "write the implementation", "refactor this"…

dinhanhthi/coding-friend · 140 tokens

iso-write

Implement a written plan using TDD, without committing. Use when invoked as /iso-write [--no-branch | --branch= | --worktree] or handed an implementation plan to build. By default it resumes or cuts a branch derived from the plan filename only when the current branch is a base branch (dev, develop, test, prod, main…

IsaiaScope/ai · 172 tokens

control-testing

A process for testing whether an internal control operates as intended by examining selected transactions or records. It covers methods such as interviews, observation, document review, re-performance, and walkthroughs.

vivy-yi/finance-skills · 81 tokens