agentleFS
MatheusFelipeCorreaMatheusFelipeCorrea/Hyperion/.github/copilot-instructions.md

Hyperion

Copilot instructions2 starsChanged 24 days agoMITView on GitHub

These instructions apply to all AI coding agents working in this repository (GitHub Copilot, Cursor, Claude Code, or any other). They are the project's coding constitution — do not violate them. Use Conventional Commits: - feat: — new feature - fix: — bug fix - refactor: — restructuring without behavior change - test: — adding or fixing tests - docs: — documentation only - chore: — tooling, config, dependencies Type and scope stay in English (tooling parses them); the subject…

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

30 rules. About 0 are common, 18 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Read .github/project.yml if it exists — it defines the project contract.

    line 9
  2. Very specific:

    Read .github/memory/PROJECT.md — project context.

    line 10
  3. Very specific:

    Read .github/memory/DOMAIN.md — domain model.

    line 11
  4. Very specific:

    Read .github/memory/DECISIONS.md — existing decisions.

    line 12
  5. Very specific:

    If project.yml is absent, run the project-discovery skill or ask the user.

    line 13
  6. Distinctive:

    Write the simplest solution that satisfies the requirement.

    line 19
  7. Distinctive:

    Do not implement without understanding what "done" means.

    line 25
  8. Very specific:

    If neither exists, ask the user or suggest running card-refiner or acceptance-spec.

    line 27
  9. Distinctive:

    Never commit secrets, tokens, or credentials.

    line 31
  10. Distinctive:

    Never trust external input without validation.

    line 32
  11. Distinctive:

    When in doubt, ask before exposing data.

    line 34
  12. Distinctive:

    If you make or suggest an architectural choice, note it.

    line 38
  13. Distinctive:

    Every feature must have tests.

    line 58
  14. Distinctive:

    Do not skip tests to ship faster.

    line 60
  15. Distinctive:

    Use consistent error patterns across the codebase.

    line 64
  16. Distinctive:

    Never swallow errors silently.

    line 66
  17. Distinctive:

    Follow existing conventions discovered from the codebase.

    line 70
  18. Very specific:

    When creating new files, reference project.yml for paths and existing patterns.

    line 71
  19. Distinctive:

    Never invent a new organizational pattern without checking what exists.

    line 72
  20. Distinctive:

    Never execute code or make breaking changes without explicit permission.

    line 85
  21. Distinctive:

    Ask when something is ambiguous or contradictory.

    line 87
  22. Very specific:

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

    line 92
  23. Distinctive:

    Keep technical terms in English (controller, service, hook, middleware, etc.).

    line 105
  24. Distinctive:

    Update documentation when behavior changes.

    line 109
  25. Distinctive:

    Prefer diagrams (Mermaid) over long prose for flows.

    line 110
  26. Very specific:

    Keep READMEs current — use readme-updater skill periodically.

    line 111
  27. Very specific:

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

    line 123
  28. Very specific:

    When a task maps to an existing skill, suggest using it — or run npm yourself via hyperion-ops when the user wants sync/doctor without …

    line 141
  29. Distinctive:

    If the user asks to move or update a card (e.g.

    line 191
  30. Very specific:

    Run npm run hyperion:sync (or hyperion-ops skill)

    line 195

≈ “Common” is an estimate: at least 1 in 5 of the 3,894 Copilot instructions 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
copilot-instructions.md

Project Instructions

These instructions apply to all AI coding agents working in this repository (GitHub Copilot, Cursor, Claude Code, or any other). They are the project's coding constitution — do not violate them.

Bootstrap (always first)

  1. Read .github/project.yml if it exists — it defines the project contract.
  2. Read .github/memory/PROJECT.md — project context.
  3. Read .github/memory/DOMAIN.md — domain model.
  4. Read .github/memory/DECISIONS.md — existing decisions.
  5. If project.yml is absent, run the project-discovery skill or ask the user.

Principles

KISS first, SOLID on refactor, DRY on third occurrence

  • Write the simplest solution that satisfies the requirement.
  • Apply SOLID patterns during refactoring, not upfront.
  • Extract shared code only when the pattern has repeated 3 times.

Spec before code

  • Do not implement without understanding what "done" means.
  • Acceptance criteria or a BDD spec must exist before writing logic.
  • If neither exists, ask the user or suggest running card-refiner or acceptance-spec.

Security is not a phase

  • Never commit secrets, tokens, or credentials.
  • Never trust external input without validation.
  • Apply the principle of least privilege in access control.
  • When in doubt, ask before exposing data.

Decisions are recorded

  • If you make or suggest an architectural choice, note it.
  • Small decisions: add to .github/memory/DECISIONS.md.
  • Significant decisions: suggest creating an ADR via adr-generator.

Code Rules

Commits

Use Conventional Commits:

  • feat: — new feature
  • fix: — bug fix
  • refactor: — restructuring without behavior change
  • test: — adding or fixing tests
  • docs: — documentation only
  • chore: — tooling, config, dependencies

Type and scope stay in English (tooling parses them); the subject is written in the primary language (locale), e.g. fix(cards): corrige status duplicado no board.

Tests

  • Every feature must have tests. Prefer unit tests for logic, integration for flows.
  • TDD is encouraged: Red (failing test) → Green (minimal pass) → Refactor.
  • Do not skip tests to ship faster.

Error handling

  • Use consistent error patterns across the codebase.
  • Errors should be informative (what went wrong, where, what to do).
  • Never swallow errors silently.

File organization

  • Follow existing conventions discovered from the codebase.
  • When creating new files, reference project.yml for paths and existing patterns.
  • Never invent a new organizational pattern without checking what exists.
  • Hyperion outputs — every skill writes to a defined folder (see .github/docs/meta/onde-ficam-os-outputs.md):
    • Cards (sync) → .github/cards/
    • Specs → .github/plans/specs/
    • Plans → .github/plans/implementations/
    • Audits → .github/audits/results/<type>/
    • ADRs → .github/docs/adr/
    • Discoveries → .github/memory/discoveries/

Collaboration Rules

Human gates

  • Never execute code or make breaking changes without explicit permission.
  • Present plans before implementing.
  • Ask when something is ambiguous or contradictory.

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.

WhatLanguage
Chat repliesThe person's language
Cards, specs, plans, ADRs, memory, audits, reportsPrimary (locale)
PR title/body, PR/review comments, release notesPrimary; 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 messagesConventional 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 namesAlways 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 -->

Keep technical terms in English (controller, service, hook, middleware, etc.).

Documentation

  • Update documentation when behavior changes.
  • Prefer diagrams (Mermaid) over long prose for flows.
  • Keep READMEs current — use readme-updater skill periodically.

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

When a task maps to an existing skill, suggest using it — or run npm yourself via hyperion-ops when the user wants sync/doctor without using the terminal.

NeedSkill / command
<!-- HYPERION:COMMANDS:START -->

| Full Hyperion setup | project-startup — or user says /setup | | Sync / doctor / validate cards | hyperion-ops — runs npm run hyperion:sync, hyperion:doctor | | Map repo, create project.yml | project-discovery — or user says /discover | | Adapt Hyperion to existing repo | migration agent | | Refine idea into cards | card-refiner — or user says /refine | | Problem exploration session | hypothesis-forge — or user says /explore | | Given/When/Then spec | acceptance-spec — or user says /spec | | Greenfield architecture | project-architect — or user says /architect | | Architecture Decision Record | adr-generator — or user says /adr | | Full audit (6 dimensions) | full-audit — or user says /audit | | AI fluency and harness scan (two scores out of 15) | ai-fluency — or user says /fluency | | Security review | security-audit — or user says /security | | Dependency audit + outdated | dependency-health — or user says /deps | | Architecture review | architecture-audit — or user says /architecture | | DevOps review | devops-audit — or user says /devops | | Product alignment | po-audit — or user says /po | | UX review | ux-audit — or user says /ux | | Code review | code-review — or user says /review | | Boot the app and exercise the spec; report only | smoke — or user says /smoke | | Open a PR in the repo language (multilingual when configured) | pr-writer — or user says /pr | | Review open PR (diff + tests) | pr-reviewer agent | | Phased implementation plan | implementation-plan agent | | Execute approved plan phase | implementation-executor agent | | Gate card/spec before coding | spec-review agent | | Orchestrated 6-dimension audit | audit-runner agent | | Changelog, version, tag | release agent | | Socratic teaching | mentoring agent | | Safe refactoring guide | refactor-guide — or user says /refactor | | Flag lifecycle: rollout, kill switch, removal date | feature-flag-manager — or user says /feature-flags | | API versioning, breaking changes, deprecation | api-contract-guide — or user says /api-contract | | Sprint retrospective | sprint-retro — or user says /retro | | Testing strategy | testing-strategy — or user says /test-plan | | Tech debt inventory | tech-debt-tracker — or user says /tech-debt | | DORA metrics snapshot | eng-metrics — or user says /eng-metrics | | LGPD/GDPR technical signals | compliance-audit — or user says /compliance | | Generate CHANGELOG | changelog-generator — or user says /changelog | | Jira/Azure/Linear/GitLab bridge | integration-bridge — or user says /connect | | Cards sync wizard | cards-sync-setup — or user says /cards-setup | | Update README | readme-updater — or user says /readme | | PlantUML/Mermaid diagrams | plantuml-generator — or user says /diagram | | Adaptive CI/CD setup | pipeline-architect — or user says /pipeline |

<!-- HYPERION:COMMANDS:END -->

Evolving cards in conversation

If the user asks to move or update a card (e.g. "mova o card X para Done"):

  1. Edit the existing file in .github/cards/{epics|features|stories|tasks}/ — update status or other frontmatter fields
  2. Keep card_id unchanged
  3. Run npm run hyperion:sync (or hyperion-ops skill)
  4. GitHub: Project Status column updates. Jira/other: status in issue metadata (native board not mapped yet)
  5. Allowed status values: Backlog, Functional Refinement, Technical Refinement, In Progress, In Tests, In Revision, Done

See card-refiner skill § Card evolution during conversation (status aliases) and § Prototype-first refinement (UX flow).

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.