-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add support for opencode slash command generator #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdded OpenCode CLI as a supported agent: config entry for Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
docs/slash-command-generator.md(3 hunks)slash_commands/config.py(1 hunks)tests/test_config.py(3 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
tests/test_config.py (1)
slash_commands/config.py (1)
CommandFormat(10-14)
🔇 Additional comments (6)
tests/test_config.py (3)
42-48: LGTM! OpenCode agent test data is well-structured.The new test data for the OpenCode agent follows the established pattern and is consistent with other agent configurations. The singular "command" directory name (vs. plural "commands") is intentionally supported by the test assertion at line 118.
138-138: Correct update for Markdown agent count.The count accurately reflects the addition of OpenCode CLI as the sixth Markdown-format agent.
159-160: Appropriate detection directory validation for nested path.The test correctly validates the OpenCode agent's detection directory, following the same pattern used for other agents with nested paths under
.config/.docs/slash-command-generator.md (3)
9-9: Correct agent count update.The documentation accurately reflects seven supported agents with the addition of OpenCode CLI.
288-288: Directory structure documentation is accurate.The OpenCode CLI directory path correctly matches the configuration and is clearly labeled.
196-196: OpenCode CLI documentation entry verified and approved.The table entry is properly formatted and the reference URLs are valid and publicly accessible.
iaminawe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gesparza3 - I verified this works locally and was able to see and use the /generate-spec command in opencode after running the slash command generator
Summary
Add support for OpenCode CLI as a slash command generator target. Updates configuration to recognize OpenCode's
command directory structure and generates appropriate markdown command files for the platform.
Summary by CodeRabbit
New Features
Documentation
Tests