Instructor release

From cognesy/instructor-php · View interactive version

Instructor release is an AI agent skill from the GitHub repository cognesy/instructor-php. Prepare and execute a new InstructorPHP version release. Use when asked to cut a release, prepare release notes, run release QA, create a release epic and tasks in bd, verify changed packages since the last tag, run curated live examples, publish via scripts/release/publish-ver.sh, or prepare the la

How to use this skill

Skill file

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:

Read these references as needed:

When To Use

Use this skill when the user asks to:

Release Rules

Default Workflow

  1. Determine the target version and latest tag.
  2. Create the bd epic and child tasks from references/bd-release-template.md.
  3. Inventory changed packages since the last tag, focusing on packages/*/src.
  4. Run preflight from references/preflight-checks.md.
  5. Run curated live examples from references/examples-policy.md.
  6. Produce per-package change summaries from diffs.
  7. Consolidate those summaries into a release draft.
  8. Write docs/release-notes/vX.Y.Z.mdx using references/release-notes-template.mdx.
  9. Run composer qa:docs-sites -- --release X.Y.Z; never stage generated builds/ output.
  10. Ask for explicit approval before scripts/release/publish-ver.sh.
  11. After publish, verify both docs provenance endpoints, the GitHub release, and split workflow kickoff.
  12. 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.

  1. Create or reuse a scoped release epic.
  2. Create child tasks by lane:
  1. Claim tasks before work: bd update <id> --claim --json.
  2. Record exact commands, failures, retries, and blockers in task notes.
  3. Create discovered-from follow-up tasks for unrelated debt or tooling defects.
  4. Close tasks only when the gate is green or the blocker is explicitly tracked and waived.

Preflight Policy

Default release gates:

Add targeted non-dryrun act cells when:

Example Policy

Use the deterministic example-selection rules in references/examples-policy.md.

Key rules:

Package Change Summaries

Summaries must be package-aware and diff-based.

Release Notes

Write the public note to docs/release-notes/vX.Y.Z.mdx.

Requirements:

Use references/release-notes-template.mdx as the starting shape.

Publish And Communication Gates

Before publish:

After publish:

For announcement work:

current conversation

Reporting Standard

The final release summary must include:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.