aisee:spec-migrate

aisee:spec-migrate is a skill for Claude Code, Codex from AISEE-LAB/aisee-plugin. It costs 133 tokens per session (1,797 once invoked), scanned A, original, MIT.

A tool for turning an existing software project into OpenSpec baseline specifications: written records of how its code, pages, routes, tests, APIs, and documents currently behave. It places these records under openspec/specs/.

In plain words
What is it for?
It is for migrating an old project into OpenSpec, documenting selected modules, filling gaps in existing specifications, and preparing a stable reference for later changes.
Why use it?
It gives an undocumented or changing project a clear record of its current behavior before further development. This helps prevent developers from guessing what the existing system is supposed to do.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the aisee-plugin plugin — 14 skills shipped together

Good fit It is for migrating an old project into OpenSpec, documenting selected modules, filling gaps in existing specifications, and preparing a stable reference for later changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aisee-lab/aisee-plugin/aisee-spec-migrate
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 AISEE-LAB/aisee-plugin --skill aisee-spec-migrate
Clone the repo
git clone --depth 1 https://github.com/AISEE-LAB/aisee-plugin

Made for: Claude Code, Codex.

Or install aisee-plugin, the plugin that ships this one along with the rest of its 14 skills.

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 aisee:spec-migrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/aisee-lab/aisee-plugin/aisee-spec-migrate.svg)](https://agentmods.dev/skills/aisee-lab/aisee-plugin/aisee-spec-migrate)
Your own site
<a href="https://agentmods.dev/skills/aisee-lab/aisee-plugin/aisee-spec-migrate"><img src="https://agentmods.dev/badge/skills/aisee-lab/aisee-plugin/aisee-spec-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,797 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.
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.00133 $0.01797
Opus 5 $0.00067 $0.00898
Sonnet 5 $0.00027 $0.00359
Haiku 4.5 $0.00013 $0.00180

Measured 7d ago against content hash 6e4f74367c27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

aisee:spec-migrate 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 7d 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.

plugins/aisee-plugin/skills/aisee-spec-migrate/SKILL.md · 127 lines

How it starts

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

aisee:spec-migrate — 现有项目 Spec 基线迁移

把已有项目的当前行为整理成 OpenSpec 静态层 openspec/specs/。它回答“系统现在是什么”,为已有系统接入 OpenSpec、二次开发前建立 baseline,并为后续 /opsx:new、delta specs 和 archive 提供稳定起点。

aisee:spec-migrate 不是 aisee:srs:不整理未来需求。 aisee:spec-migrate 不是 aisee:change-plan:不规划 OpenSpec change 边界。 aisee:spec-migrate 不写 change 级 proposal.mddesign.mdtasks.md

输入

用户提供以下任意一种输入:

  • 现有项目目录
  • 现有需求文档、README、接口文档、测试目录
  • 已初始化的 OpenSpec 项目
  • 指定模块或目录范围

可选参数:

  • --scope project|module|path|auto — 迁移范围,默认 auto
  • --mode inventory|draft|write|auto — 只盘点、生成草案或写入 baseline specs,默认 auto
  • --batch-size <n> — 单批最多生成的 spec 文件数,默认 5
  • --write patch|direct|chat — 写入方式,默认 patch
  • --lang zh|en — 输出语言,默认 zh

输出边界

aisee:spec-migrate 只产出现有系统行为的 OpenSpec baseline 和迁移索引。

必须输出或写入:

  • 迁移范围和证据来源
  • 能力边界图:按业务能力 / 领域划分,不按文件类型机械划分
  • openspec/specs/ 目录规划
  • openspec/specs/project.md 的缺口建议或补丁
  • openspec/specs/<capability>/spec.md baseline specs
  • 证据追踪、可信度、冲突和 Open Questions
  • 迁移批次计划,避免一次生成巨型 spec

禁止输出:

  • 新功能需求或未来规划
  • active change 的 delta spec,除非用户明确要求 bootstrap change
  • /opsx:new/opsx:propose/opsx:apply 执行命令
  • proposal.mddesign.mdtasks.md
  • 数据库迁移、实现计划或代码修改
  • 无证据的业务规则断言

事实源边界

  • openspec/specs/ 是 baseline 规范事实源。
  • aisee/docs/spec-migration/ 是迁移索引、草案、证据和冲突记录区,不是最终规范事实源。
  • Active changes 只能作为“未归档变更上下文”,不能直接当作当前 baseline 行为。
  • 历史 SRS / UI / Architecture 文档中的文档内编号或 source ref 只作为证据入口,不能直接当作 baseline 已确认行为。
  • 低可信度推断只能进入迁移索引或 Open Questions,不能写入正式 baseline spec。

Phase 0 — 预检与扫描

确认 OpenSpec 状态:

node -e "const fs=require('fs'); for (const p of ['openspec/config.yaml','openspec/specs']) { try { const s=fs.statSync(p); console.log(p + ':' + (s.isDirectory()?'dir':'file')); } catch { console.log(p + ':missing'); } }"

处理规则:

  • 缺少 openspec/config.yaml:停止写入 openspec/specs/,建议先运行 openspec initaisee:init
  • 缺少 openspec/specs/:可以创建目录补丁,但必须说明这是 baseline migration。
  • 已有 openspec/specs/:先读取现有 spec,避免覆盖和重复建模。
  • 已有 active changes:读取 openspec/changes/,标注可能冲突;不要把 active delta 当作 baseline 事实。

Read the full file on GitHub · 127 lines

Files

What ships with it

5 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. 7d ago First seen · 127 lines · 133 tokens per session scan A 6e4f74367c27

Subscribe to this mod's changes

aisee:spec-migrate is a skill published in the GitHub repository AISEE-LAB/aisee-plugin (11 stars, last pushed 2mo ago), licensed MIT. It adds 133 tokens to every session and 1,797 once invoked, about $0.0007 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.