agentleFS
GabrieleDattileGabrieleDattile/agent-superpowers/.cursor/rules/agent-superpowers.mdc

agent-superpowers / rules

Cursor rule1 starsChanged 15 days agoMITView on GitHub

Disciplined autonomous engineering framework: TDD bug reproduction, git worktree sandboxing, adversarial fuzzing, and AST context compression.

The file

We split this agent-superpowers.mdc into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never guess or speculate on bug fixes without evidence.

    line 13
  2. Distinctive:

    If deterministic reproduction is not possible, document the evidence and add a regression test for the affected invariant.

    line 15
  3. Distinctive:

    Before creating the worktree, inspect git status and preserve or explicitly carry all uncommitted and untracked changes.

    line 20
  4. Distinctive:

    Test explicitly for null-bytes, zero-divisions, payload boundary limits, and unexpected types before committing.

    line 25
  5. Distinctive:

    When loading large multi-file architectures into active context, compress AST structures to preserve token budget.

    line 28
  6. Distinctive:

    If user requirements are ambiguous, clarify boundary conditions, edge cases, and scope constraints before implementation.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agent-superpowers.mdc
---
description: "Disciplined autonomous engineering framework: TDD bug reproduction, git worktree sandboxing, adversarial fuzzing, and AST context compression."
globs: **/*
alwaysApply: false
---
# Agent Superpowers: Autonomous Engineering System

A disciplined, deterministic engineering protocol enforcing rigour before code execution.

## Core Directives

1. **Bug Reproduction First (Ghost Runner)**
   - Never guess or speculate on bug fixes without evidence.
   - Author a minimal reproduction test (MRE) that fails on the current codebase when deterministic reproduction is possible.
   - If deterministic reproduction is not possible, document the evidence and add a regression test for the affected invariant.
   - Apply the minimal code fix and confirm the test PASSES (GREEN).

2. **Branch Isolation (Git Worktree Sandbox)**
   - For complex, multi-file refactoring or experimental tasks, isolate work in an ephemeral git worktree branch.
   - Before creating the worktree, inspect `git status` and preserve or explicitly carry all uncommitted and untracked changes.
   - Protect the main working tree from unverified state corruption.

3. **Adversarial Verification (Adversarial Duelist)**
   - Subject critical business logic and input boundaries to red-team fuzzing.
   - Test explicitly for null-bytes, zero-divisions, payload boundary limits, and unexpected types before committing.

4. **Context Hygiene (Token Squeezer)**
   - When loading large multi-file architectures into active context, compress AST structures to preserve token budget.
   - Strip internal implementations while preserving typed function signatures, exports, and docstrings.

5. **Clarify Before Code (Feature Brainstormer)**
   - If user requirements are ambiguous, clarify boundary conditions, edge cases, and scope constraints before implementation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.