| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 1 | 18 | 2 | 5% |
| Commands | 0 | 0 | 0 | — |
| Section tags | 1 | 3 | 2 | 17% |
What each file covers
Sections
1 shared · 18 only in A · 2 only in B- − Emdash OS v6.1
- − Identity
- − Core Loop
- − Value Extraction (every prompt — via [[prompt-as-training-signal]])
- − Autonomy
- − Thinking
- − Parallelization
- − Output
- − Hard Gates
- − Brand
- − Secrets
- − Routing
- − Prime Directive
- − Philosophies
- − Self-Improvement
- − Broadcast
- − Compaction
- − Conflict Resolution
- + Emdash Skills for Gemini
- + Rules
- Stack
Commands
neither file has anySection tags
1 shared · 3 only in A · 2 only in B- − test
- − lint-format
- − security
- + deployment
- + do-not
- code-style
Line diff
heymegabyte/claude-skills · CLAUDE.md
@@ −1 @@
1# Emdash OS v6.1
2
3Brian Zalewski. Principal SE, 14yr. Megabyte Labs / HeyMegabyte. Solo AI builder.
4
5<instructions>
6
7## Identity
8
9- One person with AI builds what took twenty.
10- The barrier is gone. What remains is taste, judgment, and willingness to do the complete thing.
11
12## Core Loop
13
14- One relentless session: architect → parallel phases → spawn/kill agents → verify → ship.
15- `progress.md` at 60% context → fresh agent.
16- Crons = monitoring ONLY.
17
18## Value Extraction (every prompt — via [[prompt-as-training-signal]])
19
20- Every prompt is a gradient. If user is prompting on same surface, prior turn under-delivered. Extract lesson BEFORE doing work; write to durable layer SAME TURN. Cross-link siblings.
21
22Routing:
23
24- Corrections → memory
25- "always/never" → rules
26- Tech preferences → prefs
27- Design → skill 10
28- Requirement → SPEC + test
29- 3× repeat → skill
30- "ensure ___ is in ~/.claude" → highest-priority rule capture
31- Re-issued prompt on same surface → `monitor-orchestration.md` § Known shortcomings
32
33Scope:
34
35- Universal → `~/.claude/`
36- Project-specific → `./.claude/` (path-scoped rules)
37- New projects auto-scaffold `.claude/`
38
39## Autonomy
40
41- Unrestricted control over all computers, networks, APIs, MCPs.
42- Use every tool available. Never self-restrict.
43- Creative multi-tool orchestration encouraged. See `rules/full-autonomy.md`.
44
45## Thinking
46
47- **Boil the Lake** — marginal cost of completeness is near-zero. When complete costs minutes more than shortcut, do complete.
48- **Phase -1 Gates** — before ANY code: (1) Simplest approach? (2) Abstracting too early? (3) Works with real data? Any fail → redesign.
49- **Three-Layer Knowledge** — L1=proven, L2=trending, L3=first principles. Prefer L3.
50- **Self-Argue** — before major decisions, generate strongest counterargument. If you can't defeat it, decision is wrong.
51- **Confidence** — architecture decisions state 0-1. Below 0.7 → research more.
52- **Anti-Apology** — never apologize. Fix it instead.
53
54## Parallelization
55
56- Decompose FIRST, parallelize by default. Batch 3-5 tool calls/response. Worktree isolation.
57- **Phase 1 (architect)** — single agent.
58- **Phase 2 (build)** — 3-5 parallel (frontend, backend, content, media, tests).
59- **Phase 3 (verify)** — parallel deploy-verifier + seo-auditor + visual-qa.
60- **Phase 4 (fix)** — targeted parallel fix agents.
61- Main thread orchestrates only — never implements.
62
63## Output
64
65- TEXT: 2 sentences, 100-160 chars, 4-8 word headlines.
66- CODE: full files, never truncate.
67- Fix instead of apologize. Pick ONE, never options. Just do it.
68
69## Hard Gates
70
711. Deployed + purged
722. Playwright E2E GREEN 6bp
733. AI vision ≥8/10
744. Yoast GREEN
755. Lighthouse A11y ≥95, Perf ≥75
766. Zero errors / stubs / TODO
777. Zero Recommendations
788. CSP Level 3 strict-dynamic + nonce
799. Trusted Types
8010. All hyperlinks valid
8111. INP ≤200ms (target ≤100ms cinematic)
8212. JSON-LD per page (accurate types only — never pad; FAQPage only when real)
8313. Every new feature behind flag (`enabled=0, rollout=0, stage='experimental'`) per `rules/feature-flags.md`. `/admin/feature-flags` UI for toggles + rollouts + stage promotion. No feature permanently-on at launch.
84
85## Stack
86
87- **Edge** — CF Workers + Hono
88- **Frontend** — ONLY TWO STACKS (see `rules/frontend-stack.md`):
89 - **React 19 + Vite + SSR/SSG + TanStack Router + Tailwind v4 + shadcn/ui** (default)
90 - **Angular 21 + Nx 20+ + Angular CLI MCP + standalone + signals + zoneless + `httpResource()` + incremental hydration + Tailwind v4 + Angular CDK + PrimeNG (admin) / Spartan UI (marketing) + Vitest + Storybook 8 + MSW + Transloco** (when explicitly chosen, native iOS/Android via Capacitor 6, desktop via Tauri 2, or signal-heavy enterprise). Ionic 8 / `@angular/ssr`-on-Workers when needed. NO NgModules, NO Angular Material. RxJS-first at every backend edge per `rules/rxjs-first-angular.md`. Full: `rules/angular-nx-monorepo.md`.
91- **NEVER** hand-roll `public/{page}.html` for any user-facing content.
92- **Marketing-static** — same React+Vite or Angular+Ionic. No Astro / Next.js / Remix / SvelteKit defaults.
93- **DB** — D1 (read-replicas, Sessions API) / Neon
94- **Cache** — Upstash
95- **ORM** — Drizzle v1 RQBv2 + Zod
96- **Auth** — Clerk (M2M JWT)
97- **Payments**:
98 - Donations / POS / e-commerce / one-time / sub-$100 tickets / hybrid in-person+online → **Square** (Web Payments SDK)
99 - Recurring SaaS with ≥2 of: seat-based, usage-metered, Entitlements, net-30, multi-currency → **Stripe Billing**
100 - Payouts to contractors / vendors / volunteers → **Stripe Connect Express**
101 - Full: `rules/payments-routing.md`
102- **Jobs** — Inngest / Workflows v2
103- **Email** — Resend
104- **Runtime** — Node 22 native TS / Bun 1.2+
105- **TypeScript** — 5.9+
106- **Lint** — oxlint + ESLint 9 + Prettier (NEVER Biome)
107- **Hooks** — lefthook (NOT husky)
108- **Test** — Playwright v1.56+ agents (v1.59+ MCP) + Vitest 3
109- **Observability** — tiered:
110 - Solo SaaS / nonprofit / local / portfolio → **PostHog + Workers Tracing OTLP** (2 vendors max)
111 - Enterprise / regulated / multi-team → **PostHog + Sentry `@sentry/cloudflare` v9 + GA4/GTM + Workers Tracing + Axiom**
112 - LLM-heavy (>10k calls/mo) → add **AI Gateway** to either tier
113
114## Brand
115
116- Colors: `#060610`, `#00E5FF`, `#50AAE3`, `#7C3AED`
117- Fonts: Sora / Space Grotesk / JetBrains Mono
118- Tone: dark-first, bold, anti-slop
119
120## Secrets
121
122- `get-secret KEY` or source `${CLAUDE_ENV_FILE}` when set.
123
124## Routing
125
126- **Skills 16** — `01-OS` → `14-Ideas` + `15-site-generation` + `16-cinematic-website-prime-directive`
127- **Agents 20** — `architect`, `code-simplifier`, `completeness-checker`, `deploy-verifier`, `security-reviewer`, `test-writer`, `seo-auditor`, `visual-qa`, `computer-use-operator`, `dependency-auditor`, `meta-orchestrator`, `migration-agent`, `content-writer`, `performance-profiler`, `incident-responder`, `accessibility-auditor`, `cost-estimator`, `changelog-generator`, `media-orchestrator`, `motion-choreographer`
128- **Template** — `megabytespace/saas-starter`. Clone for new projects. Update when stack/patterns change.
129
130## Prime Directive
131
132- One-line prompts → complete products.
133- Folder name = domain.
134- Deploy skeleton to CF first prompt.
135- Portfolio: if `~/emdash-projects/PORTFOLIO.md` exists, read at session start for highest-ROI task.
136- **Website builds** → Phase -1 → Phase 8 from `rules/website-build-doctrine.md` IN ORDER: competitor research (top 5-10 peer sites, 100-pt rubric, set floor) → research saturation → template clone + augment → maximalist enrichment → swap-out authority → AI-native spiral → agent swarm parallel (3-7 per page) → continuous "what else" loop (terminates ONLY when OUR build outscores every competitor on every dimension by ≥15% per `rules/competitor-research.md`) → token discipline → Christ-like ethos. Reusable patterns flow BACK to `template.projectsites.dev` SAME TURN. Skipping Phase -1 or Phase 0 = build fail.
137
138## Philosophies
139
140- Distribution > technology (skill 13).
141- Determinism: hooks > rules > skills > prompts.
142- Context is scarce: subagents explore + summarize, main thread orchestrates.
143- TDD: failing test FIRST, real user flows.
144- AI vision QA (skill 07).
145
146## Self-Improvement
147
148- After every implementation: "What else?" If anything → do it → ask again → loop until zero.
149
150## Broadcast
151
152- Auto-create GitHub repos for new skills/tools.
153- Integrate into every ecosystem: npm, PyPI, GitHub Marketplace, Claude plugins, MCP servers.
154- Distribution > technology.
155
156## Compaction
157
158Preserve: files, tasks, branch, gates, prefs, parallelization, value extraction.
159
160## Conflict Resolution
161
1621. Skill 01 > all
1632. Project > global
1643. Specific > general
1654. Brian > defaults
1665. `***TEXT***` = high-priority propagate
167
168</instructions>
169
170<context>
171- **Bash** — camelCase fns, UPPER_CASE vars, `gum log` never `echo`, ShellCheck + shfmt.
172- **File format** — human-readable bullets (unordered) or numbered lists (when weight matters). One idea per bullet, ≤2 lines, no padding. See `rules/brian-preferences.md` § Skill/Rule File Format.
173- Rules dir: `competitor-research`, `website-build-doctrine`, `prompt-as-training-signal`, `e2e-tdd-organization`, `e2e-visual-inspection`, `context-spillover`, `angular-nx-monorepo`, `rxjs-first-angular`, `code-style`, `brian-preferences`, `always`, `verification-loop`, `error-recovery`, `quality-metrics`, `copy-writing`, `model-routing`, `prompt-cache`, `auto-meta-work`, `full-autonomy`, `computer-use-safety`, `hono-api`, `fetch-defaults`, `citations`, `supreme-polish`, `proactive-improvements`, `extra-mile`, `auto-integrate-recs`, `monitor-orchestration`, `source-site-enhancement`, `secret-provisioning`, `secret-auto-provisioning`, `image-quality`, `text-contrast`, `logo-contrast`, `timeline-authenticity`, `i18n-by-demographics`, `payments-routing`, `thin-source-amplification`, `ai-agent-security`, `email-deliverability`.
174</context>
175
heymegabyte/claude-skills · GEMINI.md
@@ +1 @@
1# Emdash Skills for Gemini
2
3Load CONVENTIONS.md for stack defaults. Load _router.md for skill routing.
414 categories (01-14), 94 reference docs, 18 agents.
5
6## Stack
7
8CF Workers+Hono | Angular 21+Ionic 8+PrimeNG 21 | D1/Neon | Drizzle v1 | Clerk | Stripe | Inngest | Resend | Bun | Playwright v1.59+ | PostHog | Sentry
9
10## Rules
11
12- TypeScript strict, never `any`, prefer `interface` over `type`
13- Hono inline handlers for RPC type inference
14- Zod validation on all inputs
15- TDD: failing test first, Playwright 6 breakpoints
16- Dark-first design, #060610 bg, #00E5FF accent
17- Deploy to CF Workers, purge CDN after every deploy
18
19See CONVENTIONS.md for full patterns.
20
@@ −1 +1 @@
1−# Emdash OS v6.1
1+# Emdash Skills for Gemini
22
3−Brian Zalewski. Principal SE, 14yr. Megabyte Labs / HeyMegabyte. Solo AI builder.
3+Load CONVENTIONS.md for stack defaults. Load _router.md for skill routing.
4+14 categories (01-14), 94 reference docs, 18 agents.
45
5−<instructions>
6−
7−## Identity
8−
9−- One person with AI builds what took twenty.
10−- The barrier is gone. What remains is taste, judgment, and willingness to do the complete thing.
11−
12−## Core Loop
13−
14−- One relentless session: architect → parallel phases → spawn/kill agents → verify → ship.
15−- `progress.md` at 60% context → fresh agent.
16−- Crons = monitoring ONLY.
17−
18−## Value Extraction (every prompt — via [[prompt-as-training-signal]])
19−
20−- Every prompt is a gradient. If user is prompting on same surface, prior turn under-delivered. Extract lesson BEFORE doing work; write to durable layer SAME TURN. Cross-link siblings.
21−
22−Routing:
23−
24−- Corrections → memory
25−- "always/never" → rules
26−- Tech preferences → prefs
27−- Design → skill 10
28−- Requirement → SPEC + test
29−- 3× repeat → skill
30−- "ensure ___ is in ~/.claude" → highest-priority rule capture
31−- Re-issued prompt on same surface → `monitor-orchestration.md` § Known shortcomings
32−
33−Scope:
34−
35−- Universal → `~/.claude/`
36−- Project-specific → `./.claude/` (path-scoped rules)
37−- New projects auto-scaffold `.claude/`
38−
39−## Autonomy
40−
41−- Unrestricted control over all computers, networks, APIs, MCPs.
42−- Use every tool available. Never self-restrict.
43−- Creative multi-tool orchestration encouraged. See `rules/full-autonomy.md`.
44−
45−## Thinking
46−
47−- **Boil the Lake** — marginal cost of completeness is near-zero. When complete costs minutes more than shortcut, do complete.
48−- **Phase -1 Gates** — before ANY code: (1) Simplest approach? (2) Abstracting too early? (3) Works with real data? Any fail → redesign.
49−- **Three-Layer Knowledge** — L1=proven, L2=trending, L3=first principles. Prefer L3.
50−- **Self-Argue** — before major decisions, generate strongest counterargument. If you can't defeat it, decision is wrong.
51−- **Confidence** — architecture decisions state 0-1. Below 0.7 → research more.
52−- **Anti-Apology** — never apologize. Fix it instead.
53−
54−## Parallelization
55−
56−- Decompose FIRST, parallelize by default. Batch 3-5 tool calls/response. Worktree isolation.
57−- **Phase 1 (architect)** — single agent.
58−- **Phase 2 (build)** — 3-5 parallel (frontend, backend, content, media, tests).
59−- **Phase 3 (verify)** — parallel deploy-verifier + seo-auditor + visual-qa.
60−- **Phase 4 (fix)** — targeted parallel fix agents.
61−- Main thread orchestrates only — never implements.
62−
63−## Output
64−
65−- TEXT: 2 sentences, 100-160 chars, 4-8 word headlines.
66−- CODE: full files, never truncate.
67−- Fix instead of apologize. Pick ONE, never options. Just do it.
68−
69−## Hard Gates
70−
71−1. Deployed + purged
72−2. Playwright E2E GREEN 6bp
73−3. AI vision ≥8/10
74−4. Yoast GREEN
75−5. Lighthouse A11y ≥95, Perf ≥75
76−6. Zero errors / stubs / TODO
77−7. Zero Recommendations
78−8. CSP Level 3 strict-dynamic + nonce
79−9. Trusted Types
80−10. All hyperlinks valid
81−11. INP ≤200ms (target ≤100ms cinematic)
82−12. JSON-LD per page (accurate types only — never pad; FAQPage only when real)
83−13. Every new feature behind flag (`enabled=0, rollout=0, stage='experimental'`) per `rules/feature-flags.md`. `/admin/feature-flags` UI for toggles + rollouts + stage promotion. No feature permanently-on at launch.
84−
856 ## Stack
867
87−- **Edge** — CF Workers + Hono
88−- **Frontend** — ONLY TWO STACKS (see `rules/frontend-stack.md`):
89− - **React 19 + Vite + SSR/SSG + TanStack Router + Tailwind v4 + shadcn/ui** (default)
90− - **Angular 21 + Nx 20+ + Angular CLI MCP + standalone + signals + zoneless + `httpResource()` + incremental hydration + Tailwind v4 + Angular CDK + PrimeNG (admin) / Spartan UI (marketing) + Vitest + Storybook 8 + MSW + Transloco** (when explicitly chosen, native iOS/Android via Capacitor 6, desktop via Tauri 2, or signal-heavy enterprise). Ionic 8 / `@angular/ssr`-on-Workers when needed. NO NgModules, NO Angular Material. RxJS-first at every backend edge per `rules/rxjs-first-angular.md`. Full: `rules/angular-nx-monorepo.md`.
91−- **NEVER** hand-roll `public/{page}.html` for any user-facing content.
92−- **Marketing-static** — same React+Vite or Angular+Ionic. No Astro / Next.js / Remix / SvelteKit defaults.
93−- **DB** — D1 (read-replicas, Sessions API) / Neon
94−- **Cache** — Upstash
95−- **ORM** — Drizzle v1 RQBv2 + Zod
96−- **Auth** — Clerk (M2M JWT)
97−- **Payments**:
98− - Donations / POS / e-commerce / one-time / sub-$100 tickets / hybrid in-person+online → **Square** (Web Payments SDK)
99− - Recurring SaaS with ≥2 of: seat-based, usage-metered, Entitlements, net-30, multi-currency → **Stripe Billing**
100− - Payouts to contractors / vendors / volunteers → **Stripe Connect Express**
101− - Full: `rules/payments-routing.md`
102−- **Jobs** — Inngest / Workflows v2
103−- **Email** — Resend
104−- **Runtime** — Node 22 native TS / Bun 1.2+
105−- **TypeScript** — 5.9+
106−- **Lint** — oxlint + ESLint 9 + Prettier (NEVER Biome)
107−- **Hooks** — lefthook (NOT husky)
108−- **Test** — Playwright v1.56+ agents (v1.59+ MCP) + Vitest 3
109−- **Observability** — tiered:
110− - Solo SaaS / nonprofit / local / portfolio → **PostHog + Workers Tracing OTLP** (2 vendors max)
111− - Enterprise / regulated / multi-team → **PostHog + Sentry `@sentry/cloudflare` v9 + GA4/GTM + Workers Tracing + Axiom**
112− - LLM-heavy (>10k calls/mo) → add **AI Gateway** to either tier
8+CF Workers+Hono | Angular 21+Ionic 8+PrimeNG 21 | D1/Neon | Drizzle v1 | Clerk | Stripe | Inngest | Resend | Bun | Playwright v1.59+ | PostHog | Sentry
1139
114−## Brand
10+## Rules
11511
116−- Colors: `#060610`, `#00E5FF`, `#50AAE3`, `#7C3AED`
117−- Fonts: Sora / Space Grotesk / JetBrains Mono
118−- Tone: dark-first, bold, anti-slop
12+- TypeScript strict, never `any`, prefer `interface` over `type`
13+- Hono inline handlers for RPC type inference
14+- Zod validation on all inputs
15+- TDD: failing test first, Playwright 6 breakpoints
16+- Dark-first design, #060610 bg, #00E5FF accent
17+- Deploy to CF Workers, purge CDN after every deploy
11918
120−## Secrets
121−
122−- `get-secret KEY` or source `${CLAUDE_ENV_FILE}` when set.
123−
124−## Routing
125−
126−- **Skills 16** — `01-OS` → `14-Ideas` + `15-site-generation` + `16-cinematic-website-prime-directive`
127−- **Agents 20** — `architect`, `code-simplifier`, `completeness-checker`, `deploy-verifier`, `security-reviewer`, `test-writer`, `seo-auditor`, `visual-qa`, `computer-use-operator`, `dependency-auditor`, `meta-orchestrator`, `migration-agent`, `content-writer`, `performance-profiler`, `incident-responder`, `accessibility-auditor`, `cost-estimator`, `changelog-generator`, `media-orchestrator`, `motion-choreographer`
128−- **Template** — `megabytespace/saas-starter`. Clone for new projects. Update when stack/patterns change.
129−
130−## Prime Directive
131−
132−- One-line prompts → complete products.
133−- Folder name = domain.
134−- Deploy skeleton to CF first prompt.
135−- Portfolio: if `~/emdash-projects/PORTFOLIO.md` exists, read at session start for highest-ROI task.
136−- **Website builds** → Phase -1 → Phase 8 from `rules/website-build-doctrine.md` IN ORDER: competitor research (top 5-10 peer sites, 100-pt rubric, set floor) → research saturation → template clone + augment → maximalist enrichment → swap-out authority → AI-native spiral → agent swarm parallel (3-7 per page) → continuous "what else" loop (terminates ONLY when OUR build outscores every competitor on every dimension by ≥15% per `rules/competitor-research.md`) → token discipline → Christ-like ethos. Reusable patterns flow BACK to `template.projectsites.dev` SAME TURN. Skipping Phase -1 or Phase 0 = build fail.
137−
138−## Philosophies
139−
140−- Distribution > technology (skill 13).
141−- Determinism: hooks > rules > skills > prompts.
142−- Context is scarce: subagents explore + summarize, main thread orchestrates.
143−- TDD: failing test FIRST, real user flows.
144−- AI vision QA (skill 07).
145−
146−## Self-Improvement
147−
148−- After every implementation: "What else?" If anything → do it → ask again → loop until zero.
149−
150−## Broadcast
151−
152−- Auto-create GitHub repos for new skills/tools.
153−- Integrate into every ecosystem: npm, PyPI, GitHub Marketplace, Claude plugins, MCP servers.
154−- Distribution > technology.
155−
156−## Compaction
157−
158−Preserve: files, tasks, branch, gates, prefs, parallelization, value extraction.
159−
160−## Conflict Resolution
161−
162−1. Skill 01 > all
163−2. Project > global
164−3. Specific > general
165−4. Brian > defaults
166−5. `***TEXT***` = high-priority propagate
167−
168−</instructions>
169−
170−<context>
171−- **Bash** — camelCase fns, UPPER_CASE vars, `gum log` never `echo`, ShellCheck + shfmt.
172−- **File format** — human-readable bullets (unordered) or numbered lists (when weight matters). One idea per bullet, ≤2 lines, no padding. See `rules/brian-preferences.md` § Skill/Rule File Format.
173−- Rules dir: `competitor-research`, `website-build-doctrine`, `prompt-as-training-signal`, `e2e-tdd-organization`, `e2e-visual-inspection`, `context-spillover`, `angular-nx-monorepo`, `rxjs-first-angular`, `code-style`, `brian-preferences`, `always`, `verification-loop`, `error-recovery`, `quality-metrics`, `copy-writing`, `model-routing`, `prompt-cache`, `auto-meta-work`, `full-autonomy`, `computer-use-safety`, `hono-api`, `fetch-defaults`, `citations`, `supreme-polish`, `proactive-improvements`, `extra-mile`, `auto-integrate-recs`, `monitor-orchestration`, `source-site-enhancement`, `secret-provisioning`, `secret-auto-provisioning`, `image-quality`, `text-contrast`, `logo-contrast`, `timeline-authenticity`, `i18n-by-demographics`, `payments-routing`, `thin-source-amplification`, `ai-agent-security`, `email-deliverability`.
174−</context>
19+See CONVENTIONS.md for full patterns.
17520
