Skip to content

fix(research): document --k alias for --limit and align research index skill - #392

Open
genius-0963 wants to merge 1 commit into
firecrawl:mainfrom
genius-0963:fix/issue-391
Open

genius-0963 wants to merge 1 commit into
firecrawl:mainfrom
genius-0963:fix/issue-391

Conversation

@genius-0963

@genius-0963 genius-0963 commented Nov 22, 2026 •

Copy link
Copy Markdown

Summary

Fixes #391

Documents --k <number> as an alias for --limit in CLI help output and aligns the firecrawl-research-index skill CLI instructions to use --limit <number>.

Changes

  • CLI (src/index.ts): Removed .hideHelp() and added the description 'Alias for --limit' for --k <number> on search-papers, related-papers, read-paper, developer, and gov commands so that the option is documented in --help.
  • Skill documentation (skills/firecrawl-research-index/SKILL.md): Updated the CLI invocations for firecrawl research search-papers and firecrawl research related-papers from [--k <number>] to [--limit <number>] to align with the CLI's standard option flags and help output.
  • Regression test (src/__tests__/cli-argv.test.ts): Added tests verifying that --k <number> is displayed with 'Alias for --limit' alongside --limit <number> in the help output for research subcommands (search-papers, related-papers, read-paper).

Tests

  • pnpm run type-check: Verified all TypeScript types pass with zero errors (tsc --noEmit).
  • npx vitest run src/__tests__/cli-argv.test.ts: 15/15 tests passed, including the new regression test verifying the help text.
  • pnpm run test: All 51 test suites and 931 unit/integration tests passed.
  • pnpm run build: Successfully built the project (tsc).
  • pnpm run format:check: Verified code formatting with prettier.

Summary by cubic

Documents the hidden --k alias as 'Alias for --limit' in CLI help output and aligns the firecrawl-research-index skill instructions to use --limit.

  • --k <number> now appears in --help output for search-papers, related-papers, read-paper, developer, and gov commands instead of being hidden.
  • The skill document now instructs using --limit <number> instead of --k <number>, removing the mismatch with CLI help and the -k API key flag.
  • Added regression tests verifying the alias is documented in help output.

Written for commit 1eace22. Summary will update on new commits.

View guided diff

…ndex skill

The research subcommands (search-papers, related-papers, read-paper) as well as developer and gov commands accepted --k <number> via a hidden option, while documenting --limit <number> in help. In addition, the firecrawl-research-index skill instructed agents to call the CLI using --k <number>, creating a mismatch with CLI help and potential confusion with the -k API key flag.

Document --k <number> with 'Alias for --limit' in the CLI help output across these commands, and update the firecrawl-research-index skill CLI instructions to use --limit <number>.

Fixes firecrawl#391

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Shadow auto-approve: would auto-approve. Unhides the existing --k alias in CLI help with a description, aligns research skill docs to use --limit, and adds regression tests. No runtime behavior changes; the change is bounded and clearly beneficial documentation/help alignment.

View guided diff | Re-trigger cubic

This branch has not been deployed

No deployments
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.

research search-papers/related-papers accept an undocumented --k <n>; -k is api-key

1 participant