Sf permissions

From Jaganpro/sf-skills · View interactive version

Sf permissions is an AI agent skill from the GitHub repository Jaganpro/sf-skills. Permission Set analysis, hierarchy viewer, and access auditing. TRIGGER when: user asks "who has access to X?", analyzes permission sets/groups, or touches .permissionset-meta.xml / .permissionsetgroup-meta.xml files. DO NOT TRIGGER when: creating new metadata (use sf-metadata), deploying permission

How to use this skill

Skill file

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:

Delegate elsewhere when the user is:


Required Context to Gather First

Ask for or infer:


Recommended Workflow

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:

Use Salesforce record IDs only when:

4. Render findings clearly

Use:

5. Hand off creation or deployment work

Use:


High-Signal Rules


Output Format

When finishing, report in this order:

  1. What was analyzed
  2. Org / subject scope
  3. Which permissions grant access
  4. Whether access is direct or inherited
  5. Recommended follow-up

Suggested shape:

Permission analysis: <hierarchy / detect / user / export>
Scope: <org, user, permission target>
Findings: <permsets / groups / access level>
Source: <direct assignment or via group>
Next step: <export, generate metadata, or deploy changes>

Cross-Skill Integration

| Need | Delegate to | Reason |

|---|---|---|

| generate or modify permission metadata | sf-metadata | metadata authoring |

| deploy permission changes | sf-deploy | rollout |

| identify Apex classes needing grants | sf-apex | implementation context |

| bulk user assignment analysis | sf-data | larger data operations |


Reference Map

Start here

Specialized analysis


Score Guide

| Score | Meaning |

|---|---|

| 90+ | strong permission analysis with clear access sourcing |

| 75–89 | useful audit with minor gaps |

| 60–74 | partial visibility only |

| < 60 | insufficient evidence; expand analysis |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.