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
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- memento-devSkill
- mementoSkill
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
- Distinctive: line 15
When you edit files in these areas, the canonical reference is:
- Very specific: line 27
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, …
- Very specific: line 28
Add a migration: add the next-numbered migration under packages/core/src/storage/migrations/ with a matching test under …
- Distinctive: line 34
If a change cannot be justified against these, it should not land.
≈ “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.
Files
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
AGENTS.md— guiding principles, architectural rules, common pitfalls, verification commands.ARCHITECTURE.md— high-level architecture and links into the deeper docs.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 underpackages/<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 underpackages/core/test/storage/migrations/.packages/core/src/commands/**— ADR-0003 andpackages/core/README.md; every command lands in the single registry and is projected to MCP and CLI by adapters.docs/**— generated reference docs underdocs/reference/are produced bypnpm docs:generate(do not hand-edit); architectural prose underdocs/architecture/and ADRs underdocs/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 inpackages/core/src/commands/, add tests, runpnpm docs:generateto refreshdocs/reference/cli.mdanddocs/reference/mcp-tools.md. ADR-0003 is the contract. - Add a config key: add a
defineKeyentry topackages/schema/src/config-keys.ts, follow the JSDoc-style guidance at the top of that file, thenpnpm docs:generateto refreshdocs/reference/config-keys.md. - Add a migration: add the next-numbered migration under
packages/core/src/storage/migrations/with a matching test underpackages/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 verifypnpm 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.
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
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.

