Using Claude Code as a Salesforce consultant

Give Claude Code the Salesforce access, project context, and reusable methods it needs to help with consulting work, from analysis to scoped execution.

Claude Code is Anthropic’s agent for working with project files and connected tools. It can investigate an implementation, prepare deliverables, and carry out authorised tasks.

This guide focuses on Claude Code, the tool you can equip with a local Salesforce project and execution access. For SaaS integrators, business analysts, and functional or technical consultants, its usefulness depends on the context and methods you give it.

Where Claude Code helps in a consulting project

There are three useful levels of assistance. Choose the level for the assignment, rather than delegating an entire implementation at once.

As a copilot. Use Claude Code to structure discovery notes, challenge a proposed solution, explain existing automation, or identify questions for a functional or technical audit. A business analyst can test whether requirements are clear. An integration consultant can examine mappings and failure cases before committing to a design.

To prepare the work. Ask it to draft specifications, process descriptions, data mappings, configuration changes, code, and test scenarios. Supply your deliverable format and the decisions already agreed with the client. It can then prepare material you can review with the team.

To execute a defined task. With connected tools and suitable permissions, it can inspect an org, edit implementation files, run tests, and apply supported changes to an authorised development environment. The assignment needs a clear boundary and a way to verify the outcome.

You can move between these levels during discovery, implementation, or support. The consultant still decides what the business needs and whether the result meets it.

Connect Claude Code to Salesforce

Start Claude Code in the client’s project folder. For metadata work, use a Salesforce DX project and authenticate Salesforce CLI to the intended sandbox or development org.

Install the Salesforce Development plugin using its Claude Code instructions. It supplies Salesforce guidance and workflows, with client-specific commands and configuration. Follow the project and org setup guide to check the environment before beginning work.

Three routes give it different ways to inspect and act:

  • CLI and APIs: Salesforce CLI provides a direct route to supported metadata, queries, tests, and deployments. APIs can support additional scoped operations. Retrieved files are a snapshot; an org query depends on the active connection and its permissions.

  • MCP tools: A Model Context Protocol server exposes specific tools to Claude Code. Use Salesforce tools for supported org operations and relevant connectors for documents or work items. A listed server still needs working authentication. Check the Salesforce MCP configuration.

  • Browser access: The Chrome integration, when enabled with the required extension and permissions, lets Claude Code work with browser pages. It is useful for inspecting a user journey or a screen whose behaviour matters to the task.

Verify the connection with a small read task. Ask for the org identity, the fields on one object, and the automation relevant to a specific process. Compare the result with Salesforce. Successful authentication does not establish that every setup area is accessible.

Build a setup you can reuse

Use CLAUDE.md as the project entry point

Put durable project instructions in CLAUDE.md: the objective, client vocabulary, target org, conventions, validation steps, and approval boundaries. Link to the current requirements and decisions.

Claude Code also supports memory features, but retained information needs review as the project changes. Keep authoritative client decisions in shared project records with dates and owners.

Package repeatable methods as skills

Use skills for procedures you would otherwise explain repeatedly. A skill contains instructions and can include templates, reference material, or supporting scripts.

Combine Salesforce skills with your own consulting methods. A discovery skill might separate observed behaviour, stakeholder requests, and unresolved questions. An integration specification skill might require field mappings, failure handling, ownership, and acceptance criteria.

Keep project facts in the project records. Keep reusable methods in skills. This lets you improve the method without carrying one client’s assumptions into another engagement.

Give specialist agents a bounded responsibility

Claude Code supports custom subagents with their own instructions and tool access. Useful roles include a functional analyst, an implementation worker, and a reviewer.

Specify the inputs, permitted actions, and expected output for each role. An analyst can return unanswered requirements questions; a reviewer can check a proposed change against those requirements. A role name alone supplies none of that expertise.

Return concise findings to the main conversation, with references to the underlying evidence. Keep shared-sandbox changes coordinated even when the analysis runs independently.

Add checks and preserve the handoff

Claude Code’s hooks can run checks at defined points in its workflow. Use them for deterministic checks, such as validating a proposed command’s target org or checking a required file. Test the checks, including their failure behaviour.

Maintain an index of requirements, decisions, org findings, and current work. At the end of a task, record the result, validation, outstanding questions, and next action. This gives the next session or consultant a useful starting point.

Where the setup falls short

Collaboration

Shared instructions, skills, and agent coordination can help a team use a consistent method. They do not establish who can accept a requirement, resolve a disagreement, or approve the release.

A functional consultant and developer may still work from different assumptions. Assign ownership and keep decisions in a shared record. Our implementation guide covers this coordination.

Context

Claude Code combines conversation context with project instructions and memory. Its auto memory is scoped by repository, while user-level instructions apply across projects.

These scopes only separate clients if your working setup does. Mixing clients in one project, reusing a conversation, or placing client facts in user-level instructions can bring the wrong requirements or org assumptions into a task.

Keep each client’s work in a separate project with its own CLAUDE.md and records. Reserve user-level instructions for shared preferences and reusable methods. Review saved memory when the project changes.

Context also becomes stale: a discovery note can become outdated after a workshop. Refresh the evidence, label unresolved assumptions, and link to the source. Effective context management requires selecting useful information and maintaining it over time.

Traceability

Conversations, file history, and tool results help reconstruct activity. They do not automatically connect a client’s request to the accepted design, resulting configuration, tests, and sign-off.

Ask for that chain in the deliverable. An audit finding needs supporting evidence. A completed implementation task needs its requirement reference and verification result. A plausible explanation of a change is not evidence that it worked.

Guardrails

Claude Code offers permission rules and modes, and hooks can add checks. These controls depend on their configuration, coverage, and the permissions of connected accounts.

Keep production access restricted, name the target org, and require the appropriate approval before consequential changes. A skill that says “be careful” is guidance, not an enforced boundary. Our guide to AI guardrails explains how to turn intent into practical controls.

Begin with a repeatable consulting task, such as a Flow audit or an integration specification. Give Claude Code the sources, a clear method, and a defined output.

Use the result to improve the skill and the project records. Add more execution responsibility when you can verify the outcome and hand the work to another consultant with confidence.