---
name: ceratops-skill-lifecycle
description: Route Ceratops or compatible skill lifecycle work to action references for create, update, skills-consistency-and-contract-review, fast-change, change-promotion, and ship-to-remote work. Use when Codex should create a skill, update skill source or shared governance surfaces, audit skill consistency, maintain skill-design contracts, apply an explicit fast release-branch change, promote committed skill changes into a local release/runtime preview, or ship a staged skills batch through GitHub.
---

# Ceratops Skill Lifecycle

## Goal

Route skill lifecycle work to the narrowest action reference, then follow that
reference as the execution contract. Keep one live skill lifecycle capability
surface for creation, mutation, local promotion, and remote shipping.

## Context

### Action References

- Create a new skill: `references/create.md`
- Update an existing skill or shared maintenance surface: `references/update.md`
- Audit skill consistency or review skill-design contracts:
  `references/skills-consistency-and-contract-review.md`
- Apply an explicit fast release-branch change: `references/fast-change.md`
- Promote committed skill changes into a local release branch and runtime
  preview: `references/change-promotion.md`
- Ship a staged skills repo branch through GitHub and rebuild runtime from main:
  `references/ship-to-remote.md`

### Inputs To Capture

- Target skill, repo, branch, release branch, installed runtime expectation,
  action intent, and any explicitly requested staging or shipping step.
- Which repo-owned surfaces are in scope: source skill folders,
  `agents/openai.yaml`, `templates/`, runtime payload declarations, validators,
  contracts, helper scripts, docs, or runtime generation.
- Whether the task should stop at local task-worktree changes or continue to
  local promotion or remote shipping.

Infer missing inputs from the current repo state before asking.

## Constraints

### Skill-Specific Rules

- Load only the selected action reference unless the current action explicitly
  hands off to another action.
- Use the action references as the source of truth for source edits, staging,
  runtime update, cleanup, validation, and output contracts.
- Keep skill creation, update, skill consistency and contract review, fast
  change, change promotion, and remote shipping inside this router and its
  `references/` files; do not introduce alias skills or old-name shims.
- For skill-source mutation in this repo, treat source skill text, metadata,
  shared sections, `templates/skill-sections.json`, runtime payloads,
  validators, contracts, helper scripts, and docs as one coupled maintenance
  surface when they exist.
- Stop in the task worktree by default for update actions and for create actions
  outside this repo. In this repo, new Ceratops skill creation continues through
  change-promotion and install verification unless the user opts out.
- Treat `ship-to-remote` as an action identity, not a separate skill folder.

### Boundaries

- Use this skill for creating skills, updating existing skills, skill
  consistency audits, skill-design contract upkeep, fast direct release-branch
  changes, promoting committed skill branches into a local release branch, and
  shipping staged skills repo changes through GitHub.
- If the task is advisory-only skill optimization, use
  `$ceratops-skill-optimize`.
- If the task is a skill consistency audit or skill-design contract upkeep, use
  `references/skills-consistency-and-contract-review.md`.
- If the task is a general GitHub repo lifecycle operation, use
  `$ceratops-gh-repo-lifecycle`.

### Workflow

#### 1. Classify the action

- Use `create` when a brand-new skill must be added and integrated with
  available repo governance surfaces.
- Use `update` when an existing skill, shared section, manifest, runtime
  generation, validator, contract, helper, or doc surface must change.
- Use `skills-consistency-and-contract-review` when the task is an explicit
  skill consistency audit or skill-design contract upkeep.
- Use `fast-change` only when the user explicitly asks for a known-safe direct
  release-branch edit and targeted runtime update.
- Use `change-promotion` when committed task-worktree branches are ready to
  merge into the skills repo checkout's local `release/*` branch and runtime
  preview.
- Use `ship-to-remote` when the skills repo checkout already has a staged
  `release/*` branch ready to push, PR, merge, restore to `main`, and reinstall
  from `main`.

#### 2. Execute the selected action

- Read the matching file under `references/`.
- Follow that action's script bundle, boundaries, workflow, completion gate, and
  output contract.
- If the selected action discovers that another action owns the remaining work,
  switch to that action reference and report the handoff reason only when it
  changes the user's next step.

#### 3. Close from action evidence

- Match final claims to the exact source diff, validator output, runtime state,
  release branch state, or live GitHub state actually verified.
- Report retained worktrees, branches, runtime copies, automation prompts, or
  external side effects only when the selected action requires them.

## Done When

### Completion Gate

- The selected action reference was followed or the task was explicitly blocked
  before action execution.
- Any cross-action handoff used another reference in this router rather than a
  standalone skill identity.
- Source, runtime, validation, branch, and shipping claims are limited to the
  checks and state actually verified.

### Output Contract

Report only:

- selected action and final outcome
- updated skill or shared maintenance surfaces
- unresolved blockers or non-blocking debt
- intentionally retained branches, worktrees, runtime copies, automation
  prompts, or external side effects with reasons
- anything important not verified

### Example Invocation

`Use $ceratops-skill-lifecycle to update these Ceratops skills in a task
worktree and stop before runtime promotion.`
