<< All versions

Skill v1.0.1

currentAutomated scan100/100
jed-zed/trellis-ccg-harness/ccg-debug

+5 new

──Details
PublishedOctober 21, 2026 at 07:13 AM
Content Hashsha256:b0c1b8695f3bfc90...
Git SHA9eb87bd2a4ad
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 2.8 KB)
SKILL.md2.8 KBactive
SKILL.md · 49 lines · 2.8 KB

version: "1.0.1"



name: debug description: Debug a failure with Codex-led reproduction, root-cause analysis, and focused verification. Use when the user invokes /ccg:debug or provides an error, failing test, crash, or regression.


Research

Use existing independent research agents with grok-search MCP. Search actively and verify key conclusions against original sources; check versions/licenses when reusing code and experiment conditions when adopting papers. Mark unverified findings. Archived instructions below are inactive: ordinary work does not run Grok CLI/ACP, wait for its gates, or require its manifests and hash packages.

<!-- Legacy Grok CLI/ACP reference; inactive in ordinary research.

Automatic External Intelligence Gate

Before ordinary work, run the shared route once from the controller:

ccg-codex route --workflow debug --phase intake --task-file ".ccg/tasks/<task-id>/intelligence-request.md" --state-file ".ccg/tasks/<task-id>/intelligence-route.json"

Run this potentially long route with the host's tool-managed background execution and wait mechanism; never put it under a foreground timeout shorter than the runner's 10-minute timeout. If the host cancels or terminates the job before a terminal state is written, run ccg-codex route recover --state-file <state-file> --status cancelled --reason "<reason>" (or use --status failed); recovery refuses to overwrite a live owner.

Append existing --plan, --diff, --target, and repeatable --dependency paths whenever those artifacts are available. Add --semantic-mode contract|incident --semantic-reason "<Codex judgment>" only for an explicit semantic decision. The runtime honors disabled config, persists the decision reason, and must be re-run after plan, dependency, target, diff, or phase digest changes. Stop ordinary work on exit code 2, 3, or 4 only for an explicit required semantic route; advisory search failures do not block ordinary work. -->

CCG Debug

Load and follow skills/ccg-executor/SKILL.md.

Use this as the Codex-native equivalent of the original CCG /ccg:debug command.

Behavior

  • Reproduce or localize the failure before changing code when feasible.
  • Gather exact error messages, failing commands, recent diffs, and relevant files.
  • Prefer small fixes that address the root cause, not broad rewrites.
  • Follow the shared Companion Role Contract when resolving roles for

root-cause analysis and second-pass review. If a selected provider is Gemini, use the bundled preview helper with --prompt-template debugger or review.

  • Codex owns final diagnosis, edits, verification, and Chinese delivery.

Verification

  • Re-run the failing command or the smallest meaningful reproduction.
  • Add or update a regression test when the failure has a stable behavior boundary.
← v1.0.0All versions