{"record":{"id":"89a843cf610c2d4b","repo":"Yeachan-Heo/oh-my-codex","slug":"catalog-manifest-invalid-skills-index-status","errorCode":null,"errorMessage":"catalog_manifest_invalid:skills[${index}].status","messagePattern":"catalog_manifest_invalid:skills\\[(.+?)\\]\\.status","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/catalog/schema.ts","lineNumber":66,"sourceCode":"  }\n\n  assertNonEmptyString(input.catalogVersion, 'catalogVersion');\n\n  if (!Array.isArray(input.skills)) throw new Error('catalog_manifest_invalid:skills');\n  if (!Array.isArray(input.agents)) throw new Error('catalog_manifest_invalid:agents');\n\n  const seenSkills = new Set<string>();\n  const skills: CatalogSkillEntry[] = input.skills.map((entry, index) => {\n    if (!isObject(entry)) throw new Error(`catalog_manifest_invalid:skills[${index}]`);\n    assertNonEmptyString(entry.name, `skills[${index}].name`);\n    assertNonEmptyString(entry.category, `skills[${index}].category`);\n    assertNonEmptyString(entry.status, `skills[${index}].status`);\n\n    if (!SKILL_CATEGORIES.has(entry.category as CatalogSkillCategory)) {\n      throw new Error(`catalog_manifest_invalid:skills[${index}].category`);\n    }\n    if (!ENTRY_STATUSES.has(entry.status as CatalogEntryStatus)) {\n      throw new Error(`catalog_manifest_invalid:skills[${index}].status`);\n    }\n\n    const name = entry.name.trim();\n    if (seenSkills.has(name)) throw new Error(`catalog_manifest_invalid:duplicate_skill:${name}`);\n    seenSkills.add(name);\n\n    const canonical = typeof entry.canonical === 'string' && entry.canonical.trim() !== ''\n      ? entry.canonical.trim()\n      : undefined;\n\n    if ((entry.status === 'alias' || entry.status === 'merged') && !canonical) {\n      throw new Error(`catalog_manifest_invalid:skills[${index}].canonical`);\n    }\n\n    return {\n      name,\n      category: entry.category as CatalogSkillCategory,\n      status: entry.status as CatalogEntryStatus,","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/Yeachan-Heo/oh-my-codex/blob/3ad79a8a6fe6e95fdbb8c00e40716fffe4011ce2/src/catalog/schema.ts#L48-L84","documentation":"skills[i].status must be one of active|alias|merged|deprecated|internal. This error fires when the status string is valid-looking but not in that set. Statuses drive filtering and alias resolution, so unknown values are rejected.","triggerScenarios":"A skill entry with status like \"available\", \"disabled\", or \"Active\" (case-sensitive check).","commonSituations":"Renamed statuses across schema versions, or hand-authored manifests using intuitive-but-wrong status words.","solutions":["Set status to one of active, alias, merged, deprecated, internal","If using alias/merged, also provide the canonical field","Regenerate the manifest to match the installed validator"],"exampleFix":"// before\n{ \"name\": \"x\", \"category\": \"execution\", \"status\": \"available\" }\n\n// after\n{ \"name\": \"x\", \"category\": \"execution\", \"status\": \"active\" }","handlingStrategy":"validation","validationCode":"const STATUSES = new Set(['active','alias','merged','deprecated','internal']);\nif (!raw.skills.every((s: any) => STATUSES.has(s?.status))) { /* fix statuses */ }","typeGuard":"function isEntryStatus(v: unknown): v is 'active'|'alias'|'merged'|'deprecated'|'internal' {\n  return typeof v === 'string' && ['active','alias','merged','deprecated','internal'].includes(v);\n}","tryCatchPattern":null,"preventionTips":["Restrict status values to the documented vocabulary","Add canonical when marking entries alias/merged"],"tags":["catalog","manifest","enum","validation","skills"],"backgroundTag":"invalid-enum-value","analyzedSha":"3ad79a8a6fe6e95fdbb8c00e40716fffe4011ce2","analyzedAt":"2026-08-27T22:18:39.783Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}