Cy research issues

From compozy/agh · View interactive version

Cy research issues is an AI agent skill from the GitHub repository compozy/agh. Runs a multi-agent research pass over the codebase (and optional competitor sources under .resources/) and converts the findings into an executable Compozy task suite: seven-section analysis documents, a lightweight _techspec.md, and task_NN.md issue files wired into a compozy.tasks/v2 _tasks.md gra

How to use this skill

Skill file

Research Issues

Turn a research question into an executable Compozy task suite. Pipeline:

scout → parallel explorer analyses → synthesis → lite techspec → issue-tasks → graph → validate.

The output directory is .compozy/tasks/<slug>/ and its task files are directly consumable by

/compozy / cy-execute-task — same parser contract as cy-create-tasks output.

Required Reading Router

Match the current phase to the row. Read the listed file in full before producing that phase's

output. They are not appendices — they are load-bearing. Inline content in this SKILL.md is a

pointer, not a substitute.

| Phase | MUST read |

| ---------------------------------------------------- | -------------------------------------- |

| Dispatching or resuming explorer agents (step 3) | references/explorer-dispatch.md |

| Authoring _techspec.md (step 5) | references/techspec-lite-template.md |

| Generating task_NN.md files + _tasks.md (step 7) | references/issue-task-template.md |

Reference Index

the dispatch prompt template, and the failure/resume protocol for agents killed mid-run.

AGH Impact Audit and Web/Docs Impact) plus authoring rules (YAGNI, Open Decisions instead of ADR

ceremony).

the executable contract, the parser rules, the _tasks.md graph manifest contract, complexity

criteria, and test-plan rules.

Required Inputs

behavior to copy. Concrete symptoms ("returning to a live session shows a blank thread") produce

better analyses than abstract goals.

Hard Rules

generated tasks.

background) — NOT the runtime's native Agent tool. Each compozy exec is a self-contained,

scoped-write dispatch that writes exactly one analysis file. The exact command, the model/harness

rules (GLM via pi; never opencode; Opus override for the hardest slices), and the failure

protocol live in references/explorer-dispatch.md.

Unit, Integration, and E2E categories — the contract lives in

references/issue-task-template.md, not here.

Workflow

  1. Preflight (lightweight).

values, otherwise use the defaults (frontend, backend, docs, test, infra,

refactor, chore, bugfix).

entries matching the research domain. Cite applicable directives/lessons in the techspec.

(resumed run), reuse them and skip steps 2-4.

  1. Scout and slice.

files here; that is the explorers' job.

one slice per competitor repo, one per owned surface layer (UI / client data layer / backend),

one end-to-end trace per reported bug class, one comparative/mapping slice when copying

competitor design. Drop slices that do not apply; add domain-specific ones that do.

the target file analysis/NN_analysis_<slice-slug>.md.

  1. Dispatch explorers via compozy exec (GLM 5.2 / pi).

contains the scoped-write contract, the compozy exec command and model/harness rules, the

seven-section schema every analysis must follow, the dispatch prompt template, and the

failure/resume protocol. Do not improvise dispatch prompts from memory of this file.

compozy exec --ide pi --model openrouter/z-ai/glm-5.2 --prompt-file <slice-prompt> per slice

(parallel). Wait for every process to exit before synthesis. Escalate a slice to

--ide claude --model opus only when it demands maximal citation precision (see the reference).

the slice with the contract restated).

  1. Synthesize analysis/summary.md.

path:line evidence from the analyses).

the project should deliberately diverge).

techspec and task files.

  1. Author _techspec.md (lite).

Fill every section it defines — the AGH Impact Audit and Web/Docs Impact sections are

mandatory, and contested decisions go to its Open Decisions section instead of blocking on

interactive rounds.

root causes, target architecture, delete targets, and sequencing, all evidence-linked.

  1. Checkpoint (skip when auto).

wave grouping. One message, one approval.

until approved. Do not re-litigate the analyses — only the breakdown is under review.

  1. Generate the task suite.

_tasks.md.** It is the single source of truth for the file template, parser rules, graph

manifest contract, complexity criteria, and test-plan rules. Gist tripwires only:

in _tasks.md (compozy.tasks/v2, acyclic).

Deliverables, Tests (Unit/Integration/E2E), Success Criteria (executable contract).

are tightly coupled, merge them or extract the shared piece into a dependency task.

  1. Validate.

until it exits 0.

  1. Report.

for execution (e.g., /compozy <slug>). State explicitly that no production code changed.

Anti-Patterns

path:line. An uncited claim is a hallucination gap for the executor.

diagrams/interfaces.

report — never imply full coverage.

Error Handling

references/explorer-dispatch.md §Failure recovery (re-dispatch the slice; escalate to Opus after

two GLM failures). If every slice stalls with zero output, confirm dispatch used --ide pi (not

opencode) and that ~/.pi/agent/auth.json holds the OpenRouter key.

the verification step the executor must run first.

references/issue-task-template.md §Graph Manifest before touching task content.

never write task files from an unapproved breakdown (unless auto).

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.