# migration

Adopt this skill: https://proskills.md/skills/other/prekuter-dryforge-agent-plugin-skills-migration

Page: https://proskills.md/skills/other/prekuter-dryforge-agent-plugin-skills-migration
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: agent-plugin/skills/migration/SKILL.md
size: 8078
upstream: https://github.com/prekuter/dryforge/blob/main/agent-plugin/skills/migration/SKILL.md

```text
---
name: migration
description: >
  Bring an existing codebase into Dryforge, once. Reads the code, asks what code cannot show —
  business rules, security policy, what is intentional — and writes the project docs at the entry
  points agents already read. Use when the user invokes the `migration` skill on an existing
  project. Requires git.
disable-model-invocation: true
---

# migration

> **Reply in the user's language, and hold it continuously from your very first line** — the opening,
> every grounding/progress note, the questions, and the harness, not only some of them. Write natively
> (never translationese). You are reading a codebase (and these instructions) that may be in another
> language; **neither sets your output language — only the user's does.** Full rule in Core principles below.

Convert an existing project into the dryforge **project harness** — the durable documentation layer
that every later agent (dryforge or not) works inside. migration reads the codebase, elicits the
intent/constraints/decisions that code cannot express, and generates the whole harness:
`CLAUDE.md` / `AGENTS.md`, the `docs/` set, and a per-module `AGENTS.md`. The harness spec is in
`references/harness-format.md`.

migration is a **one-time conversion**, not a task runner. It writes documentation only — it does
**not** create a 3-doc (that is `ready`'s job) and does **not** execute code (that is `go`'s).
After it finishes, commit the harness and clear the session before running `ready` → `go`:
migration is an independent piece of work, and a fresh session keeps the task-level dialogue clean.

## Core principles (apply throughout)

- **The harness is durable project memory, not ground truth.** It is the project's discipline and
  constraint — written so the next agent works the project without going off the rails. A hollow
  harness (structure present, content empty) is worse than none.
- **Content density is the whole point.** Every file must clear the quality bar in
  `references/harness-format.md` (five principles, four techniques). Filling sections is not the
  goal; informing the next agent is.
- **Knowledge asymmetry drives elicitation.** Domain knowledge lives with the user — *extract* it
  (don't fabricate). Technical knowledge lives with you — *present* options + trade-offs and let the
  user decide. Don't accept the user's generalities as-is, and don't concretize them alone.
- **Subagents only at the final REVIEW.** SCAN, ELICIT, and GENERATE run inline in the main session —
  generation needs the live conversation's *raw* grounding, not a summary. **REVIEW is the exception:**
  the finished harness is verified by **one independent subagent that did not author it.** Self-judging
  your own harness is the weakest move (A=A), and the harness is the **most
  durable artifact in the system** (every later agent works inside it), so it earns the one fresh-eye
  check — the same relaxation `ready` made (generate inline, verify independently). This is the *only*
  dispatch.
- **Stack-agnostic.** No stack/framework/library name in this skill. Discover all specifics
  (conventions, module boundaries, build/verify commands, external deps) at runtime from the project.
- **escalate-don't-guess.** What the code can't settle and you can't derive, ask the user — never
  invent a domain rule, a policy, or a rationale.
- **Match the user's language (language-agnostic).** Like stack-agnosticism, the *method* is fixed
  and the *specific language* is discovered at runtime, never assumed: produce every user-facing
  output — the dialogue **and the whole harness** (CLAUDE.md / AGENTS.md, docs/, module AGENTS.md) —
  in the language the user communicates in, written **natively** (as a fluent speaker of that language
  would, never translationese). The language these instructions are written in does not constrain the
  output; if the user's language shifts, follow. **Hold it from the very first line, continuously** —
  never open in the codebase's or these instructions' language and switch later. The language of the
  code you read does **not** constrain your output; only the user's does.
- **Talk to the user only when needed — between beats, say nothing.** You speak at **exactly** these
  moments: (a) a question you genuinely need answered, (b) the final walk-through / result, (c) a real
  blocker — **these are the only times user-facing text exists.** SCAN, GENERATE, REVIEW, and any fix
  loop are **silent phases**: the UI already shows the file/command activity, so narrating it is pure
  leak. If what you are about to emit is none of (a)/(b)/(c), the correct output is **nothing**.
  **Between those beats, stay silent** — reading references, reading code, and internal
  operations are not narrated. **No transition lines** ("now I'll...", "먼저 ...", "let me read...", "Now the ..." announcing each write) — at
  those plumbing moments your voice slips into the instructions' language (English) or internal tokens;
  emit *nothing* there, don't translate it. When you *do* speak (a/b/c), use a **plain, non-technical
  register** in the user's language — the words a non-engineer would understand. This is your default
  voice, not a per-line check, so it costs nothing. **Never surface internal tokens:** dryforge mechanism / coined terms (harness,
  ledger, decision surface, grounding, lens, invariant, `.dryforge`), phase / step labels (SCAN /
  ELICIT / GENERATE / REVIEW), or project-internal jargon a non-engineer wouldn't recognize
  (library/tool names, config flags, test-framework internals). **Don't soften internal logic into
  user-ish words — just omit it.** E.g. "Starting a git repo here." — not "Initializing git and adding
  the marker directory to `.gitignore` so the harness state isn't committed."

## Input & preconditions

- Invocation: the user invokes the `migration` skill, no arguments — migration reads the **current
  project**.
- **Existing codebase expected.** migration converts a project that already has code. For a
  greenfield project (no code yet), there is nothing to migrate — direct the user to `ready` (which
  designs the project's first cycle and lets `go` create the harness from scratch).
- **git required.** If the project is not a git repo, offer to run `git init` **and make an initial
  commit** (later `go` needs a HEAD for worktrees). If git is not installed, stop and say so.
- **git posture — migration writes files, it does not commit.** migration creates the harness files,
  backs up any existing entry file to `.dryforge/backup/`, adds `.dryforge/` to `.gitignore` (so the
  local marker and backups aren't accidentally committed), and writes the `.dryforge/status.json`
  marker on completion. It performs **no commits and no branch operations** — whether and when to
  commit the harness is the user's choice. (This differs from `ready`, which never touches
  `.gitignore`: migration may not be immediately followed by `go`, so it sets up the ignore itself.)

## Phase 1 — SCAN (build the technical map)

Read the project inline (file reads, shell, search — no subagent dispatch). Start with the cheapest map and
stop once you can ground ELICIT's questions; deep-read only where you must.

Cover:
- **Directory structure** → identify the tech stack and the module/service boundaries.
- **Code patterns** → conventions, naming, test structure, build system.
- **Existing docs** (CLAUDE.md, README, docs/, AGENTS.md, ...) → list them and **demote to reference
  material** (not authority — they may be stale or wrong).
- **External dependencies** → auth, data storage, cache, external APIs.
- **git history** → activity scope, the major change patterns.

Result: a **manifest** of the project — every module/entity, pattern, security surface, external
dependency, and gap. This is the **ledger** ELICIT works from (`references/migration-elicit.md`): each
item must close as `confirmed` / `asked-answered` / `N/A — reason`, so coverage is *observable*, not
asserted.

## Phase 
```

## File: README.md
upstream: https://github.com/prekuter/dryforge/blob/main/README.md

````text
<a id="top"></a>

<div align="center">

<p>
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="assets/readme/hero-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="assets/readme/hero-light.svg">
  <img alt="Dryforge: Intent to implementation: ready, then go." src="assets/readme/hero-light.svg" width="100%">
</picture>
</p>

<p>
<a href="https://dryforge.ai">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="assets/readme/beta-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="assets/readme/beta-light.svg">
  <img alt="Dryforge app beta is open! Mac, free. Apply for the beta." src="assets/readme/beta-light.svg" width="100%">
</picture>
</a>
</p>

<p>
  <a href="https://discord.gg/bU7yjyH3wY"><img alt="Join the Dryforge Discord" src="https://img.shields.io/badge/Discord-Join%20the%20community-5865F2?style=for-the-badge&logo=discord&logoColor=white&labelColor=454FBF"></a>
  <a href="https://github.com/dryforge-ai/dryforge-plugin/stargazers"><img alt="Star on GitHub" src="https://img.shields.io/github/stars/dryforge-ai/dryforge-plugin?style=for-the-badge&logo=github&label=Star&labelColor=3f3f46&color=18181b"></a>
</p>

<p>
  <a href="https://github.com/dryforge-ai/dryforge-plugin/releases"><img alt="Release" src="https://img.shields.io/github/v/release/dryforge-ai/dryforge-plugin?style=flat-square&label=release&color=3f3f46"></a>
  <a href="LICENSE"><img alt="License" src="https://img.shields.io/github/license/dryforge-ai/dryforge-plugin?style=flat-square&color=3f3f46"></a>
  <a href="https://github.com/dryforge-ai/dryforge-plugin/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/dryforge-ai/dryforge-plugin/ci.yml?style=flat-square&label=CI"></a>
</p>

<p>
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="assets/readme/supported-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="assets/readme/supported-light.svg">
  <img alt="Supported: Claude Code, Codex, Grok Build, GitHub Copilot, Antigravity" src="assets/readme/supported-light.svg">
</picture>
</p>

<p>
  <a href="#install-and-update">Install</a> ·
  <a href="#getting-started">Getting started</a> ·
  <a href="https://dryforge.ai">Website</a> ·
  <a href="https://discord.gg/bU7yjyH3wY"><b>Discord</b></a> ·
  <a href="./README_ko.md">한국어</a> ·
  <a href="./README_zh.md">中文</a> ·
  <a href="./README_ja.md">日本語</a>
</p>

</div>

<a id="install-and-update"></a>

# Install & Update

<details>
<summary><b>Claude Code</b></summary>

Install:

```text
/plugin marketplace add dryforge-ai/dryforge-plugin
/plugin install dryforge@dryforge
```

Update:

```text
/plugin marketplace update dryforge
/plugin update dryforge@dryforge
```

**Auto-update:** off by default. Turn it on in `/plugin` → Marketplaces → dryforge → Enable auto-update.

</details>

<details>
<summary><b>Codex</b></summary>

Install:

```text
codex plugin marketplace add dryforge-ai/dryforge-plugin
codex plugin add dryforge@dryforge
```

Update:

```text
codex plugin marketplace upgrade dryforge
```

**Auto-update:** on. New releases load at the start of each session.

</details>

<details>
<summary><b>Grok Build</b></summary>

Install:

```text
grok plugin marketplace add dryforge-ai/dryforge-plugin
grok plugin install dryforge
```

Update:

```text
grok plugin update dryforge
```

**Auto-update:** on. New releases load at the start of each session.

</details>

<details>
<summary><b>GitHub Copilot CLI</b></summary>

Install:

```text
copilot plugin marketplace add dryforge-ai/dryforge-plugin
copilot plugin install dryforge@dryforge
```

Update:

```text
copilot plugin update dryforge
```

**Auto-update:** off by default. Add `"autoUpdate": true` to the dryforge entry under `extraKnownMarketplaces` in `~/.copilot/settings.json`.

</details>

<details>
<summary><b>Antigravity CLI</b></summary>

Install:

```text
agy plugin install https://github.com/dryforge-ai/dryforge-plugin/tree/main/antigravity
```

Update:

```text
agy plugin install https://github.com/dryforge-ai/dryforge-plugin/tree/main/antigravity
```

**Auto-update:** not available. Run the install command again to update.

</details>

> [!TIP]
> Stuck on install, or want to share what you built? Ask in [Discord](https://discord.gg/bU7yjyH3wY).

<a id="the-problem"></a>

# Everyone has been using agents wrong.

Agents already know how to work. What they don't have is your intent.

The industry filled that gap with process. Workflows, methodologies, rules, swarms of agents — all fixed before anyone asks what you are building. The method comes first, and your intent is cut to fit it.

**Your intent should decide the method. Instead, the method decides your intent.**

> *"We write tests first. Now — what are you building?"*

It runs backwards. Once the intent is clear, the method follows from it. Fixing the method first is not rigor. It only means no one listened first.

And every one of those rules was written before anyone saw your work, for whichever model was current when it was written. When the next model arrives, the rules no longer fit, and the whole setup is torn down and rebuilt. Again.

- **Workflows** script how the agent works, so every new model breaks them — and the model takes the blame.
- **Test-first as law** puts the same ceremony on a config file and a payment rule.
- **Subagent swarms** guess an unstated intent in parallel and bill the tokens as progress.
- **Loops** run for hours toward a goal nobody pinned down.
- **Questions** are a step in the procedure. They ask what the code already answers, while the decisions that are yours get made in silence. The most dangerous question is the one never asked.
- **Human checkpoints** land on every step of the process instead of on the decisions only you can make.
- **Spec documents** are generated for the ritual, then drift from the code and stop being read.

The problem nobody solved is the first one: understanding what you actually mean.

<a id="approach"></a>

# Fundamentally Different Approach

Agents have become capable enough to be given real autonomy. The question is no longer whether to let them decide. It is what they may decide.

There have been two answers, and both are wrong.

- **Hold the agent too tight**, and you get process: every step scripted, every case enumerated in advance. It props up a weak model and caps a strong one. The better the model gets, the more the procedure holds it back.
- **Let the agent go**, and you get a bare agent: free where it should be free, and free where it should not be. It decides what you meant, and fills every gap with a plausible guess.

Dryforge's answer is the third: bounded autonomy, anchored in your intent. The agent has full freedom inside a boundary it may not move on its own — and that boundary is your intent.

**Agents rarely fail for lack of intelligence.** Most of their failures are failures of authority, dressed up as failures of reasoning. An agent infers a product rule no one stated. It treats the code that exists as proof of what was intended. It reinterprets a requirement into something easier to build. It takes its own summary as proof that the work is done. Each step sounds reasonable on its own. Together, they carry the result away from what you wanted.

**So Dryforge separates authority.** On top of bounded autonomy, Dryforge built its own authority model:

- Every decision in the work has an owner. What is yours comes back to you, whatever form it takes. What is the agent's, the agent decides with everything it has.
- What can be found out is not asked. What is yours is never guessed.
- When sources disagree, nothing is chosen quietly. The conflict comes to you.
- No process decides what is yours, and nothing that is yours is decided without you. A guess is worse than a pause.

**The rest of the design follows from it.**

- **A floor, not a ceiling.** Dryforge fixes only what must hold, and leave
````
