capture

capture is a skill for Codex from yibie/SPEC-AGENTS.md. It costs 51 tokens per session (917 once invoked), scanned A, original, MIT.

A skill for turning confirmed design decisions from several contexts into a handoff document called a specification, or SPEC.

In plain words
What is it for?
Use it to record agreed designs for later work, review, or handoff.
Why use it?
It preserves decisions across sessions or coding agents without making new decisions on the user's behalf.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to record agreed designs for later work, review, or handoff.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yibie/spec-agents.md/capture
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 yibie/SPEC-AGENTS.md --skill capture
Clone the repo
git clone --depth 1 https://github.com/yibie/SPEC-AGENTS.md

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 capture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yibie/spec-agents.md/capture"><img src="https://agentmods.dev/badge/skills/yibie/spec-agents.md/capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 917 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.00051 $0.00917
Opus 5.5 $0.00020 $0.00367
Sonnet 5.5 $0.00010 $0.00183
Haiku 4.5 $0.00005 $0.00092

Measured 2mo ago against content hash 6da831bc6bbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

capture 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 2mo 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.

.spec-agents/doctrine/skills/capture/SKILL.md · 82 lines

How it starts

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

Capture

把已确认的共识写成一个活的设计契约。

前置条件

  • plan 已结束并得到 approve、compatible revise、breaking,或明确的 plan-only 执行授权。breaking 时,SPEC 必须包含迁移方案;ADR 不在这里写, 由 learn 收尾时写。
  • 设计需要跨多个上下文,或必须交给之后的 agent 继续。
  • .spec-agents/doctrine/docs/WORKFLOW.md、CONTEXT.md、项目 .spec-agents/state/KERNEL.md(若存在)、 相关 ADR、Protocol、Runbook 和 Lesson 已被读取;冲突回到 plan。

写入位置

创建或更新:

.spec-agents/specs/<feature>/SPEC.md

不要在根目录再创建第二份 SPEC。目录不存在时按需创建;不要预建未来 feature 的文件。

SPEC 最小结构

# <feature>

status: draft | confirmed | in-progress | revised | verified | superseded
revision: <number>
# 或使用下面的列表形式(示例取自本 SPEC):
kernel_delta: none
# kernel_delta:
#   - revise: Model delta (SPEC section gains normative meaning)
#   - revise: capture Action Contract (kernel_delta field, mandatory on new SPECs)
#   - revise: learn Action Contract (promotion must match the declaration)
context_refs:

## Problem and goal
## Unchanged contracts
## Decision and boundaries
## Model delta
## Action Contracts
## Seams and verification
## Compatibility and migration
## Out of scope
## Issue map
## Revision notes

verified 是完成工作的终态,由 learn 在收尾时写入;capture 不写它。 superseded 是另一条出口——被另一份 SPEC 取代——两者不是同义词。

每个由 capture 创建的 SPEC 都必须显式带有 kernel_delta:;none 是合法的明确答案。 关于 ## Model delta 的含义、缺失字段的读取方式以及 Kernel 条目的范围,见 .spec-agents/doctrine/docs/WORKFLOW.md 的 SPEC 定义。列表的动词限于 add | revise | supersede | retire,每个 <entry> 命名 Kernel 条目,不命名文件。

记录“已经决定的 what/why/where”,不要把新的取舍藏进 SPEC。实现细节只写到能让后续切片保持一致的程度。

当 SPEC 是 Kernel Bootstrap 时,记录 K1 已确认的概念、关系、动作契约和 不变量,以及待确认的扩展;不要把 K1 复制成第二份长期真相。验证通过后由 learn 更新项目 .spec-agents/state/KERNEL.md。

修订

  • 文字澄清、链接和验证补充可以直接修订。
  • 改变目标、边界、身份、关系、不变量、接口或验收标准,必须重新经过 plan。
  • 修订时保留 revision、原因、受影响的 CONTEXT/Protocol、兼容性、迁移和验证。
  • 受影响的 Slice 标为 stale;不要让旧 Slice 继续执行。

完成条件

SPEC 状态、未改变的契约、边界、Action Contracts、验证入口和 out-of-scope 齐全,并能让一个新上下文不依赖本次对话继续工作。 若已确认的 plan 结果记录了 kernel_promotion 且不为 none,而 kernel_delta 为空或为 none,capture 必须停下、报告并不得完成,以防止重现 upstream SPEC-AGENTS Evidence E-20260821-006 记录的决定丢失。

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file 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. 2mo ago Changed · +15 lines 6da831bc6bbf
  2. 3mo ago First seen · 67 lines · 51 tokens per session scan A e629b381296a

Subscribe to this mod's changes

capture is a skill published in the GitHub repository yibie/SPEC-AGENTS.md (129 stars, last pushed 3mo ago), licensed MIT. It adds 51 tokens to every session and 917 once invoked, about $0.0002 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-08-30.

Related

capture compared with skills from other repositories

capture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
captureyibie/SPEC-AGENTS.mdSkill1293mo agoMITA51Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code