Agent skill

Corvus Numeric Types

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

Understand and work with the Corvus.Text.Json numeric type system including parsed components, BigNumber arbitrary-precision decimal, format-based type selection, and precision-preserving validation.

Apache-2.0Auto-check passed

Install Corvus Numeric Types

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

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

GitHub CLI
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-numeric-types --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-numeric-types .claude/skills/corvus-numeric-types && 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-numeric-types
GitHub stars
199
Token cost
~904 tokens
SKILL.md length
311 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
Apache-2.0

At a glance

Understand and work with the Corvus.Text.Json numeric type system including parsed components, BigNumber arbitrary-precision decimal, format-based type selection, and precision-preserving validation.

  • : working with JSON numbers in Corvus types
  • SKILL.md covers Parsed Component Representation, BigNumber, Format-to-Type Mapping and Validation Optimizations, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Understanding format validation for numeric schemas

What it does

Corvus Numeric Types is an agent skill from corvus-dotnet/Corvus.JsonSchema. Understand and work with the Corvus.Text.Json numeric type system including parsed components, BigNumber arbitrary-precision decimal, format-based type selection, and precision-preserving validation. USE FOR: working with JSON numbers in Corvus types, understanding format validation for numeric schemas, implementing numeric operations, choosing between BigNumber and standard .NET numeric types. DO NOT USE FOR: general JSON parsing (use corvus-parsed-documents-and-memory).

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

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

When your agent uses it

  • : working with JSON numbers in Corvus types
  • Understanding format validation for numeric schemas
  • Implementing numeric operations
  • Choosing between BigNumber and standard .NET numeric types

Example prompts

  • “/corvus-numeric-types”

What it can do on your machine

Read from SKILL.md and the folder at commit b9e3040. 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).

    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 Numeric Types loads about 904 tokens when it runs. Until then it costs about 124 tokens; SKILL.md has 311 words of instructions outside code blocks.

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

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 b9e3040, republished under its Apache-2.0 licence (© corvus-dotnet). 311 words, ~904 tokens.

Download SKILL.mdSave it as .claude/skills/corvus-numeric-types/SKILL.md (or your agent's skills folder).
name
corvus-numeric-types
description
Understand and work with the Corvus.Text.Json numeric type system including parsed components, BigNumber arbitrary-precision decimal, format-based type selection, and precision-preserving validation. USE FOR: working with JSON numbers in Corvus types, understanding format validation for numeric schemas, implementing numeric operations, choosing between BigNumber and standard .NET numeric types. DO NOT USE FOR: general JSON parsing (use corvus-parsed-documents-and-memory).

Numeric Types

Parsed Component Representation

JSON numbers are stored as raw UTF-8 bytes and parsed on demand into four components:

(isNegative, integral, fractional, exponent)

Example: -123.456e+7 → (true, "123", "456", "+7")

All comparison and validation operates on ASCII digit components — no floating-point conversion. This preserves full precision and avoids IEEE 754 rounding.

BigNumber

An arbitrary-precision decimal: significand × 10^exponent where significand is BigInteger.

csharp
// From string
BigNumber bn = BigNumber.Parse("123456789012345678901234567890.123");

// From JSON element
BigNumber bn = element.GetBigNumber();

When to use BigNumber:

  • JSON values with > 28 significant digits (beyond decimal precision)
  • When exact precision matters (financial, scientific)
  • When you need DoS-safe parsing (input capped at 10,000 characters)

Supports all standard .NET format strings: G, F, N, E, C, P, R.

On .NET 9+, BigNumber implements INumber<BigNumber> for full generic math support.

Format-to-Type Mapping

The JSON Schema format keyword maps to .NET types:

Format.NET TypeNotes
int32int
int64long
int128Int128.NET 7+ only, netstandard2.0 fallback
uint32uint
uint64ulong
uint128UInt128.NET 7+ only
halfHalf.NET 5+ only
singlefloat
doubledouble
decimaldecimal
bytebyte
sbytesbyte
int16short
uint16ushort

Int128, UInt128, and Half have netstandard2.0 fallbacks.

Validation Optimizations

multipleOf Fast Paths

Common divisors have optimized implementations:

  • Divisors 1, 2, 3, 4, 5, 6, 8, 10 use specialized integer arithmetic
  • Other divisors fall back to BigNumber division
Range Validation

minimum, maximum, exclusiveMinimum, exclusiveMaximum all operate on parsed components (no float conversion), preserving exact precision.

DoS Protection

Numeric input is capped at 10,000 characters (BigNumber.MaxInputLength in src/Corvus.Text.Json/Corvus/Numerics/BigNumber.cs) to prevent resource-exhaustion attacks with extremely large numbers.

Namespaces

NamespaceContents
Corvus.NumericsBigNumber, BigInteger support types
Corvus.Text.JsonJSON element numeric accessors

Common Pitfalls

  • Don't use decimal for arbitrary precision: decimal has 28-29 significant digits max. Use BigNumber for unbounded precision.
  • Don't convert to double for comparison: IEEE 754 rounds. Use parsed-component comparison.
  • netstandard2.0 limitations: Int128/UInt128/Half aren't available — fallbacks exist but with reduced functionality.

Cross-References

  • For parsing JSON documents, see corvus-parsed-documents-and-memory
  • For format validation in code generation, see corvus-keywords-and-validation
  • Full guide: docs/NumericTypes.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-numeric-types of corvus-dotnet/Corvus.JsonSchema.

Open the folder on GitHubat commit b9e3040

Compare with similar skills

Corvus Numeric Types 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 Numeric Types compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Corvus Numeric Types this skillcorvus-dotnet/Corvus.JsonSchema199—~904Automated safety check: PassApache-2.0
Minimax DOCXpoco-ai/poco-claw1.4k7 repos~3.9kAutomated safety check: PassMIT
Microsoft Skill CreatorMicrosoftDocs/mcp1.9k3 repos~2.1kAutomated safety check: PassCC-BY-4.0
Speckit ConstitutionWeihanLi/WeihanLi.Common24211 repos~2.1kAutomated safety check: PassApache-2.0
Copilot Session Failure Analysisdotnet/maui23k—~3.4kAutomated safety check: PassMIT
Microsoft Code ReferenceMicrosoftDocs/mcp1.9k4 repos~1.1kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Minimax DOCX

    poco-ai/poco-claw

    Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET).

    1.4k GitHub starsUsed in 7 repos~3.9k tokens
    Documents & OfficeAuto-check passed
  • Microsoft Skill Creator

    MicrosoftDocs/mcp

    Official

    Create agent skills for Microsoft technologies using official documentation.

    1.9k GitHub starsUsed in 3 repos~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Speckit Constitution

    WeihanLi/WeihanLi.Common

    Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.

    242 GitHub starsUsed in 11 repos~2.1k tokens
    DevelopmentAuto-check passed
  • Mines local Copilot CLI session logs for dotnet/maui to rank costly or failing runs, tag recurring failure modes, propose repo edits and emit guard evals.

    23k GitHub stars~3.4k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Microsoft Code Reference

    MicrosoftDocs/mcp

    Official

    Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs.

    1.9k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Audits and updates os-packages.json files listing the Linux packages each .NET release needs per distro, then regenerates the Markdown from the JSON.

    22k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed

More from corvus-dotnet/Corvus.JsonSchema

All 26 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

Works with

Questions about Corvus Numeric Types

What does Corvus Numeric Types do?

Understand and work with the Corvus.Text.Json numeric type system including parsed components, BigNumber arbitrary-precision decimal, format-based type selection, and precision-preserving validation. JsonSchema.Json numeric type system including parsed components, BigNumber arbitrary-precision decimal, format-based type selection, and precision-preserving validation.

When should I use Corvus Numeric Types?

Corvus Numeric Types fits situations like: : working with JSON numbers in Corvus types; understanding format validation for numeric schemas; implementing numeric operations; choosing between BigNumber and standard .NET numeric types.

How do I install Corvus Numeric Types in Claude Code?

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

How do I install Corvus Numeric Types in Codex?

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

Can I use Corvus Numeric Types 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-numeric-types -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-numeric-types, .gemini/skills/corvus-numeric-types, .github/skills/corvus-numeric-types and .opencode/skills/corvus-numeric-types in your project.

What does Corvus Numeric Types need to run?

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

Does Corvus Numeric Types 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 Numeric Types 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 Numeric Types use?

Corvus Numeric Types 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 Numeric Types use?

About 904 tokens (SKILL.md is roughly 3.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 Numeric Types?

Skills that share tags, products or a category with Corvus Numeric Types: Minimax DOCX (poco-ai/poco-claw, 1.4k stars), Microsoft Skill Creator (MicrosoftDocs/mcp, 1.9k stars), Speckit Constitution (WeihanLi/WeihanLi.Common, 242 stars) and Copilot Session Failure Analysis (dotnet/maui, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Corvus Numeric Types?

corvus-dotnet (a GitHub organization) maintains it in corvus-dotnet/Corvus.JsonSchema, which has 199 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 8, 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.