### Install Optibot Globally Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Install the Optibot CLI globally using npm. ```bash npm install -g optibot ``` -------------------------------- ### Install Optibot Plugin Source: https://github.com/optimal-ai/optibot-skill/blob/main/README.md Install the Optibot plugin using the Claude CLI. Ensure you have added the marketplace repository first. ```bash claude plugin install optibot@optimal-ai ``` -------------------------------- ### Install Local Plugin Source: https://github.com/optimal-ai/optibot-skill/blob/main/CONTRIBUTING.md Test your plugin changes locally by installing it from the current directory. Ensure you are in the root of the plugin repository. ```bash claude plugin install --path ./ ``` -------------------------------- ### Install Optibot via CLI Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Install the plugin directly from the terminal for use within Claude Code sessions. ```bash # Add the marketplace (run in regular terminal, not inside Claude Code) claude plugin marketplace add Optimal-AI/optibot-skill # Install the plugin claude plugin install optibot@optimal-ai # Verify installation inside Claude Code session /reload-plugins /help # Look for Optibot commands ``` -------------------------------- ### Check Optibot Installation Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Verify if the Optibot CLI is installed in the current environment. ```bash which optibot ``` -------------------------------- ### Integrate Optibot in CI/CD Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Example configuration for running Optibot within a GitHub Actions workflow. ```yaml # GitHub Actions example - name: Run Optibot Review env: OPTIBOT_API_KEY: ${{ secrets.OPTIBOT_API_KEY }} run: npx optibot review -b main ``` -------------------------------- ### Install Optibot via Plugin Manager Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Use the Claude Code Plugin Manager UI to add and activate the Optibot plugin. ```bash # Inside a Claude Code session, type /plugin to open the Plugin Manager UI # Navigate to Marketplace tab # Add the Optibot marketplace repo: Optimal-AI/optibot-skill # Go to Discover tab, find Optibot and press Enter to install # Run /reload-plugins to activate ``` -------------------------------- ### Add Optibot Marketplace Repo Source: https://github.com/optimal-ai/optibot-skill/blob/main/README.md Add the Optibot marketplace repository to your Claude Code plugin manager. This is a prerequisite for discovering and installing the Optibot plugin. ```bash claude plugin marketplace add Optimal-AI/optibot-skill ``` -------------------------------- ### Get Claude Code Version Source: https://github.com/optimal-ai/optibot-skill/blob/main/CONTRIBUTING.md Use this command to check your installed Claude Code version. This is often requested when reporting issues. ```bash claude --version ``` -------------------------------- ### Uninstall Optibot Plugin Source: https://github.com/optimal-ai/optibot-skill/blob/main/README.md Remove the Optibot plugin from your Claude Code installation using the CLI. This command uninstalls the plugin and removes it from your system. ```bash claude plugin uninstall optibot ``` -------------------------------- ### Troubleshoot Common Errors Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Resolve authentication or quota issues. ```bash # Authentication failed (401) # Token expired or invalid API key optibot login # Re-authenticate # Or verify API key echo $OPTIBOT_API_KEY # Should start with optk_ # Review limit reached (429) # Daily quota exhausted - wait for reset optibot review ``` -------------------------------- ### Manage API Keys Source: https://context7.com/optimal-ai/optibot-skill/llms.txt List or delete existing API keys used for authentication. ```bash optibot apikey list # Output: # ID Name Created Last Used # key_12345 my-ci-key 2024-01-15 2024-01-20 # key_67890 github-actions 2024-01-10 2024-01-19 ``` ```bash optibot apikey delete key_12345 # Output: # API key 'my-ci-key' (key_12345) has been revoked. ``` -------------------------------- ### Authenticate via Interactive Login Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Perform OAuth authentication to generate a 90-day token stored in the local configuration. ```bash # Check if optibot is installed which optibot # If not found, install it npm install -g optibot # Authenticate via browser (token lasts 90 days) optibot login # Opens browser for OAuth authentication # Token stored in ~/.optibot/config.json ``` -------------------------------- ### Authenticate with Optibot Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Perform interactive login or configure API keys for headless environments. ```bash optibot login ``` ```bash export OPTIBOT_API_KEY=optk_... ``` ```bash optibot apikey create "my-key-name" ``` -------------------------------- ### Manage Optibot API Keys Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md List or revoke existing API keys. ```bash optibot apikey list # See all keys with creation/last-used dates optibot apikey delete ID # Revoke a key by its ID ``` -------------------------------- ### Login to Optibot Account Source: https://github.com/optimal-ai/optibot-skill/blob/main/README.md Authenticate your CLI with your Optibot account to enable code reviews. This command initiates a browser-based authentication flow and generates a 90-day token. ```bash optibot login ``` -------------------------------- ### Run Optibot Review on Empty Diff Source: https://context7.com/optimal-ai/optibot-skill/llms.txt If there are no changes to review, make changes first or use branch comparison. Verify changes with 'git status'. ```bash git status # Verify there are changes optibot review -b main # Or compare against a branch ``` -------------------------------- ### Optibot Skill Plugin Structure Source: https://github.com/optimal-ai/optibot-skill/blob/main/CONTRIBUTING.md Overview of the directory structure for the Optibot Skill plugin. Key files include plugin metadata and skill definitions. ```tree optibot-skill/ ├── .claude-plugin/ │ └── plugin.json # Plugin metadata ├── skills/ │ └── optibot/ │ └── SKILL.md # Skill definition and instructions ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE └── README.md ``` -------------------------------- ### Integrate with GitHub Actions Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Automate code reviews in GitHub Actions workflows using the Optibot CLI. ```yaml # .github/workflows/code-review.yml name: Optibot Code Review on: pull_request: branches: [main, develop] jobs: review: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch full history for branch comparison - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - name: Run Optibot Review env: OPTIBOT_API_KEY: ${{ secrets.OPTIBOT_API_KEY }} run: npx optibot review -b main # Uses npx so no global install needed # -b flag compares PR branch against main ``` -------------------------------- ### Optibot API Key Management Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Manage API keys for CI/CD integration or automated processes. Use 'create' to generate a new key and 'list' to view existing ones. ```bash optibot apikey create ``` ```bash optibot apikey list ``` ```bash optibot apikey delete key_12345 ``` -------------------------------- ### Authenticate via API Key Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Configure API key authentication for non-interactive or CI/CD environments. ```bash # Set API key as environment variable export OPTIBOT_API_KEY=optk_your_key_here # Or create a new API key through CLI optibot apikey create "my-ci-key" # Output: # API Key created successfully! # Key: optk_abc123xyz... (save this - shown only once) # Name: my-ci-key # ID: key_12345 ``` -------------------------------- ### Review Branch Against Base Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Compare the current branch against a specified base branch for review. ```bash # Auto-detect base branch (tries origin/main, origin/master, origin/develop) optibot review -b # Explicit base branch optibot review -b main # Compare against remote optibot review -b origin/main # Output: # Comparing feature/auth-improvements against main... # Commits in range: 5 # Files changed: 8 # # === Review Summary === # This branch adds OAuth2 support with good separation of concerns. # Consider adding rate limiting to the new endpoints. # # === File Comments === # ... ``` -------------------------------- ### Review Local Changes Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Review uncommitted changes in the current working directory. ```bash optibot review ``` -------------------------------- ### Review Branch Changes Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Compare the current branch against a base branch for review. ```bash optibot review -b # Auto-detects base branch (main/master/develop) optibot review -b main # Explicit base branch optibot review -b origin/main # Compare against remote ``` -------------------------------- ### Integrate with GitLab CI Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Automate code reviews in GitLab CI pipelines. ```yaml # .gitlab-ci.yml optibot-review: stage: test image: node:20 script: - npx optibot review -b main variables: OPTIBOT_API_KEY: $OPTIBOT_API_KEY only: - merge_requests ``` -------------------------------- ### Commit Changes Source: https://github.com/optimal-ai/optibot-skill/blob/main/CONTRIBUTING.md Stage and commit your changes with a descriptive message. This is a standard Git command. ```bash git commit -m "Add my feature" ``` -------------------------------- ### Run Optibot Review on Uncommitted Changes Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Use this command to run optibot review on your uncommitted changes. Ensure you are in a git repository. ```bash cd /path/to/your/git/project optibot review ``` -------------------------------- ### Optibot Review in GitHub Actions Source: https://github.com/optimal-ai/optibot-skill/blob/main/README.md Integrate Optibot code reviews into your GitHub Actions workflow. Set the OPTIBOT_API_KEY environment variable with your Optibot API key for authentication. ```yaml # GitHub Actions - name: Optibot Review env: OPTIBOT_API_KEY: ${{ secrets.OPTIBOT_API_KEY }} run: npx optibot review -b main ``` -------------------------------- ### Review Arbitrary Diff Source: https://github.com/optimal-ai/optibot-skill/blob/main/skills/optibot/SKILL.md Review changes from a specific patch file. ```bash optibot review --diff path/to/changes.patch ``` -------------------------------- ### Review Patch or Diff File Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Analyze specific patch or diff files for code quality issues. ```bash # Review an arbitrary patch file optibot review --diff path/to/changes.patch # Review a diff file optibot review --diff feature-update.diff # Output: # Analyzing patch file... # # === Review Summary === # ... ``` -------------------------------- ### Push Changes to Fork Source: https://github.com/optimal-ai/optibot-skill/blob/main/CONTRIBUTING.md Push your feature branch to your forked repository on GitHub. This prepares your changes for a Pull Request. ```bash git push origin my-feature ``` -------------------------------- ### Natural Language Commands in Claude Code Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Interact with Optibot using natural language prompts within Claude Code. These commands map to specific Optibot CLI actions. ```text "review my changes" # → Runs optibot review on uncommitted changes ``` ```text "review my branch" # → Runs optibot review -b (auto-detects base) ``` ```text "review my branch against main" # → Runs optibot review -b main ``` ```text "review this diff" # → Prompts for diff file path, runs optibot review --diff ``` ```text "set up optibot" # → Walks through authentication setup ``` ```text "create an API key for CI" # → Runs optibot apikey create with a descriptive name ``` ```text "list my API keys" # → Runs optibot apikey list ``` ```text "delete API key key_12345" # → Runs optibot apikey delete key_12345 ``` -------------------------------- ### Review Uncommitted Local Changes Source: https://context7.com/optimal-ai/optibot-skill/llms.txt Analyze current uncommitted changes using git diff. ```bash # Review all uncommitted changes (runs git diff HEAD) optibot review # Output: # Analyzing changes... # # === Review Summary === # Overall: Minor issues found # Files reviewed: 3 # # === File Comments === # # src/auth.js (lines 45-52): # [SECURITY] Password comparison uses timing-unsafe equality check. # Consider using crypto.timingSafeEqual() to prevent timing attacks. # # src/api/users.js (lines 23-25): # [BUG] Missing null check before accessing user.email property. # This will throw if user is undefined. # # Reviews used: 3/20 (17 remaining) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.