npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sf-ai-toolkit/cli

v0.1.9

Published

Make every Salesforce DX project AI-ready in minutes — scaffolds secure, cross-tool AI workflows for Cursor, Claude, Codex-style agents, and MCP-powered assistants.

Readme

@sf-ai-toolkit/cli

Command-line tool for SF AI Toolkit.

Makes every Salesforce DX project AI-ready in minutes — generates cross-tool guardrails for Cursor, Claude Code, Codex-style agents, Antigravity, and other MCP-capable workflows.


Installation

Run without installing:

npx @sf-ai-toolkit/cli init

Or install globally:

npm install -g @sf-ai-toolkit/cli
sf-ai-toolkit init

Quick Start

Open your Salesforce DX project folder in a terminal and run:

# Step 1 — See what is missing
npx @sf-ai-toolkit/cli scan

# Step 2 — Apply the full setup
npx @sf-ai-toolkit/cli init

# Step 3 — Configure MCP for your org
npx @sf-ai-toolkit/cli bootstrap-mcp

That's it. Your project has Cursor rules, cross-tool AI policy docs, CLAUDE.md, MCP config, skills, agents, and guardrails.

90-Second Demo

npx @sf-ai-toolkit/cli scan
npx @sf-ai-toolkit/cli init --preset core --yes
npx @sf-ai-toolkit/cli deploy-preview
npx @sf-ai-toolkit/cli doctor

This gives a full before/after story: score, auto-setup, deployment risk preview, and final health check.


Commands

| Command | Description | |---------|-------------| | scan | Show AI readiness score and list missing items | | init | Full setup — scan, select preset, create all missing files | | bootstrap-mcp | Generate .cursor/mcp.json and .mcp.json for your org | | check-drift | Check whether AI setup files are still aligned with best practices | | deploy-preview | Preview components that would be deployed and detect risks | | agentforce-scan | Scan force-app/ for Agentforce metadata and get recommendations | | doctor | Full configuration health check | | add-cursor | Add Cursor rules only | | add-claude | Add Claude Code config only | | add-mcp | Add MCP docs and rule only | | add-afv-skills | Add Salesforce AFV-compatible skill templates (40 skills) | | add-afv-library | Add Salesforce AFV Library guide | | add-hooks | Add configurable Git hooks (PMD + commit message policy) | | add-claude-mem | Generate a claude-mem Salesforce DX mode file | | pick-skill | List installed skills and copy an @mention reference |

AI Tool Compatibility

| AI Tool | How This CLI Helps | |---------|--------------------| | Cursor | Scaffolds .cursor/rules and .cursor/skills, MCP bootstrap | | Claude Code | Scaffolds CLAUDE.md, .claude/commands, .claude/agents | | Codex-style agents | Generates AI_INSTRUCTIONS.md and shared policy docs | | Antigravity-style agents | Uses shared policy docs + org-safe guardrails | | Any MCP-capable assistant | Standardized MCP setup and workflow safety patterns |


Options

Most commands support these flags:

| Flag | Description | |------|-------------| | --path <path> | Path to the project root (defaults to current directory) | | --preset <name> | Setup preset: core, lwc, agentforce, data-cloud, experience-cloud | | --dry-run | Preview changes without writing any files | | --yes | Skip confirmation prompts |

Example:

npx @sf-ai-toolkit/cli init --preset agentforce --yes --dry-run

What Gets Created

Running init --preset core creates the following files if they do not already exist:

AI_INSTRUCTIONS.md           Canonical cross-tool AI policy file
AGENTS.md                    AI tool usage guide
CLAUDE.md                    Claude Code rules and workflow orchestration
tasks/todo.md                AI task tracker
tasks/lessons.md             Lessons learned log

.cursor/rules/               6 Cursor rule files (Apex, LWC, MCP, Deployment, Safety, Project)
.cursor/skills/              40 skill templates (11 SF AI Toolkit + 29 AFV-compatible)
.claude/commands/            6 slash commands
.claude/agents/              5 sub-agent definitions
docs/                        11 reference documentation files (includes Codex and Antigravity setup)

SF AI Toolkit vs AFV Library

SF AI Toolkit and AFV Library are complementary:

  • SF AI Toolkit provides setup orchestration, safety guardrails, diagnostics, and team consistency workflows.
  • AFV Library provides reusable Salesforce implementation assets and patterns.

Configurable Team Standards

Use add-hooks to scaffold:

  • .githooks/pre-commit (optional PMD command)
  • .githooks/commit-msg (custom commit message policy)
  • sf-ai-toolkit.config.json (team-overridable policy file)

One-time activation:

git config core.hooksPath .githooks

Existing files are never overwritten. A backup is created before any file is modified.


Requirements

  • Node.js 18 or later
  • A Salesforce DX project with sfdx-project.json at the root

Related

  • VS Code Extension — real-time inline diagnostics, status bar, and all commands inside VS Code and Cursor
  • @sf-ai-toolkit/core — the underlying engine if you want to build your own tooling

Author

Nikhil Karkra

License

MIT