Scope2Patch: Security Code Review
by ahilqq
Review who can read or change a resource in a pull request. Get a code location, a small patch, and unit tests that check both denied and permitted behavior.
$9.99
What it does
- Trace a permission decision from the signed-in user to the resource being read or changed
- Get a small patch tied to a specific function and the access rule it should enforce
- Check that the fix blocks an unauthorized change without locking out a legitimate editor
Who it's for
Software engineering
Check that a change enforces the right role on the right resource.
Try asking: “Review the access decision in this diff against our workspace membership policy.”
Scope2Patch: Security Code Review
Example session with this skill installed
Editors may rename documents in their own workspaces. Selecting a different workspace in the UI should not change that permission. Review rename_document: it looks up the editor role using actor.selected_workspace, then writes to the document repository.
- Read your context and instructions
- Compiled the scope2patch
Finding: rename_document checks the workspace selected in the UI rather than the workspace that owns the document. Patch: look up the role using document.workspace. Tests: permit an editor in the document workspace even after they switch views; deny a viewer or nonmember and assert that storage was not written. All four tests pass in the bundled offline example.
Connects securely to your tools. The creator never sees your data.
About this skill
A role check can look correct and still consult the wrong workspace. Give Scope2Patch the changed code and the intended access rule. It follows the decision through the service or repository, shows where the behavior differs from the rule, and proposes a patch in the project's style. The review tells you which tests actually ran and what remains uncertain. This source-review edition includes a worked example with four offline tests.
Reviews only the supplied code and policy. It cannot establish deployed behavior, validate unseen checks, or certify an entire application. No live application testing is included.
Source and diff review with offline unit tests. The example uses the Python standard library and in-memory collaborators. Includes the upstream MIT notice.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Nothing to install. It runs in your AI agent.
- Optional
Python 3.7
Provide a code diff or relevant source and the intended permission rule.
Permissions
What's inside
Creator
ahilqq
2 skills on Agensi
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.