{
  "schema_version": "1.0.0",
  "id": "hyv-apply-rewrite",
  "title": "hyv-apply-rewrite",
  "description": "Validate and apply a model response to a prepared rewrite task, then run local gates.",
  "instruction_file": "SKILL.md",
  "role": "Edit applier",
  "workflow_phase": "edit",
  "input": {
    "required": [
      "task.json",
      "response.json",
      "profile.json"
    ],
    "optional": []
  },
  "output": {
    "required": [
      "applied candidate and gate report"
    ],
    "optional": []
  },
  "evidence_requirements": [
    "Report only the deterministic result the command returns; never invent a model or provider call that did not occur."
  ],
  "permissions": [
    "execute_commands",
    "read_repository"
  ],
  "stop_conditions": [
    "Stop when required input is missing, when the command cannot run without changing existing behavior, or when a claimed capability is unavailable."
  ],
  "tool_free_mode": {
    "available": true,
    "behavior": "Provide the decision, artifact template, and exact unavailable capability; never claim a tool action occurred.",
    "unavailable_statuses": [
      "NOT_AVAILABLE",
      "NOT_CONFIGURED",
      "NOT_RUN",
      "STALE",
      "ERROR"
    ]
  },
  "handoff_to": [
    "hyv-verify",
    "hyv-prepare-judgment"
  ]
}
