ctx: Skill for Codex

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

writing-great-skills is a skill for Codex from stevesolun/ctx. It costs 25 tokens per session (330 once invoked), scanned A, original, MIT.

A design guide for creating or revising concise instructions for coding-agent skills.

In plain words
What is it for?
Use it to define triggers, expected output, constraints, failure cases, references, validation checks, and realistic tests for a new or existing skill.
Why use it?
It helps make a skill trigger at the right times, avoid unnecessary rules, explain its job clearly, and produce consistent results.

Skill for Codex

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

This is stevesolun/ctx's own configuration. It tells Codex how to work on ctx 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 ctx configures →

Reuse

Borrowing it

Nothing to install: this file belongs to stevesolun/ctx. 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/stevesolun/ctx/main/.agents/skills/writing-great-skills/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/stevesolun/ctx

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-great-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/stevesolun/ctx/writing-great-skills/github.svg)](https://agentmods.dev/skills/stevesolun/ctx/writing-great-skills)
Your own site
<a href="https://agentmods.dev/skills/stevesolun/ctx/writing-great-skills"><img src="https://agentmods.dev/badge/skills/stevesolun/ctx/writing-great-skills/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-great-skills

Your own site · 80×15
<a href="https://agentmods.dev/skills/stevesolun/ctx/writing-great-skills"><img src="https://agentmods.dev/badge/skills/stevesolun/ctx/writing-great-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 330 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.00025 $0.00330
Opus 5 $0.00013 $0.00165
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00003 $0.00033

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

Security

Grade A, and why

writing-great-skills 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 11d 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.

.agents/skills/writing-great-skills/SKILL.md · 34 lines

What it actually says

Write an effective skill

  1. Define the job, realistic trigger prompts, non-trigger prompts, expected output, and material failure modes.
  2. Choose the degree of freedom:
    • Use judgment-based guidance when context admits several good approaches.
    • Use parameters or pseudocode when a preferred pattern still needs adaptation.
    • Use deterministic scripts or hard gates only when reliability, safety, or repeatability justifies the constraint.
  3. Keep metadata concise and discriminative. Put trigger conditions in the description; put execution guidance in the body.
  4. Assume the model already understands general software work. Preserve only domain knowledge, workflow choices, tool interfaces, and opinions that materially change behavior.
  5. Keep the entrypoint legible. Move branch-specific detail, catalogues, templates, and examples to direct references; avoid deep reference chains.
  6. Prefer positive target behavior and surrounding-context judgment over blanket prohibitions. State exact constraints where mistakes would be costly or hard to recover.
  7. Validate syntax and links, then test both triggering and output quality with fresh, realistic prompts. Compare against a no-skill baseline when the skill's value is uncertain.
  8. Prune repetition, stale material, and instructions that do not change model behavior.

Read GLOSSARY.md when shared vocabulary helps discuss invocation, information hierarchy, steering, or pruning.

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. 11d ago First seen · 34 lines · 25 tokens per session scan A 4a3d098a9f59

Subscribe to this mod's changes

writing-great-skills is a skill published in the GitHub repository stevesolun/ctx (585 stars, last pushed 11d ago), licensed MIT. It adds 25 tokens to every session and 330 once invoked, about $0.0001 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

security-compliance

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.

sangrokjung/claude-forge · 56 tokens

stride-analysis-patterns

Apply STRIDE methodology to systematically identify threats. Use when analyzing system security, conducting threat modeling sessions, or creating security documentation.

sangrokjung/claude-forge · 30 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

prompts-chat

Use when searching, installing, or improving AI skills and prompts via prompts.chat or skills.sh. Triggers on skill search, prompt lookup, install skill, improve prompt, prompts.chat.

sangrokjung/claude-forge · 41 tokens

continuous-learning-v2

Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.

sangrokjung/claude-forge · 33 tokens

cc-dev-agent

Use when starting Claude Code projects, writing CLAUDE.md/spec.md, dispatching subagents, or requesting Agent Teams parallel development. Covers Spec-Driven Development, Context Engineering, and post-dev workflow.

sangrokjung/claude-forge · 45 tokens