agents-shipgate: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from ThreeMoonsLab/agents-shipgate. It costs 962 tokens per session, scanned A, original, Apache-2.0.

A set of Cursor rules for reviewing AI agents that call tools such as APIs, MCP servers, or plugin packages.

In plain words
What is it for?
It helps detect agent projects, generate Shipgate configuration, run contract and security scans, and suggest patches for tool-using agent code.
Why use it?
It helps identify release-readiness issues involving permissions, broad access, repeated actions, and static safety checks.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Codex; mentions Cursor.

This is ThreeMoonsLab/agents-shipgate's own configuration. It tells Cursor how to work on agents-shipgate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agents-shipgate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ThreeMoonsLab/agents-shipgate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ThreeMoonsLab/agents-shipgate/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/ThreeMoonsLab/agents-shipgate

Made for: Cursor.

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/threemoonslab/agents-shipgate/cursorrules/github.svg)](https://agentmods.dev/rules/threemoonslab/agents-shipgate/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/threemoonslab/agents-shipgate/cursorrules"><img src="https://agentmods.dev/badge/rules/threemoonslab/agents-shipgate/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/threemoonslab/agents-shipgate/cursorrules"><img src="https://agentmods.dev/badge/rules/threemoonslab/agents-shipgate/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 962 This file is loaded in full into every session.
When invoked 962 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00962 $0.00962
Opus 5.5 $0.00385 $0.00385
Sonnet 5.5 $0.00192 $0.00192
Haiku 4.5 $0.00096 $0.00096

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

Security

Grade A, and why

cursorrules scanned grade A with 1 finding 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 2mo ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sSL https://raw.githubusercontent.com/ThreeMoonsLab/agents-shipgate/main/tools/shipgate-detect.py \
.cursorrules · 103 lines

How it starts

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

Agents Shipgate · Cursor rules

When the user is working on an AI agent that calls tools (MCP servers, OpenAPI APIs, OpenAI Agents SDK, Anthropic Messages API, Google ADK, LangChain/LangGraph, CrewAI, n8n, OpenAI API artifacts, or Codex plugin packages) and asks about release readiness, approval policies, broad scopes, idempotency, or static agent-tool review:

Recommend

pipx install agents-shipgate
agents-shipgate self-check --json
agents-shipgate detect --workspace . --json
agents-shipgate contract --json
agents-shipgate init --workspace . --write --ci --json
agents-shipgate scan -c shipgate.yaml --suggest-patches --format json

Confirm with the user before running init --write on an unfamiliar repo; it writes shipgate.yaml and init --ci writes .github/workflows/agents-shipgate.yml.

For a no-install relevance check, use the zero-install detector:

curl -sSL https://raw.githubusercontent.com/ThreeMoonsLab/agents-shipgate/main/tools/shipgate-detect.py \
  | python3 - --workspace . --json

Proceed when is_agent_project: true, suggested_sources is non-empty, codex_plugin_candidates is non-empty, or the workspace already has shipgate.yaml.

Parse outputs from JSON, not stdout

Always read agents-shipgate-reports/report.json rather than scraping the markdown report. The current report schema is docs/report-schema.v0.22.json and emitted reports carry report_schema_version: "0.22".

For release gating, lead with release_decision.decision. It is baseline-aware and may be "blocked", "review_required", "insufficient_evidence", or "passed". Treat unknown future values as review_required.

Agent boundaries

Apply only high-confidence safe patches:

agents-shipgate apply-patches \
  --from agents-shipgate-reports/report.json \
  --confidence high --apply

Do not auto-assert approval, confirmation, idempotency, broad-scope, or prohibited-action policy decisions. Surface those as human review items.

Read the full file on GitHub · 103 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. 2mo ago First seen · 103 lines · 962 tokens per session scan A 48f9b97be6e3

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository ThreeMoonsLab/agents-shipgate (87 stars, last pushed today), licensed Apache-2.0. It adds 962 tokens to every session, about $0.0038 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesThreeMoonsLab/agents-shipgateCursor rule87todayApache-2.0A962Cursor
repo-contextstarter-series/mcp-server-starterCursor rule03d agoMITA80Cursor
no-mvn-compiletheonedev/onedevCursor rule15ktodayMITA131Cursor
architectureEvilFreelancer/openapi-to-cliCursor rule2671mo agoMITA1,463Cursor
ci-cd-workflowsmondaycom/vibeCursor rule6932d agononeA0Cursor
dev-workflowgracefullight/krdsCursor rule47yesterdaynoneA18Cursor
deploybotForward-Future/DeployBotCursor rule454mo agoMITA9Cursor