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.zip

Installs 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 brownfield
216 chars✓ has a “when” trigger
Advanced

Key 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

You give it
An existing project codebase, optionally with a scope hint (e.g., 'focus on database decisions')
You get back
A discovery report, backfilled governance artifacts (ADRs, RFCs), annotated source references, and an initial governed baseline

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 clause for 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

CandidateBackfill whenNever as
ADREvidence shows a consequential choice and why it was madeA retroactive source of obligation
RFCAn existing specification or stable contract is identifiableA dump of current behavior
Work ItemThe user confirms unfinished active or queued workA list of every TODO or cleanup
Source referenceA stable, high-signal code site relates to a recovered itemBlanket 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:

  1. Recheck governed state and the selected evidence.
  2. Draft with adr-writer, rfc-writer, or wi-writer.
  3. Review with adr-reviewer or rfc-reviewer.
  4. Show uncertainties and proposed lifecycle outcomes to the user.
  5. Perform only approved transitions.
  6. Run govctl check and render affected projections.
  7. 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 for test, and complete implementation and tests for stable. 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 check passes 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.

SkillInstallsUpdatedSafetyDifficulty
migrate (this skill)05moReviewAdvanced
project-planner3211moReviewIntermediate
spec-kit-workflow1110moNo flagsIntermediate
specification-architect1310moReviewAdvanced

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.

32115

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).

11111

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.

1388

architecture

davila7

Architectural decision-making framework. Requirements analysis, trade-off evaluation, ADR documentation. Use when making architecture decisions or analyzing system design.

1244

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.

744

planning-agent

parcadei

Planning agent that creates implementation plans and handoffs from conversation context

531

Search skills

Search the agent skills registry