Skills / openspec reverse engineering skill
openspec reverse engineering skill
Reverse engineer existing code into OpenSpec archive changes, proposal/design/tasks files, and capability specs. A skill for legacy code to OpenSpec and code-to-spec workflows.
Installation
Kompatibilitaet
Beschreibung
openspec-retro-archive
English | 简体中文
An OpenSpec skill for:
- reverse engineering existing code into OpenSpec
- repairing missing OpenSpec after direct code pushes
- reconstructing proposal/design/tasks/spec artifacts from real implementation
- backfilling historical features into OpenSpec archive changes
- reading
openspec/config.yamlor.openspec.yamlto honor repo language, schema, and constraint settings - targeting a single feature, folder, or file set instead of scanning the whole repository
What This Skill Solves
Many teams do not consistently follow OpenSpec. Sometimes features are shipped first and specs are written later. Sometimes teammates push code directly without creating an OpenSpec change.
This skill covers both cases:
- Retro archive mode
- turn existing or shipped code into archived OpenSpec changes
- Repair mode
- repair or backfill missing OpenSpec after someone bypasses the OpenSpec workflow
It can work from:
- a feature name
- a capability name
- a folder such as
src/features/analytics-dashboard - a small set of files
- a commit range or recent git history
Before generating output, it can also read OpenSpec configuration such as openspec/config.yaml and .openspec.yaml to align language, terminology, formatting, and project-specific constraints.
Core Capabilities
- infer change boundaries from existing implementation instead of stuffing all old code into one archive
- generate OpenSpec artifacts from code evidence, docs, and git history
- repair missing OpenSpec after teammates submit code without using OpenSpec
- honor repo-level OpenSpec config for output language, schema, terminology, and constraint parameters
- support folder-scoped and file-scoped reverse engineering
- separate direct evidence, reasonable inference, and unresolved gaps
- write historical tasks as completed by default, while allowing remediation tasks to stay open
Project Structure
openspec-retro-archive/
├─ SKILL.md
├─ LICENSE
├─ README.md
├─ README.zh-CN.md
├─ .gitignore
├─ .gitattributes
├─ evals/
│ └─ evals.json
├─ examples/
│ ├─ prompts.en.md
│ ├─ prompts.zh-CN.md
│ └─ prompts.md
└─ docs/
└─ github-metadata.md
Installation
Install with the Agent Skills CLI:
npx @agentskill.sh/cli@latest setup
npx skills add yingxiaoshuai/openspec-reverse-engineering-skill
Or install manually by copying into your agent's skills directory:
# Claude Code
cp -r openspec-retro-archive ~/.claude/skills/openspec-retro-archive
# Cursor
cp -r openspec-retro-archive ~/.cursor/skills/openspec-retro-archive
# OpenAI Codex
cp -r openspec-retro-archive ~/.agents/skills/openspec-retro-archive
Browse this skill on the Agent Skills Directory.
Example Prompts
- English prompts: prompts.en.md
- 中文提示词: prompts.zh-CN.md
Typical requests:
- "Please reverse engineer the existing
src/features/analytics-dashboardimplementation into an archived OpenSpec change." - "A teammate pushed code directly to
src/features/incident-center/componentswithout OpenSpec. Please create a repair change and fix the missing spec coverage." - "Only use
src/features/knowledge-baseand its related API files. Do not scan the whole repository." - "Read
openspec/config.yamlfirst, follow its language and constraint settings, then repair the missing OpenSpec forsrc/features/incident-center."
Evaluation
Evaluation prompts live in evals.json. They now cover:
- retro archive workflows
- repair workflows after direct code pushes
- feature-scoped reverse engineering
- folder-scoped reverse engineering
- config-aware language and constraint handling
License
Apache-2.0. See LICENSE.
Aehnliche Skills
last30days skill
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
context mode
Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms
claude seo
Universal SEO skill for Claude Code. 19 sub-skills, 12 subagents, 3 extensions (DataForSEO, Firecrawl, Banana). Technical SEO, E-E-A-T, schema, GEO/AEO, backlinks, local SEO, maps intelligence, Google APIs, and PDF/Excel reporting.
pinme
Deploy Your Frontend in a Single Command. Claude Code Skills supported.
godogen
Claude Code & Codex skills that build complete Godot projects from a game description
claude ads
Comprehensive paid advertising audit & optimization skill for Claude Code. 250+ checks across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft & Apple Ads with weighted scoring, parallel agents, industry templates, and AI creative generation.