new-number-type

Generate a complete scaffold for a new Universal number type with CMake wiring and tests.

500|69|Updated May 1, 2017
One-click install
npx skills add https://github.com/stillwater-sc/universal --skill new-number-type
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-number-type
Source: https://github.com/stillwater-sc/universal/tree/main/.claude/skills/new-number-type
Command: npx skills add https://github.com/stillwater-sc/universal --skill new-number-type

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of bootstrapping a full project scaffold when adding a new arithmetic number type to the Universal library, including build wiring and tests.

Core Features & Use Cases

  • Generates the complete file skeletons (fwd.hpp, impl.hpp, exceptions, numeric_limits, and umbrella headers) and project structure
  • Automates CMake wiring and test directory scaffolding for both static and elastic number types
  • Sets up a ready-to-edit exception hierarchy, type traits, and test templates to validate triviality and portability

Quick Start

Provide the new type name (and optional template parameters) to generate a complete scaffold.

Frequently Asked Questions about new-number-type

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new number type for Universal with CMake and tests?

To scaffold a new Universal number type, generate the complete file skeleton including fwd.hpp and impl.hpp headers, wire CMake, and set up test templates to validate triviality and portability compliance.

What files do I need to create when adding a numeric type to Universal?

Adding a Universal numeric type requires creating fwd.hpp, impl.hpp, exception hierarchy files, numeric_limits specializations, type traits, umbrella headers, and test templates in a specific enforced creation and inclusion order.

Can I scaffold both static and elastic number types for Universal?

Yes, scaffolding supports both static and elastic Universal number type variants, automatically generating the appropriate project structure, CMake wiring, and test directory layout for either configuration.

Does adding a number type to Universal require exception hierarchy and numeric_limits setup?

Yes, adding a Universal number type requires setting up a ready-to-edit exception hierarchy and numeric_limits specialization to enforce compliance with triviality, portability, and exception rules.

What's the best way to ensure file creation order when bootstrapping a Universal number type?

The best way to ensure correct file creation order is using an automated scaffold that enforces the required sequence for file generation, umbrella header inclusion, and coding standards compliance.

Why does my new Universal number type fail portability and triviality checks?

Portability and triviality checks fail when the new number type scaffold does not adhere to the required file structure, umbrella header inclusion order, or exception rules specified by Universal coding standards.