prefixed-ids

Community

Generate and validate type-safe API IDs.

Authoroborchers
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of creating robust, human-readable, and type-safe identifiers for API resources, preventing common bugs and improving debugging.

Core Features & Use Cases

  • Type-Safe IDs: Implement Stripe-like prefixed IDs (e.g., cus_NffrFeUfNV2Hib) for clear resource identification.
  • ID Generation: Choose between time-sortable strategies like ULID or KSUID for efficient database indexing and chronological ordering.
  • Validation: Enforce ID format and type correctness at the API boundary using middleware to prevent errors before they reach the database.
  • Use Case: When designing a new API endpoint for creating users, use this Skill to generate a usr_ prefixed ID and ensure any incoming IDs in requests or responses adhere to the defined format and type.

Quick Start

Use the prefixed-ids skill to generate a new customer ID.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prefixed-ids
Download link: https://github.com/oborchers/fractional-cto/archive/main.zip#prefixed-ids

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.