gwt-spec-to-issue-migration
Migrate legacy spec sources to artifact-first GitHub Issue specs. Supports local `specs/SPEC-*` directories and body-canonical `gwt-spec` Issues using the bundled migration script.
Best use case
gwt-spec-to-issue-migration is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Migrate legacy spec sources to artifact-first GitHub Issue specs. Supports local `specs/SPEC-*` directories and body-canonical `gwt-spec` Issues using the bundled migration script.
Teams using gwt-spec-to-issue-migration should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gwt-spec-to-issue-migration/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gwt-spec-to-issue-migration Compares
| Feature / Agent | gwt-spec-to-issue-migration | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Migrate legacy spec sources to artifact-first GitHub Issue specs. Supports local `specs/SPEC-*` directories and body-canonical `gwt-spec` Issues using the bundled migration script.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# gwt Spec to Issue Migration ## Overview Use this skill for legacy spec migrations: - local `specs/SPEC-*` directories from a pre-Issue-first workflow - existing `gwt-spec` Issues that still keep the canonical bundle in the Issue body Migrate legacy sources to artifact-first `gwt-spec` Issues, then remove or retire the old source of truth. This skill uses: - `.gemini/skills/gwt-spec-to-issue-migration/scripts/migrate-specs-to-issues.mjs` - `crates/gwt-core/src/git/issue_spec.rs` ## Preconditions - Run in repository root - `gh auth status` is authenticated for target repo - Branch policy is respected (no branch creation/switching unless user requests) - `$GWT_PROJECT_ROOT` environment variable is available; prefer it over CWD for repo resolution ## Standard Workflow 1. Inspect source specs directory (auto-detection or explicit `--specs-dir`) 2. Run dry-run automatically and review planned migration count and deletion targets 3. If the user explicitly asked to migrate or convert, continue into actual migration after the dry-run 4. Verify migrated issues exist (`gwt-spec` label) 5. Confirm legacy local spec files or body-canonical bundles were retired on success 6. Ask the user only when migration intent is unclear or the requested scope does not obviously include the detected destructive changes ## Commands ### Dry-run ```bash node ".gemini/skills/gwt-spec-to-issue-migration/scripts/migrate-specs-to-issues.mjs" --dry-run ``` ### Dry-run with explicit specs directory ```bash node ".gemini/skills/gwt-spec-to-issue-migration/scripts/migrate-specs-to-issues.mjs" --dry-run --specs-dir "<path-to-specs>" ``` ### Execute migration ```bash node ".gemini/skills/gwt-spec-to-issue-migration/scripts/migrate-specs-to-issues.mjs" ``` ### Dry-run existing body-canonical issue migration ```bash node ".gemini/skills/gwt-spec-to-issue-migration/scripts/migrate-specs-to-issues.mjs" --dry-run --convert-existing-issues ``` ### Execute existing body-canonical issue migration ```bash node ".gemini/skills/gwt-spec-to-issue-migration/scripts/migrate-specs-to-issues.mjs" --convert-existing-issues ``` ### Verify report ```bash cat migration-report.json ``` Note: `migration-report.json` is deleted automatically after a fully successful migration cleanup. It remains available for dry-run and failure cases. ### Verify created issues ```bash gh issue list --label gwt-spec --state all --limit 200 ``` ## Expected Behavior - Auto-detects local `specs/` under `$GWT_PROJECT_ROOT` or the current repository - If no `SPEC-*` directory exists, exits successfully with empty report (`[]`) - Migrates local sections from `spec.md`, `plan.md`, `tasks.md` and related artifacts - Can rewrite body-canonical `gwt-spec` Issues into artifact-first format - Writes per-spec result to `migration-report.json` - Shows planned deletions during `--dry-run` - Deletes migrated local spec directories, detected legacy workflow leftovers, and `migration-report.json` after a fully successful cleanup - Treats an explicit "migrate/convert" request as approval to execute after the dry-run summary, without an extra confirmation loop - Uses REST-safe body-file writes and retry/backoff for GitHub issue create/edit/comment operations where available ## Notes - For safety, always run `--dry-run` first. - Artifact files in `contracts/` and `checklists/` are migrated as issue comments. - `doc:*` artifacts are created for `spec.md`, `plan.md`, `tasks.md`, `research.md`, `data-model.md`, and `quickstart.md`. - After migration, ongoing spec updates should use Issue-first operations (`gwt-spec-ops`). - This skill is for external legacy import only; gwt's normal spec workflow should never recreate repository-local spec bundles.
Related Skills
claude-opus-4-5-migration
Migrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to use Opus 4.5. Handles model string updates and prompt adjustments for known Opus 4.5 behavioral differences. Does NOT migrate Haiku 4.5.
gwt-pty-communication
PTY based communication tools for Project Mode orchestration (Lead/Coordinator/Developer).
gwt-pr
Create or update GitHub Pull Requests with the gh CLI, including deciding whether to create a new PR or only push based on existing PR merge status. Use when the user asks to open/create/edit a PR, generate a PR body/template, or says 'open a PR/create a PR/gh pr'. Defaults: base=develop, head=current branch (same-branch only; never create/switch branches).
gwt-pr-check
Check GitHub PR status with the gh CLI, including unmerged PR detection and post-merge new-commit detection for the current branch.
gwt-fix-pr
Inspect GitHub PR for CI failures, merge conflicts, update-branch requirements, reviewer comments, change requests, and unresolved review threads. Create fix plans and implement after user approval. Reply to ALL reviewer comments with action taken or reason for not addressing, then resolve threads. Notify reviewers after fixes.
release
Execute the release workflow when the user asks `release` or `/release`: sync develop, update version/changelog, create `chore(release)` commit, collect closing issues, create develop->main release PR, and verify release/publish artifacts.
hotfix
Execute the hotfix workflow when the user asks `hotfix` or `/hotfix`: create a hotfix branch from main, guide fix+checks, open PR to main, and confirm patch release.
drawio
Create and edit draw.io diagrams in XML format. Use when the user wants to create flowcharts, architecture diagrams, sequence diagrams, or any visual diagrams. Handles XML structure, styling, fonts (Noto Sans JP), arrows, connectors, and PNG export.
skill-installer
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
plan
Generate a plan for how an agent should accomplish a complex coding task. Use when a user asks for a plan, and optionally when they want to save, find, read, update, or delete plan files in $CODEX_HOME/plans (default ~/.codex/plans).
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".