writing-for-agents

writing-for-agents is a skill for Claude Code, Codex from znlgis/my-opencode-deepseek-config. It costs 66 tokens per session (1,116 once invoked), scanned A, original, MIT.

Guidance for writing instructions and documents that coding agents consume, such as skills and `AGENTS.md` files.

In plain words
What is it for?
Use it to improve agent instructions, sharpen document pointers, and make an agent follow a consistent process across runs.
Why use it?
It helps keep instructions clear about when extra context is needed, while avoiding unnecessary text that consumes the agent's attention and context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Good fit Use it to improve agent instructions, sharpen document pointers, and make an agent follow a consistent process across runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/my-opencode-deepseek-config/writing-for-agents
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 znlgis/my-opencode-deepseek-config --skill writing-for-agents
Clone the repo
git clone --depth 1 https://github.com/znlgis/my-opencode-deepseek-config

Made for: Claude Code, Codex.

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-for-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/writing-for-agents/github.svg)](https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/writing-for-agents)
Your own site
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/writing-for-agents"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/writing-for-agents/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-for-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/writing-for-agents"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/writing-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,116 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 pass 7 Sept 2026
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.00066 $0.01116
Opus 5 $0.00033 $0.00558
Sonnet 5 $0.00013 $0.00223
Haiku 4.5 $0.00007 $0.00112

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

Security

Grade A, and why

writing-for-agents 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.

opencode/skills/writing-for-agents/SKILL.md · 98 lines

How it starts

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

Writing For Agents

Packaging differs; the writing levers are the same: make the agent take the same process every run, not the same output.

Context pointers

A context pointer names out-of-context material and encodes when to reach it: a skill's description, a line in AGENTS.md pointing at a doc. Its wording, not its target, decides when the agent reaches the material. A must-have target behind a weak pointer is a variance bug: sharpen the wording first, inline only if sharpening fails.

A pointer does two jobs — say what the material is, and list the branches (distinct cases the doc handles) that trigger reaching it. Every word of an always-loaded pointer costs on every turn, so prune it hardest:

  • Front-load the leading word — that's where it fires.
  • One trigger per branch — synonyms are one branch written twice; collapse them.
  • Cut identity the body already carries.

The two loads

Every doc and pointer spends one of two budgets:

  • Context load — always-loaded material (an AGENTS.md line, a skill description) costing tokens every turn whether or not it fires.
  • Cognitive load — the human remembering which docs exist and when to reach for each. Not a cost to minimise: it's the price of human agency. Spend it where judgement matters, remove it where it doesn't.

Information hierarchy

Rank content by how immediately the agent needs it:

  1. In-file step — ordered actions, the primary tier.
  2. In-file reference — definitions and rules consulted on demand.
  3. Disclosed reference — pushed to a separate file, reached by a pointer.

Progressive disclosure moves material down the ladder so the top stays legible. Branching is the cleanest test: inline what every branch needs; push behind a pointer what only some branches reach. Co-location keeps a concept's definition, rules, and caveats under one heading. Sprawl is the failure mode: disclose reference and split by branch or sequence.

Steps and completion criteria

Read the full file on GitHub · 98 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 · 98 lines · 66 tokens per session scan A 6abebdca86aa

Subscribe to this mod's changes

writing-for-agents is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (58 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 1,116 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

my-opencode-deepseek-config

Use when deploying, tuning, or extending the OpenCode × DeepSeek V4 optimal configuration (orchestrator routing, 12 agents, thinking tiers, prompt-cache prefix discipline, DCP compaction, permissions baseline, 25 skills, slash commands) — installing to another machine, adding an agent or skill, adjusting model…

znlgis/opengis-skills · 92 tokens

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

ralplan

Consensus planning entrypoint that auto-gates vague ralph/autopilot/team requests before execution.

Yeachan-Heo/oh-my-claudecode · 21 tokens

remember

Review reusable project knowledge and decide what belongs in project memory, notepad, or durable docs.

Yeachan-Heo/oh-my-claudecode · 20 tokens

image-generator

Generate or edit images from text and local files, image URLs, or data URLs through image API. Use when the user asks to create an image, generate from one or more reference images, combine styles or elements across references, or edit a marked region while blending the result into the original scene.

lessweb/deepcode-cli · 62 tokens

weibo-poster

A writing guide for Weibo, a Chinese microblogging platform similar to a short-post social network. It covers concise posts, longer posts, hashtags, @ mentions, image layouts, and posting-time suggestions.

dongsheng123132/u-claw · 32 tokens