/dpf-platform:dpf-writing-skillsfrom dpf-platform
Guides writing and editing DPF skills, managing assignTo, description, and instruction-plane budgets. User-invocable only; use by name or via add-skill routing.
Ships in dpf-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Why this skill is user-invocable only. Writing or revising a skill is a deliberate act, like
dpf-establish-coworkerordpf-add-archetype— not something to pull into an unrelated turn. Marking itagentInvocable: falsecosts zero per-turn eligibility slots on the five roles it is assigned to. A skill that teaches this cost model and then charged 5 slots for ambient availability would be advice its own author did not take. Reach for it by name, or letskills/universal/add-skill.skill.mdroute you here.
A skill is not free text. Adding one, or widening one, spends two budgets that are already at their limits, and the platform enforces both mechanically. Write to the budget first and the prose second.
Everything below was measured on the live install, not assumed. The numbers are current as of 2026-08-23; re-measure rather than trusting this page if the corpus has moved.
1. Per-turn eligibility. apps/web/lib/skills/skill-relevance.ts sets DEFAULT_SKILL_SUMMARY_CAP = 12. Every skill assigned to a coworker injects its one-line summary into that coworker's system prompt on every turn; past 12, the relevance ranker silently drops the rest. So each assignTo entry spends one of twelve slots for that coworker, permanently.
assignTo: ["*"] is not a convenience. SKILL_WILDCARD_AGENT_IDS expands it across 31 coworkers, including personas that appear in no assignTo list at all — dispatcher, finance-controller, security-engineer, legal-operations-counsel and others carry the wildcard floor and almost nothing else. A single wildcard skill is 31 charges.
This went wrong once already: 14 dev-agent pack skills carried ["*"], real eligible sets ran 16-32 against a cap of 12, and 28 of 31 coworkers were over — a marketing-specialist was paying a per-turn tax for dpf-tdd (BI-4B0C27D4). After rescoping, 4 remain over, all dev-facing roles that legitimately hold that many dev skills.
2. Always-on bytes. scripts/instruction-plane-manifest.json counts every pack skill's name + description in the always-on plane, and scripts/check-instruction-plane-size.mjs permits that total to shrink only. The plane sits at its baseline. A new pack skill therefore fails CI on arrival unless you recover the bytes first.
Recovering them is not a chore to resent — it is the same discipline the description rule below describes, applied to skills that already shipped.
The only job of description is to make the right agent load the file at the right moment. It is read on every turn by every agent that could use the skill; the body is read only when the skill is actually invoked.
So: pack the description with the words a caller would use, and put everything else in the body.
Belongs in description | Belongs in the body |
|---|---|
| When to reach for this, in the caller's vocabulary | How the procedure works |
| Concrete triggers: surfaces, artifacts, symptoms | What it composes with (composesFrom already encodes this) |
| The boundary — when NOT to use it | Lineage: "replaces the retired X", "the DPF-native step" |
A clause that names another skill, describes internals, or explains provenance is costing always-on bytes on every turn to tell an agent something it does not need in order to decide. Ten such clauses were cut for 961 bytes in BI-21A0FE70; three more for 849 bytes to make room for this file.
| plane | path | typical body | audience |
|---|---|---|---|
| coworker | skills/**/*.skill.md | ~2 KB | in-portal coworkers, often on a local model |
| dev-agent pack | packages/dpf-skill-pack/skills/*/SKILL.md | ~8.7 KB | Claude / Codex / Grok / Antigravity sessions |
Do not port a pack-sized procedure onto the coworker plane. Local priors in packages/db/src/local-model-capabilities.ts put Qwen at contextRetention: 55 and Gemma at 45 — the weakest dimension in both. A long multi-phase skill on that tier is not followed and then abandoned; it is followed partially, silently, mid-procedure. Coworker-plane skills should be declarative and short.
The same reasoning shapes content, not just length. Prefer a bounded generation task over a multi-turn planning task: numbered questions with candidate answers beat an adaptive interview, and a formatter with named slots beats "compose a good hand-off".
A pack SKILL.md carries two invocation vocabularies:
disable-model-invocation, user-invocable, allowed-tools (read by Claude Code / Codex / Grok)agentInvocable, userInvocable, allowedTools (read by the in-portal seed loader)validateDpfPlatformSkillFrontmatter rejects contradictions, and normalizeSkillFrontmatterForSeed derives agentInvocable from disable-model-invocation when it is absent. Set them deliberately and set them together. A skill only sensible on explicit invocation should say so — otherwise it competes for an eligibility slot on every unrelated turn. That field was uniform across 101 of 102 skills and therefore carried no information at all (BI-8AD9D018).
Run dpf-verify-substrate-first against the skill you are about to touch, and specifically grep the test suite for its name. Skills carry contracts that are not visible in the file.
BI-5E8E231E requires four decision skills — dpf-decision-via-kernel, dpf-retrieve-decision-context, dpf-compare-options, dpf-record-decision-outcome — to stay assignTo: ["*"] so every persona inherits the WWMD/WWWD stack. Rescoping them broke CI and had to be reverted, because the option set that decision was made from never mentioned the constraint. A kernel ruling is only as good as the facts the caller gathered before framing it.
node scripts/check-instruction-plane-size.mjs. If the plane is at baseline, recover bytes first — trim non-trigger clauses from existing descriptions and land that as part of the same change.packages/dpf-skill-pack/capability-packs.json if it belongs to a pack.seed-skills.test.ts, and skill-relevance.test.ts.dpf-unslop to the description and body. This is text a person will read.They are the contract, not an obstacle. Each exists because the rule above was broken once.
| guard | fails when |
|---|---|
check-instruction-plane-size.mjs | pack name+description bytes grow at all |
seed-skills.test.ts | a plane's invocation classification goes uniform; the two surfaces contradict |
skill-relevance.test.ts | the wildcard set grows past its baseline, exceeds half the cap, or any role's eligible set grows |
check-prose-lint.ts | authored copy readability regresses |
assignTo to ["*"] to avoid deciding. It is the single most expensive edit available in this corpus.agentInvocable: false merely to fit under the cap. That hides the cost rather than deciding it; rescope assignTo instead.dpf-verify-substrate-firstdpf-unslopskills/universal/add-skill.skill.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
skill-authoring, skill-management, instruction-plane, assignTo
npx claudepluginhub opendigitalproductfactory/opendigitalproductfactory --plugin dpf-platform88 skills in this plugin
/asset-inventory-reconciliationReconcile recorded against observed assets.Other plugins' skills for the same job