Skip to content

feat(guardrails): add remaining 7 CC command definitions#118

Merged
terisuke merged 1 commit intodevfrom
feat/guardrails-remaining-commands
Apr 6, 2026
Merged

feat(guardrails): add remaining 7 CC command definitions#118
terisuke merged 1 commit intodevfrom
feat/guardrails-remaining-commands

Conversation

@terisuke
Copy link
Copy Markdown

@terisuke terisuke commented Apr 6, 2026

Issue for this PR

Closes #111

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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:

Command Pattern Agent Description
/explain-project Simple default Multi-subagent project architecture explanation
/code-review Subtask code-reviewer Detailed security/quality code review
/test-report Delegate implement Run tests and save report to ./log/test/
/plan-to-checklist Simple default Convert plan to checklist document
/ui-skills Simple default UI/Tailwind/a11y component guidelines
/blog Delegate implement Technical blog article generation
/gemini Simple default Web search via Gemini CLI

How did you verify your code works?

  1. YAML frontmatter validated against existing command patterns (bugfix.md, review.md, plan.md)
  2. Typecheck: bun turbo typecheck — 13/13 pass
  3. Build: smoke test pass

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Copilot AI review requested due to automatic review settings April 6, 2026 10:25
…oject, code-review, test-report, plan-to-checklist, ui-skills, blog, gemini)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +10 to +12
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.
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
- Design patterns identified
- Data flow summary

$ARGUMENTS narrows scope to a specific area if provided.
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$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).

Suggested change
$ARGUMENTS narrows scope to a specific area if provided.
`$ARGUMENTS` narrows scope to a specific area if provided.

Copilot uses AI. Check for mistakes.
@terisuke terisuke force-pushed the feat/guardrails-remaining-commands branch from ac51934 to 726c9cf Compare April 6, 2026 10:30
@terisuke terisuke merged commit ef5f6c5 into dev Apr 6, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(guardrails): remaining command migration — 7 CC commands to OC

2 participants