Helpers for loading and formatting skill invocations.
Return the directory containing skills bundled with dcode.
Return the project-level tool-agnostic .agents/skills directory.
Return the project's experimental .claude/skills directory.
Return the project-level dcode skills directory, when in a project.
Return the launch user's tool-agnostic ~/.agents/skills directory.
Return the launch user's experimental ~/.claude/skills directory.
Return the user-level skills directory for an agent profile.
Discover skills and build pre-resolved containment roots.
Return configured extra and user-approved skill roots.
Return the instructions the SDK pins for skill.
The SDK skips a skill it cannot pin. The agent server raises instead, so a skill the user invoked never runs silently without its instructions.
Build the user request and persisted metadata for SDK skill pinning.
The agent server resolves, trust-checks, and reads the skill, so only the name the user typed is sent.
Return the skill a pinned-skill message carries.
Structured prompt and checkpoint metadata for a skill invocation.