spec-write-skill

spec-write-skill is a skill for Claude Code, Codex from ronronner02/codepilot-agent. It costs 102 tokens per session (1,953 once invoked), scanned A, original, MIT.

A workflow for creating, updating, or migrating reusable packages that teach coding agents how to perform tasks. It can also check a package without changing it and report whether it is ready.

In plain words
What is it for?
Use it to create or revise an agent skill, migrate an existing skill, or fix accepted audit findings. It also reports blockers and remaining risks during validation.
Why use it?
It provides a structured way to keep the package's source, behavior rules, and validation evidence aligned. Read-only checks help identify risks before changes are made.

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/ronronner02/codepilot-agent/spec-write-skill
Any agent
npx skills add ronronner02/codepilot-agent --skill spec-write-skill
Clone the repo
git clone --depth 1 https://github.com/ronronner02/codepilot-agent

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 spec-write-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/ronronner02/codepilot-agent/spec-write-skill.svg)](https://agentmods.dev/skills/ronronner02/codepilot-agent/spec-write-skill)
Your own site
<a href="https://agentmods.dev/skills/ronronner02/codepilot-agent/spec-write-skill"><img src="https://agentmods.dev/badge/skills/ronronner02/codepilot-agent/spec-write-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,953 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.00102 $0.01953
Opus 5 $0.00051 $0.00977
Sonnet 5 $0.00020 $0.00391
Haiku 4.5 $0.00010 $0.00195

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

Security

Grade A, and why

spec-write-skill 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.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/inspect-context.cjs, scripts/lib/package-inspection.cjs, scripts/validate-authoring-preview.cjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/spec-first/workflows/spec-write-skill/SKILL.md · 59 lines

How it starts

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

Spec Write Skill

把可复用目标转成 portable、source-first 的 Skill patch,或在零写入模式下报告 package readiness;交付正确分支的结果、匹配证据与 residual risks,不把 source bytes、fixture pass 或模型自述当成语义改善。

Scenario Capability

Follows docs/contracts/workflows/scenario-capability-matrix.md (default). Overrides: none

Workflow Contract Summary

  • Input / output: 用户目标、一个 target repo/Skill root、现有 package、项目规则、相邻 Skill、已接受 findings 和必要只读参考,产生 near-neighbor route、validate-only report、preview 后的单 repo source patch 或 source-resolution blocker;每个结果带验证状态与 residual risks。
  • base_operation=create|revise 只区分新建 package 与处理现有 package;effect=apply|validate-only 决定副作用,只有 effect=apply 才允许修改已确认的 canonical source,effect=validate-only 即使面对现有或外部 package 也保持零写入。modifier=migrate|audit-remediation|none 只补充输入分析,不形成新 workflow/effect。
  • layer_result 是 runtime 输出合同:near-neighbor-route|refuse-generated-runtime-patch|portable-core-only|portable-core-with-behavior-contract|portable-readiness-report|trust-preflight-blocked|blocked-source-owner|spec-first-project-profile。新增值必须同步更新 source、consumer 和 tests,不能只写入 maintainer fixture。

Branch Contract

先根据用户请求和已确认事实选择一个 disposition;只读取会改变该 disposition 判断的 reference,并在下列 done signal 达成后停止。

Disposition Entry signal and result Required action / evidence Done signal and failure behavior
Near-neighbor 非 authoring/readiness,或只请求 audit-only quality review、纯安装、runtime mirror。已接受 finding 的 remediation 不属于本分支。输出 base_operation=nulleffect=not-enteredmodifier=none;结果为 near-neighbor-routerefuse-generated-runtime-patch 只给 owning route / next action;安装交给 skill-installer,mirror 交给 runtime-maintenance 路由后停止;不得 inventory、validator、preview 或 mutation。
Owner blocked create/revise 的 owner 不唯一、跨 repo、repo-external、generated-only 或 containment 未确认。保留 `base_operation=create reviseeffect=apply,结果为 blocked-source-owner`。 Authoring Method,给 candidate-only preview、空 would-change/command list 和唯一下一步。
Validate-only 用户明确检查现有/外部 package;现有 package 使用 base_operation=revise + effect=validate-only,结果为 portable-readiness-reporttrust-preflight-blocked no-follow inventory、bundled validator 与 Delivery Gates 报告后停止;不得执行目标 scripts、validator、hooks、binaries 或 lifecycle,不得跟随 symlink、读 secret-like 内容、复制、安装或写入。
Tier A apply 已确认 owner 的 behavior-preserving revise,具体条件由 workbench 定义。 Authoring Workbench,确认当前授权覆盖 exact write set、preview binding 与最窄结构验证。 receipt/验证后 close out;承重行为变化转 full apply。
Full apply 已确认 owner 的 create/revise apply,结果为 portable-core-onlyportable-core-with-behavior-contractspec-first-project-profile 依次读 Authoring MethodAuthoring WorkbenchShape-Aware Evaluation Design;写 core 前完成紧凑 Design Record 与最小 pre-patch eval plan。Capability Map、显式 shape/module decision 或 topology 只在它们改变 owner、consumer、resource/runtime carrier、架构或风险时展开。 preview、授权、风险匹配验证和 source update 后 close out;缺 baseline/eval plan 时停止,缺 semantic/comparative evidence 时降级对应 claim。

Read the full file on GitHub · 59 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 · 59 lines · 102 tokens per session scan A 0c47a193000a

Subscribe to this mod's changes

spec-write-skill is a skill published in the GitHub repository ronronner02/codepilot-agent (0 stars, last pushed 3d ago), licensed MIT. It adds 102 tokens to every session and 1,953 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

generate-ai-rules

Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/.mdc) — from codebase analysis. Use whenever the user wants to create or update CLAUDE.md, AGENTS.md, agent rules, Cursor rules, AI coding assistant configuration, or "onboard AI tools" to a project, even…

divar-ir/ai-doc-gen · 91 tokens

generate-readme

Generate or refresh a comprehensive, professional README.md for a repository, with architecture overview, mermaid and optional C4 diagrams, repository structure, dependencies, and API documentation. Use whenever the user asks to create, write, update, improve, or regenerate a README, project documentation, or a…

divar-ir/ai-doc-gen · 83 tokens

analyze-codebase

Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure, dependencies, data flow, request flow, and APIs. Use whenever the user asks to analyze a repository, generate codebase analysis, understand an unfamiliar codebase in depth, or before generating…

divar-ir/ai-doc-gen · 113 tokens

deploy-vercel-render

Deploy vpeetla-ai demos: Vercel static/Next.js frontends, Render FastAPI backends, env vars, free tier gotchas. Use when shipping demos, fixing deploy failures, or adding render.yaml / vercel.json.

vpeetla-ai/multi-agent-system-pattern · 55 tokens

langgraph-orchestration

Build or modify LangGraph StateGraph agents in vpeetla-ai repos: typed state, nodes, conditional edges, MemorySaver, interruptbefore HITL. Use when adding orchestrators, coding loops, or multi-agent graphs.

vpeetla-ai/multi-agent-system-pattern · 52 tokens

aegis-gateway

Integrate AegisAI gateway before tool side effects (notify, publish, deploy). Use when adding Slack/Telegram/WhatsApp notify, content publish, or any irreversible external action in VAP, AegisLoop, or ai-content-factory.

vpeetla-ai/multi-agent-system-pattern · 58 tokens