Skip to content

feat: add pluggable CLI adapter system (Claude + Copilot support)#29

Merged
leggetter merged 11 commits intomainfrom
feat/cli-adapters-testing
Feb 5, 2026
Merged

feat: add pluggable CLI adapter system (Claude + Copilot support)#29
leggetter merged 11 commits intomainfrom
feat/cli-adapters-testing

Conversation

@leggetter
Copy link
Collaborator

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:

  • Copilot permissions fix: Changed --allow-all-tools to --allow-all (the former blocks URL fetches in non-interactive mode)
  • Copilot default model: Changed from gpt-4o to claude-sonnet-4 (gpt-5 has known issues with web fetching)
  • CLI validation: Added Commander's choices() for better error messages on invalid CLI tool
  • Documentation: Improved comments explaining stdin handling and flag purposes

Testing

Generated two skills to validate both adapters:

CLI Tool Provider Tests
Claude CLI Postmark 39 pass ✓
Copilot CLI WooCommerce 31 pass ✓

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

  • Claude CLI generates skills successfully
  • Copilot CLI generates skills successfully (with --allow-all fix)
  • Invalid CLI tool shows helpful error message
  • Generated skills pass all framework tests

Made with Cursor

mooreds and others added 11 commits February 4, 2026 10:04
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>
@leggetter leggetter merged commit 91413a8 into main Feb 5, 2026
22 checks passed
@leggetter leggetter deleted the feat/cli-adapters-testing branch February 5, 2026 14:08
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.

2 participants