{"record":{"id":"e10767156364a92e","repo":"vercel/ai","slug":"duplicate-acp-skill-file-path-json-stringify-fil","errorCode":null,"errorMessage":"Duplicate ACP skill file path ${JSON.stringify(file.path)} for skill ${JSON.stringify(skill.name)}.","messagePattern":"Duplicate ACP skill file path (.+?) for skill (.+?)\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/harness-acp/src/v1/acp-v1-skills.ts","lineNumber":135,"sourceCode":"      );\n    }\n    skillNames.add(skill.name);\n\n    const filePaths = new Set<string>();\n    for (const file of skill.files ?? []) {\n      const normalizedPath = validateACPAttachedFilePath({\n        skillName: skill.name,\n        filePath: file.path,\n      });\n      if (normalizedPath === 'SKILL.md') {\n        throw new Error(\n          `Invalid ACP skill file path ${JSON.stringify(file.path)} for skill ${JSON.stringify(\n            skill.name,\n          )}: SKILL.md is reserved for the skill definition.`,\n        );\n      }\n      if (filePaths.has(normalizedPath)) {\n        throw new Error(\n          `Duplicate ACP skill file path ${JSON.stringify(file.path)} for skill ${JSON.stringify(\n            skill.name,\n          )}.`,\n        );\n      }\n      filePaths.add(normalizedPath);\n    }\n  }\n}\n\nfunction validateACPAttachedFilePath({\n  skillName,\n  filePath,\n}: {\n  skillName: string;\n  filePath: string;\n}): string {\n  const containsTraversal = filePath","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/harness-acp/src/v1/acp-v1-skills.ts#L117-L153","documentation":"Error \"Duplicate ACP skill file path ${JSON.stringify(file.path)} for skill ${JSON.stringify(skill.name)}.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/harness-acp/src/v1/acp-v1-skills.ts:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}