vectra
Copilot instructions633 starsChanged 7 months agoMITView on GitHub
A lightweight, file-backed vector database for Node.js and browsers with Pinecone-compatible filtering and hybrid BM25 search.
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Run npm run test:mocha for fast iteration (skips rebuild)
- Very specific: line 49
Run yarn lint and fix any errors
- Very specific: line 50
Run yarn test and ensure all tests pass
- Very specific: line 51
Update llms.txt if you changed public API surface
≈ “Common” is an estimate: at least 1 in 5 of the 3,669 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
<!-- This file is derived from CLAUDE.md. Keep them in sync. -->Vectra
A lightweight, file-backed vector database for Node.js and browsers with Pinecone-compatible filtering and hybrid BM25 search.
Project Structure
src/— TypeScript source fileslib/— Compiled output (do not edit directly)bin/— CLI entry point (vectra)docs/— Jekyll documentation site (GitHub Pages via just-the-docs)samples/— Runnable example projectsdist/— Browser bundle (do not edit directly)
Development Commands
yarn install— Install dependenciesyarn buildornpm run build— Compile TypeScript + copy proto schemas and templatesyarn build:browser— Build browser UMD bundle via webpackyarn build:all— Build both Node.js and browser targetsyarn testornpm test— Build + run testsnpm run test:mocha— Run tests only (skip build)yarn lintornpm run lint— Run ESLintyarn clean— Remove build artifacts
Code Conventions
- TypeScript strict mode — no
anyunless unavoidable - Tests colocated with source:
src/foo.spec.tstestssrc/foo.ts - Barrel exports through
src/index.ts— every public API must be re-exported here - Browser exports through
src/browser.ts— excludes Node-specific modules - Internal utilities in
src/internals/— not exported from the package
Testing
- Framework: mocha with sinon for mocks
- Coverage: nyc — reports to Coveralls
- Run
npm run test:mochafor fast iteration (skips rebuild) - Test timeout: 10000ms
CI
- GitHub Actions on push/PR to
main - Pipeline: install → lint → build → test → coverage upload
- Node 22 on ubuntu-latest
Before Submitting a PR
- Run
yarn lintand fix any errors - Run
yarn testand ensure all tests pass - Update
llms.txtif you changed public API surface
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,297 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

