Agent skill

Corvus Keywords And Validation

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

Implement and extend JSON Schema keywords in the Corvus code generation system and the runtime evaluator.

Apache-2.0Auto-check passedDevelopment

Install Corvus Keywords And Validation

skills CLI
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-keywords-and-validation -a claude-code

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

GitHub CLI
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-keywords-and-validation --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-keywords-and-validation .claude/skills/corvus-keywords-and-validation && 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-keywords-and-validation
GitHub stars
199
Token cost
~1.7k tokens
SKILL.md length
618 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
Apache-2.0

At a glance

Implement and extend JSON Schema keywords in the Corvus code generation system and the runtime evaluator.

  • Works in 4 steps: Schema structure — type shape:… → Validation — runtime checks:… → Annotation & documentation —… → …
  • : adding new JSON Schema keywords
  • SKILL.md covers Keyword Architecture, Vocabularies, Validation Handler Priorities and Draft-Specific Keyword…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Corvus Keywords And Validation is an agent skill from corvus-dotnet/Corvus.JsonSchema. Implement and extend JSON Schema keywords in the Corvus code generation system and the runtime evaluator. Covers the IKeyword interface, behavioral marker interfaces, vocabulary registration, draft-specific keyword variations (Draft 4 through 2020-12), where assertions are implemented (SchemaCompiler/Evaluator), custom keyword extension points, and the TypeDeclaration data structure. USE FOR: adding new JSON Schema keywords, modifying validation behavior, understanding keyword evolution across drafts, extending…

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

It sits in Development, covering Project scaffolding. The repository describes itself as: Support for Json Schema validation and entity generation. The licence is Apache-2.0.

When your agent uses it

  • : adding new JSON Schema keywords
  • Modifying validation behavior
  • Understanding keyword evolution across drafts
  • Extending the code generation engine

Example prompts

  • “/corvus-keywords-and-validation”

Workflow steps

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

  1. Schema structure — type shape: ISubschemaTypeBuilderKeyword, ILocalSubschemaRegistrationKeyword, IPropertySubchemaProviderKeyword
  2. Validation — runtime checks: IObjectPropertyValidationKeyword, IValueKindValidationKeyword, INumericValidationKeyword…
  3. Annotation & documentation — IAnnotationProducingKeyword, IShortDocumentationProviderKeyword, ILongDocumentationProviderKeyword…
  4. References & identity — IRefKeyword, IDynamicRefKeyword, IIdKeyword, IAnchorKeyword, ISchemaKeyword

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.

    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 Keywords And Validation loads about 1.7k tokens when it runs. Until then it costs about 182 tokens; SKILL.md has 618 words of instructions outside code blocks.

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

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). 618 words, ~1,714 tokens.

Download SKILL.mdSave it as .claude/skills/corvus-keywords-and-validation/SKILL.md (or your agent's skills folder).
name
corvus-keywords-and-validation
description
Implement and extend JSON Schema keywords in the Corvus code generation system and the runtime evaluator. Covers the IKeyword interface, behavioral marker interfaces, vocabulary registration, draft-specific keyword variations (Draft 4 through 2020-12), where assertions are implemented (SchemaCompiler/Evaluator), custom keyword extension points, and the TypeDeclaration data structure. USE FOR: adding new JSON Schema keywords, modifying validation behavior, understanding keyword evolution across drafts, extending the code generation engine, understanding vocabularies. DO NOT USE FOR: using generated types (use corvus-codegen), standalone evaluator internals (use corvus-standalone-evaluator).

Keywords and Validation Handlers

Keyword Architecture

Keywords are stateless singletons implementing IKeyword plus behavioral marker interfaces.

IKeyword Interface

Every keyword implements:

  • Keyword property — the JSON property name (e.g., "type", "maxLength")
  • Behavioral marker interfaces that declare how the keyword participates in schema processing
Behavioural Marker Interface Categories (25+)
  1. Schema structure — type shape: ISubschemaTypeBuilderKeyword, ILocalSubschemaRegistrationKeyword, IPropertySubchemaProviderKeyword
  2. Validation — runtime checks: IObjectPropertyValidationKeyword, IValueKindValidationKeyword, INumericValidationKeyword, IStringValidationKeyword, IArrayValidationKeyword
  3. Annotation & documentation — IAnnotationProducingKeyword, IShortDocumentationProviderKeyword, ILongDocumentationProviderKeyword, IDefaultValueProviderKeyword, IExamplesProviderKeyword, INonStructuralKeyword, IDeprecatedKeyword
  4. References & identity — IRefKeyword, IDynamicRefKeyword, IIdKeyword, IAnchorKeyword, ISchemaKeyword

Vocabularies

Vocabularies are modular sets of keywords (introduced formally in Draft 2019-09):

  • Core — $id, $schema, $ref, $defs
  • Applicator — allOf, anyOf, oneOf, if/then/else, properties, items
  • Validation — type, minimum, maximum, pattern, required
  • MetaData — title, description, default, examples
  • Format — format keyword (annotation in 2019-09+, assertion in earlier drafts)
  • Content — contentEncoding, contentMediaType, contentSchema
  • Unevaluated — unevaluatedProperties, unevaluatedItems (2019-09+)

Validation Handler Priorities

Handlers execute in strict priority order (defined in ValidationPriorities static class in src-v4/Corvus.Json.CodeGeneration/.../Validation/ValidationPriorities.cs, shared by both V4 and V5):

PriorityNameValuePurpose
FirstFirst0Must run before everything
CoreTypeCoreType1,000Basic type checking (type keyword)
DefaultDefault~2.1 billion (uint.MaxValue / 2)Standard validation (min/max, pattern, etc.)
CompositionCompositionDefault + 1,000allOf, anyOf, oneOf, not
AfterCompositionAfterCompositionComposition + 1,000Keywords that depend on composition results (arrays, objects)
LastLastuint.MaxValueFinal cleanup, unevaluated properties/items

The large gap between CoreType (1,000) and Default (~2.1B) leaves room for future priorities without redefining existing values.

Draft-Specific Keyword Variations

Keywords change behavior across JSON Schema drafts:

KeywordDraft 4Draft 6+
exclusiveMaximumBoolean modifier on maximumStandalone number
exclusiveMinimumBoolean modifier on minimumStandalone number
itemsSingle schema or arraySingle schema only in 2020-12 (prefixItems for array)
additionalItemsUsed with array itemsRemoved in 2020-12
$refReplaces all siblingsCoexists with siblings in 2019-09+

Custom Keyword Extension Points (8)

The code generation engine exposes extension points at different phases:

  1. Schema discovery — register custom schema locations
  2. Type declaration building — modify type declarations during construction
  3. Type reduction — control how trivial subschemas are collapsed
  4. Validation handler registration — add custom validation code emitters
  5. Property handler — customize how object properties are processed
  6. Array handler — customize array item processing
  7. Format handler — add custom format validators
  8. Composition handler — customize allOf/anyOf/oneOf/not processing
Show full SKILL.md (249 more words)Show less

Where Validation Lives

Validation handlers no longer exist. Keywords are declared for the type builder (so generated types reflect them), but every assertion is implemented once in the runtime evaluator (src/Corvus.Text.Json/Corvus/Text/Json/RuntimeEvaluator, namespace Corvus.Text.Json.RuntimeEvaluator, in the Corvus.Text.Json assembly), which generated types, standalone evaluators, the Validator and the CLI all use:

  • Compilation/SchemaCompiler.cs — CompileNode reads each keyword into a SchemaNode (dispatch by keyword name length, then bytes), then whole-graph passes (dynamic refs, tracking, marking, $ref elision, discriminators, plans, flags).
  • Evaluation/Evaluator.cs — the assertions, generic over FastMode/CollectingMode and the document access type; report results with the keyword name through the collector.
  • Tests: tests/Corvus.Text.Json.RuntimeEvaluator.Tests (unit + JSON Schema Test Suite), plus the generated suite projects, which now run the same engine through generated types.

The generator emits one CorvusJsonSchemaProgram per compilation (RuntimeProgramGenerator.cs) with an entry point per type: pre-compiled as an image when the host supplies Options.ProgramCompiler (the CLI), else holding the schema documents for compilation on first use; see docs/StandaloneEvaluatorInternals.md.

TypeDeclaration

The central data structure representing a resolved JSON Schema as a C# type:

  • Holds the schema keywords, their values, and resolved references
  • Tracks the type's place in the inheritance/composition hierarchy
  • Type reduction collapses trivial subschemas for leaner generated code

Common Pitfalls

  • Draft awareness: Always check which draft(s) your keyword applies to. A keyword may have different semantics or not exist in certain drafts.
  • Stateless keywords: Keywords must be stateless singletons. State lives in TypeDeclaration.

Cross-References

  • For code generation, see corvus-codegen
  • For the evaluation program and evaluator-only generation, see corvus-standalone-evaluator
  • Full guide: docs/AddingKeywords.md, docs/ValidationHandlerGuide.md, docs/RuntimeEvaluator.md

© 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-keywords-and-validation of corvus-dotnet/Corvus.JsonSchema.

Open the folder on GitHubat commit 973097f

Compare with similar skills

Corvus Keywords And Validation 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 Keywords And Validation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Corvus Keywords And Validation this skillcorvus-dotnet/Corvus.JsonSchema199—~1.7kAutomated safety check: PassApache-2.0
Nx Generatenomcopter/react-mosaic4.8k7 repos~1.9kAutomated safety check: PassCustom licence
PonytailDavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMIT
Run Nx Generatornrwl/nx29k2 repos~592Automated safety check: NotesMIT
Conductor Setupgemini-cli-extensions/conductor3.8k—~4.2kAutomated safety check: PassApache-2.0
Mirage VFS Adapter Authoringstrukto-ai/mirage3.7k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Nx Generate

    nomcopter/react-mosaic

    Generate code using nx generators. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 7 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    564 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Run Nx generators with prioritization for workspace-plugin generators.

    29k GitHub starsUsed in 2 repos~592 tokens
    DevelopmentAuto-check: notes
  • Conductor Setup

    gemini-cli-extensions/conductor

    Scaffolds the project and sets up the Conductor environment.

    3.8k GitHub stars~4.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.

    3.7k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Enforces this repository's TypeScript backend module architecture under server/: feature folders, barrel exports, and where shared types and utilities belong.

    14k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-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

Categories

Questions about Corvus Keywords And Validation

What does Corvus Keywords And Validation do?

Implement and extend JSON Schema keywords in the Corvus code generation system and the runtime evaluator. JsonSchema. Implement and extend JSON Schema keywords in the Corvus code generation system and the runtime evaluator.

When should I use Corvus Keywords And Validation?

Corvus Keywords And Validation fits situations like: : adding new JSON Schema keywords; modifying validation behavior; understanding keyword evolution across drafts; extending the code generation engine.

How do I install Corvus Keywords And Validation in Claude Code?

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

How do I install Corvus Keywords And Validation in Codex?

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

Can I use Corvus Keywords And Validation 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-keywords-and-validation -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-keywords-and-validation, .gemini/skills/corvus-keywords-and-validation, .github/skills/corvus-keywords-and-validation and .opencode/skills/corvus-keywords-and-validation in your project.

What does Corvus Keywords And Validation need to run?

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

Does Corvus Keywords And Validation 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 Keywords And Validation 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 Keywords And Validation use?

Corvus Keywords And Validation 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 Keywords And Validation use?

About 1.7k tokens (SKILL.md is roughly 6.9k 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 Keywords And Validation?

Skills that share tags, products or a category with Corvus Keywords And Validation: Nx Generate (nomcopter/react-mosaic, 4.8k stars), Ponytail (DavidObando/gsharp, 564 stars), Run Nx Generator (nrwl/nx, 29k stars) and Conductor Setup (gemini-cli-extensions/conductor, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Corvus Keywords And Validation?

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.