Cy execute task

From compozy/agh · View interactive version

Cy execute task is an AI agent skill from the GitHub repository compozy/agh. Executes one PRD task end-to-end uninterrupted — resolves spec conflicts autonomously, implements, validates, and updates tracking without pausing for questions. Use when a prompt includes a task specification that must be implemented, validated, and reflected in task tracking files. Do not use for

How to use this skill

Skill file

Execute PRD Task

Execute one PRD task from exploration through tracking updates — uninterrupted.

Uninterrupted execution

Compozy runs tasks in a loop. Pausing for clarification breaks the loop.

Required Inputs

Workflow

  1. Ground in repository and PRD context.
  1. Build the execution checklist.
  1. Implement the task.
  1. Validate and self-review.
  1. Update task tracking.
  1. Handle commit behavior.

Spec Corpus Survey (mandatory before any edit)

Task files paraphrase the spec, and paraphrases drift. Real incident: a task was implemented straight from its task file while the spec directory contained the canonical, complete definition of the deliverable (_examples.md) and the QA input contract (_qa.md); neither was read, seven review rounds validated engineering quality only, and the shipped result contradicted the product contract wholesale. This survey exists so that can never repeat.

  1. Dispatch the agent's NATIVE read-only subagent facility (e.g. Explore in Claude Code, or the closest scoped read-only subagent the current harness offers) to inventory the ENTIRE spec directory — every file, not a subset: all _*.md siblings (_prd.md, _user_stories.md, _techspec.md, _tests.md, _tasks.md, _examples.md, _qa.md, and any others present), loose siblings such as requirements.md and product-ux.md, plus the adrs/, analysis/ (including summary*.md), handoffs/, and memory/ subdirectories.
  2. Require the subagent to return, per file: a one-line description and a CONTRACT-BEARING verdict — does this file pin concrete facts about this task's deliverables (canonical example documents, input/schema tables, parity maps, visual references, test contracts, CLI/UX surfaces)? Also return every referenced local path/glob and whether it resolves.
  3. If the harness has no subagent facility, perform the same inventory inline before any edit. Skipping the survey because the task file "looks complete" is forbidden — looking complete is exactly how the incident happened.
  4. Read in full, on the main thread, every contract-bearing file for this task. Read the analysis/ summaries (at minimum the newest summary*.md) for the decision context behind the spec.
  5. Follow resolved local references outside the spec directory. Render named HTML/image visual contracts and inspect their required states on the main thread; the survey is incomplete while a contract path is only mentioned rather than opened.

Authority and Contract Precedence

Resolve contradictions autonomously with this ladder (highest wins). Record the pick; continue.

  1. Machine-checkable TechSpec constraints (schemas, SQL CHECKs, typed tables, enumerated states) beat conflicting prose in the same TechSpec.
  2. Contract-bearing sibling catalogs and resolved local artifacts that pin concrete form for this task (_tests.md assigned cases, _examples.md, _qa.md input tables, _user_stories.md acceptance criteria, parity maps, approved visual contracts) beat a task-file paraphrase of the same fact.
  3. When TechSpec and a contract artifact disagree on concrete form: prefer the artifact for facts it owns (assigned test IDs, canonical examples, QA inputs, rendered anatomy/layout/state); prefer the TechSpec machine-checkable constraint for storage/schema/state-machine facts.
  4. ADRs beat informal analysis/ notes when they address the same decision.
  5. Among remaining ties, prefer the interpretation that satisfies the most assigned _tests.md cases and remains implementable against the winning schema/state constraints.
  6. A task-file paraphrase never overrides a higher rung — implementing the paraphrase against a higher-rung contract is the error.

Authority for WHAT to build remains the task file + PRD + TechSpec + ADRs, read through this ladder.

The existing runtime shape is never the contract. If the current code cannot express what the resolved contract requires, extend or adapt the runtime within task scope; if that is truly out of scope, implement the closest faithful solution, record the gap as a follow-up note, and continue — never pause to ask, and never mold the deliverable to whatever the runtime happens to support today without recording the gap.

Error Handling

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.