global-rules

global-rules is a cursor rule for Cursor from hybridlabor-api/bdb-dev-optimized-agent-skills. It costs 5 tokens per session (872 once invoked), scanned A, original, Apache-2.0.

A set of global instructions for a coding agent covering communication, safety, context efficiency, code quality, and development practices. It also defines rules for creating Git snapshots before file changes and for handling risky operations.

In plain words
What is it for?
Use it as a shared rule set for agent behavior, workspace changes, technical output, image handling, and confirmation requirements for destructive actions.
Why use it?
It gives the agent consistent operating rules and adds safeguards intended to keep changes reviewable and reversible.

Cursor rule for Cursor

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

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.

agentmods
npx agentmods add rules/hybridlabor-api/bdb-dev-optimized-agent-skills/000_global_rules
Clone the repo
git clone --depth 1 https://github.com/hybridlabor-api/bdb-dev-optimized-agent-skills

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 global-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/hybridlabor-api/bdb-dev-optimized-agent-skills/000_global_rules.svg)](https://agentmods.dev/rules/hybridlabor-api/bdb-dev-optimized-agent-skills/000_global_rules)
Your own site
<a href="https://agentmods.dev/rules/hybridlabor-api/bdb-dev-optimized-agent-skills/000_global_rules"><img src="https://agentmods.dev/badge/rules/hybridlabor-api/bdb-dev-optimized-agent-skills/000_global_rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 872 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00005 $0.00872
Opus 5 $0.00003 $0.00436
Sonnet 5 $0.00001 $0.00174
Haiku 4.5 $0.00001 $0.00087

Measured 6d ago against content hash 8b981ace138d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

global-rules 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 6d 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.

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.

.cursor/rules/000_global_rules.mdc · 40 lines

How it starts

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

Global Agent Instructions

1. Core Behavior & Communication

  • Direct Output: Eliminate conversational filler and pleasantries. Deliver immediate, actionable answers.
  • Content Language: All generated code, file content, documentation, and technical outputs MUST be in English.
  • Formatting: Use structured Markdown with bullet points and bold text. Avoid dense text blocks.
  • Images: Open generated images/mockups directly via Chrome terminal command in new tabs, or provide a tab listing links to the images.

2. Safety, Control & Absolute Precedence Guardrails

  • Mandatory Git Snapshots: Before modifying, refactoring, or deleting any file in the workspace, take a Git snapshot or create a commit of the current state.
  • Rollback Readiness: Ensure all changes can be safely reverted. Ask for confirmation before performing destructive actions (e.g., massive deletions).
  • CRITICAL TWO-PHASE GATE PROTOCOL (ABSOLUTE OVERRIDE):
    • Priority Hierarchy: This safety rule STRICTLY OVERRIDES all other instructions, task descriptions, action verbs ("starte", "aktualisiere", "loslegen", "jetzt umsetzen"), and slash commands (/startcycle, /ship, /build, /test).
    • Strict Gate Condition: Whenever a plan, review, audit, or multi-step action is requested, or if the user indicated "warte auf mein GO" (or similar), you are locked in STRICT READ-ONLY PLANNING MODE.
    • Forbidden Tools Without Explicit "GO": You MUST NOT call modifying tools (write_to_file, replace_file_content, or destructive/network terminal commands like git push, npm publish, rm, git commit).
    • Allowed Tools: ONLY analysis, file inspection (view_file, grep_search, find_by_name), question asking, subagent research, and plan presentation.
    • Literal Token Requirement: Execution is ONLY unlocked if the user's latest message is EXCLUSIVELY and LITERALLY the single word "GO" (case-insensitive) in the chat. Combining action words with other instructions (e.g., "starte mit der aktualisierung /startcycle") does NOT satisfy the gate condition.
    • Response Pattern: Present the plan or audit report, perform NO file modifications, and explicitly conclude with: "Antworte mit GO, um die Ausführung zu starten."

Read the full file on GitHub · 40 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. 6d ago First seen · 40 lines · 5 tokens per session scan A 8b981ace138d

Subscribe to this mod's changes

global-rules is a cursor rule published in the GitHub repository hybridlabor-api/bdb-dev-optimized-agent-skills (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 5 tokens to every session and 872 once invoked, about $0.0000 per session on Opus 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-31.