fix: validate algolia-cli skill against real CLI#6
Merged
leonardocuco merged 1 commit intomainfrom Mar 18, 2026
Merged
Conversation
Installed the Algolia CLI (v1.7.3) and validated every command and flag documented in the skill against actual `--help` output. Fixed several inaccuracies and added a real integration eval script. Bugs fixed: - Removed `-y` from `objects import`, `objects update`, `synonyms import` (these commands don't support it and fail with "unknown shorthand flag") - Changed `--type` values in `synonyms save` from lowercase (`regular`, `oneway`) to camelCase API names (`synonym`, `oneWaySynonym`) - Fixed `-w` shorthand on `objects delete` → `--wait` (no shorthand exists) - Added missing `--wait` flag to `synonyms save` docs New: `evals/run_cli_evals.sh` — integration test that runs 47 real CLI commands against a live Algolia index, including negative tests that verify invalid flags are properly rejected. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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
algolia <cmd> -houtput-ybug the user reported)evals/run_cli_evals.sh— an integration test that runs 47 real CLI commands against a live Algolia indexBugs fixed
-yonobjects importunknown shorthand flag: 'y'-yonobjects update-yonsynonyms import--type oneway/regularonsynonyms saveinvalid synonym type-wshorthand onobjects deleteunknown shorthand flag: 'w'--waitonsynonyms saveIntegration eval script
run_cli_evals.shcovers 5 eval categories against a real Algolia account:-yis rejected on commands that don't support itResult: 47/47 passed, 0 failed
Test plan
./evals/run_cli_evals.shpasses 47/47 with real Algolia credentials🤖 Generated with Claude Code