sf-permissions

sf-permissions is a skill for Claude Code, Codex from Jaganpro/sf-skills. It costs 83 tokens per session (1,251 once invoked), scanned A, original, MIT.

A tool for examining Salesforce permission sets and permission set groups, which control what users can access. It can show permission hierarchies and investigate who has access to objects, fields, code, flows, tabs, and custom permissions.

In plain words
What is it for?
Use it to audit access, trace permissions for a user or resource, review permission metadata, visualize permission groups, and export access findings.
Why use it?
It removes the need to inspect many access settings manually when answering who can use a Salesforce feature or resource.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit access, trace permissions for a user or resource, review permission metadata, visualize permission groups, and export access findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaganpro/sf-skills/sf-permissions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jaganpro/sf-skills --skill sf-permissions
Clone the repo
git clone --depth 1 https://github.com/Jaganpro/sf-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sf-permissions

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaganpro/sf-skills/sf-permissions/github.svg)](https://agentmods.dev/skills/jaganpro/sf-skills/sf-permissions)
Your own site
<a href="https://agentmods.dev/skills/jaganpro/sf-skills/sf-permissions"><img src="https://agentmods.dev/badge/skills/jaganpro/sf-skills/sf-permissions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sf-permissions

Your own site · 80×15
<a href="https://agentmods.dev/skills/jaganpro/sf-skills/sf-permissions"><img src="https://agentmods.dev/badge/skills/jaganpro/sf-skills/sf-permissions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,251 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 14 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.01251
Opus 5.5 $0.00033 $0.00500
Sonnet 5.5 $0.00017 $0.00250
Haiku 4.5 $0.00008 $0.00125

Measured 3mo ago against content hash 73b848204b77, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sf-permissions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/__init__.py, scripts/auth.py, scripts/cli.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sf-permissions/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sf-permissions

Use this skill when the user needs permission analysis and access auditing: Permission Set / Permission Set Group hierarchy views, “who has access to X?” investigations, user-permission analysis, or permission-set metadata review.

When This Skill Owns the Task

Use sf-permissions when the work involves:

  • permission set / permission set group analysis
  • user access investigation
  • finding which permission grants object / field / Apex / flow / tab / custom-permission access
  • auditing or exporting permission configuration
  • reviewing permission metadata impacts

Delegate elsewhere when the user is:

  • creating new metadata definitions → sf-metadata
  • deploying permission sets → sf-deploy
  • analyzing Apex-managed sharing logic → sf-apex

Required Context to Gather First

Ask for or infer:

  • target org alias
  • whether the question is about an object, field, Apex class, flow, tab, custom permission, or specific user
  • whether the goal is hierarchy visualization, access detection, export, or metadata generation
  • whether the output should be terminal-focused or documentation-friendly

1. Classify the request

Request shape Default capability
“who has access to X?” permission detector
“what does this user have?” user analyzer
“show me the hierarchy” hierarchy viewer
“export this permset” exporter
“generate metadata from analysis” generator or handoff

2. Connect to the correct org

Verify sf auth before running permission analysis.

3. Use the narrowest useful query

Prefer focused analysis over broad org-wide scans unless the user explicitly wants a full audit.

When choosing identifiers, prefer stable metadata names first:

  • PermissionSet.Name
  • PermissionSetGroup.DeveloperName
  • CustomPermission.DeveloperName
  • object and field API names such as Account or Account.AnnualRevenue
  • Assignee.Username / email for user-centric checks

Read the full file on GitHub · 151 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 151 lines · 83 tokens per session scan A 73b848204b77

Subscribe to this mod's changes

sf-permissions is a skill published in the GitHub repository Jaganpro/sf-skills (420 stars, last pushed 7mo ago), licensed MIT. It adds 83 tokens to every session and 1,251 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

sf-permissions compared with skills from other repositories

sf-permissions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sf-permissionsJaganpro/sf-skillsSkill4207mo agoMITA83Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code