Agent skill

Corvus V4 Migration

by corvus-dotnet in corvus-dotnet/Corvus.JsonSchema

Migrate code from Corvus.Json V4 to Corvus.Text.Json V5. An agent skill from corvus-dotnet/Corvus.JsonSchema.

Apache-2.0Auto-check passed

Install Corvus V4 Migration

skills CLI
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-v4-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-v4-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/corvus-v4-migration .claude/skills/corvus-v4-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
corvus-v4-migration
GitHub stars
199
Token cost
~1.1k tokens
SKILL.md length
283 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
Apache-2.0

At a glance

Migrate code from Corvus.Json V4 to Corvus.Text.Json V5. An agent skill from corvus-dotnet/Corvus.JsonSchema.

  • Works in 4 steps: Install the migration analyzer package → Migrate file-by-file, building between… → Follow the analyzer diagnostics… → …
  • : migrating V4 consumer code to V5
  • SKILL.md covers Overview, Migration Workflow, Key Transformation Patterns and Migration Analyzers…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Corvus V4 Migration is an agent skill from corvus-dotnet/Corvus.JsonSchema. Migrate code from Corvus.Json V4 to Corvus.Text.Json V5. Covers namespace and type renames, parsing pattern changes, the mutation model shift from functional With() to imperative Set() with workspace/builder, validation API changes, composition type changes, migration analyzer diagnostics (CVJ001-CVJ025), and the Copilot-assisted migration workflow. USE FOR: migrating V4 consumer code to V5, understanding API differences between V4 and V5, using migration analyzers and code fixes. DO NOT USE FOR: general V5…

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Support for Json Schema validation and entity generation. The licence is Apache-2.0.

When your agent uses it

  • : migrating V4 consumer code to V5
  • Understanding API differences between V4 and V5
  • Using migration analyzers and code fixes
  • : general V5 development (use other skills)

Example prompts

  • “/corvus-v4-migration”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Install the migration analyzer package
  2. Migrate file-by-file, building between each file
  3. Follow the analyzer diagnostics (CVJ001-CVJ025) — each has a code fix
  4. For AI-assisted migration, reference the transformation rules in

What it can do on your machine

Read from SKILL.md and the folder at commit 973097f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csharp and xml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Corvus V4 Migration loads about 1.1k tokens when it runs. Until then it costs about 150 tokens; SKILL.md has 283 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~150
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from corvus-dotnet/Corvus.JsonSchema at commit 973097f, republished under its Apache-2.0 licence (© corvus-dotnet). 283 words, ~1,147 tokens.

Download SKILL.mdSave it as .claude/skills/corvus-v4-migration/SKILL.md (or your agent's skills folder).
name
corvus-v4-migration
description
Migrate code from Corvus.Json V4 to Corvus.Text.Json V5. Covers namespace and type renames, parsing pattern changes, the mutation model shift from functional With*() to imperative Set*() with workspace/builder, validation API changes, composition type changes, migration analyzer diagnostics (CVJ001-CVJ025), and the Copilot-assisted migration workflow. USE FOR: migrating V4 consumer code to V5, understanding API differences between V4 and V5, using migration analyzers and code fixes. DO NOT USE FOR: general V5 development (use other skills), modifying the V4 engine itself.

V4 to V5 Migration

Overview

V5 is a ground-up rewrite. Key architectural changes:

  • Namespace: Corvus.Json → Corvus.Text.Json
  • Types: JsonAny/JsonString/JsonNumber removed → everything is JsonElement
  • Parsing: ParsedValue<T>.Instance → ParsedJsonDocument<T>.RootElement
  • Mutation: Functional With*() → imperative Set*() with JsonWorkspace + JsonDocumentBuilder
  • Validation: Validate(ValidationContext, ValidationLevel) → EvaluateSchema() / EvaluateSchema(collector)
  • Type reduction: V5 reduces ALL simple+format types to project-local globals (V4 only reduced some)

Migration Workflow

  1. Install the migration analyzer package:

    xml
    <PackageReference Include="Corvus.Text.Json.Migration.Analyzers" Version="*" />
  2. Migrate file-by-file, building between each file

  3. Follow the analyzer diagnostics (CVJ001-CVJ025) — each has a code fix

  4. For AI-assisted migration, reference the transformation rules in docs/copilot/CopilotMigrationInstructions.md (optimized for AI consumption)

Key Transformation Patterns

Parsing
csharp
// V4
using ParsedValue<MyType> parsed = ParsedValue<MyType>.Parse(json);
MyType value = parsed.Instance;

// V5
using ParsedJsonDocument<MyType> doc = ParsedJsonDocument<MyType>.Parse(json);
MyType value = doc.RootElement;
Property Access
csharp
// V4
JsonString name = person.Name;
string nameStr = (string)name;

// V5
JsonElement name = person.Name;
string nameStr = (string)name;
// Or: person.Name.GetString() for the string value
Mutation
csharp
// V4 (functional — returns new instance)
person = person.WithName("Alice");

// V5 (imperative — mutates in place)
using JsonWorkspace workspace = JsonWorkspace.Create();
using var builder = person.CreateBuilder(workspace);
builder.RootElement.Name = "Alice";
Validation
csharp
// V4
ValidationContext result = value.Validate(ValidationContext.ValidContext, ValidationLevel.Detailed);
bool isValid = result.IsValid;

// V5 — EvaluateSchema() returns bool directly
bool isValid = value.EvaluateSchema();

// V5 — with detailed results, pass a collector
var collector = new MyResultsCollector();
bool isValid = value.EvaluateSchema(collector);

Migration Analyzers (CVJ001-CVJ025)

Key diagnostics:

  • CVJ001: Corvus.Json namespace → Corvus.Text.Json
  • CVJ002: Type renames (JsonAny → JsonElement, etc.)
  • CVJ003-005: Parsing pattern changes
  • CVJ006-010: Property access changes
  • CVJ011-015: Validation API changes
  • CVJ016-020: Mutation pattern changes
  • CVJ021-025: Composition and enum changes

Full reference: docs/MigrationAnalyzers.md

Detailed Transformation Rules

The file docs/copilot/CopilotMigrationInstructions.md contains comprehensive, AI-optimized transformation rules organized by category:

  • Namespace changes
  • Type name mapping (all V4 types → V5 equivalents)
  • Parsing patterns
  • Property access patterns
  • Object creation and mutation
  • Array operations
  • String operations
  • Composition types (oneOf, anyOf, allOf)
  • Enum types
  • Validation patterns

Reference this file for the complete rule set — it covers every transformation scenario.

Common Pitfalls

  • Don't migrate all at once: Migrate file-by-file and build between each.
  • V5 mutation requires workspace: You can't just rename WithX to SetX — the mutation model is fundamentally different.
  • V5 global types: In V4, JsonString was a shared library type. In V5, each project generates its own local type. Don't try to reference V4-style shared types.

Cross-References

  • For the migration analyzer reference, see docs/MigrationAnalyzers.md
  • For AI-optimized transformation rules, see docs/copilot/CopilotMigrationInstructions.md
  • For the V5 mutation model, see corvus-mutable-documents
  • For the V5 parsing model, see corvus-parsed-documents-and-memory

© corvus-dotnet, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/corvus-v4-migration of corvus-dotnet/Corvus.JsonSchema.

Open the folder on GitHubat commit 973097f

Compare with similar skills

Corvus V4 Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Corvus V4 Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Corvus V4 Migration this skillcorvus-dotnet/Corvus.JsonSchema199—~1.1kAutomated safety check: PassApache-2.0
Reversible MigrationJuliusBrussee/caveman111k1 repos~196Automated safety check: PassApache-2.0
Database Migrationsaffaan-m/ECC276k4 repos~3kAutomated safety check: PassMIT
Database Migrationsaffaan-m/ECC276k1 repos~2.4kAutomated safety check: PassMIT
Safe Database Migration Patternsaffaan-m/ECC276k—~3.3kAutomated safety check: PassMIT
Migrate Createruvnet/ruflo74k—~583Automated safety check: NotesMIT

Similar skills

  • Reversible Migration

    JuliusBrussee/caveman

    Implement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and…

    111k GitHub starsUsed in 1 repo~196 tokens
    DevelopmentAuto-check passed
  • Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…

    276k GitHub starsUsed in 4 repos~3k tokens
    DatabasesAuto-check passed
  • Şema değişiklikleri, veri migration'ları, rollback'ler ve PostgreSQL, MySQL ve yaygın ORM'ler (Prisma, Drizzle, Django, TypeORM, golang-migrate) arasında sıfır kesinti deployment'ları için…

    276k GitHub starsUsed in 1 repo~2.4k tokens
    DatabasesAuto-check passed
  • Rules and examples for safe, reversible schema changes in production: zero-downtime column and index changes, large data backfills and ORM migration workflows.

    276k GitHub stars~3.3k tokensUpdated 4 days ago
    DatabasesAuto-check passed
  • Migrate Create

    ruvnet/ruflo

    Create a new sequentially numbered database migration with up/down SQL files

    74k GitHub stars~583 tokensUpdated today
    DatabasesAuto-check: notes
  • Migration

    kortix-ai/suna

    How to change the database schema in this repo. An agent skill from kortix-ai/suna.

    20k GitHub stars~1.2k tokensUpdated today
    DatabasesAuto-check passed

More from corvus-dotnet/Corvus.JsonSchema

All 28 skills in this repo
  • Corvus Analyzers

    corvus-dotnet/Corvus.JsonSchema

    Understand and work with the Roslyn analyzers shipped with Corvus.Text.Json.

    199 GitHub stars~876 tokensUpdated today
    Auto-check passed
  • Corvus Benchmarks

    corvus-dotnet/Corvus.JsonSchema

    Run, interpret, and maintain BenchmarkDotNet benchmarks for JSON Schema validation and query languages.

    199 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Corvus Bowtie Testing

    corvus-dotnet/Corvus.JsonSchema

    Test Corvus.JsonSchema against the JSON Schema Test Suite using Bowtie, the cross-implementation meta-validator.

    199 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Corvus Buffer And Pooling

    corvus-dotnet/Corvus.JsonSchema

    Write allocation-efficient buffer code in Corvus.JsonSchema using the codebase's established three-tier pooling pattern: stackalloc → ArrayPool → ThreadStatic caches.

    199 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Corvus Bytes To Bytes

    corvus-dotnet/Corvus.JsonSchema

    Eliminate hand-rolled POCO record<-document string seams — types/paths that materialize a managed string (or List<string/Dictionary) between a bytes SOURCE (a parsed UTF-8 body, a DB column, a…

    199 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Corvus Codegen

    corvus-dotnet/Corvus.JsonSchema

    Generate strongly-typed C from JSON Schema using the Roslyn source generator or the corvusjson CLI tool.

    199 GitHub stars~2.1k tokensUpdated today
    Auto-check passed

Questions about Corvus V4 Migration

What does Corvus V4 Migration do?

Migrate code from Corvus.Json V4 to Corvus.Text.Json V5. An agent skill from corvus-dotnet/Corvus.JsonSchema. JsonSchema.Json V5.

When should I use Corvus V4 Migration?

Corvus V4 Migration fits situations like: : migrating V4 consumer code to V5; understanding API differences between V4 and V5; using migration analyzers and code fixes; : general V5 development (use other skills).

How do I install Corvus V4 Migration in Claude Code?

Run `npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-v4-migration -a claude-code`. Or copy the skill folder (.github/skills/corvus-v4-migration in corvus-dotnet/Corvus.JsonSchema) into .claude/skills/corvus-v4-migration in your project. Claude Code loads it when a task matches its description.

How do I install Corvus V4 Migration in Codex?

Run `npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-v4-migration -a codex`. Or copy the skill folder (.github/skills/corvus-v4-migration in corvus-dotnet/Corvus.JsonSchema) into .agents/skills/corvus-v4-migration in your project. Codex loads it when a task matches its description.

Can I use Corvus V4 Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-v4-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/corvus-v4-migration, .gemini/skills/corvus-v4-migration, .github/skills/corvus-v4-migration and .opencode/skills/corvus-v4-migration in your project.

What does Corvus V4 Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Corvus V4 Migration is instructions for the agent only.

Does Corvus V4 Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Corvus V4 Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Corvus V4 Migration use?

Corvus V4 Migration is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Corvus V4 Migration use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Corvus V4 Migration?

Skills that share tags, products or a category with Corvus V4 Migration: Reversible Migration (JuliusBrussee/caveman, 111k stars), Database Migrations (affaan-m/ECC, 276k stars), Database Migrations (affaan-m/ECC, 276k stars) and Safe Database Migration Patterns (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Corvus V4 Migration?

corvus-dotnet (a GitHub organization) maintains it in corvus-dotnet/Corvus.JsonSchema, which has 199 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 9, 2026.

Source: corvus-dotnet/Corvus.JsonSchema on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.