writing-agents

writing-agents is a skill for Claude Code, Codex from RaNDoM6913/claude-code-superkit. It costs 28 tokens per session (834 once invoked), scanned B, original, MIT.

A guide for writing Codex skills that review code. It covers the skill file format, review stages, severity and confidence labels, and how to dispatch work to other agents.

In plain words
What is it for?
Use it to build or maintain Codex reviewer skills and define how they inspect, report, and coordinate work.
Why use it?
It helps developers create review skills that follow Codex conventions and produce consistent, evidence-based results. It also explains which tools map to common development tasks.

Skill for Claude CodeCodex

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/random6913/claude-code-superkit/writing-agents
Any agent
npx skills add RaNDoM6913/claude-code-superkit --skill writing-agents
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/random6913/claude-code-superkit/writing-agents.svg)](https://agentmods.dev/skills/random6913/claude-code-superkit/writing-agents)
Your own site
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/writing-agents"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/writing-agents.svg" alt="Measured on agentmods" 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 834 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00028 $0.00834
Opus 5 $0.00014 $0.00417
Sonnet 5 $0.00006 $0.00167
Haiku 4.5 $0.00003 $0.00083

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

Security

Grade B, and why

writing-agents scanned grade B with 1 finding 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

1. **Root user** — Use `rg '^USER ' Dockerfile*`; images must not run as root.
packages/codex/skills/writing-agents/SKILL.md · 105 lines

How it starts

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

Writing Codex Reviewer Skills

Skill File Format

Reviewer skills live in .codex/skills/<skill-name>/SKILL.md. Frontmatter:

---
name: skill-name
description: One-line trigger description for Codex skill matching
user-invocable: false
---
  • Keep frontmatter minimal: name, description, and user-invocable.
  • Do not include Claude-only fields such as per-agent model routing or allowed tool lists.
  • Codex uses the project-level .codex/config.toml model and reasoning effort.

Codex Tool Mapping

  • Search file names with rg --files; search contents with rg.
  • Run shell checks with exec_command.
  • Edit files with apply_patch unless a formatter or mechanical bulk rewrite is more appropriate.
  • Track multi-step work with update_plan.
  • Dispatch independent reviewer work with spawn_agent only when the user has authorized parallel agent work; collect required results with wait_agent.

Standard 2-Phase Review Process

All review skills should follow this pattern:

Phase 1: Checklist

Run through numbered checks. Report concrete violations immediately. Each item should point to a file path, rg pattern, command, or explicit code invariant.

Phase 2: Deep Analysis

After the checklist:

  1. What is the intent of this change?
  2. What failure modes are plausible?
  3. Are there edge cases the checklist did not cover?
  4. Does this change affect other components?

State evidence before findings. If the code is clean, say so and call out residual test gaps.

Severity / Confidence System

Severity

  • CRITICAL — Data loss, security vulnerability, crash. Example: SQL injection, auth bypass.
  • WARNING — Incorrect behavior under conditions. Example: missing error wrap, N+1 query.
  • SUGGESTION — Style, readability. Won't break if ignored.

Confidence

  • HIGH (90%+) — Concrete bug visible in code.
  • MEDIUM (60-90%) — Looks wrong based on patterns, might be missing context.
  • LOW (<60%) — A hunch. Flag for human review.

Read the full file on GitHub · 105 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. yesterday First seen · 105 lines · 28 tokens per session scan B ab4ff8bdc4a7

Subscribe to this mod's changes

writing-agents is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 834 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

openspec-onboard

Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.

Fission-AI/OpenSpec · 26 tokens

apm-review-panel

Use this skill to run a multi-persona expert advisory review on a labelled pull request in microsoft/apm. The panel fans out to five mandatory specialists plus a test-coverage specialist (active on every PR that touches src/) plus three conditional specialists (auth, doc-writer, performance-expert), all running in…

microsoft/apm · 178 tokens

apm-issue-autopilot

Use this skill to drive any open microsoft/apm issue (bug, feature, docs, refactor, perf) from raw intake to a mergeable PR with triage as the central, paramount gate. Run the apm-triage-panel rubric per issue first, then present ONE consolidated triage review for the whole batch and escalate to the maintainer BY…

microsoft/apm · 238 tokens

apm-triage-panel

Use this skill to triage one microsoft/apm issue selected by the daily sweep, the status/needs-triage fast path, or manual dispatch. Emit one synthesized comment with a decision, label set, exact milestone, and suggested next action.

microsoft/apm · 59 tokens

cli-logging-ux

Use this skill when editing or creating CLI output, logging, warnings, error messages, progress indicators, or diagnostic summaries in the APM codebase. Activate whenever code touches console helpers (richsuccess, richwarning, richerror, richinfo, richecho), DiagnosticCollector, STATUSSYMBOLS, CommandLogger, or any…

microsoft/apm · 94 tokens

pr-description-skill

Use this skill to write the PR description (PR body) for any pull request opened against microsoft/apm. Produces one self-sufficient GitHub-Flavored Markdown artifact: TL;DR, Problem (WHY), Approach (WHAT), Implementation (HOW), 1-3 validated mermaid diagrams, explicit trade-offs, validation evidence, and a…

microsoft/apm · 131 tokens