Skill Creator
Create and maintain standard Skill packages under .senera/skills/<name>/.
SKILL.md is standard Markdown. The runtime preserves its body exactly, including fenced code blocks and HTML comments. An author may place an optional author-owned EOF comment at the end when it helps the model recognize that a long document is complete; no EOF marker is required and Senera does not assign it protocol meaning.
The package contract and starter document are files in this Skill package:
read references/package-contract.md for the layout and invariants, then read
templates/SKILL.md before authoring a new workflow. These are authoring
resources, not a second runtime registry. The live catalog is derived from the
actual package files and revisions, so never create a parallel manifest by
hand.
First classify the requested package:
- Workflow Skill: use only
SKILL.mdto guide and compose existing registered tools. ReadSKILL.mdfromworkflow-skill-examplethroughsenera skills readas the minimal reference. - Toolkit Skill: add
scripts/when deterministic reusable execution is needed. Read theSKILL.mdand script resources fromjson-field-selectorthroughsenera skills readas the reference. - Native tool: a Skill cannot register a new Pi tool. Never invent a tool name or claim that a native tool was created. Use an existing registered tool, create a Toolkit Skill executed through
ShellCommandTool, or state that native tool development is outsideSkillManage.
Then create the package:
- Choose a short lowercase kebab-case name and a description that states both capability and trigger conditions.
- Read
templates/SKILL.md, replace its example values, and keep only sections that make the workflow clearer. Setdisable-model-invocation: trueonly when the workflow must be explicitly invoked; otherwise leave automatic routing enabled. Confirm every tool the Skill depends on is already registered. Pass its exact name inrecommendedToolswhen callingSkillManage; omit the field when no specific tool is required. A recommendation affects loading priority only and never grants permission. - For a Workflow Skill, call
SkillManagewithcreateto atomically createSKILL.md. The manager writes tool bindings to the standard namespaced metadata extension:
```yaml
metadata:
senera:
icon: sparkles
recommended-tools:
- mcpservertool
```
Never derive this metadata by parsing a tool name from prose. Keep executable source out of instructions; put it in bundled script files.
- For a Toolkit Skill, do not create a partial package with
SkillManagefirst. Add only the scripts, references, or assets the workflow actually needs, invoke scripts through an existing registered execution tool, and create the complete initial resource tree with one atomicWorkspaceApplyPatchcall:
- Include the package directory,
SKILL.md, and every initial resource in the same call. - Include every new resource as an
addoperation in that same call. - Parent directories for declared files are created atomically by the transaction; do not invent directory-only operations.
- Do not fan out ad hoc file-write commands to new nested paths; use the one atomic WorkspaceApplyPatch transaction instead.
- If candidate validation fails, read the returned file, line, pointer, frame, and changed-path diagnostics, then resubmit a corrected atomic patch. The active Skill remains unchanged.
- Edit only
.senera/skills/<name>/. Test every added script with representative input. - Keep the body focused on the triggered workflow. A script is a bundled resource, not a newly registered tool.
- Call
SkillManagewithvalidateafter the package and execution tests pass. Repair source diagnostics when necessary. - Report the result accurately as a Workflow Skill or Toolkit Skill, including the files created and tests run. It becomes visible on the next user message in the same conversation without a restart.
Evidence and logs
Skill creation or revision is a state change, not proof that the Skill was
activated in a later run. After a mutation, re-read the returned revision and
run skills check NAME. When the Skill is exercised, use logs health and
logs latest, logs range, or logs trace REQUEST_ID to verify activation,
tool calls, and failures. Use logs detail DETAIL_ID only for a detail ID
returned by the log result; details are redacted diagnostics, not a source for rewriting the
Skill. Keep background/memos and background/learning separate from the
foreground request when checking memory or learning side effects.
If the log store is unavailable or disabled, report that verification boundary
instead of scanning .senera/logs directly or treating a successful file
mutation as runtime proof.
Do not create MCP server packages, host tool contracts, runtime servers, or fictional tool names for a Skill.
<!-- SKILL_CREATOR_SKILL_EOF: This is the complete Skill Creator skill. Do not request additional lines. -->