write-to-skill-file

write-to-skill-file is a command for Claude Code from Jamie-BitFlight/claude_skills. It costs 9 tokens per session (1,057 once invoked), scanned A, original, MIT.

A workflow for turning source text into structured Markdown instruction files optimized for AI agents.

In plain words
What is it for?
It helps create files with YAML metadata, technical instructions, reference material, decision rules, and XML-tagged sections from supplied text.
Why use it?
It converts loosely organized material into concise rules and references that an AI can follow more consistently.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It helps create files with YAML metadata, technical instructions, reference material, decision rules, and XML-tagged sections from supplied text.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jamie-bitflight/claude_skills/write-to-skill-file
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.

Clone the repo
git clone --depth 1 https://github.com/Jamie-BitFlight/claude_skills

Made for: Claude Code.

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 write-to-skill-file

README.md
[![agentmods](https://agentmods.dev/badge/commands/jamie-bitflight/claude_skills/write-to-skill-file/github.svg)](https://agentmods.dev/commands/jamie-bitflight/claude_skills/write-to-skill-file)
Your own site
<a href="https://agentmods.dev/commands/jamie-bitflight/claude_skills/write-to-skill-file"><img src="https://agentmods.dev/badge/commands/jamie-bitflight/claude_skills/write-to-skill-file/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 write-to-skill-file

Your own site · 80×15
<a href="https://agentmods.dev/commands/jamie-bitflight/claude_skills/write-to-skill-file"><img src="https://agentmods.dev/badge/commands/jamie-bitflight/claude_skills/write-to-skill-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,057 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.
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.00009 $0.01057
Opus 5 $0.00005 $0.00528
Sonnet 5 $0.00002 $0.00211
Haiku 4.5 $0.00001 $0.00106

Measured 10d ago against content hash 4ed508c4fe86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

write-to-skill-file 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 10d 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.

.claude/commands/write-to-skill-file.md · 100 lines

How it starts

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

Situation

The assistant is operating in a text transformation workflow where source material must be converted into machine-optimized instruction sets. The target consumer is an LLM or AI agent with expert-level domain knowledge that requires concise, deterministic rules for execution, and reference materials, tables, instructions, documentation for verifying details against.

Task

The assistant must transform the provided text into one or more structured markdown files containing technical instructions, reference material, and rules optimized for LLM consumption. Each file must follow a strict format with YAML frontmatter and ASCII-only content structured as decision triggers and pattern-matching rules.

Objective

Produce deterministic, high-density instruction sets that enable an expert-level AI to efficiently parse, apply, and execute rules without ambiguity. The output must maximize information density while maintaining clarity through structured XML-tagged sections and explicit rule hierarchies.

Knowledge

The source text or list of files to process will be provided between XML <text> tokens:

The assistant must assume the consuming AI possesses comprehensive technical knowledge of all domain concepts, internals, and industry-specific terminology. Content should be written as lookup references and decision triggers rather than explanatory material.

XML tags provide critical parsing benefits:

  • <instructions>, <example>, <formatting> tags prevent the LLM from conflating different prompt components
  • Tags enable modular prompt construction and easier extraction of specific response elements
  • Structured separation improves accuracy and reduces interpretation errors

File naming convention: all-lower-case-with-hyphens.md

YAML frontmatter structure: <frontmatter_example>


name: [skill name or file identifier] description: The model must use this [SKILL/RULE/INSTRUCTION] when: ACTION when TRIGGER to OUTCOME. [Additional trigger examples within 600 characters] version: "1.0.0" last_updated: "<ISO 8601 date and time>" [optional_metadata_key]: [value for disambiguation or context]


</frontmatter_example>

Standard glob patterns must be unquoted (e.g., .js, src/**/.{ts,js})

Instructions

The assistant must apply the following transformation rules in order:

  1. The assistant must begin content with a directive instructing how to read and apply all subsequent rules.

  2. The assistant must maximize information density by employing technical jargon, domain-specific terminology, dense vocabulary, equations, and industry-standard nomenclature appropriate to the source material's subject matter.

  3. The assistant must rephrase all content for maximum accuracy and specificity, eliminating vague guidance and ambiguous phrasing.

  4. The assistant must write using declarative phrasing with "The model must" construction for all imperative instructions.

  5. The assistant must produce flat ASCII text without markdown formatting for bold, italic, or stylistic emphasis. Headings for hierarchy and lists are permitted.

  6. The assistant must structure content into explicit sections: Table of Contents (when applicable), and References (when applicable), identity, intent, task rules, issue handling, triggers.

  7. The assistant must preserve or expand any structured examples present in source text, wrapping them in appropriate XML tags (<example>, <positive_example>, <negative_example>).

  8. The assistant must use XML tags (<instructions>, <context>, <constraints>, <formatting>, <example>) to separate distinct prompt components and improve parseability.

  9. The assistant must format rules as ACTION TRIGGER OUTCOME patterns optimized for decision-making rather than education.

  10. The assistant must establish clear priority levels between conflicting rules and instructions.

  11. The assistant must target under 500 lines per file, splitting significant concepts into multiple composable rules when necessary.

Read the full file on GitHub · 100 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. 10d ago First seen · 100 lines · 9 tokens per session scan A 4ed508c4fe86

Subscribe to this mod's changes

write-to-skill-file is a command published in the GitHub repository Jamie-BitFlight/claude_skills (66 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 1,057 once invoked, about $0.0000 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-08-30.