cy-orquestrate-issue
Orchestrate GitHub bug resolution through a new CompozyOS managed worktree and Claude Opus 5.5 Medium session per issue. Investigate reported bugs, create missing issues, and dispatch an executor responsible for a detailed PR, green CI, and all CodeRabbit and Greptile feedback. Use when asked to delegate issue resolution; excludes spec task graphs, direct implementation, and review-only work on an existing PR.
- License 许可
- MIT
- 所属仓库
- compozy/compozy
- 最近更新
- 2026-11-15
- Stars
- ★ 2.9k
- Forks
- 187
01 前言 Front Matter
- name
- cy-orquestrate-issue
- description
- Orchestrate GitHub bug resolution through a new CompozyOS managed worktree and Claude Opus 5.5 Medium session per issue. Investigate reported bugs, create missing issues, and dispatch an executor responsible for a detailed PR, green CI, and all CodeRabbit and Greptile feedback. Use when asked to delegate issue resolution; excludes spec task graphs, direct implementation, and review-only work on an existing PR.
02 资源文件 1
- 资产文件assets/executor-prompt.md8.2 KB
03 SKILL.md 正文
Orchestrate Issue Resolution
The orchestrator investigates and dispatches; a dedicated CompozyOS session implements each issue through PR delivery.
Contract and inputs
- Accept issue numbers/URLs or a bug report with screenshots, logs, or reproduction steps. Resolve the repository from the workspace remote; ask only if the target remains ambiguous.
- Default executor: agent
general, providerclaude, modelclaude-opus-5-5, reasoning effortmedium. Explicit user overrides win. Verify the effective runtime; never silently substitute a model. - Create one new managed worktree and new logical session per issue. Follow-ups for that issue go to its recorded session. Never repurpose an unrelated active session.
- An invocation to resolve issues authorizes the scoped issue, branch, push, PR, review replies, and review-remediation work. It does not authorize merge, destructive Git, deleting worktrees, installing reviewers, or changing the user's host runtime. Existing session authorization wins.
- Default orchestration ends after verified dispatch, with the executor responsible for the full delivery contract. If asked to accompany delivery, supervise until that contract is satisfied. A launch report must say in progress, never that the issue is resolved.
1. Load the runtime contract
Use the active harness to resolve compozy__skill_view. Load the Compozy skill and the full
references selected by its router for tools, worktrees, sessions, and orchestration:
references/tools-and-skills.md, references/native-tools.md, references/worktrees.md,
references/runtime-operations.md, and references/tasks-and-orchestration.md. Reuse complete
current reads from this session. Follow source-qualified command_id and retained-result
continuation instructions when supplied.
Discover capabilities with compozy__tool_search and inspect live descriptors with
compozy__tool_info. The canonical IDs below are discovery keys, not harness invocation names.
Use the returned references and current schemas. A denied tool/skill read is not permission to
bypass policy through CLI or filesystem access.
2. Investigate and establish the issue
Read workspace instructions, Git status, the issue and its comments, and the affected code paths. Reuse prior evidence; perform focused read-only investigation before dispatching a new bug report. For runtime incidents, compare public daemon state and relevant logs with the UI report. Separate confirmed causes, hypotheses, and unverified observations. Do not mutate user sessions to reproduce. Use bounded independent explorers only when authorized and useful.
For a report without an issue, check for duplicates, then create an English GitHub issue containing
reproduction, actual/expected behavior, evidence and code pointers, acceptance criteria, and relevant
QA/compatibility impact, with its type set when it is created: gh issue create --type <Bug|Feature|Task>,
or gh issue edit <n> --type <T> immediately after. Verify publication. Sanitize private paths,
internal runtime identifiers, credentials, and unrelated log content. Use structured arguments or a body file for multiline text.
For an existing issue, reuse it; do not create a duplicate. A closed issue or existing PR requires
checking whether work remains before creating another implementation.
Several symptoms may belong to one evidenced defect. Keep that scope together; independent issues get separate worktrees. Include later user corrections in the same issue's briefing. Avoid a broad spec, audit, or unrelated cleanup unless requested.
3. Create and bind the executor
Refresh the remote base without changing the root checkout. Use the repository's target branch,
normally origin/main. Keep a compact mapping of issue URL, base SHA, worktree ID/path/branch,
session ID, prompt idempotency key, and eventual PR URL in the orchestration context. Preserve that
mapping in a handoff when needed; daemon state remains authoritative.
Perform these dependent operations in order:
compozy__worktree_create: workspace, base ref, unique name such asissue-<number>-<slug>, branch such asfix/issue-<number>-<slug>.compozy__worktree_inspect: confirm creation reachedready, and retain the returned path/ID.compozy__session_create: selected agent, descriptive issue name, exact workspace/worktree ID.- Load assets/executor-prompt.md, fill every field (including
<ORCHESTRATOR_SESSION_ID>, your own session ID, so the executor can report back), and send the full briefing with the nativecompozy__session_prompttool, nevercompozy session prompt(the CLI carries no sender identity unless you pass--from-session autoor--from-session <id>). Set runtime explicitly on this first prompt:{"provider":"claude","model":"claude-opus-5-5","reasoning_effort":"medium"}unless overridden. Use unique stablemessage_idandidempotency_key; usewait:falsefor background dispatch. compozy__session_status: confirm the prompt is accepted, runtime ready with the requested effective selection, and the session bound to the intended worktree. The executor verifies cwd and branch before editing. Distinguish an accepted prompt from a turn that is executing.
Do not activate a Compozy Goal for the executor; the briefing and its delivery contract drive the work.
If creation or prompt admission has an ambiguous result, reconcile the worktree/session catalog against the recorded mapping before retrying. Replay the same prompt idempotency key where supported; do not blindly create duplicates. Respect session limits; never change the session type to bypass a denial. This flow uses logical worktree-bound sessions, not the spec-task spawn/lease workflow.
If a required operation fails, complete independent work and report the precise blocker. Do not claim a pending worktree, unbound runtime, or merely accepted prompt is executing successfully.
4. Follow-ups and delivery
Send additional evidence only to the same issue's recorded executor, with native
compozy__session_prompt. Executors usually sit in one long turn, so a queue message may wait an
hour: use mode: "steer" for anything the executor must see soon, and queue only for material it
can read at its next boundary (the daemon also injects long-waiting queued messages after
session.messaging.queue_promote_after). Check the reported mode and disposition. Answer executor
messages with in_reply_to set to their message_id; use supersede: true when a new instruction
replaces an unread one. Executors report milestones only, so do not poll them for status and do not
answer pure acknowledgments. Consolidate cross-surface impact notes from the PR bodies yourself;
executors must not co-edit shared files such as docs/_memory/change-impact.md. Do not assume a
slash-shaped string in an agent prompt activates a skill; require the native operation.
The executor prompt owns implementation, validation, PR description, and the complete review cycle. Do not duplicate its checks or routinely interrupt it for status. If supervising, investigate finished CI failures while other jobs run and inspect new review evidence after relevant pushes. An idle turn alone is neither completion nor a blocker; if the executor stops before delivery, steer it with the remaining contract. Do not repair the host or clear runtime records as a shortcut.
Report the issue links, worktree/branch and session mapping, verified runtime state, and actual launch or delivery status concisely. Do not stop the executor or remove its worktree after dispatch. At delivery, verify the PR head, required checks, both reviewers' completed coverage, all finding dispositions, and current description. Missing/red/pending CI or missing reviewer evidence means delivery is still in progress or externally blocked. No merge unless separately requested.
04 同仓库更多 Skills
security-review
Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit security", "OWASP review", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.
lesson-learned
Extract evidence-backed engineering lessons from recent changes or incidents. Use for requested reflection, lesson updates, or retiring an obsolete workflow rule.
compozy
Operate CompozyOS. Use when working with CompozyOS sessions, agents, native tools, skills, tasks, Loops, Goals, Terminal, desktops and windows, automation, extensions, or configuration. Don't use for unrelated projects.
remotion-upgrade
Upgrade Remotion, and related packages
remotion-studio
Preview a Remotion video
remotion-saas
Build an app with Remotion