agentleFS
MatheusFelipeCorreaMatheusFelipeCorrea/Hyperion/.cursor/rules/hyperion.mdc

Hyperion / rules

Cursor rule2 starsChanged 24 days agoMITView on GitHub

You have access to a full AI development kit in .github/. Use it. Before any task, read: - .github/project.yml — project config (stack, apps, conventions) - .github/memory/PROJECT.md — what this project is - .github/memory/DOMAIN.md — business domain - .github/memory/DECISIONS.md — decisions already made Fixed script messages (CI comments, board guard, coverage) come from scripts/hyperion/i18n/<tag>.json (+ .github/i18n/<tag>.json override) — never hand-translate them. Policy: .github/docs/meta/language-policy-en.md. <!-- HYPERION:LANGUAGE:END --> When the user asks for any of these capabilities, read the corresponding SKILL.md and…

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 4,263 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any task, read:

    line 12
  2. Very specific:

    Read locale (primary language) and languages (primary first) from .github/project.yml.

    line 21
  3. Very specific:

    When the user asks for any of these capabilities, read the corresponding SKILL.md and follow its instructions exactly.

    line 44
  4. Very specific:

    Always check project.yml before making assumptions about stack or conventions

    line 116
  5. Distinctive:

    Use memory files as persistent context across sessions

    line 117
  6. Distinctive:

    When generating cards, follow YAML frontmatter format from card-refiner

    line 119
  7. Very specific:

    Read project.yml → outputs when paths are customized

    line 128
  8. Distinctive:

    When the user asks to change a card in conversation (e.g.

    line 132
  9. Very specific:

    Run npm run hyperion:sync (via hyperion-ops — do not ask user to run npm)

    line 136
  10. Very specific:

    Read .github/skills/planning/card-refiner/SKILL.md section "Card evolution during conversation" for status aliases and full workflow.

    line 139

≈ “Common” is an estimate: at least 1 in 5 of the 7,111 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
hyperion.mdc
---
description: Hyperion integration rules for Cursor
globs: "**/*"
---

# 🌟 Hyperion — Cursor Rules

You have access to a full AI development kit in `.github/`. Use it.

## Context Loading

Before any task, read:
- `.github/project.yml` — project config (stack, apps, conventions)
- `.github/memory/PROJECT.md` — what this project is
- `.github/memory/DOMAIN.md` — business domain
- `.github/memory/DECISIONS.md` — decisions already made

## Language

<!-- HYPERION:LANGUAGE:START -->
Read `locale` (primary language) and `languages` (primary first) from `.github/project.yml`. No `locale` → ask the team language(s) via `/setup` before writing artifacts; until then use `en`.

| What | Language |
|------|----------|
| Chat replies | The person's language |
| Cards, specs, plans, ADRs, memory, audits, reports | Primary (`locale`) |
| PR title/body, PR/review comments, release notes | Primary; when `languages` has more than one and the surface is in `i18n.multilingual` (default `pr`, `comments`, `release`), add one `<details><summary>Language name</summary>` block per extra language |
| Commit messages | Conventional type/scope in English + subject in the primary language (`feat(auth): adiciona login com Google`) |
| Code, identifiers, branches, CARD_ID, paths, CLI flags, CI job/step names | Always English |

Fixed script messages (CI comments, board guard, coverage) come from `scripts/hyperion/i18n/<tag>.json` (+ `.github/i18n/<tag>.json` override) — never hand-translate them. Policy: `.github/docs/meta/language-policy-en.md`.
<!-- HYPERION:LANGUAGE:END -->

## Available Skills

<!-- HYPERION:SKILLS:START -->
Skills live in `.github/skills/` organized by category:

- **planning/** — acceptance-spec, api-contract-guide, card-refiner, feature-flag-manager, hypothesis-forge, project-architect, refactor-guide, sprint-retro
- **setup/** — cards-sync-setup, hyperion-ops, integration-bridge, memory-capture, pipeline-architect, project-discovery, project-startup, repo-migration
- **quality/** — ai-fluency, architecture-audit, code-review, compliance-audit, dependency-health, devops-audit, eng-metrics, full-audit, po-audit, pr-review, security-audit, smoke, tech-debt-tracker, testing-strategy, ux-audit
- **docs/** — adr-generator, changelog-generator, plantuml-generator, pr-writer, readme-updater, release-manager

When the user asks for any of these capabilities, read the corresponding `SKILL.md` and follow its instructions exactly.
<!-- HYPERION:SKILLS:END -->

## Agents

<!-- HYPERION:AGENTS:START -->
- `.github/agents/audit-runner.agent.md` — orchestrated 6-dimension audit (`/audit-run`)
- `.github/agents/implementation-executor.agent.md` — execute approved plan phases (`/execute`)
- `.github/agents/implementation-plan.agent.md` — phased implementation plan (`/implement`)
- `.github/agents/mentoring.agent.md` — for teaching/explaining (`/mentor`)
- `.github/agents/migration.agent.md` — adapt Hyperion to existing repo (`/migrate`)
- `.github/agents/pr-reviewer.agent.md` — review open PR diff + tests (`/pr-review`)
- `.github/agents/release.agent.md` — changelog, version, tag (`/release`)
- `.github/agents/spec-review.agent.md` — gate card/spec before coding (`/spec-review`)

See `.github/agents/README.md` for catalog and recommended flow.
<!-- HYPERION:AGENTS:END -->

## Command shortcuts (run skills — prefer over asking user to use npm)

**You should run terminal commands** via hyperion-ops when the user wants sync/doctor/setup. Full reference: `.github/docs/reference/comandos-rapidos.md`.

| User says | Skill / action |
|-----------|----------------|
<!-- HYPERION:COMMANDS:START -->
| `/help` or "lista comandos Hyperion" | `npm run hyperion:help` + summarize |
| `/setup` or "configura o Hyperion" | `project-startup` |
| `/doctor` or "doctor do Hyperion" | `hyperion-ops` → `npm run hyperion:doctor` |
| `/sync` or "sincroniza os cards" | `hyperion-ops` → `npm run hyperion:sync` |
| `/discover` or "descobre esse projeto" | `project-discovery` |
| `/migrate` | `migration` agent |
| `/refine` or "refina em cards" | `card-refiner` |
| `/explore` | `hypothesis-forge` |
| `/spec` | `acceptance-spec` |
| `/architect` | `project-architect` |
| `/adr` | `adr-generator` |
| `/audit` or "auditoria completa" | `full-audit` |
| `/fluency` | `ai-fluency` |
| `/security` | `security-audit` |
| `/deps` | `dependency-health` |
| `/architecture` | `architecture-audit` |
| `/devops` | `devops-audit` |
| `/po` | `po-audit` |
| `/ux` | `ux-audit` |
| `/review` | `code-review` |
| `/smoke` | `smoke` |
| `/pr` | `pr-writer` |
| `/pr-review` | `pr-reviewer` agent |
| `/implement` | `implementation-plan` agent |
| `/execute` | `implementation-executor` agent |
| `/spec-review` | `spec-review` agent |
| `/audit-run` | `audit-runner` agent |
| `/release` | `release` agent |
| `/mentor` | `mentoring` agent |
| `/refactor` | `refactor-guide` |
| `/feature-flags` | `feature-flag-manager` |
| `/api-contract` | `api-contract-guide` |
| `/retro` | `sprint-retro` |
| `/test-plan` | `testing-strategy` |
| `/tech-debt` | `tech-debt-tracker` |
| `/eng-metrics` | `eng-metrics` |
| `/compliance` | `compliance-audit` |
| `/changelog` | `changelog-generator` |
| `/connect` | `integration-bridge` |
| `/cards-setup` | `cards-sync-setup` |
| `/readme` | `readme-updater` |
| `/diagram` | `plantuml-generator` |
| `/pipeline` | `pipeline-architect` |
<!-- HYPERION:COMMANDS:END -->

## Key Principles

1. Always check `project.yml` before making assumptions about stack or conventions
2. Use memory files as persistent context across sessions
3. Blueprints and exemplars are **optional** — if missing, use codebase discovery (see `.github/docs/reference/methodology-cheatsheet.md`)
4. When generating cards, follow YAML frontmatter format from card-refiner
5. Audit reports go to `.github/audits/results/` — never edit source code during audits
6. ADRs go to `.github/docs/adr/`
7. **Never scatter generated files** — use the output map in `.github/docs/meta/onde-ficam-os-outputs.md`:
   - Cards (sync source) → `.github/cards/`
   - Specs → `.github/plans/specs/`
   - Implementation plans → `.github/plans/implementations/`
   - Discoveries → `.github/memory/discoveries/`
   - Retros → `.github/docs/retros/`
   - Read `project.yml` → `outputs` when paths are customized

## Card evolution (move status, edit fields)

When the user asks to change a card in conversation (e.g. "move EXAMPLE-STORY-001 to Done"):

1. Find the file under `.github/cards/` by `card_id`
2. Edit frontmatter in place (`status`, `priority`, etc.) — never duplicate the card
3. Run `npm run hyperion:sync` (via hyperion-ops — do not ask user to run npm)
4. Explicit `status` in frontmatter updates the GitHub Project Status column on sync (Jira/other: description metadata only today)

Read `.github/skills/planning/card-refiner/SKILL.md` section "Card evolution during conversation" for status aliases and full workflow.

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.