agentleFS
veerps57veerps57/memento/.github/copilot-instructions.md

memento

Copilot instructions24 starsChanged 7 months agoApache-2.0View on GitHub

This file is read automatically by GitHub Copilot in VS Code and other Copilot-enabled environments. The canonical instruction set for all AI agents working on Memento lives in AGENTS.md at the repository root. This file exists only to point Copilot at it; everything below is a brief summary. Do not duplicate content here — read AGENTS.md directly. When you edit files in these areas, the canonical reference is: These live as concise checklists rather than executable prompt files: First principles.…

  • Installs packages

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you edit files in these areas, the canonical reference is:

    line 15
  2. Very specific:

    Add a config key: add a defineKey entry to packages/schema/src/config-keys.ts, follow the JSDoc-style guidance at the top of that file, …

    line 27
  3. Very specific:

    Add a migration: add the next-numbered migration under packages/core/src/storage/migrations/ with a matching test under …

    line 28
  4. Distinctive:

    If a change cannot be justified against these, it should not land.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 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

GitHub Copilot Instructions

This file is read automatically by GitHub Copilot in VS Code and other Copilot-enabled environments.

The canonical instruction set for all AI agents working on Memento lives in AGENTS.md at the repository root. This file exists only to point Copilot at it; everything below is a brief summary. Do not duplicate content here — read AGENTS.md directly.

Read this first

  1. AGENTS.md — guiding principles, architectural rules, common pitfalls, verification commands.
  2. ARCHITECTURE.md — high-level architecture and links into the deeper docs.
  3. docs/adr/ — every architectural decision and why it was made.

Path-specific guidance

When you edit files in these areas, the canonical reference is:

  • **/*.test.ts — AGENTS.md § "Architectural rules" + § "Verification"; tests must use Vitest, mirror the source layout under packages/<pkg>/test/, and keep the 90/90/90/90 coverage gate green.
  • packages/core/src/storage/migrations/** — ADR-0001 and existing migrations under that directory; migrations are forward-only and must include matching tests under packages/core/test/storage/migrations/.
  • packages/core/src/commands/** — ADR-0003 and packages/core/README.md; every command lands in the single registry and is projected to MCP and CLI by adapters.
  • docs/** — generated reference docs under docs/reference/ are produced by pnpm docs:generate (do not hand-edit); architectural prose under docs/architecture/ and ADRs under docs/adr/ follow the templates already in those directories.

Reusable workflows

These live as concise checklists rather than executable prompt files:

  • Add a command: define schemas in @psraghuveer/memento-schema, register the command in packages/core/src/commands/, add tests, run pnpm docs:generate to refresh docs/reference/cli.md and docs/reference/mcp-tools.md. ADR-0003 is the contract.
  • Add a config key: add a defineKey entry to packages/schema/src/config-keys.ts, follow the JSDoc-style guidance at the top of that file, then pnpm docs:generate to refresh docs/reference/config-keys.md.
  • Add a migration: add the next-numbered migration under packages/core/src/storage/migrations/ with a matching test under packages/core/test/storage/migrations/. Migrations are forward-only.

The four principles, in one breath

First principles. Modular. Extensible. Config-driven.

If a change cannot be justified against these, it should not land.

Verification before opening a PR

pnpm install && pnpm verify

pnpm verify mirrors the CI gate (<!-- verify-chain:begin -->lint → typecheck → build → test → test:e2e → docs:lint → docs:reflow:check → docs:links → docs:check → format:packs:check → server-json:check<!-- verify-chain:end -->). See AGENTS.md for the full pre-PR checklist.

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.