Edit Skill File
Write one of a skill's own asset files (scripts/references) directly — the answer to "4 files but I can only edit SKILL.md". Asset files are opt-gated, so the edit commits straight away (no proof gate, unlike edit-body), bumps the version, and re-syncs tools. SKILL.md/evals refused. By id; cross-space.
Path Parameters
skill_id*Skill Id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/skills/string/edit-file" \ -H "Content-Type: application/json" \ -d '{ "path": "string", "content": "string" }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}