feat: add pluggable CLI adapter system (Claude + Copilot support)#29
Merged
feat: add pluggable CLI adapter system (Claude + Copilot support)#29
Conversation
also added support for copilot as that tool
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Fixes discovered during CLI adapter testing: - Change Copilot --allow-all-tools to --allow-all (--allow-all-tools alone blocks URL fetches in non-interactive mode) - Change Copilot default model from gpt-4o to claude-sonnet-4 (gpt-5 has known issues with web fetching causing "invalid_request_body" errors) - Add CLI tool validation using Commander's choices() for better UX - Improve comments explaining stdin handling and flag purposes Tested with: - Claude CLI → Postmark skill (39 tests pass) - Copilot CLI → WooCommerce skill (31 tests pass) Co-authored-by: mooreds <mpd39@yahoo.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a pluggable CLI adapter system to support multiple AI CLI tools for skill generation.
Based on the excellent work by @mooreds in #23 - this PR builds on that foundation with additional fixes discovered during testing.
Changes from #23
This PR includes all changes from #23 plus:
--allow-all-toolsto--allow-all(the former blocks URL fetches in non-interactive mode)gpt-4otoclaude-sonnet-4(gpt-5 has known issues with web fetching)choices()for better error messages on invalid CLI toolTesting
Generated two skills to validate both adapters:
See PR #24 (Postmark) and PR #25 (WooCommerce) for the generated skills.
Attribution
Thank you to @mooreds for the foundational CLI adapter architecture in #23. This PR supersedes #23 with the additional fixes.
Test plan
--allow-allfix)Made with Cursor