Agent skill

Writing Claude Directives

by ed3dai in ed3dai/ed3d-plugins

A skill your agent uses when writing instructions that guide Claude behavior - skills, CLAUDE.md files, agent prompts, system prompts.

No licenceAuto-check passedAI & LLM Engineering

Install Writing Claude Directives

skills CLI
$ npx skills add ed3dai/ed3d-plugins --skill writing-claude-directives -a claude-code

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

GitHub CLI
$ gh skill install ed3dai/ed3d-plugins writing-claude-directives --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/ed3dai/ed3d-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ed3d-extending-claude/skills/writing-claude-directives .claude/skills/writing-claude-directives && 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-claude-directives
GitHub stars
250
Token cost
~2.4k tokens
SKILL.md length
658 words
Files
3
Skills in repo
34
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when writing instructions that guide Claude behavior - skills, CLAUDE.md files, agent prompts, system prompts.

  • Works in 3 steps: Baseline: Run scenario WITHOUT… → Apply: Add directive, verify compliance → Iterate: Find new loopholes → add…
  • Writing instructions that guide Claude behavior - skills
  • SKILL.md covers Core Principles, Token Efficiency, Discovery (for Skills) and Compliance Techniques, plus 10 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Writing Claude Directives is an agent skill from ed3dai/ed3d-plugins. Use when writing instructions that guide Claude behavior - skills, CLAUDE.md files, agent prompts, system prompts. Covers token efficiency, compliance techniques, and discovery optimization.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `long-running-state-patterns.md`).

It sits in AI & LLM Engineering, covering Prompt engineering and Agent instruction files. The repository describes itself as: Ed's repo of Claude Code plugins, centered around a research-plan-implement workflow. Only a tiny bit cursed. If you're lucky.

When your agent uses it

  • Writing instructions that guide Claude behavior - skills
  • CLAUDE.md files

Example prompts

  • “/writing-claude-directives”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Baseline: Run scenario WITHOUT directive, document failures
  2. Apply: Add directive, verify compliance
  3. Iterate: Find new loopholes → add counters → re-test

What it can do on your machine

Read from SKILL.md and the folder at commit 0c90f4b. 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, xml 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

Writing Claude Directives loads about 2.4k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 658 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 658 words (~2,360 tokens).

“REQUIRED: Also apply ed3d-extending-claude:prompt-security-hardening when using this skill. Directives that demonstrate unsafe secrets handling teach agents to leak secrets.”

— opening of SKILL.md by ed3dai
name
writing-claude-directives
user-invocable
false

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files in plugins/ed3d-extending-claude/skills/writing-claude-directives of ed3dai/ed3d-plugins.

  • SKILL.md
  • graphviz-conventions.dot
  • long-running-state-patterns.md

Open the folder on GitHubat commit 0c90f4b

Compare with similar skills

Writing Claude Directives 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 Claude Directives compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Claude Directives this skilled3dai/ed3d-plugins250—~2.4kAutomated safety check: PassNone
Context Auditundefined-ui/second-brain-os1k—~802Automated safety check: PassMIT
Asd Ste100 SkillTwiTech-LAB/devchain101—~1.2kAutomated safety check: PassMIT
Create Simple Promptpnp/copilot-prompts893—~2.6kAutomated safety check: PassMIT
Create System Promptpnp/copilot-prompts893—~3.1kAutomated safety check: PassMIT
Prompt Regressionagentscope-ai/OpenJudge871—~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • Context Audit

    undefined-ui/second-brain-os

    Audit an agent's context layout against the four places: system prompt, tools, history, tail.

    1k GitHub stars~802 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Asd Ste100 Skill

    TwiTech-LAB/devchain

    Write or rewrite English with ASD-STE100 Simplified Technical English rules: one meaning per word, active voice, simple tenses, one instruction per sentence.

    101 GitHub stars~1.2k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Create Simple Prompt

    pnp/copilot-prompts

    This skill should be used when the user asks to "create a new prompt sample", "add a new prompt sample", "scaffold a new prompt sample", "create a prompt contribution", "add a prompt", or needs to…

    893 GitHub stars~2.6k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Create System Prompt

    pnp/copilot-prompts

    This skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a…

    893 GitHub stars~3.1k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Prompt Regression

    agentscope-ai/OpenJudge

    A skill your agent uses when the user has changed a prompt (system prompt, RAG template, agent instruction, etc.) and wants to know whether the candidate is better or worse than the baseline.

    871 GitHub stars~2.8k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • 003 Skills Inventory

    jabrena/plinth

    A skill your agent uses when you need to generate a checklist document with Java system prompts from skills.xml, following the embedded section template and producing INVENTORY-SKILLS-JAVA.md.

    447 GitHub stars~792 tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed

More from ed3dai/ed3d-plugins

All 34 skills in this repo
  • Systematic Debugging

    ed3dai/ed3d-plugins

    A skill your agent uses when encountering any bug, test failure, or unexpected behavior, before proposing fixes - four-phase framework (root cause investigation, pattern analysis, hypothesis…

    250 GitHub starsUsed in 3 repos~2.4k tokens
    Auto-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
    Auto-check passed
  • Brainstorming

    ed3dai/ed3d-plugins

    A skill your agent uses when creating or developing anything, before writing code or implementation plans - refines rough ideas into fully-formed designs through structured Socratic questioning…

    250 GitHub starsUsed in 1 repo~4.3k tokens
    Auto-check passed
  • Writing Good Tests

    ed3dai/ed3d-plugins

    A skill your agent uses when writing or reviewing tests - covers test philosophy, condition-based waiting, mocking strategy, and test isolation

    250 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • 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
    Auto-check passed
  • Coding Effectively

    ed3dai/ed3d-plugins

    ALWAYS use this skill when writing or refactoring code. An agent skill from ed3dai/ed3d-plugins.

    250 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Writing Claude Directives

What does Writing Claude Directives do?

A skill your agent uses when writing instructions that guide Claude behavior - skills, CLAUDE.md files, agent prompts, system prompts. Writing Claude Directives is an agent skill from ed3dai/ed3d-plugins.md files, agent prompts, system prompts.

When should I use Writing Claude Directives?

Writing Claude Directives fits situations like: writing instructions that guide Claude behavior - skills; CLAUDE.md files.

How do I install Writing Claude Directives in Claude Code?

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

How do I install Writing Claude Directives in Codex?

Run `npx skills add ed3dai/ed3d-plugins --skill writing-claude-directives -a codex`. Or copy the skill folder (plugins/ed3d-extending-claude/skills/writing-claude-directives in ed3dai/ed3d-plugins) into .agents/skills/writing-claude-directives in your project. Codex loads it when a task matches its description.

Can I use Writing Claude Directives 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 ed3dai/ed3d-plugins --skill writing-claude-directives -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-claude-directives, .gemini/skills/writing-claude-directives, .github/skills/writing-claude-directives and .opencode/skills/writing-claude-directives in your project.

What does Writing Claude Directives need to run?

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

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

No licence was found for Writing Claude Directives or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Writing Claude Directives use?

About 2.4k tokens (SKILL.md is roughly 9.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 Writing Claude Directives?

Skills that share tags, products or a category with Writing Claude Directives: Context Audit (undefined-ui/second-brain-os, 1k stars), Asd Ste100 Skill (TwiTech-LAB/devchain, 101 stars), Create Simple Prompt (pnp/copilot-prompts, 893 stars) and Create System Prompt (pnp/copilot-prompts, 893 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Claude Directives?

ed3dai (a GitHub organization) maintains it in ed3dai/ed3d-plugins, which has 250 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on September 6, 2026.

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