{
  "markdown": "# sfdx-iq\n\n![npm test](https://img.shields.io/badge/npm%20test-passing-brightgreen)\n![License: MIT](https://img.shields.io/badge/License-MIT-blue)\n![21 commands](https://img.shields.io/badge/commands-21-orange)\n![7 agents](https://img.shields.io/badge/agents-7-purple)\n\nThis plugin gives Claude Code deep Salesforce expertise. When you install it, Claude understands Salesforce best practices -- security, governor limits, permission models, flows, deployments -- and applies them automatically to everything it builds or reviews for you.\n\nAsk Claude to review your Apex code, design a data model, check your flows, build a trigger, or plan a feature -- and it will follow Salesforce platform rules without you having to remind it.\n\n---\n\n## Who Is This For?\n\n| If you are... | This plugin helps you... |\n|---|---|\n| **A Salesforce Admin** | Review flows, design permission sets, analyze data models, check org health -- all through plain English conversation with Claude |\n| **A Salesforce Developer** | Write bulkified Apex, build secure LWC, create triggers, catch governor limit violations, scaffold components with tests |\n| **A DevOps / Release Manager** | Plan deployments, manage packages, run CI/CD checks |\n\n---\n\n## Installation\n\nYou can install this plugin two ways -- pick whichever you are most comfortable with.\n\n### Directly from Your Terminal\n**Add the marketplace (one-time)**\n```\nclaude plugin marketplace add bhanu91221/sfdx-iq\n```\n**Install the plugin**\n```\nclaude plugin install sfdx-iq\n```\n\n### Or install in Claude Code\n**Add the marketplace (one-time)**\n```\n/plugin marketplace add bhanu91221/sfdx-iq\n```\n**Install the plugin**\n```\n/plugin install sfdx-iq\n```\n\n### Setting Up Your Salesforce Project\n\nAfter installing the plugin, copy the plugin configuration into each Salesforce project you work on. **This is a one-time step per project.**\n\n#### Option 1 -- Run a command in your terminal (recommended)\n\nOpen a terminal, navigate to your Salesforce project folder, and run:\n\n```\nnpx sfdx-iq setup-project\n```\n\n#### Option 2 -- Use a slash command inside Claude Code\n\nOpen Claude Code cli in your Salesforce project and type:\n\n```\n/setup-project\n```\n\nThis is a good option if npm is blocked on your network (corporate VPN).\n\n#### Option 3 -- Copy files manually\n\nDownload the plugin files from [GitHub](https://github.com/bhanu91221/sfdx-iq), then copy the following into the `.claude` folder inside your Salesforce project:\n\n```\nyour-salesforce-project/\n  .claude/\n    settings.json    <-- copy from plugin's .claude-project-template/ folder\n    CLAUDE.md        <-- copy from plugin's .claude-project-template/ folder\n```\n\nFor detailed manual copy commands, see the [Installation Guide](docs/INSTALLATION.md).\n\n---\n\n## Quick Start\n\nAfter installation and project setup, open your Salesforce project in Claude Code and try these commands.\n\n### For Admins\n\n| Command | What it does |\n|---------|-------------|\n| `/flow --review` | Checks your flows for performance issues and missing fault paths |\n| `/org-health` | Analyzes your org's permissions, sharing rules, and metadata for technical debt |\n| `/data-model` | Helps design or analyze object relationships and field architecture |\n| `/security-scan` | Scans for CRUD/FLS, sharing, and injection vulnerabilities |\n| `/status` | Shows plugin status and org connection |\n\nTry typing `/org-health` in Claude Code. The plugin will analyze your org's permission model, sharing rules, and metadata structure, then give you a report with specific recommendations.\n\n### For Developers\n\n| Command | What it does |\n|---------|-------------|\n| `/apex-class --review` | Reviews Apex code for quality, bulkification, and security |\n| `/trigger --new` | Scaffolds a complete trigger + handler + test (3 files) |\n| `/lwc --new` | Scaffolds an LWC component with JS, HTML, CSS, meta, and test |\n| `/security-scan` | Scans for CRUD/FLS, sharing, and injection vulnerabilities |\n| `/code-review --apex --all` | Full Apex review with specialist agents running in parallel |\n\nRun `/help` for the full command list, or see the [Command Reference](docs/COMMAND-REFERENCE.md).\n\n> **Note:** If you see \"Not an SFDX project\", make sure you are in a directory with `sfdx-project.json` and you have run the setup-project step above.\n\n---\n\n## What It Does\n\nThe plugin adds two layers of Salesforce intelligence to Claude:\n\n**Commands (21 self-contained tools)** -- Each command includes its own domain standards inline. When you run `/apex-class --review`, the command already knows Apex bulkification rules, SOQL standards, governor limits, and error handling patterns. No context loading step required.\n\n**Agents (7 specialists)** -- Think of these as 7 Salesforce consultants that Claude can call on. Commands invoke them automatically when deeper expertise is needed. You never call agents directly.\n\n### What the plugin enforces\n\n- **Governor limits first** -- Prevents code patterns that would hit Salesforce platform limits (like too many database queries)\n- **Security by default** -- Ensures proper access checks, data security, and protection against injection attacks\n- **Bulk-safe code** -- All code handles large volumes of records, not just one at a time\n- **Test coverage** -- Targets 90%+ test coverage with meaningful test scenarios\n\n---\n\n## Domain Commands\n\nEach domain command covers the full lifecycle of a Salesforce artifact. Use flags to select the workflow.\n\n### Apex & Backend\n\n| Command | Flags | What it does |\n|---------|-------|-------------|\n| `/apex-class` | `--new`, `--review`, `--refine`, `--bug-fix` | General Apex classes -- service layers, controllers, utilities |\n| `/trigger` | `--new`, `--review`, `--refine`, `--bug-fix` | Triggers + handler delegation (one-per-object pattern) |\n| `/async-apex` | `--new`, `--refine`, `--bug-fix` | Batch, Queueable, Schedulable, @future classes |\n| `/integration-apex` | `--new`, `--refine`, `--bug-fix` | REST/SOAP callouts and inbound web services |\n\n### Frontend\n\n| Command | Flags | What it does |\n|---------|-------|-------------|\n| `/lwc` | `--new`, `--explain`, `--refine`, `--bug-fix` | Lightning Web Components |\n\n### Flow & Process\n\n| Command | Flags | What it does |\n|---------|-------|-------------|\n| `/flow` | `--new`, `--review`, `--refine`, `--explain` | Screen Flows, Record-Triggered Flows, Scheduled Flows |\n\n### Cross-Domain\n\n| Command | Flags | What it does |\n|---------|-------|-------------|\n| `/code-review` | `--apex [file\\|--all]`, `--lwc [comp\\|--all]`, `--flow [name\\|--all]` | Full review with specialist agents running in parallel |\n| `/explain` | `--apex [file]`, `--lwc [comp]`, `--flow [name]`, `--deep` | Explain what code does; `--deep` traces behavior across files |\n| `/security-scan` | _(no flags -- scans all)_ | CRUD/FLS, sharing model, SOQL injection, CSP, guest user security |\n\n**Flag behaviors:**\n- `--new` -- gather requirements → scaffold artifact + test class → explain what was generated\n- `--review` -- identify files → check against domain standards → delegate to agent → severity report\n- `--refine` -- understand change request → apply modification → update tests\n- `--bug-fix` -- gather symptoms → diagnose root cause → fix → explain\n- `--explain` -- describe purpose, data flow, key behaviors, dependencies\n\n---\n\n## Utility Commands\n\n| Command | What it does |\n|---------|-------------|\n| `/setup-project` | Copy plugin configuration to your SFDX project |\n| `/doctor` | Diagnose plugin and org configuration issues |\n| `/status` | Show plugin status and org connection |\n| `/org-health` | Org health check: security score, limits, technical debt, metadata |\n| `/data-model` | ER design, object relationships, best practices |\n| `/plan` | Implementation planning with phased roadmap |\n| `/package` | 2GP package versioning and management |\n| `/debug-log` | Retrieve and analyze Salesforce debug logs |\n| `/apex-test` | Create or improve Apex test classes with coverage targeting |\n| `/handoff` | Generate session summary for context continuity across conversations |\n| `/repair` | Auto-fix common configuration problems |\n\n---\n\n## The 7 Agents\n\nThe plugin includes 7 specialist agents. Commands invoke them automatically -- you do not call them directly.\n\n| Agent | What they help with |\n|-------|-------------|\n| `apex-code-reviewer` | Apex quality -- bulkification, SOQL selectivity, governor limits, N+1 detection, naming, security |\n| `solution-designer` | Solution architecture, phased implementation plans, integration design, risk assessment |\n| `devops-coordinator` | Deployment strategy, test patterns, org health analysis, CI/CD pipelines, metadata debt |\n| `lwc-reviewer` | LWC components -- wire usage, events, accessibility, performance, security |\n| `security-auditor` | Security -- CRUD/FLS, sharing model, SOQL injection, XSS, CSP, guest user risks |\n| `flow-analyst` | Flows -- DML in loops, fault paths, recursion prevention, before/after save decisions |\n| `integration-specialist` | REST/SOAP callouts, Named Credentials, platform events, Change Data Capture |\n\n---\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| Plugin not loading | Run `npx sfdx-iq doctor` or `/doctor` to diagnose environment issues |\n| \"Not an SFDX project\" error | Make sure you are in a folder with `sfdx-project.json` and have run the setup-project step |\n| Org not connected | Run `npx sfdx-iq status` or `/status` to check your connection, then re-authenticate with `sf org login web` |\n| Something seems broken | Run `npx sfdx-iq repair` or `/repair` to auto-fix common configuration problems |\n\nFor more troubleshooting steps, see the [Installation Guide](docs/INSTALLATION.md#troubleshooting).\n\n---\n\n## Documentation\n\n| Document | Description |\n|----------|-------------|\n| [Installation Guide](docs/INSTALLATION.md) | Detailed installation, prerequisites, and environment setup |\n| [Architecture](docs/ARCHITECTURE.md) | Technical architecture and component flow |\n| [Command Reference](docs/COMMAND-REFERENCE.md) | All 21 commands with flags and examples |\n| [Customization](docs/CUSTOMIZATION.md) | How to add custom agents, commands, and hooks |\n| [Contributing](docs/CONTRIBUTING.md) | Contribution guidelines |\n| [Privacy Policy](PRIVACY.md) | What data the plugin accesses and what it does not |\n| [Security Policy](SECURITY.md) | How to report vulnerabilities |\n\n---\n\n## License\n\nMIT -- see [LICENSE](LICENSE) for details.\n\n---\n\n*This plugin is not officially affiliated with or endorsed by Salesforce, Inc. \"Salesforce,\" \"Apex,\" \"Lightning,\" \"Visualforce,\" and related marks are trademarks of Salesforce, Inc.*\n",
  "bytes": 10622,
  "sha": "b38cfa3a38baf47d69c980f369d278707eb7cec7eec949503026f0bea01e1f30",
  "repo_slug": "bhanu91221/claude-sfdx-iq",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_bhanu91221_claude_sfdx_iq_claude_sfdx_iq_f34eab41/readme"
}