context-package-builder
Build a minimal context package for one already-bounded, real subagent handoff.
Files2
View on GitHubSKILL.mdskills/context-package-builder/SKILL.md
GitHubPurpose
Produce one minimal context package for one bounded handoff.
This skill does not choose the next role and does not route after a result.
Trigger / When to use
Use this skill when:
- one bounded task slice already exists
- the Observer has already determined that dispatch is allowed or is checking whether dispatch can be made real
- a task-specific handoff package must be assembled for one role
Do not use this skill when:
- the task is to decide which role should receive the handoff
- the task is to choose the next route after a verdict
- the task needs a whole conversation dump or multi-task bundle
Inputs
- one bounded task slice
- the target role name
- frozen source-of-truth artifact paths
- exact write-set constraints, if any
- bounded evidence excerpts needed for the task
- optional topic-local step artifact path when workflow-derived state is needed
Process
- Keep the package scoped to one task slice and one target role.
- Include only the frozen truth, constraints, and evidence the target role needs to act.
- If workflow-derived state is needed, include only the relevant
plan/<topic>/<topic>.step.mdfact and do not reconstruct the full workflow. - Exclude all forbidden context categories:
- whole conversation history
- unrelated prior decisions
- speculative reasoning
- multiple independent tasks
- unresolved roadmap material
- unnecessary platform-specific assumptions
- role-to-file lookup hints
- registry identifiers
- Make unknowns explicit instead of filling gaps with inference.
- If real dispatch is not available, or if creating the package would require workflow binding or runtime semantics, stop and produce no context package.
- Return one minimal package that can be inserted into an explicit handoff payload only when that handoff is real and bounded.
Examples
- Positive: Build a package for
Implementerthat includes the bounded write set, frozen requirements/spec/plan paths, and one relevant step-artifact fact. - Negative: Attach the whole chat transcript, old topic history, registry hints, and speculative route guesses "for safety."
Outputs
target_role: one allowed role nametask_slice: one bounded task statementfrozen_inputs: exact artifact pathsconstraints: bounded rules and stop conditionsevidence: only the excerpts needed for this handoffunknowns: explicit unresolved items
Boundaries
- Do not decide the next role.
- Do not choose the next route after a result.
- Do not include unrelated or speculative context.
- Do not include registry keys, catalog entries, or role-to-file hints.
- Do not treat
.github/**,.codex/**, or other platform paths as canonical truth. - Stop without producing a context package if real dispatch is unavailable or if runtime semantics would be required to make the handoff meaningful.
Local references
examples.md: minimal-package examples and forbidden-context counterexamples