BotCurrent
← Back to examples

Build & debugFrom the makerActs with your OK

Catch code changes that break security rules

Security rules quietly slip as code changes. Your AI checks each rule against the code and tells you what moved.

What happened

Cursor's official recipe shows an automation that checks a repo against a set of rules. It marks each rule enforced, drifted or unclear, saves that state and reports changes with links to the code. The recipe says to replace the default rules before you turn it on, and it doesn't name an approval step for each alert.

Source: Cursor · cursor.com · Tool: Cursor Automations

Copy this prompt

Paste it into ChatGPT, Claude or Gemini, fill in the [brackets] and add your files. It only drafts. You decide what to send or change.

Use it often? Save it as a skill

Add this job to Claude or Codex once, and your agent knows how to do it without you pasting the prompt each time. Text only, no code.

Download for Claude (.zip)View the skill file

How to add it
Claude app or claude.ai
Download the .zip. In Settings, find Skills, choose Upload skill and pick the file. Code execution has to be turned on.
Claude Code
Run this in your terminal:mkdir -p ~/.claude/skills/catch-code-changes-that-break-security-rules && curl -fsSL https://botcurrent.com/skills/catch-code-changes-that-break-security-rules/SKILL.md -o ~/.claude/skills/catch-code-changes-that-break-security-rules/SKILL.md
Codex
Run this in your terminal:mkdir -p ~/.agents/skills/catch-code-changes-that-break-security-rules && curl -fsSL https://botcurrent.com/skills/catch-code-changes-that-break-security-rules/SKILL.md -o ~/.agents/skills/catch-code-changes-that-break-security-rules/SKILL.md

More about skills, and open-source skills we checked

Security scanClear13 of 13 checks passed

We check every skill file before we offer it. This one is the prompt above in skill form.

  • Passed Skill file is well formed
  • Passed Runs its own code or programs
  • Passed Connects to the internet from code
  • Passed Touches passwords, keys or private files
  • Passed Deletes or overwrites things in bulk
  • Passed Hidden or scrambled code
  • Passed Tries to override your instructions
  • Passed Invisible characters in the text
  • Passed Sends your data somewhere else
  • Passed Can pay or buy without asking you
  • Passed Downloads or installs other software
  • Passed Has a password or key written into it
  • Passed Asks for admin (sudo) rights

Files scanned: SKILL.md. Links to: botcurrent.com, cursor.com. Fingerprint: bec610abdd69. What we check

What you'll get

A table of your security rules, each marked kept, broken or unclear, with the code lines behind it.

You'll need

  • Your security rules in plain words
  • The code files or repo to check
  • Last check's results, if any

Before you switch it on

Acts with your OK

If you give this job to an agent that works in your accounts:

Access it needs
Your code repository and Cursor Automations
Keep on “ask me first”
Sending or posting anything, paying or buying, sharing your address or ID, deleting anything

Heads up: Unclear isn't the same as safe. Have a second person review any security fix before you merge it.

More details: full instructions, sources and safeguards

Before you begin

Approve scope, data access, spending and installed integrations separately. Require owner acceptance and a recovery decision before connecting real systems, sending anything or deploying.

Use this in your own AI tool

  1. Copy the starter, then open your own AI tool.
  2. Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
  3. Review the draft and held questions. Any later action needs separate approval.

What you need

Owner-defined security rules

Versioned fictional or authorized code excerpts

Prior status ledger and permitted comparison scope

Start here

  1. Map each rule to supplied code evidence and baseline status.
  2. Separate supported regressions from missing or unobservable behavior.
  3. Propose a change report without scanning, executing probes, delivering alerts or activating automation.
Advanced prompt availability

Advanced prompt

No accepted companion is available for this record. The original material below retains its original status.

Technical setup & run design — optional
Starter
Separate short starter version composed-v1. Untested.
Advanced prompt
No accepted advanced companion is available. Legacy material remains in the original notes with its status.
Compatibility
Unknown; check the actual tool, account and permissions.
Run design
No reviewed run design. No runtime or schedule is activated by BotCurrent.
Setup and access

Proposed inputs

  1. Name

    Rule list

    Owner

    Security owner

    Minimum scope

    Explicit repository rules

    Quality check

    Name scope and exceptions.

  2. Name

    Versioned code evidence

    Owner

    Maintainer

    Minimum scope

    Two permitted revisions

    Quality check

    Pin commits and locations.

  3. Name

    Prior status ledger

    Owner

    Reviewer

    Minimum scope

    Reviewed prior evidence

    Quality check

    Missing history is unknown.

Access and setup — proposed or unknown

Proposed minimum
  1. Begin with supplied fictional code excerpts and a read-only comparison.

  2. Keep alert delivery, executable probes and persistent automation disabled for the first review.

Compatibility unknowns
  1. Unknown: repository coverage, execution sandbox and memory integrity.

  2. Unknown: branch selection, generated code visibility and integration permissions.

External actions requiring approval
  1. Running repository code, persisting a monitor, connecting private sources or sending security findings to Slack.

Source evidence, attribution & limitations

Full source evidence

Official recipe · Tool workflows

Original task title: Detect regression in repository security rules

Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.

Original source

https://cursor.com/marketplace/automations/monitor-engineering-invariants

Attributed to: Cursor

Supporting source context

Project documentation supporting the linked recipe’s scope, permissions and limits. These references do not establish an independent test or add counted jobs.

Official recipe
Original action type
tool_action
What the source reports
The recipe corroborates invariant drift, stores enforced/drifted/inconclusive states and reports evidence-linked changes.
Source outcome limits
Unexecuted recipe. Repository coverage, memory baseline, runtime version, Slack access and permissions are unverified. An inconclusive result is not a clean security assessment; no compliance certification follows.
Evidence attribution caveat
This official recipe describes a procedure; it does not prove successful execution or independently reproduced results.
Source approval description
Replace default invariants before enabling; no per-alert approval gate is specified.
Named tools
Cursor; repository; memory; Slack
Model or version
Unknown
Publication date
Unknown
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
Unknown
Proposed Canadian adaptation
Proposed: review hosting region, handling of operational data, accessibility and local organizational requirements before any Canadian pilot. No Canadian execution or workflow availability was established.
Recommended approval boundaries
Approve scope, data access, spending and installed integrations separately. Require owner acceptance and a recovery decision before connecting real systems, sending anything or deploying.
Technical specification & detailed checks
Detailed steps and output format

At a glance

Suggested result
Rule ledger and code-linked change report.Suggested; untested.
Tool
Cursor AutomationsSource-named; check current access.
Suggested inputs
Rule list; Versioned code evidence; Prior status ledgerProposed; access notes below.
Human review
Approve scope, data access, spending and installed integrations separately. Require owner acceptance and a recovery decision before connecting real systems, sending anything or…
Read full note

Approve scope, data access, spending and installed integrations separately. Require owner acceptance and a recovery decision before connecting real systems, sending anything or deploying.

Suggested boundaries; source approvals below.
Setup notes
Begin with supplied fictional code excerpts and a read-only comparison. Keep alert delivery, executable probes and persistent automation disabled for the first review.Guide notes; proposed setup untested.
Cost
Workflow cost not established. Check current tool pricing, setup and human review costs before trying it.No measured cost or time added.
Content depth
Source-linked example · suggestions untestedDepth does not establish successful execution.
Check source evidence and limits ↓

Function and scope

IT & security, Software engineering · Single task

Editorial classification; no execution or compatibility test is implied.

No tool mapping reviewed for this task.

Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.

The problem

Cross-file changes can weaken agreed security rules.

Suggested task · untested

Proposed: corroborate repository-rule changes against prior evidence.

What you could produce

Rule ledger and code-linked change report.

Where these suggestions come from
  • Core problem: Our suggestion; no result reported by the source
  • Agent job: Our suggestion; no result reported by the source
  • Expected output: Our suggestion; no result reported by the source
  • Relevant job roles: Our suggestion; no result reported by the source
  • Benefit type: Our suggestion; no result reported by the source
Suggestions and their limits

Describes the proposed purpose and review output; measured benefit and successful delivery are not established.

Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.

Before you try it · suggestions untested

Proposed guidance and fictional tests; source-shaped procedures remain attributed to the linked original. No execution is claimed.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. Enforcement may span several code paths.

  2. Prior-state comparison focuses review on changes.

Why an agent / simpler alternative

Useful judgment

Trace cross-file enforcement and uncertainty.

Simpler alternative

Use deterministic policy tests when the rule has a reliable executable oracle.

Unsuitable when

The repository is unauthorized, the baseline is untrusted or the rule is too vague to assess.

Expected deliverable and review checks

Proposed artifact

Rule ledger and code-linked change report.

Critical checks
  1. Corroborate regressions; retain unknowns; alert only on changes.

Missing output evidence

Unknown: no runtime comparison, persisted baseline or delivered alert was independently verified.

First check — proposed, unexecuted

Status

proposed_unexecuted

Synthetic fixture

Fictional rule R1 requires an owner check before deleting a draft. Revision A calls require_owner before delete_draft. Revision B routes a background cleanup directly to delete_draft; the definition of a second permission helper is unavailable.

Acceptance checks
  1. Cite both bypass locations; missing helper stays inconclusive.

  2. Do not claim full-repository security or update a live baseline.

  3. Prepare a comparison ledger only; execute no code and send no alert.

Stop conditions
  1. Code ownership or authorization is unclear.

  2. A finding would expose secrets or require an unapproved executable probe.

Tasks: Build & debugSecurity & complianceResearch & discovery

Useful for: Software developer

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
Cursor AutomationsIndependent testing: No
Failure handling, costs and limits

Failure signals and proposed responses

  1. Signal

    Helper unavailable.

    Why it matters

    Enforcement is unverified.

    Proposed response

    Hold inconclusive; request definition.

  2. Signal

    Unverified baseline replacement.

    Why it matters

    Errors become comparison truth.

    Proposed response

    Retain prior evidence pending review.

Effort and cost — unknown

Setup work
  1. Approve rules and baseline.

Ongoing review
  1. Review changes and unknowns.

Unknowns
  1. Unknown: indexing, model calls, review effort and alert maintenance.

Limits

  1. This proposed inspection supplements security review. It does not establish exhaustive coverage, absence of vulnerabilities or regulatory compliance.

Original task overview & interpretation

Official recipe

Detect regression in repository security rules

Cross-file changes can weaken agreed security rules.

Suggested result

Rule ledger and code-linked change report.

What you need: Source-named agent: Cursor Automations. Suggested inputs: Rule list; Versioned code evidence; Prior status ledger. Begin with supplied fictional code excerpts and a read-only comparison. Keep alert delivery, executable probes and persistent automation disabled for the first review. Workflow costs and current compatibility remain unverified.

Approve scope, data access, spending and installed integrations separately. Require owner acceptance and a recovery decision before connecting real systems, sending anything or deploying.

Official recipe. BotCurrent has not independently tested this workflow.