Writing skills
Status: available through the API; the editor on the Skills page is planned (Skills Engine).
A good skill reads like advice from an experienced colleague: what to check, in what order, what counts as proof, and when to stop.
Principles
- Method, not exploitation. Describe how to confirm, measure, document and report. Do not include exploit chains, payload collections or automation that attacks systems; Phantom's tools do the testing, under scope and permissions.
- Evidence first. Every claim the skill leads to should point at evidence in the vault: a request, a comparison, a note.
- Small core, deep sections. Put the checklist and the essential rules in the core; move detail into sections that load only when needed.
- Name Phantom capabilities, not tools of a specific agent. Write "diff the two responses in the Comparer", not the name of a function in some model provider.
- Explain rules, never weaken them. A skill can explain why scope matters; it must not tell an agent to skip approvals, widen scope or reveal secrets. Such text is flagged on import.
- Be honest about limits. Say what the method cannot prove.
Checklists
Use checks for decisions that change the outcome. Phrase each one as a yes or no question about evidence ("Does the response body differ, not only the status code?"). Results are stored on the object, so keep the ids stable across versions.
Versions
Change the patch number for wording, the minor number for new checks or sections, the major number when a check changes meaning. Older results keep the version they were made with.
Using someone else's work
If you adapt material written by others, record its author, source, license and what you changed in provenance. Keep the original license when it requires that, and make sure it allows the way you share the skill.
Checking your skill
Phantom validates on every save: front matter, limits, references, dependencies and flagged instructions. POST /api/v1/skills/validate shows the same report without saving, compared with the current version when the id exists. Try the skill on a test vault with an agent and look at which sections it loaded (GET /api/v1/vaults/{id}/skills/usage).
Starting from a built-in skill
Built-in skills are read-only. Copy one into your library or a vault (POST /api/v1/skills/{id}/copy); the copy keeps its author, license and attribution, records where it came from, and shadows the built-in skill with the same id until you delete it.