{"record":{"id":"a84e043b262f83af","repo":"zylon-ai/private-gpt","slug":"skill-with-id-skill-id-not-found-in-collection","errorCode":null,"errorMessage":"Skill with id {skill_id} not found in collection {collection}","messagePattern":"Skill with id (.+?) not found in collection (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"private_gpt/server/skills/skill_router.py","lineNumber":360,"sourceCode":"    },\n)\nasync def get_skill(\n    request: Request,\n    skill_id: str,\n    collection: str = Query(\n        ...,\n        min_length=1,\n        max_length=255,\n        examples=[\"acme-prod\"],\n    ),\n    anthropic_beta: Annotated[list[str] | None, Header(alias=\"anthropic-beta\")] = None,\n) -> SkillResponse:\n    \"\"\"Get a skill by id and collection boundary.\"\"\"\n    del anthropic_beta\n    service: SkillService = request.state.injector.get(SkillService)\n    skill = await service.get_skill(skill_id=skill_id, collection=collection)\n    if not skill:\n        raise HTTPException(\n            status_code=404,\n            detail=f\"Skill with id {skill_id} not found in collection {collection}\",\n        )\n    return _skill_response(skill)\n\n\n@skill_router.delete(\n    \"/{skill_id}\",\n    response_model=SkillDeletedResponse,\n    description=\"Delete a non-readonly skill from a collection.\",\n    responses={\n        200: {\n            \"description\": \"Skill deleted.\",\n            \"content\": {\n                \"application/json\": {\n                    \"examples\": {\n                        \"deleted_skill\": {\n                            \"summary\": \"Deletion marker\",","sourceCodeStart":342,"sourceCodeEnd":378,"githubUrl":"https://github.com/zylon-ai/private-gpt/blob/4a030776a31a901ad80b1bf4d7faa2c1a367efbb/private_gpt/server/skills/skill_router.py#L342-L378","documentation":"Error \"Skill with id {skill_id} not found in collection {collection}\" thrown in zylon-ai/private-gpt.","triggerScenarios":"Raised when looking up a skill by id in a collection that does not contain it.","commonSituations":"Requesting a skill with a wrong id or wrong collection name, or the skill was deleted; list the collection's skills to obtain valid ids.","solutions":["Verify the skill_id and collection by listing skills in the target collection first.","Check that the skill has not been deleted and that the collection name is correct.","Use the skills list endpoint for the collection to obtain the correct skill id."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4a030776a31a901ad80b1bf4d7faa2c1a367efbb","analyzedAt":"2026-08-15T03:51:26.951Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}