Instructor Release
This skill is the repo-local release orchestrator for InstructorPHP. A release is never a loose checklist. It is always a deterministic bd workflow with explicit gates, tracked blockers, and a final approval step before publish.
Treat these files as source of truth:
AGENTS.mdfor repo rules,bd, and git ownership constraintsCONTRIBUTING.mdfor release and package-management workflowQUALITY.mdfor verification lanesscripts/release/publish-ver.shfor the actual publish pathscripts/packages/sync-ver.shfor version synchronization.github/workflows/docs.ymlfor validated Mintlify and GitHub Pages deployment.github/workflows/php.ymlfor compatibility matrix coverage.github/workflows/split.ymlfor post-tag split package publishingdocs/release-notes/*.mdxfor public release-note shape
Read these references as needed:
references/bd-release-template.mdreferences/preflight-checks.mdreferences/examples-policy.mdreferences/release-notes-template.mdxreferences/post-release.md
When To Use
Use this skill when the user asks to:
- create or ship a new version release
- prepare release notes or package-change summaries
- run release-candidate QA or production-readiness checks
- decide which tests, examples, docs checks, and CI reproductions are required before publish
- publish with
scripts/release/publish-ver.sh - prepare or post the release announcement
Release Rules
- A release always gets a
bdepic and child tasks. - Root quality gates must be green before publish unless the user explicitly accepts a waiver.
- Split-package verification must be green before publish unless the user explicitly accepts a waiver.
- Live examples are expensive. Run the curated live smoke set once per release cycle, then retry only failed examples after fixes.
- Do not publish, tag, push, or post to X without explicit approval in the current conversation.
- Do not hide failing checks. Record them in
bdnotes and block the release until resolved or explicitly waived.
Default Workflow
- Determine the target version and latest tag.
- Create the
bdepic and child tasks fromreferences/bd-release-template.md. - Inventory changed packages since the last tag, focusing on
packages/*/src. - Run preflight from
references/preflight-checks.md. - Run curated live examples from
references/examples-policy.md. - Produce per-package change summaries from diffs.
- Consolidate those summaries into a release draft.
- Write
docs/release-notes/vX.Y.Z.mdxusingreferences/release-notes-template.mdx. - Run
composer qa:docs-sites -- --release X.Y.Z; never stage generatedbuilds/output. - Ask for explicit approval before
scripts/release/publish-ver.sh. - After publish, verify both docs provenance endpoints, the GitHub release, and split workflow kickoff.
- Draft the announcement from
references/post-release.md; post externally only
after explicit approval.
Deterministic `bd` Execution
A release is always multi-step. Use bd, not ad hoc notes.
- Create or reuse a scoped release epic.
- Create child tasks by lane:
- scope and changed-package inventory
- root preflight
- split-package verification
- live example verification
- package change summaries
- docs/API drift audit
- release notes draft
- publish gate
- post-release communication
- Claim tasks before work:
bd update <id> --claim --json. - Record exact commands, failures, retries, and blockers in task notes.
- Create
discovered-fromfollow-up tasks for unrelated debt or tooling defects. - Close tasks only when the gate is green or the blocker is explicitly tracked and waived.
Preflight Policy
Default release gates:
composer validate --strictcomposer test-allcomposer qa./scripts/test/run-all-tests.shcomposer qa:docscomposer qa:docs-sites -- --release X.Y.Zcomposer docs drift --tier=publicact pull_request -W .github/workflows/php.yml -j build --dryrun
Add targeted non-dryrun act cells when:
- dependency constraints changed
- workflow behavior changed
- compatibility surfaces changed
- the current release includes install-time or matrix-sensitive fixes
Example Policy
Use the deterministic example-selection rules in references/examples-policy.md.
Key rules:
- do not run the entire example corpus by default
- run the curated live smoke set once per release cycle
- add conditional live examples only for changed surfaces
- retry only the failed examples after fixes
- use non-live examples as supplementary verification, not as a substitute for live smoke coverage
Package Change Summaries
Summaries must be package-aware and diff-based.
- identify changed packages from
packages/*/srcsince the last tag - inspect package diffs directly; do not rely solely on generated scripts that require external CLIs
- focus on developer-facing changes, public API shifts, fixes, behavior changes, and upgrade impact
- keep one summary per changed package, then consolidate into the release draft
Release Notes
Write the public note to docs/release-notes/vX.Y.Z.mdx.
Requirements:
- match the existing repo release-note style
- include user-visible highlights, upgrade notes, and breaking changes if any
- reflect the package summaries, not just a raw changelog
- call out docs, compatibility, telemetry, runtime, agent, or provider changes only when they matter to users
Use references/release-notes-template.mdx as the starting shape.
Publish And Communication Gates
Before publish:
- summarize the exact green gates
- summarize any waived or unresolved risk
- ask for explicit approval to run
scripts/release/publish-ver.sh <version>
After publish:
- verify the main GitHub release exists
- verify both public documentation sites expose the release and final source SHA
- verify the split workflow started
- prepare announcement material
For announcement work:
- use
references/post-release.mdto draft the short release announcement - post externally only if the user explicitly asks and approves it in the
current conversation
Reporting Standard
The final release summary must include:
- target version and base tag
- changed packages
- commands actually run
- pass/fail status by release gate
- live examples run and retried
- blockers, waivers, and follow-up
bdtasks - release-note file path
- whether publish happened
- whether announcement drafting/posting happened