migrate
Adopts govctl governance by discovering and documenting existing decisions.
Install
mkdir -p .claude/skills/migrate-govctl-org && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11960" && unzip -o skill.zip -d .claude/skills/migrate-govctl-org && rm skill.zipInstalls to .claude/skills/migrate-govctl-org
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Adopt govctl in an existing project. Discovers undocumented decisions, backfills ADRs/RFCs, annotates source code. Use when: (1) Project has no governance yet, (2) User mentions migrate, adopt, onboard, or brownfieldKey capabilities
- →Initialize a govctl governance structure in an existing project
- →Discover undocumented architectural decisions and specifications
- →Backfill Architectural Decision Records (ADRs)
- →Backfill Request For Comments (RFCs)
- →Annotate source code with governance references
How it works
The skill initializes a governance structure, then systematically scans the project to discover undocumented decisions and specifications, which it codifies into govctl artifacts.
Inputs & outputs
When to use migrate
- →Onboard existing project to governance
- →Document architectural decisions
- →Backfill missing ADRs
About this skill
Brownfield Migration
Adopt govctl incrementally in an existing codebase per [[ADR-0032]], recovering
governance from real evidence without inventing history or changing behavior.
This differs from the govctl migrate command, which upgrades outdated
artifact formats in an already governed project.
Discovery
If gov/config.toml is missing, use init when the request authorizes
scaffolding; otherwise ask first. If it exists, find what earlier runs already
migrated with govctl status, govctl search <topic>, and the rfc, adr,
and work list commands. Use govctl <resource> --help for current syntax.
Read the smallest useful evidence: docs and changelogs, manifests, schemas, API contracts, deployment config, code comments that expose durable constraints, VCS history that shows why a choice was made, and issue trackers only for active work. Extend an existing artifact that already owns a subject instead of duplicating it.
Hard Stops
- Discovery is read-only. Create artifacts or annotate source only after the user selects the scope.
- Ask the user before any lifecycle or destructive artifact operation (accept, reject, finalize, advance, bump, deprecate, supersede, delete) unless the request already authorizes it. Source annotation also needs approval; one approval may cover a stated batch.
- Edit governed files only through govctl commands, using root
govctl clausefor Clauses. - Never present inferred rationale, alternatives, requirements, implementation or test status, or active work as fact.
- Do not make an RFC normative or advance it just because related code exists.
- Do not create Work Items that track the migration itself.
- Change product code only through approved, behavior-neutral annotations.
- Stop when evidence conflicts, a backfill would misrepresent history, or a transition lacks approval or evidence.
Choosing Candidates
| Candidate | Backfill when | Never as |
|---|---|---|
| ADR | Evidence shows a consequential choice and why it was made | A retroactive source of obligation |
| RFC | An existing specification or stable contract is identifiable | A dump of current behavior |
| Work Item | The user confirms unfinished active or queued work | A list of every TODO or cleanup |
| Source reference | A stable, high-signal code site relates to a recovered item | Blanket or generated-file markup |
Prefer decisions that are hard to reverse, cross-cutting, or repeatedly questioned; skip tool-enforced style, incidental dependencies, and behavior inferred only from code.
For each candidate record the evidence location, what it supports, what is
inferred, whether rationale and alternatives are recoverable, and the proposed
type and priority. Say plainly when evidence is missing: a historical ADR may
omit unrecoverable alternatives but never invents one, and RFC Clauses still
pass the rfc-writer contract test. Present this as a compact report and let
the user select, defer, or reject each group before any change.
Backfill Loop
Work in small batches so partial migration stays useful:
- Recheck governed state and the selected evidence.
- Draft with
adr-writer,rfc-writer, orwi-writer. - Review with
adr-reviewerorrfc-reviewer. - Show uncertainties and proposed lifecycle outcomes to the user.
- Perform only approved transitions.
- Run
govctl checkand render affected projections. - Optionally record the batch with
commit.
- ADRs: reconstruct context and alternatives where evidence allows and
separate observed consequences from predictions. Accept an adopted choice as
historical only after user confirmation; route an unresolved one to
discuss. - RFCs: keep traceability to the source. Each phase needs approval and
evidence: existing implementation for
impl, complete implementation fortest, and complete implementation and tests forstable. Otherwise stop at the last defensible phase. - Work Items: include scope, governing references, categorized testable criteria, and risk-matched guards.
- Source references: follow the repository's comment conventions, use
resolvable
[[...]]links, and never claim more conformance than the evidence supports.
Resuming And Failures
On resume, rediscover existing artifacts and references, match candidates by subject and evidence rather than title, skip completed work, keep user changes instead of overwriting them, and report the prior partial state.
When a check, render, or review fails, keep the batch unpublished, fix the content, and rerun the failing check. Never advance lifecycle state to make validation pass; escalate when no authoritative recovery path exists.
Done When
- each selected candidate is created, deferred, or rejected explicitly;
- artifacts separate recovered fact from inference, and every lifecycle state has evidence and approval;
- annotations resolve and no duplicates or product changes were introduced;
govctl checkpasses and projections are current; and- the report lists artifacts, states, annotated paths, uncertain history, remaining scope, and validation results.
Normal workflows (discuss, spec, gov, quick) can start after the first
coherent baseline; exhaustive backfill is not required.
When not to use it
- →When the workflow is for implementation rather than historical backfill
- →When creating work items during discovery or backfill phases for future work
- →When editing governed files directly instead of using `govctl` verbs
Limitations
- →It is a historical backfill workflow, not an implementation workflow.
- →It never overwrites existing files; it only adds governance artifacts.
- →It never resolves design questions for future work, handing them off to `/discuss` instead.
How it compares
This skill provides a structured, interactive, and non-destructive process to backfill governance artifacts and annotate code in existing projects, unlike manually documenting decisions.
Compared to similar skills
migrate side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| migrate (this skill) | 0 | 5mo | Review | Advanced |
| project-planner | 32 | 11mo | Review | Intermediate |
| spec-kit-workflow | 11 | 10mo | No flags | Intermediate |
| specification-architect | 13 | 10mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
project-planner
adrianpuiu
Comprehensive project planning and documentation generator for software projects. Creates structured requirements documents, system design documents, and task breakdown plans with implementation tracking. Use when starting a new project, defining specifications, creating technical designs, or breaking down complex systems into implementable tasks. Supports user story format, acceptance criteria, component design, API specifications, and hierarchical task decomposition with requirement traceability.
spec-kit-workflow
jmanhype
Guides specification-driven development workflow. Automatically invoked when discussing new features, specifications, technical planning, or implementation tasks. Ensures proper workflow phases (specify → clarify → plan → checklist → tasks → analyze → implement).
specification-architect
adrianpuiu
A rigorous, traceability-first system that generates five interconnected architectural documents (blueprint.md, requirements.md, design.md, tasks.md, and validation.md) with complete requirements-to-implementation traceability. Use this skill when users need to architect systems, create technical specifications, or develop structured project documentation with guaranteed traceability.
architecture
davila7
Architectural decision-making framework. Requirements analysis, trade-off evaluation, ADR documentation. Use when making architecture decisions or analyzing system design.
context-driven-development
wshobson
Use this skill when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md, and workflow.md files.
planning-agent
parcadei
Planning agent that creates implementation plans and handoffs from conversation context