llm-friendly-context

llm-friendly-context is a skill for Claude Code, Codex from shinpr/claude-code-workflows. It costs 52 tokens per session (1,022 once invoked), scanned A, original, MIT.

Rules for writing clear instructions and handoffs for AI assistants and other downstream readers. It defines the inputs, expected outputs, success conditions, decisions, and unresolved issues.

In plain words
What is it for?
Use it when writing prompts, task handoffs, plans, reviews, reports, or generated instructions that need clear actions, evidence, output formats, and completion criteria.
Why use it?
It reduces guessing and ambiguity when another person or AI system must act on a prompt, plan, review, or report.

Skill for Claude CodeCodex

Part of the dev-skills plugin — 12 skills shipped together

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.

agentmods
npx agentmods add skills/shinpr/claude-code-workflows/llm-friendly-context
Any agent
npx skills add shinpr/claude-code-workflows --skill llm-friendly-context
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows

Made for: Claude Code, Codex.

Or install dev-skills, the plugin that ships this one along with the rest of its 12 skills.

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 llm-friendly-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinpr/claude-code-workflows/llm-friendly-context.svg)](https://agentmods.dev/skills/shinpr/claude-code-workflows/llm-friendly-context)
Your own site
<a href="https://agentmods.dev/skills/shinpr/claude-code-workflows/llm-friendly-context"><img src="https://agentmods.dev/badge/skills/shinpr/claude-code-workflows/llm-friendly-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.01022
Opus 5 $0.00026 $0.00511
Sonnet 5 $0.00010 $0.00204
Haiku 4.5 $0.00005 $0.00102

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

Security

Grade A, and why

llm-friendly-context 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 4d 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.

dev-skills/skills/llm-friendly-context/SKILL.md · 83 lines

How it starts

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

LLM-Friendly Context

The goal is stable downstream execution: the next consumer should know what to read, what to do, what counts as success, and which unresolved decisions can change the result.

Core Rules

  1. Use positive, executable instructions

    • State what the next consumer should do.
    • Convert quality policies into positive criteria.
    • Keep a prohibition only when it protects an irreversible boundary or shipped contract. Name the protected condition and the allowed action.
    • Example: "Preserve existing public API behavior across the documented compatibility cases."
  2. Make vague instructions concrete

    • Replace subjective terms with observable conditions, paths, commands, schemas, examples, or decision rules.
    • Terms that often need clarification when they leave a decision to the next consumer: appropriate, proper, related, existing behavior, optional, as needed, if needed, per convention, unresolved alternatives, TBD, placeholder.
  3. Specify output shape

    • Use the sections, fields, table columns, JSON keys, or checklist items the consumer uses.
    • For handoffs, include only produced artifact paths and status fields that control the next transition.
  4. Provide necessary context

    • Include the purpose, source artifacts, hard constraints, accepted decisions, and unresolved conditions.
    • Prefer concrete file paths and section hints over broad module names.
    • Follow references while they can change an in-scope decision, action, or verification result.
  5. Decompose complex work into verifiable steps

    • Split work with 3+ objectives or sequential dependencies into ordered steps.
    • Each step needs a checkpoint: what evidence proves it is complete.
  6. Permit uncertainty explicitly

    • Resolve missing operational detail from referenced artifacts and repository evidence before treating it as unresolved.
    • Record remaining uncertainty with its effect, required input, and decision owner. Make reversible repository-local choices when governing evidence resolves them.

Read the full file on GitHub · 83 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. 4d ago First seen · 83 lines · 52 tokens per session scan A a9ce9d99c94c

Subscribe to this mod's changes

llm-friendly-context is a skill published in the GitHub repository shinpr/claude-code-workflows (675 stars, last pushed 6d ago), licensed MIT. It adds 52 tokens to every session and 1,022 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

moai-ref-cross-model-audit

Cross-model audit convergence reference for the plan-auditor and sync-auditor agents. Documents how to invoke the auditmulti MCP tool to fan a code review out across the codex and GLM (z.ai) backends in parallel, converge their verdicts with the in-session Claude verdict, and fold the resulting per-backend verdicts +…

modu-ai/moai-adk · 99 tokens

moai-domain-humanize

AI text humanization and 윤문 (post-editing) specialist that detects and removes AI tells while preserving meaning, facts, and figures. Covers Korean, English, Japanese, and Chinese with a shared severity model (S1/S2/S3), quality grades (A/B/C/D), and 30%/50% over-editing guardrails. Use to make AI-generated text read…

modu-ai/moai-adk · 101 tokens

nw-agent-testing

5-layer testing approach for agent validation including adversarial testing, security validation, and prompt injection resistance.

nWave-ai/nWave · 23 tokens

moai-ref-llm-security

AI/LLM defensive security reference: prompt-injection defense, OWASP LLM Top 10 defensive mapping, MCP and agentic tool-call hardening, training-data poisoning detection, model-output validation and guardrails, MITRE ATLAS defensive correlation, and NIST AI RMF governance. Agent-extending skill that amplifies backend…

modu-ai/moai-adk · 159 tokens

ase-meta-chat

Query foreign LLM for chat. Use this skill if a foreign LLM like OpenAI ChatGPT, Google Gemini, DeepSeek or xAI Grok should be queried with a single chat message.

rse/ase · 44 tokens

ai-infrastructure-ollama

Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and OpenAI-compatible endpoint.

agents-inc/skills · 41 tokens