openspec

openspec is a cursor rule for Cursor from xc404/kiwi. It costs 446 tokens per session, scanned A, original, MIT.

A repository rule for using OpenSpec, a workflow that records the reason, design, specifications, and implementation tasks for a software change. It applies the repository’s spec-driven process under the openspec/ directory.

In plain words
What is it for?
Use it when deciding whether to create a change, run OpenSpec commands, implement tasks, or archive completed work.
Why use it?
It gives developers a consistent way to plan and trace larger changes without requiring that process for small, obvious fixes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when deciding whether to create a change, run OpenSpec commands, implement tasks, or archive completed work.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/xc404/kiwi/openspec
View source ↗ xc404/kiwi
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.

Clone the repo
git clone --depth 1 https://github.com/xc404/kiwi

Made for: Cursor.

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 openspec

README.md
[![agentmods](https://agentmods.dev/badge/rules/xc404/kiwi/openspec/github.svg)](https://agentmods.dev/rules/xc404/kiwi/openspec)
Your own site
<a href="https://agentmods.dev/rules/xc404/kiwi/openspec"><img src="https://agentmods.dev/badge/rules/xc404/kiwi/openspec/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 openspec

Your own site · 80×15
<a href="https://agentmods.dev/rules/xc404/kiwi/openspec"><img src="https://agentmods.dev/badge/rules/xc404/kiwi/openspec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 446 This file is loaded in full into every session.
When invoked 446 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00446 $0.00446
Opus 5.5 $0.00178 $0.00178
Sonnet 5.5 $0.00089 $0.00089
Haiku 4.5 $0.00045 $0.00045

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

Security

Grade A, and why

openspec 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 1mo 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.

.cursor/rules/openspec.mdc · 30 lines

What it actually says

OpenSpec 工作流(kiwi)

本仓库在 openspec/ 下使用 OpenSpec,openspec/config.yaml 中 schema: spec-driven。

何时使用

  • 新功能、非琐碎改动、需可追溯规格时:先建 change,再写代码。
  • 小修小补、单文件 obvious fix:可直接改代码,不必强行开 change。

命令与路径

  • CLI(需本机已安装 openspec):openspec list、openspec new change "<name>"、openspec status --change "<name>" --json、openspec instructions apply --change "<name>" --json。
  • Cursor 斜杠命令:/opsx:propose、/opsx:apply、/opsx:archive、/opsx:explore(定义见 .cursor/commands/opsx-*.md)。
  • Skills(用 Read 工具读取后照做):.cursor/skills/openspec-propose、openspec-apply-change、openspec-archive-change、openspec-explore。

实施变更时

  1. 选定 change 名;若用户未指定且有多条 in-progress,用 openspec list --json 再确认。
  2. 执行 openspec instructions apply --change "<name>" --json,按返回的 contextFiles 阅读 proposal / design / tasks 等。
  3. 按任务逐项实现,完成后在对应 tasks.md 勾选 - [x]。

归档

变更完成后按 openspec-archive-change skill 与 /opsx:archive 流程归档到 openspec/changes/archive/。

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. 1mo ago First seen · 30 lines · 446 tokens per session scan A fd709882bf95

Subscribe to this mod's changes

openspec is a cursor rule published in the GitHub repository xc404/kiwi (7 stars, last pushed 1mo ago), licensed MIT. It adds 446 tokens to every session, about $0.0018 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-31.