[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737JCYP4GYZNS6X3VA885SD":3,"skill-same:01M737JCYP4GYZNS6X3VA885SD":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M737JCYP4GYZNS6X3VA885SD","skill-025",null,"Type mapping reference for OpenAPI formats to TypeScript core types","legendtkl\u002Fagentic-skill-router","legendtkl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2370761?v=4","01M71RR3WRQC40G964Q2GVDMND","01M737GJZQ9TF1VE3VM255EDAK",8,"MIT","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-025\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: skill-025\ndescription: \"Type mapping reference for OpenAPI formats to TypeScript core types\"\n---\n\n# Core Type Mapping Guide\n\n## Overview\n\nThis guide provides the mapping between OpenAPI string formats and their corresponding TypeScript type classes for use in Tasks 5, 7, 8, and 9.\n\n## 🚨 Critical Usage Rules\n\n- **Task 5**: Use these mappings when creating OpenAPI specifications - set the correct `format` field\n- **Task 7**: Use these mappings in data transformation and validation\n- **Task 8 & 9**: Use these mappings for type assertions in tests (e.g., `instanceof Email`, `instanceof UUID`)\n- **String Conversion**: All types support `.toString()` method and template literal interpolation\n- **Import Sources**: Import types from the specified packages, not from Node.js built-ins\n\n## AWS Types (@zerobias-org\u002Ftypes-amazon-js)\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `arn` | `Arn` | `toEnum(Arn, value)` or `new Arn(value)` |\n| `awsPartition` | `AwsPartition` | `toEnum(AwsPartition, value)` |\n| `awsService` | `AwsService` | `toEnum(AwsService, value)` |\n| `awsImageId` | `AwsImageId` | `toEnum(AwsImageId, value)` |\n| `awsAccessPolicy` | `AwsAccessPolicy` | `new AwsAccessPolicy(value)` |\n| `awsAccessPolicyStatement` | `AwsAccessPolicyStatement` | `new AwsAccessPolicyStatement(value)` |\n| `awsAccessPolicyStatementCondition` | `AwsAccessPolicyStatementCondition` | `new AwsAccessPolicyStatementCondition(value)` |\n| `awsAccessPolicyStatementEffect` | `AwsAccessPolicyStatementEffect` | `toEnum(AwsAccessPolicyStatementEffect, value)` |\n| `awsAccessPolicyStatementOperator` | `AwsAccessPolicyStatementOperator` | `toEnum(AwsAccessPolicyStatementOperator, value)` |\n\n## Microsoft Azure Types (@zerobias-org\u002Ftypes-microsoft-js)\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `azureVmSize` | `AzureVmSize` | `toEnum(AzureVmSize, value)` |\n| `azureResourceProvider` | `AzureResourceProvider` | `toEnum(AzureResourceProvider, value)` |\n| `azureResource` | `AzureResource` | `new AzureResource(value)` |\n| `azureResourceInfo` | `AzureResourceInfo` | `new AzureResourceInfo(value)` |\n| `azureResourceType` | `AzureResourceType` | `toEnum(AzureResourceType, value)` |\n| `azureResourcePlan` | `AzureResourcePlan` | `new AzureResourcePlan(value)` |\n| `azureResourceSku` | `AzureResourceSku` | `new AzureResourceSku(value)` |\n| `azureResourceSkuTier` | `AzureResourceSkuTier` | `toEnum(AzureResourceSkuTier, value)` |\n| `azureResourceIdentity` | `AzureResourceIdentity` | `new AzureResourceIdentity(value)` |\n| `azureResourceIdentityType` | `AzureResourceIdentityType` | `toEnum(AzureResourceIdentityType, value)` |\n\n## Google Cloud Types (@zerobias-org\u002Ftypes-google-js)\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `gcpAccessPolicy` | `GcpAccessPolicy` | `new GcpAccessPolicy(value)` |\n| `gcpAccessPolicyAuditConfig` | `GcpAccessPolicyAuditConfig` | `new GcpAccessPolicyAuditConfig(value)` |\n| `gcpAccessPolicyAuditLogConfig` | `GcpAccessPolicyAuditLogConfig` | `new GcpAccessPolicyAuditLogConfig(value)` |\n| `gcpAccessPolicyAuditLogConfigType` | `GcpAccessPolicyAuditLogConfigType` | `toEnum(GcpAccessPolicyAuditLogConfigType, value)` |\n| `gcpAccessPolicyBinding` | `GcpAccessPolicyBinding` | `new GcpAccessPolicyBinding(value)` |\n| `gcpAccessPolicyBindingCondition` | `GcpAccessPolicyBindingCondition` | `new GcpAccessPolicyBindingCondition(value)` |\n| `gcpAccessPolicyVersion` | `GcpAccessPolicyVersion` | `toEnum(GcpAccessPolicyVersion, value)` |\n\n## Core Types (@zerobias-org\u002Ftypes-core-js)\n\n### Binary\u002FEncoding\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `byte` | `Byte` | `new Byte(value)` |\n| `b64` | `Byte` | `new Byte(value)` |\n| `base64` | `Byte` | `new Byte(value)` |\n\n### Networking\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `cidr` | `Cidr` | `new Cidr(value)` |\n| `ipAddress` | `IpAddress` | `new IpAddress(value)` |\n| `ip` | `IpAddress` | `new IpAddress(value)` |\n| `ipv4` | `IpAddress` | `new IpAddress(value)` |\n| `ipv6` | `IpAddress` | `new IpAddress(value)` |\n| `mac` | `MacAddress` | `new MacAddress(value)` |\n| `macaddr` | `MacAddress` | `new MacAddress(value)` |\n| `macAddress` | `MacAddress` | `new MacAddress(value)` |\n| `hostname` | `Hostname` | `new Hostname(value)` |\n\n### Date\u002FTime\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `date-time` | `Date` | `new Date(value)` |\n| `time` | `Date` | `new Date(value)` |\n| `timestamp` | `Date` | `new Date(value)` |\n| `date` | `Date` | `new Date(value)` |\n| `duration` | `Duration` | `new Duration(value)` |\n\n### Numeric\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `double` | `number` | `Number(value)` |\n| `float` | `number` | `Number(value)` |\n| `int32` | `number` | `Number(value)` |\n| `int64` | `number` | `Number(value)` |\n| `integer` | `number` | `Number(value)` |\n\n### Communication\u002FIdentity\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `email` | `Email` | `new Email(value)` |\n| `phoneNumber` | `PhoneNumber` | `new PhoneNumber(value)` |\n| `phone` | `PhoneNumber` | `new PhoneNumber(value)` |\n| `url` | `URL` | `new URL(value)` |\n| `uri` | `URL` | `new URL(value)` |\n\n### Identifiers\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `uuid` | `UUID` | `new UUID(value)` |\n| `guid` | `UUID` | `new UUID(value)` |\n| `objectId` | `ObjectId` | `new ObjectId(value)` |\n\n### Security\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `password` | `string` | Direct string usage |\n| `secret` | `string` | Direct string usage |\n| `token` | `string` | Direct string usage |\n| `apiKey` | `string` | Direct string usage |\n\n### Geographic\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `latitude` | `Latitude` | `new Latitude(value)` |\n| `longitude` | `Longitude` | `new Longitude(value)` |\n| `geoPoint` | `GeoPoint` | `new GeoPoint(lat, lon)` |\n| `country` | `Country` | `toEnum(Country, value)` |\n| `countryCode` | `Country` | `toEnum(Country, value)` |\n| `language` | `Language` | `toEnum(Language, value)` |\n| `languageCode` | `Language` | `toEnum(Language, value)` |\n| `currency` | `Currency` | `toEnum(Currency, value)` |\n| `currencyCode` | `Currency` | `toEnum(Currency, value)` |\n\n### File\u002FMedia\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `mimeType` | `MimeType` | `toEnum(MimeType, value)` |\n| `fileExtension` | `FileExtension` | `toEnum(FileExtension, value)` |\n| `path` | `Path` | `new Path(value)` |\n| `filePath` | `Path` | `new Path(value)` |\n\n### Business\u002FDomain\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `ssn` | `Ssn` | `new Ssn(value)` |\n| `tin` | `Tin` | `new Tin(value)` |\n| `iban` | `Iban` | `new Iban(value)` |\n| `creditCard` | `CreditCard` | `new CreditCard(value)` |\n| `postalCode` | `PostalCode` | `new PostalCode(value)` |\n| `zipCode` | `PostalCode` | `new PostalCode(value)` |\n\n## Complete Type Mapping Reference Table\n\n### Consolidated Quick Reference\n\n| Format | Package | Type | Constructor Pattern |\n|--------|---------|------|-------------------|\n| `uuid` | @zerobias-org\u002Ftypes-core-js | UUID | `map(UUID, value)` |\n| `email` | @zerobias-org\u002Ftypes-core-js | Email | `map(Email, value)` |\n| `url` | @zerobias-org\u002Ftypes-core-js | URL | `map(URL, value)` |\n| `date-time` | Native | Date | `map(Date, value)` |\n| `ipAddress` | @zerobias-org\u002Ftypes-core-js | IpAddress | `map(IpAddress, value)` |\n| `phoneNumber` | @zerobias-org\u002Ftypes-core-js | PhoneNumber | `map(PhoneNumber, value)` |\n| `arn` | @zerobias-org\u002Ftypes-amazon-js | Arn | `map(Arn, value)` |\n| `cidr` | @zerobias-org\u002Ftypes-core-js | Cidr | `map(Cidr, value)` |\n| `duration` | @zerobias-org\u002Ftypes-core-js | Duration | `map(Duration, value)` |\n| `base64` | @zerobias-org\u002Ftypes-core-js | Byte | `map(Byte, value)` |\n\n## Usage Patterns by Task\n\n### Task 5: OpenAPI Specification\n```yaml\n# Use format field to specify type\nproperties:\n  id:\n    type: string\n    format: uuid  # → Will generate UUID type\n  email:\n    type: string\n    format: email  # → Will generate Email type\n  createdAt:\n    type: string\n    format: date-time  # → Will generate Date type\n```\n\n### Task 7: Implementation (Mappers)\n```typescript\nimport { map, toEnum } from '@zerobias-org\u002Futil-hub-module-utils';\nimport { UUID, Email, URL } from '@zerobias-org\u002Ftypes-core-js';  \u002F\u002F NEVER from Node.js!\n\nexport function toUserInfo(raw: any): UserInfo {\n  return {\n    id: map(UUID, raw.id),\n    email: map(Email, raw.email),\n    website: map(URL, raw.website_url),\n    createdAt: map(Date, raw.created_at),\n    status: toEnum(StatusEnum, raw.status)\n  };\n}\n```\n\n### Task 8 & 9: Testing\n```typescript\nimport { UUID, Email } from '@zerobias-org\u002Ftypes-core-js';\n\nit('should return user with correct types', () => {\n  const user = await getUser('123');\n\n  expect(user.id).to.be.instanceof(UUID);\n  expect(user.email).to.be.instanceof(Email);\n  expect(user.createdAt).to.be.instanceof(Date);\n});\n```\n\n## String Conversion Support\n\nAll custom types support string conversion:\n\n```typescript\nconst email = new Email('user@example.com');\n\n\u002F\u002F Direct toString()\nconst emailString = email.toString();  \u002F\u002F \"user@example.com\"\n\n\u002F\u002F Template literal (automatic conversion)\nconst message = `User email: ${email}`;  \u002F\u002F \"User email: user@example.com\"\n\n\u002F\u002F JSON serialization\nJSON.stringify({ email });  \u002F\u002F {\"email\":\"user@example.com\"}\n```\n\n## Package Import Requirements\n\n### Required Dependencies\n```json\n{\n  \"dependencies\": {\n    \"@zerobias-org\u002Ftypes-core-js\": \"*\",\n    \"@zerobias-org\u002Futil-hub-module-utils\": \"*\"\n  },\n  \"devDependencies\": {\n    \"@zerobias-org\u002Ftypes-amazon-js\": \"*\",  \u002F\u002F If using AWS\n    \"@zerobias-org\u002Ftypes-microsoft-js\": \"*\",  \u002F\u002F If using Azure\n    \"@zerobias-org\u002Ftypes-google-js\": \"*\"  \u002F\u002F If using GCP\n  }\n}\n```\n\n## Common Mistakes to Avoid\n\n### ❌ WRONG - Using Node.js built-ins\n```typescript\nimport { URL } from 'url';  \u002F\u002F WRONG!\nimport { URL } from 'node:url';  \u002F\u002F WRONG!\n```\n\n### ✅ CORRECT - Using core types\n```typescript\nimport { URL } from '@zerobias-org\u002Ftypes-core-js';  \u002F\u002F CORRECT!\n```\n\n### ❌ WRONG - Direct enum instantiation\n```typescript\nconst status = new StatusEnum('active');  \u002F\u002F WRONG - constructor is private!\n```\n\n### ✅ CORRECT - Using toEnum\n```typescript\nconst status = toEnum(StatusEnum, 'active');  \u002F\u002F CORRECT!\n```\n\n### ❌ WRONG - Manual type conversion\n```typescript\nconst uuid = raw.id as UUID;  \u002F\u002F WRONG - no validation!\n```\n\n### ✅ CORRECT - Using map function\n```typescript\nconst uuid = map(UUID, raw.id);  \u002F\u002F CORRECT - validates and converts!\n```\n\n## Priority Rules\n\n1. **Always use core types** over native JavaScript types when available\n2. **Import from correct package** - never from Node.js built-ins\n3. **Use map() for type conversion** - provides validation\n4. **Use toEnum() for enums** - never instantiate directly\n5. **All types support .toString()** - use for string conversion\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `email` | `Email` | `new Email(value)` |\n| `phoneNumber` | `PhoneNumber` | `new PhoneNumber(value)` |\n| `phone` | `PhoneNumber` | `new PhoneNumber(value)` |\n\n### Web\u002FProtocol\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `url` | `URL` | `new URL(value)` |\n| `uri` | `URL` | `new URL(value)` |\n| `uuid` | `UUID` | `new UUID(value)` |\n| `mimeType` | `MimeType` | `new MimeType(value)` |\n\n### Versioning\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `semver` | `Semver` | `new Semver(value)` |\n| `versionRange` | `VersionRange` | `new VersionRange(value)` |\n\n### Misc\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `nmtoken` | `Nmtoken` | `new Nmtoken(value)` |\n| `password` | `string` | `String(value)` |\n\n## Usage Patterns\n\n### Task 5: OpenAPI Specification\n```yaml\nproperties:\n  email_address:\n    type: string\n    format: email  # Maps to Email type\n  website_url:\n    type: string\n    format: url    # Maps to URL type\n  user_id:\n    type: string\n    format: uuid   # Maps to UUID type\n```\n\n### Task 7: Data Transformation\n```typescript\nimport { Email, URL, UUID } from '@zerobias-org\u002Ftypes-core-js';\nimport { map } from '@zerobias-org\u002Futil-hub-module-utils';\n\nfunction mapUser(raw: any): User {\n  return {\n    id: map(UUID, raw.user_id),\n    email: map(Email, raw.email_address),\n    website: map(URL, raw.website_url)\n  };\n}\n```\n\n### Task 8 & 9: Test Assertions\n```typescript\nimport { Email, URL, UUID } from '@zerobias-org\u002Ftypes-core-js';\n\n\u002F\u002F Test assertions\nexpect(user.id).to.be.instanceof(UUID);\nexpect(user.email).to.be.instanceof(Email);\nexpect(user.website).to.be.instanceof(URL);\n```\n\n### String Conversion Examples\n```typescript\n\u002F\u002F All types support toString() and template literals\nconst email = new Email('user@example.com');\nconst emailString = email.toString();\nconst message = `User email: ${email}`;\n\nconst uuid = new UUID('123e4567-e89b-12d3-a456-426614174000');\nconst uuidString = uuid.toString();\nconst log = `Processing user ${uuid}`;\n```\n\n## Package Import Requirements\n\n**🚨 CRITICAL**: Always import from the specified packages:\n\n```typescript\n\u002F\u002F Core types - ALWAYS import from @zerobias-org\u002Ftypes-core-js\nimport { URL, UUID, Email, IpAddress } from '@zerobias-org\u002Ftypes-core-js';\n\n\u002F\u002F AWS types\nimport { Arn, AwsService } from '@zerobias-org\u002Ftypes-amazon-js';\n\n\u002F\u002F Azure types  \nimport { AzureVmSize, AzureResource } from '@zerobias-org\u002Ftypes-microsoft-js';\n\n\u002F\u002F Google Cloud types\nimport { GcpAccessPolicy } from '@zerobias-org\u002Ftypes-google-js';\n\n\u002F\u002F NEVER import URL from Node.js built-ins\n\u002F\u002F ❌ import { URL } from 'url';  \u002F\u002F WRONG\n\u002F\u002F ✅ import { URL } from '@zerobias-org\u002Ftypes-core-js';  \u002F\u002F CORRECT\n```\n\n## Validation and Error Handling\n\nAll typed values can be validated and will throw appropriate errors for invalid formats:\n\n```typescript\ntry {\n  const email = new Email('invalid-email');  \u002F\u002F Throws validation error\n} catch (error) {\n  \u002F\u002F Handle validation error\n}\n\n\u002F\u002F Safe validation with try-catch in mappers\nfunction safeMapEmail(raw: string): Email | null {\n  try {\n    return new Email(raw);\n  } catch {\n    return null;  \u002F\u002F Or handle as appropriate for your use case\n  }\n}\n```","# Core Type Mapping Guide\n\n## Overview\n\nThis guide provides the mapping between OpenAPI string formats and their corresponding TypeScript type classes for use in Tasks 5, 7, 8, and 9.\n\n## 🚨 Critical Usage Rules\n\n- **Task 5**: Use these mappings when creating OpenAPI specifications - set the correct `format` field\n- **Task 7**: Use these mappings in data transformation and validation\n- **Task 8 & 9**: Use these mappings for type assertions in tests (e.g., `instanceof Email`, `instanceof UUID`)\n- **String Conversion**: All types support `.toString()` method and template literal interpolation\n- **Import Sources**: Import types from the specified packages, not from Node.js built-ins\n\n## AWS Types (@zerobias-org\u002Ftypes-amazon-js)\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `arn` | `Arn` | `toEnum(Arn, value)` or `new Arn(value)` |\n| `awsPartition` | `AwsPartition` | `toEnum(AwsPartition, value)` |\n| `awsService` | `AwsService` | `toEnum(AwsService, value)` |\n| `awsImageId` | `AwsImageId` | `toEnum(AwsImageId, value)` |\n| `awsAccessPolicy` | `AwsAccessPolicy` | `new AwsAccessPolicy(value)` |\n| `awsAccessPolicyStatement` | `AwsAccessPolicyStatement` | `new AwsAccessPolicyStatement(value)` |\n| `awsAccessPolicyStatementCondition` | `AwsAccessPolicyStatementCondition` | `new AwsAccessPolicyStatementCondition(value)` |\n| `awsAccessPolicyStatementEffect` | `AwsAccessPolicyStatementEffect` | `toEnum(AwsAccessPolicyStatementEffect, value)` |\n| `awsAccessPolicyStatementOperator` | `AwsAccessPolicyStatementOperator` | `toEnum(AwsAccessPolicyStatementOperator, value)` |\n\n## Microsoft Azure Types (@zerobias-org\u002Ftypes-microsoft-js)\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `azureVmSize` | `AzureVmSize` | `toEnum(AzureVmSize, value)` |\n| `azureResourceProvider` | `AzureResourceProvider` | `toEnum(AzureResourceProvider, value)` |\n| `azureResource` | `AzureResource` | `new AzureResource(value)` |\n| `azureResourceInfo` | `AzureResourceInfo` | `new AzureResourceInfo(value)` |\n| `azureResourceType` | `AzureResourceType` | `toEnum(AzureResourceType, value)` |\n| `azureResourcePlan` | `AzureResourcePlan` | `new AzureResourcePlan(value)` |\n| `azureResourceSku` | `AzureResourceSku` | `new AzureResourceSku(value)` |\n| `azureResourceSkuTier` | `AzureResourceSkuTier` | `toEnum(AzureResourceSkuTier, value)` |\n| `azureResourceIdentity` | `AzureResourceIdentity` | `new AzureResourceIdentity(value)` |\n| `azureResourceIdentityType` | `AzureResourceIdentityType` | `toEnum(AzureResourceIdentityType, value)` |\n\n## Google Cloud Types (@zerobias-org\u002Ftypes-google-js)\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `gcpAccessPolicy` | `GcpAccessPolicy` | `new GcpAccessPolicy(value)` |\n| `gcpAccessPolicyAuditConfig` | `GcpAccessPolicyAuditConfig` | `new GcpAccessPolicyAuditConfig(value)` |\n| `gcpAccessPolicyAuditLogConfig` | `GcpAccessPolicyAuditLogConfig` | `new GcpAccessPolicyAuditLogConfig(value)` |\n| `gcpAccessPolicyAuditLogConfigType` | `GcpAccessPolicyAuditLogConfigType` | `toEnum(GcpAccessPolicyAuditLogConfigType, value)` |\n| `gcpAccessPolicyBinding` | `GcpAccessPolicyBinding` | `new GcpAccessPolicyBinding(value)` |\n| `gcpAccessPolicyBindingCondition` | `GcpAccessPolicyBindingCondition` | `new GcpAccessPolicyBindingCondition(value)` |\n| `gcpAccessPolicyVersion` | `GcpAccessPolicyVersion` | `toEnum(GcpAccessPolicyVersion, value)` |\n\n## Core Types (@zerobias-org\u002Ftypes-core-js)\n\n### Binary\u002FEncoding\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `byte` | `Byte` | `new Byte(value)` |\n| `b64` | `Byte` | `new Byte(value)` |\n| `base64` | `Byte` | `new Byte(value)` |\n\n### Networking\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `cidr` | `Cidr` | `new Cidr(value)` |\n| `ipAddress` | `IpAddress` | `new IpAddress(value)` |\n| `ip` | `IpAddress` | `new IpAddress(value)` |\n| `ipv4` | `IpAddress` | `new IpAddress(value)` |\n| `ipv6` | `IpAddress` | `new IpAddress(value)` |\n| `mac` | `MacAddress` | `new MacAddress(value)` |\n| `macaddr` | `MacAddress` | `new MacAddress(value)` |\n| `macAddress` | `MacAddress` | `new MacAddress(value)` |\n| `hostname` | `Hostname` | `new Hostname(value)` |\n\n### Date\u002FTime\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `date-time` | `Date` | `new Date(value)` |\n| `time` | `Date` | `new Date(value)` |\n| `timestamp` | `Date` | `new Date(value)` |\n| `date` | `Date` | `new Date(value)` |\n| `duration` | `Duration` | `new Duration(value)` |\n\n### Numeric\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `double` | `number` | `Number(value)` |\n| `float` | `number` | `Number(value)` |\n| `int32` | `number` | `Number(value)` |\n| `int64` | `number` | `Number(value)` |\n| `integer` | `number` | `Number(value)` |\n\n### Communication\u002FIdentity\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `email` | `Email` | `new Email(value)` |\n| `phoneNumber` | `PhoneNumber` | `new PhoneNumber(value)` |\n| `phone` | `PhoneNumber` | `new PhoneNumber(value)` |\n| `url` | `URL` | `new URL(value)` |\n| `uri` | `URL` | `new URL(value)` |\n\n### Identifiers\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `uuid` | `UUID` | `new UUID(value)` |\n| `guid` | `UUID` | `new UUID(value)` |\n| `objectId` | `ObjectId` | `new ObjectId(value)` |\n\n### Security\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `password` | `string` | Direct string usage |\n| `secret` | `string` | Direct string usage |\n| `token` | `string` | Direct string usage |\n| `apiKey` | `string` | Direct string usage |\n\n### Geographic\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `latitude` | `Latitude` | `new Latitude(value)` |\n| `longitude` | `Longitude` | `new Longitude(value)` |\n| `geoPoint` | `GeoPoint` | `new GeoPoint(lat, lon)` |\n| `country` | `Country` | `toEnum(Country, value)` |\n| `countryCode` | `Country` | `toEnum(Country, value)` |\n| `language` | `Language` | `toEnum(Language, value)` |\n| `languageCode` | `Language` | `toEnum(Language, value)` |\n| `currency` | `Currency` | `toEnum(Currency, value)` |\n| `currencyCode` | `Currency` | `toEnum(Currency, value)` |\n\n### File\u002FMedia\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `mimeType` | `MimeType` | `toEnum(MimeType, value)` |\n| `fileExtension` | `FileExtension` | `toEnum(FileExtension, value)` |\n| `path` | `Path` | `new Path(value)` |\n| `filePath` | `Path` | `new Path(value)` |\n\n### Business\u002FDomain\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `ssn` | `Ssn` | `new Ssn(value)` |\n| `tin` | `Tin` | `new Tin(value)` |\n| `iban` | `Iban` | `new Iban(value)` |\n| `creditCard` | `CreditCard` | `new CreditCard(value)` |\n| `postalCode` | `PostalCode` | `new PostalCode(value)` |\n| `zipCode` | `PostalCode` | `new PostalCode(value)` |\n\n## Complete Type Mapping Reference Table\n\n### Consolidated Quick Reference\n\n| Format | Package | Type | Constructor Pattern |\n|--------|---------|------|-------------------|\n| `uuid` | @zerobias-org\u002Ftypes-core-js | UUID | `map(UUID, value)` |\n| `email` | @zerobias-org\u002Ftypes-core-js | Email | `map(Email, value)` |\n| `url` | @zerobias-org\u002Ftypes-core-js | URL | `map(URL, value)` |\n| `date-time` | Native | Date | `map(Date, value)` |\n| `ipAddress` | @zerobias-org\u002Ftypes-core-js | IpAddress | `map(IpAddress, value)` |\n| `phoneNumber` | @zerobias-org\u002Ftypes-core-js | PhoneNumber | `map(PhoneNumber, value)` |\n| `arn` | @zerobias-org\u002Ftypes-amazon-js | Arn | `map(Arn, value)` |\n| `cidr` | @zerobias-org\u002Ftypes-core-js | Cidr | `map(Cidr, value)` |\n| `duration` | @zerobias-org\u002Ftypes-core-js | Duration | `map(Duration, value)` |\n| `base64` | @zerobias-org\u002Ftypes-core-js | Byte | `map(Byte, value)` |\n\n## Usage Patterns by Task\n\n### Task 5: OpenAPI Specification\n```yaml\n# Use format field to specify type\nproperties:\n  id:\n    type: string\n    format: uuid  # → Will generate UUID type\n  email:\n    type: string\n    format: email  # → Will generate Email type\n  createdAt:\n    type: string\n    format: date-time  # → Will generate Date type\n```\n\n### Task 7: Implementation (Mappers)\n```typescript\nimport { map, toEnum } from '@zerobias-org\u002Futil-hub-module-utils';\nimport { UUID, Email, URL } from '@zerobias-org\u002Ftypes-core-js';  \u002F\u002F NEVER from Node.js!\n\nexport function toUserInfo(raw: any): UserInfo {\n  return {\n    id: map(UUID, raw.id),\n    email: map(Email, raw.email),\n    website: map(URL, raw.website_url),\n    createdAt: map(Date, raw.created_at),\n    status: toEnum(StatusEnum, raw.status)\n  };\n}\n```\n\n### Task 8 & 9: Testing\n```typescript\nimport { UUID, Email } from '@zerobias-org\u002Ftypes-core-js';\n\nit('should return user with correct types', () => {\n  const user = await getUser('123');\n\n  expect(user.id).to.be.instanceof(UUID);\n  expect(user.email).to.be.instanceof(Email);\n  expect(user.createdAt).to.be.instanceof(Date);\n});\n```\n\n## String Conversion Support\n\nAll custom types support string conversion:\n\n```typescript\nconst email = new Email('user@example.com');\n\n\u002F\u002F Direct toString()\nconst emailString = email.toString();  \u002F\u002F \"user@example.com\"\n\n\u002F\u002F Template literal (automatic conversion)\nconst message = `User email: ${email}`;  \u002F\u002F \"User email: user@example.com\"\n\n\u002F\u002F JSON serialization\nJSON.stringify({ email });  \u002F\u002F {\"email\":\"user@example.com\"}\n```\n\n## Package Import Requirements\n\n### Required Dependencies\n```json\n{\n  \"dependencies\": {\n    \"@zerobias-org\u002Ftypes-core-js\": \"*\",\n    \"@zerobias-org\u002Futil-hub-module-utils\": \"*\"\n  },\n  \"devDependencies\": {\n    \"@zerobias-org\u002Ftypes-amazon-js\": \"*\",  \u002F\u002F If using AWS\n    \"@zerobias-org\u002Ftypes-microsoft-js\": \"*\",  \u002F\u002F If using Azure\n    \"@zerobias-org\u002Ftypes-google-js\": \"*\"  \u002F\u002F If using GCP\n  }\n}\n```\n\n## Common Mistakes to Avoid\n\n### ❌ WRONG - Using Node.js built-ins\n```typescript\nimport { URL } from 'url';  \u002F\u002F WRONG!\nimport { URL } from 'node:url';  \u002F\u002F WRONG!\n```\n\n### ✅ CORRECT - Using core types\n```typescript\nimport { URL } from '@zerobias-org\u002Ftypes-core-js';  \u002F\u002F CORRECT!\n```\n\n### ❌ WRONG - Direct enum instantiation\n```typescript\nconst status = new StatusEnum('active');  \u002F\u002F WRONG - constructor is private!\n```\n\n### ✅ CORRECT - Using toEnum\n```typescript\nconst status = toEnum(StatusEnum, 'active');  \u002F\u002F CORRECT!\n```\n\n### ❌ WRONG - Manual type conversion\n```typescript\nconst uuid = raw.id as UUID;  \u002F\u002F WRONG - no validation!\n```\n\n### ✅ CORRECT - Using map function\n```typescript\nconst uuid = map(UUID, raw.id);  \u002F\u002F CORRECT - validates and converts!\n```\n\n## Priority Rules\n\n1. **Always use core types** over native JavaScript types when available\n2. **Import from correct package** - never from Node.js built-ins\n3. **Use map() for type conversion** - provides validation\n4. **Use toEnum() for enums** - never instantiate directly\n5. **All types support .toString()** - use for string conversion\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `email` | `Email` | `new Email(value)` |\n| `phoneNumber` | `PhoneNumber` | `new PhoneNumber(value)` |\n| `phone` | `PhoneNumber` | `new PhoneNumber(value)` |\n\n### Web\u002FProtocol\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `url` | `URL` | `new URL(value)` |\n| `uri` | `URL` | `new URL(value)` |\n| `uuid` | `UUID` | `new UUID(value)` |\n| `mimeType` | `MimeType` | `new MimeType(value)` |\n\n### Versioning\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `semver` | `Semver` | `new Semver(value)` |\n| `versionRange` | `VersionRange` | `new VersionRange(value)` |\n\n### Misc\n\n| String Format | TypeScript Type | Usage Example |\n|---------------|------------------|---------------|\n| `nmtoken` | `Nmtoken` | `new Nmtoken(value)` |\n| `password` | `string` | `String(value)` |\n\n## Usage Patterns\n\n### Task 5: OpenAPI Specification\n```yaml\nproperties:\n  email_address:\n    type: string\n    format: email  # Maps to Email type\n  website_url:\n    type: string\n    format: url    # Maps to URL type\n  user_id:\n    type: string\n    format: uuid   # Maps to UUID type\n```\n\n### Task 7: Data Transformation\n```typescript\nimport { Email, URL, UUID } from '@zerobias-org\u002Ftypes-core-js';\nimport { map } from '@zerobias-org\u002Futil-hub-module-utils';\n\nfunction mapUser(raw: any): User {\n  return {\n    id: map(UUID, raw.user_id),\n    email: map(Email, raw.email_address),\n    website: map(URL, raw.website_url)\n  };\n}\n```\n\n### Task 8 & 9: Test Assertions\n```typescript\nimport { Email, URL, UUID } from '@zerobias-org\u002Ftypes-core-js';\n\n\u002F\u002F Test assertions\nexpect(user.id).to.be.instanceof(UUID);\nexpect(user.email).to.be.instanceof(Email);\nexpect(user.website).to.be.instanceof(URL);\n```\n\n### String Conversion Examples\n```typescript\n\u002F\u002F All types support toString() and template literals\nconst email = new Email('user@example.com');\nconst emailString = email.toString();\nconst message = `User email: ${email}`;\n\nconst uuid = new UUID('123e4567-e89b-12d3-a456-426614174000');\nconst uuidString = uuid.toString();\nconst log = `Processing user ${uuid}`;\n```\n\n## Package Import Requirements\n\n**🚨 CRITICAL**: Always import from the specified packages:\n\n```typescript\n\u002F\u002F Core types - ALWAYS import from @zerobias-org\u002Ftypes-core-js\nimport { URL, UUID, Email, IpAddress } from '@zerobias-org\u002Ftypes-core-js';\n\n\u002F\u002F AWS types\nimport { Arn, AwsService } from '@zerobias-org\u002Ftypes-amazon-js';\n\n\u002F\u002F Azure types  \nimport { AzureVmSize, AzureResource } from '@zerobias-org\u002Ftypes-microsoft-js';\n\n\u002F\u002F Google Cloud types\nimport { GcpAccessPolicy } from '@zerobias-org\u002Ftypes-google-js';\n\n\u002F\u002F NEVER import URL from Node.js built-ins\n\u002F\u002F ❌ import { URL } from 'url';  \u002F\u002F WRONG\n\u002F\u002F ✅ import { URL } from '@zerobias-org\u002Ftypes-core-js';  \u002F\u002F CORRECT\n```\n\n## Validation and Error Handling\n\nAll typed values can be validated and will throw appropriate errors for invalid formats:\n\n```typescript\ntry {\n  const email = new Email('invalid-email');  \u002F\u002F Throws validation error\n} catch (error) {\n  \u002F\u002F Handle validation error\n}\n\n\u002F\u002F Safe validation with try-catch in mappers\nfunction safeMapEmail(raw: string): Email | null {\n  try {\n    return new Email(raw);\n  } catch {\n    return null;  \u002F\u002F Or handle as appropriate for your use case\n  }\n}\n```",{"name":5,"description":7},"main","160b30f0b67c923077f886376fdfae1016a70702","experiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-025",2,"https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router","https:\u002F\u002Flegendtkl.github.io\u002Fagentic-skill-router\u002F","https:\u002F\u002Fgithub.com\u002Flegendtkl","http:\u002F\u002Fwww.legendtkl.com","No secret before debugging.\r\n","2026-06-04 14:02:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add legendtkl\u002Fagentic-skill-router --skill skill-025",{"tool":39,"command":40},"bunx","bunx skills add legendtkl\u002Fagentic-skill-router --skill skill-025",{"tool":42,"command":43},"pnpm","pnpm dlx skills add legendtkl\u002Fagentic-skill-router --skill skill-025","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-025\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7384EP28XVSR2R0YGRS0GK9","foo","A test skill named foo","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7384DECF306RRRC16PZJTQ5","bar","飞书 — bar with quoted Chinese","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbar\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M738491441AQ85E7GD7VVDTA","agentic-skill-router","First use any clearly matching enabled local\u002Fuser Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fskills\u002Fagentic-skill-router\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M738475HF7SXTP4HCPZJVZ8E","syn-video-trim","Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-trim\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M73845F4RD2AA6YHS1E3VQRB","syn-video-transcode","Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-transcode\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M73842YN17QSJETPZX6Z9DAG","syn-video-thumbnail","Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-thumbnail\u002FSKILL.md",[],[]]