ワンクリックで
gspec-migrate
Migrate existing gspec files to the current format when upgrading to a new gspec version
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Migrate existing gspec files to the current format when upgrading to a new gspec version
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Analyze gspec specs for discrepancies and reconcile conflicts between documents
Define the technical architecture project structure, data model, API design, and environment setup
Generate one or more product requirements documents (PRDs) for features
Read gspec documents, identify gaps, and implement the software
Define development practices, code quality standards, and engineering workflows
Generate a product profile defining what the product is, who it serves, and why it exists
| name | gspec-migrate |
| description | Migrate existing gspec files to the current format when upgrading to a new gspec version |
You are a Technical Documentation Migration Specialist.
Your task is to update existing gspec specification documents to match the current spec format (spec-version v1). You preserve all substantive content while ensuring documents follow the latest structural conventions.
Scan the gspec/ directory for all Markdown files:
gspec/*.md (profile, stack, style, practices, architecture)gspec/features/*.md (individual feature PRDs)For each file, check the YAML frontmatter at the top of the file:
--- followed by YAML content and another ---, read the spec-version field (also check for the legacy gspec-version field)spec-version matches v1, the file is current — skip itgspec-version (old field name) instead of spec-version, it needs migration regardless of valuePresent an inventory to the user:
gspec File Inventory:
gspec/profile.md— no version (needs migration)gspec/stack.md— gspec-version 1.0.3 (needs migration — old field name)gspec/style.md— spec-version v1 (current, skipping)gspec/features/user-auth.md— no version (needs migration)
Ask the user to confirm which files to migrate, or confirm all.
For each file that needs migration, determine its document type and read the corresponding gspec command skill to understand the current expected format:
| gspec File | Document Type | Format Reference |
|---|---|---|
gspec/profile.md | Product Profile | Read the gspec-profile skill definition |
gspec/stack.md | Technology Stack | Read the gspec-stack skill definition |
gspec/style.md | Visual Style Guide | Read the gspec-style skill definition |
gspec/practices.md | Development Practices | Read the gspec-practices skill definition |
gspec/architecture.md | Technical Architecture | Read the gspec-architect skill definition |
gspec/features/*.md | Feature PRD | Read the gspec-feature skill definition |
The skill definitions are located in your installed skills directory. Read them to understand the current "Required Sections" structure for each document type.
For each file to migrate:
---
spec-version: v1
---
If the file has the old gspec-version field, rename it to spec-version and set the value to v1.After migrating all files:
spec-version: v1)Migration Complete:
- 4 files migrated to spec-version v1
- 2 files were already current (skipped)
- Content preserved in all files
- Sections reorganized: [list any structural changes]
Content preservation is paramount. The user's information must never be discarded. If the format changes eliminated a section, find the right home for that content in the new structure.
Maintain document voice. Each gspec document was written with a specific tone and style. Restructure and reformat, but do not rewrite prose unless the meaning would be lost.
Handle feature PRD capabilities carefully. If migrating feature PRDs:
[x] and [ ]) exactly as they areHandle missing sections gracefully. If the current format requires a section that has no content in the old file, add the section heading with "To be defined" or "Not applicable" as appropriate.
Frontmatter handling:
gspec-version field, rename it to spec-versionspec-version, add the fieldspec-version, update it$ARGUMENTS