RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/thangaram611/second-brain

Copilot instructions

.github/copilot-instructions.md
Copilot instructions

Quality

96/100

Scores the file, not the repository.

Length

438 words

9 headings · 2 code blocks

Repository

0

— · pushed 31 days ago

Last changed

3 days ago

First indexed 3 days ago.
thangaram611/second-brain/.github/copilot-instructions.mdRawGitHub
1# GitHub Copilot Instructions — Second Brain
2 
3## Project
4 
5Developer knowledge graph — pnpm monorepo with Turborepo. Node.js 22+, TypeScript 5.8+ strict mode, ESM only.
6 
7For full architecture details, see [docs/architecture.md](../docs/architecture.md).
8For agent-level instructions, see [AGENTS.md](../AGENTS.md).
9 
10## Tech Stack
11 
12- **Runtime**: Node.js 22+, ESM modules only (`"type": "module"`)
13- **Language**: TypeScript 5.8+ (strict mode, explicit return types, no `any`)
14- **Database**: SQLite via better-sqlite3 + Drizzle ORM, WAL mode
15- **Search**: FTS5 (BM25) + sqlite-vec (cosine KNN), fused via Reciprocal Rank Fusion
16- **Validation**: Zod v4 for all external inputs
17- **Testing**: Vitest with in-memory SQLite (`:memory:`), globals enabled
18- **Build**: tsdown (ESM bundler), tsc (type-check only)
19- **Frontend**: React 19, Zustand, Cytoscape.js, Tailwind CSS, Radix UI
20- **Sync**: Yjs CRDTs via Hocuspocus relay
21- **IDs**: ULIDs (via ulidx). Never UUID
22- **Timestamps**: ISO 8601 strings. Never unix timestamps
23 
24## Conventions
25 
26### DO
27- Use named exports, re-export from package index.ts
28- Use workspace imports: `@second-brain/core`, `@second-brain/types`
29- Use Zod schemas for request validation in routes
30- Write tests with Vitest using in-memory SQLite
31- Use `batchUpsert` for bulk operations (merges observations/tags on conflict)
32- Keep observations as atomic, concise facts (string arrays)
33- Use try-catch with descriptive error messages
34 
35### DON'T
36- Use path aliases (rely on workspace resolution)
37- Use `any` type
38- Import from package internals (use public API via index.ts)
39- Use UUIDs (use ULIDs from ulidx)
40- Use Date objects or unix timestamps in storage
41- Manually write to entities_fts table (auto-maintained via triggers)
42- Sync the 'personal' namespace
43- Mutate stored confidence values (decay is read-side only)
44 
45## Monorepo Structure
46 
47```
48packages/types — Shared TypeScript types
49packages/core — Knowledge graph engine (Brain class)
50packages/collectors — Data collectors + streaming providers
51packages/ingestion — LLM extraction + embedding pipeline
52packages/sync — Yjs CRDT sync bridge
53packages/mcp-server — MCP tools (32 tools, stdio + HTTP)
54apps/server — Express 5 REST API + WebSocket (port 7430)
55apps/ui — React 19 + Cytoscape.js web app (port 5173)
56apps/relay — Hocuspocus CRDT relay (port 7421)
57tools/cli — brain CLI (Commander.js)
58```
59 
60## Commands
61 
62```bash
63pnpm install # Install dependencies
64pnpm build # Build all packages
65pnpm test # Run all tests
66pnpm check-types # Type-check everything
67pnpm dev # Start dev servers
68```
69 
70## Data Model
71 
72- **Entity types** (15): concept, decision, pattern, person, file, symbol, event, tool, fact, conversation, reference, implementation, pull_request, merge_request, branch
73- **Relation types** (20): relates_to, depends_on, implements, supersedes, contradicts, derived_from, authored_by, decided_in, uses, tests, contains, co_changes_with, preceded_by, blocks, reviewed_by, merged_in_mr, merged_in_pr, touches_file, owns, parallel_with
74- Every entity/relation has a `namespace` field
75- Bitemporal: eventTime + ingestTime
76- Confidence with time-based decay (read-side only)
77 

Commands it names

  • pnpm install
  • pnpm build
  • pnpm test
  • pnpm check-types
  • pnpm dev

Sections

  • GitHub Copilot Instructions — Second Brain
  • Project
  • Tech Stack
  • Conventions
  • DO
  • DON'T
  • Monorepo Structure
  • Commands
  • Data Model

What it covers

setuptestcode-stylearchitecturetypesmonorepodo-notagent-behaviour

Stack — with the evidence

typescript

(1.00)

node

(1.00)

turborepo

(1.00)

monorepo

(1.00)

eslint

(1.00)

pnpm

(0.85)

react

(0.70)

express

(0.70)

drizzle

(0.70)

tailwind

(0.70)

vite

(0.70)

vitest

(0.70)

javascript

(0.60)

github-actions

(0.60)

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
thangaram611
Language
—
License
—
Archived
no

All configs in this repo

Also in thangaram611/second-brain

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
thangaram611/second-brain.clinerules/01-project.md · 0Cline rulestypescriptnode+12setuptestmonorepodo-not65/1003 days ago
thangaram611/second-brain.clinerules/02-conventions.md · 0Cline rulestypescriptnode+12teststyledo-not40/1003 days ago
thangaram611/second-brain.clinerules/03-backend.md · 0Cline rulestypescriptnode+12styledatabase37/1003 days ago
thangaram611/second-brain.clinerules/04-frontend.md · 0Cline rulestypescriptnode+12style28/1003 days ago
thangaram611/second-brain.clinerules/05-testing.md · 0Cline rulestypescriptnode+12testdo-not35/1003 days ago
thangaram611/second-brain.clinerules/06-data-model.md · 0Cline rulestypescriptnode+12types25/1003 days ago
thangaram611/second-brain.cursor/rules/backend.mdc · 0Cursor rulestypescriptnode+12do-not31/1003 days ago
thangaram611/second-brain.cursor/rules/data-model.mdc · 0Cursor rulestypescriptnode+12types30/1003 days ago
thangaram611/second-brain.cursor/rules/frontend.mdc · 0Cursor rulestypescriptnode+12do-not31/1003 days ago
thangaram611/second-brain.cursor/rules/project.mdc · 0Cursor rulestypescriptnode+12testdo-notagent-behaviour50/1003 days ago
thangaram611/second-brain.cursor/rules/testing.mdc · 0Cursor rulestypescriptnode+12testdo-not27/1003 days ago
thangaram611/second-brain.windsurfrules · 0Windsurf rulestypescriptnode+12setupteststylearch+475/1003 days ago
thangaram611/second-brainAGENTS.md · 0AGENTS.mdtypescriptnode+12setupteststyletypes+374/1003 days ago
thangaram611/second-brainCLAUDE.md · 0CLAUDE.mdtypescriptnode+12agent-behaviour16/1003 days ago
thangaram611/second-brainapps/relay/AGENTS.md · 0AGENTS.mdtypescriptnode+12monorepoagent-behaviour33/1003 days ago
thangaram611/second-brainapps/server/AGENTS.md · 0AGENTS.mdtypescriptnode+12styleapimonorepoagent-behaviour56/1003 days ago
thangaram611/second-brainapps/ui/AGENTS.md · 0AGENTS.mdtypescriptnode+12styleuimonorepoagent-behaviour56/1003 days ago
thangaram611/second-brainpackages/collectors/AGENTS.md · 0AGENTS.mdtypescriptnode+12agent-behaviour52/1003 days ago
thangaram611/second-brainpackages/core/AGENTS.md · 0AGENTS.mdtypescriptnode+12testtypesdatabaseagent-behaviour62/1003 days ago
thangaram611/second-brainpackages/ingestion/AGENTS.md · 0AGENTS.mdtypescriptnode+12styleagent-behaviour48/1003 days ago
Diff against .clinerules/01-project.md Diff against .clinerules/02-conventions.md Diff against .clinerules/03-backend.md Diff against .clinerules/04-frontend.md Diff against .clinerules/05-testing.md Diff against .clinerules/06-data-model.md Diff against .cursor/rules/backend.mdc Diff against .cursor/rules/data-model.mdc Diff against .cursor/rules/frontend.mdc Diff against .cursor/rules/project.mdc Diff against .cursor/rules/testing.mdc Diff against .windsurfrules Diff against AGENTS.md Diff against CLAUDE.md Diff against apps/relay/AGENTS.md Diff against apps/server/AGENTS.md Diff against apps/ui/AGENTS.md Diff against packages/collectors/AGENTS.md Diff against packages/core/AGENTS.md Diff against packages/ingestion/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17Copilot instructionsnodejavascriptsetupbuildtestlint-format+7100/1003 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31kCopilot instructionstypescriptnode+7buildlint-formatstylearch+397/1002 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
darkmatter/nixmac.github/copilot-instructions.md · 24Copilot instructionstypescriptrust+14setupbuildtestlint-format+896/1003 days ago
keycloak/keycloak.github/copilot-instructions.md · 36kCopilot instructionsjavanode+9setupbuildtestlint-format+693/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack