github-copilot-token-optimization: Skill for Codex

.agents/skills/writing-for-agents/SKILL.md

writing-for-agents is a skill for Codex from olivomarco/github-copilot-token-optimization. It costs 28 tokens per session (2,349 once invoked), scanned A, original, no licence file.

Guidance for writing documents that coding agents can use, including skill files and project instruction files.

In plain words
What is it for?
Use it when creating or editing skills, AGENTS.md, or CLAUDE.md.
Why use it?
It helps keep agent-facing instructions clear and suitable for the tools that read them.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is olivomarco/github-copilot-token-optimization's own configuration. It tells Codex how to work on github-copilot-token-optimization itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything github-copilot-token-optimization configures →

Reuse

Borrowing it

Nothing to install: this file belongs to olivomarco/github-copilot-token-optimization. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/olivomarco/github-copilot-token-optimization/main/.agents/skills/writing-for-agents/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/olivomarco/github-copilot-token-optimization

Made for: 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/olivomarco/github-copilot-token-optimization/writing-for-agents/github.svg)](https://agentmods.dev/skills/olivomarco/github-copilot-token-optimization/writing-for-agents)
Your own site
<a href="https://agentmods.dev/skills/olivomarco/github-copilot-token-optimization/writing-for-agents"><img src="https://agentmods.dev/badge/skills/olivomarco/github-copilot-token-optimization/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/olivomarco/github-copilot-token-optimization/writing-for-agents"><img src="https://agentmods.dev/badge/skills/olivomarco/github-copilot-token-optimization/writing-for-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,349 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 unknown 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.00028 $0.02349
Opus 5.5 $0.00011 $0.00940
Sonnet 5.5 $0.00006 $0.00470
Haiku 4.5 $0.00003 $0.00235

Measured yesterday against content hash 551adca94222, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

.agents/skills/writing-for-agents/SKILL.md · 82 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 82 lines · 28 tokens per session scan A 551adca94222

Subscribe to this mod's changes

writing-for-agents is a skill published in the GitHub repository olivomarco/github-copilot-token-optimization (171 stars, last pushed 2d ago), with no licence file. It adds 28 tokens to every session and 2,349 once invoked, about $0.0001 per session on Opus 5.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-10-28.

Related

Other skills, from other repositories

spec-kitty-charter-doctrine

Run charter interview, generation, context, and sync workflows for project governance in Spec Kitty 3.x. Access doctrine artifacts programmatically via DoctrineService. Resolve agent profiles. Load action-scoped governance context iteratively, not all at once. Triggers: "interview for charter", "generate charter"…

Priivacy-ai/spec-kitty · 135 tokens

110-java-maven-best-practices

Use when you need to review, improve, or troubleshoot a Maven pom.xml file — including dependency management with BOMs, plugin configuration, version centralization, multi-module project structure, build profiles, or any situation where you want to align your Maven setup with industry best practices. This should…

jabrena/plinth · 115 tokens

128-java-generics

Use when you need to review, improve, or refactor Java code for generics quality — including avoiding raw types, applying the PECS (Producer Extends Consumer Super) principle for wildcards, using bounded type parameters, designing effective generic methods, leveraging the diamond operator, understanding type erasure…

jabrena/plinth · 147 tokens

322-frameworks-spring-boot-testing-integration-tests

Use when you need to write or improve integration tests — including Testcontainers with @ServiceConnection, @DataJdbcTest persistence slices, TestRestTemplate or MockMvcTester for HTTP, data isolation, and container lifecycle management for Spring Boot 4.0.x. This should trigger for requests such as Review Java code…

jabrena/plinth · 123 tokens

422-frameworks-quarkus-testing-integration-tests

Use when you need to write or improve integration tests for Quarkus — including @QuarkusTest, Dev Services for automatic container provisioning, Testcontainers via QuarkusTestResourceLifecycleManager, WireMock for external HTTP stubs, @QuarkusIntegrationTest for black-box testing against packaged artifacts, REST…

jabrena/plinth · 190 tokens

521-frameworks-micronaut-testing-unit-tests

Use when you need to write unit tests for Micronaut applications — Mockito-first with @ExtendWith(MockitoExtension.class), @MicronautTest with @MockBean, HttpClient @Client(/) assertions, @Property overrides, @ParameterizedTest, and Test vs IT naming. For framework-agnostic Java use @131-java-testing-unit-testing.…

jabrena/plinth · 150 tokens