Skip to content

docs: optimize README for clarity and accuracy#12

Open
MinaraAgent wants to merge 1 commit intomainfrom
vk/98d5-minara-cli-readm
Open

docs: optimize README for clarity and accuracy#12
MinaraAgent wants to merge 1 commit intomainfrom
vk/98d5-minara-cli-readm

Conversation

@MinaraAgent
Copy link
Copy Markdown
Member

Summary

  • Condensed README from ~400 to ~150 lines for faster scanning
  • Fixed inaccuracies (removed non-existent premium buy-credits command)
  • Added missing CLI flags documented from source code
  • Grouped commands logically with concrete examples

Key Changes

Fixes

  • Removed minara premium buy-credits (command doesn't exist in codebase)
  • Added missing receive perps --address flag
  • Added missing limit-order flags: --chain, --condition, --price, --amount, --expiry
  • Added missing perps order flags: -S/--side, -s/--symbol, -T/--type, -p/--price, -z/--size, -r/--reduce-only, -g/--grouping, --tpsl
  • Added perps close -s/--symbol flag
  • Added discover trending -t flag

Improvements

  • Removed verbose tables in favor of inline code blocks with examples
  • Consolidated "AI Trading Bots" section for autopilot/wallets/ask
  • Simplified transaction safety section
  • Updated test count (270 tests)
  • Cleaner badge layout

Test plan

  • Ran npx vitest run — all 270 tests pass
  • Verified all commands/flags exist in source code
  • Checked for broken links (none)

- Condense to ~150 lines (from ~400) — faster scan, less noise
- Remove verbose tables; use inline code blocks with examples
- Fix inaccuracies: remove non-existent `premium buy-credits` command
- Add missing flags: limit-order --chain/--condition/--expiry, perps
  order -S/-s/-T/-p/-z/-r/-g/--tpsl, perps close -s/--symbol,
  discover trending -t
- Add missing commands: receive perps --address
- Group related commands logically (AI trading bots as section)
- Update test count (270 tests)
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly refactors the README.md to provide a more concise and streamlined overview of the Minara CLI. It replaces verbose tables and lengthy descriptions with compact command examples and inline comments across all sections, including trading, AI chat, and configuration. Additionally, the development and security sections were simplified, and the test count was updated. Feedback suggests re-incorporating the npm run test:watch command into the development section to improve the developer experience for those running tests in watch mode.

Comment on lines 199 to +203
npm install

# Build
npm run build

# Watch mode
npm run dev

# Run locally
node dist/index.js --help

# Link globally for testing
npm link
minara --help
npm run build # Compile TypeScript
npm run dev # Watch mode
npm test # Run 270 tests
npm run test:coverage
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The development section in the README is missing the npm run test:watch command which is available in the package.json scripts. Adding this provides a better developer experience for those who prefer watch mode during testing.

Suggested change
npm install
# Build
npm run build
# Watch mode
npm run dev
# Run locally
node dist/index.js --help
# Link globally for testing
npm link
minara --help
npm run build # Compile TypeScript
npm run dev # Watch mode
npm test # Run 270 tests
npm run test:coverage
npm install
npm run build # Compile TypeScript
npm run dev # Watch mode
npm test # Run 270 tests
npm run test:watch # Watch mode
npm run test:coverage

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.

1 participant