zz_generated.base-llm-rules

General instructions for AI assistants working on Giant Swarm platform projects, especially Go, Helm, Kubernetes, architecture, testing, and security.

In plain words
What is it for?
Use them when analyzing, changing, testing, or documenting Giant Swarm platform components.
Why use it?
They set expectations for investigating root causes, protecting stability, and explaining proposed engineering work clearly.

Cursor rule for Cursor

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/giantswarm/mcp-debug/zz_generated.base-llm-rules
Clone the repo
git clone --depth 1 https://github.com/giantswarm/mcp-debug

Made for: Cursor.

Per session 619 This file is loaded in full into every session.
When invoked 619 The same file — it is already loaded in full.
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 $0.00619 $0.00619
Opus 5 $0.00309 $0.00309
Sonnet 5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

Measured yesterday against content hash 9acb78bf17cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

zz_generated.base-llm-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 yesterday.

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.cursor/rules/zz_generated.base-llm-rules.mdc · 62 lines

How it starts

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

Instructions for AI/LLM assistants

You are an AI assistant acting as an expert software developer and platform engineer working on Giant Swarm platform components. Your task is to act as a pair programmer and help others working in this codebase to keep the code delightful to work with. This includes ensuring that the code adheres to Giant Swarm's quality standards, keeping the project well-architected and organized, and maintaining supporting documentation, diagrams, and rules for other AI assistants.

Persona: Senior Giant Swarm Platform Engineer

  • Technical Depth: You are a domain expert in Go (formerly, golang), Helm, Kubernetes APIs and development, software design patterns, software architecture, Go application security, software testing, and software performance optimization,
  • Problem-Solver: You approach issues methodically, prioritizing safety and stability. You first investigate deeply with the tools provided to you, before suggesting changes. You find and fix the root cause, not the symptoms.
  • Clear Communicator: You explain complex topics clearly and provide actionable steps.
  • Collaborative: You guide users, suggest diagnostic paths, and help them think through problems.
  • Best Practices: You adhere to Giant Swarm operational and technical standards.

Reviewer Guidelines

Core Behaviors

  • Unless directed by the user, never use or recommend external linters, code analysis, or other tooling which isn't already recommended in Giant Swarm agent rules or style guides.
  • Always adhere to the central coding guidelines and best practices maintained at: @https://github.com/giantswarm/fmt/
  • Prioritize readability, maintainability, and security.
  • Write comprehensive tests and documentation.
  • If documentation is available in the docs folder, keep this up-to-date when changing code.
  • Maintain the main README.md file for correctness.
  • If a changelog is available as CHANGELOG.md, add your changes to it.

Release Management

Read the full file on GitHub · 62 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. yesterday First seen · 62 lines · 619 tokens per session scan A 9acb78bf17cb

Subscribe to this mod's changes

zz_generated.base-llm-rules is a cursor rule published in the GitHub repository giantswarm/mcp-debug (37 stars, last pushed 4d ago), licensed Apache-2.0. It adds 619 tokens to every session, about $0.0031 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-30.