feat(guardrails): add remaining 7 CC command definitions#118
Conversation
…oject, code-review, test-report, plan-to-checklist, ui-skills, blog, gemini) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds the remaining Claude Code-style command definitions to the Guardrails profile so they are discoverable/usable as OpenCode commands loaded from profile/commands/*.md.
Changes:
- Added 7 new command markdown definitions (
/explain-project,/code-review,/test-report,/plan-to-checklist,/ui-skills,/blog,/gemini). - Configured agent routing for select commands via frontmatter (
agent: implement,agent: code-reviewer,subtask: true).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/guardrails/profile/commands/ui-skills.md | Adds UI/Tailwind/a11y constraints command template. |
| packages/guardrails/profile/commands/test-report.md | Adds test execution + report-saving command template. |
| packages/guardrails/profile/commands/plan-to-checklist.md | Adds plan-to-checklist conversion command template. |
| packages/guardrails/profile/commands/gemini.md | Adds Gemini CLI web search command template. |
| packages/guardrails/profile/commands/explain-project.md | Adds architecture explanation command template. |
| packages/guardrails/profile/commands/code-review.md | Adds detailed code review command routed to code-reviewer. |
| packages/guardrails/profile/commands/blog.md | Adds blog article generation command routed to implement. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 3. Collect results including pass/fail/skip counts, duration, and coverage if available. | ||
| 4. Save the report to `./log/test/` with a timestamped filename (e.g., `test-report-2026-04-06T12-00-00.md`). | ||
| 5. If tests fail, include failure details with file and line references. |
There was a problem hiding this comment.
The template writes reports to ./log/test/, but this repo ignores logs/ (see .gitignore) and OpenCode’s built-in ignore patterns also target **/logs/**. Using log/ will likely create unignored artifacts in working trees. Consider switching the output directory to ./logs/test/ (or another already-ignored log path) and keep wording consistent throughout the command.
| - Design patterns identified | ||
| - Data flow summary | ||
|
|
||
| $ARGUMENTS narrows scope to a specific area if provided. |
There was a problem hiding this comment.
$ARGUMENTS is used at the start of a sentence ("$ARGUMENTS narrows scope …"), which will be replaced with the raw arguments at runtime and can produce a nonsensical sentence (e.g., "packages/foo narrows scope …"). Use a literal reference (e.g., wrap as \$ARGUMENTS`) and keep the actual argument injection on the separate $ARGUMENTS` line below (or remove one of the two).
| $ARGUMENTS narrows scope to a specific area if provided. | |
| `$ARGUMENTS` narrows scope to a specific area if provided. |
ac51934 to
726c9cf
Compare
Issue for this PR
Closes #111
Type of change
What does this PR do?
Adds the final 7 Claude Code command definitions to the OpenCode guardrails profile, bringing command parity to 100% (25 commands total, covering all 17 CC commands + 8 OC originals).
New commands:
/explain-project/code-reviewcode-reviewer/test-reportimplement./log/test//plan-to-checklist/ui-skills/blogimplement/geminiHow did you verify your code works?
bun turbo typecheck— 13/13 passChecklist