apiVersion: comet/v1alpha1
kind: Skill
metadata:
  name: comet-classic
  version: '1'
  description: Preserve existing Classic state while dispatching phase Skills for full, hotfix, and tweak workflows
goal:
  statement: Continue or restore a Classic Run while preserving existing CLI usage
  inputs:
    - name: classic-state
      description: Validated ClassicState matching the corresponding Run fields
      required: true
    - name: evidence
      description: Structured check records returned by the Classic Evidence collector
      required: true
  outputs:
    - name: run-state
      description: Classic and Run state synchronized in one atomic operation
      required: true
  success:
    - Existing Classic fields match the corresponding Run fields
    - Every step invokes only a declared public Comet Skill
    - Completion checks pass before the Run is marked completed
orchestration:
  mode: deterministic
  entry: full.open
  steps:
    - id: full.open
      action: { type: invoke_skill, ref: comet-open }
      next: full.design.handoff
    - id: full.design.handoff
      action: { type: invoke_skill, ref: comet-design }
      next: full.design.document
    - id: full.design.document
      action: { type: invoke_skill, ref: comet-design }
      next: full.build.configure
    - id: full.build.configure
      action: { type: invoke_skill, ref: comet-build }
      next: full.build.plan
    - id: full.build.plan
      action: { type: invoke_skill, ref: comet-build }
      next: full.build.plan-ready
    - id: full.build.plan-ready
      action: { type: invoke_skill, ref: comet-build }
      next: full.build.execute
    - id: full.build.execute
      action: { type: invoke_skill, ref: comet-build }
      next: full.build.complete
    - id: full.build.complete
      action: { type: invoke_skill, ref: comet-build }
      next: full.verify.run
    - id: full.build.fix
      action: { type: invoke_skill, ref: comet-build }
      next: full.build.execute
    - id: full.verify.run
      action: { type: invoke_skill, ref: comet-verify }
      next: full.verify.branch
    - id: full.verify.branch
      action: { type: invoke_skill, ref: comet-verify }
      next: full.archive.confirm
    - id: full.archive.confirm
      action: { type: invoke_skill, ref: comet-archive }
      next: full.archive.execute
    - id: full.archive.execute
      action: { type: invoke_skill, ref: comet-archive }
      next: completed
    - id: hotfix.open
      action: { type: invoke_skill, ref: comet-hotfix }
      next: hotfix.build.execute
    - id: hotfix.build.execute
      action: { type: invoke_skill, ref: comet-build }
      next: hotfix.build.complete
    - id: hotfix.build.complete
      action: { type: invoke_skill, ref: comet-build }
      next: hotfix.verify.run
    - id: hotfix.verify.run
      action: { type: invoke_skill, ref: comet-verify }
      next: hotfix.verify.branch
    - id: hotfix.verify.branch
      action: { type: invoke_skill, ref: comet-verify }
      next: hotfix.archive.confirm
    - id: hotfix.archive.confirm
      action: { type: invoke_skill, ref: comet-archive }
      next: hotfix.archive.execute
    - id: hotfix.archive.execute
      action: { type: invoke_skill, ref: comet-archive }
      next: completed
    - id: tweak.open
      action: { type: invoke_skill, ref: comet-tweak }
      next: tweak.build.execute
    - id: tweak.build.execute
      action: { type: invoke_skill, ref: comet-build }
      next: tweak.build.complete
    - id: tweak.build.complete
      action: { type: invoke_skill, ref: comet-build }
      next: tweak.verify.run
    - id: tweak.verify.run
      action: { type: invoke_skill, ref: comet-verify }
      next: tweak.verify.branch
    - id: tweak.verify.branch
      action: { type: invoke_skill, ref: comet-verify }
      next: tweak.archive.confirm
    - id: tweak.archive.confirm
      action: { type: invoke_skill, ref: comet-archive }
      next: tweak.archive.execute
    - id: tweak.archive.execute
      action: { type: invoke_skill, ref: comet-archive }
      next: completed
    - id: completed
      action: { type: checkpoint }
      completionEvals:
        - classic-completed
skills:
  - id: comet-open
  - id: comet-design
  - id: comet-build
  - id: comet-verify
  - id: comet-archive
  - id: comet-hotfix
  - id: comet-tweak
agents: []
tools: []
