How many Claude skills are there? Why nobody can say

“How many Claude skills are there” is common, and the answer depends on how you count. Three counting methods Method Order of magnitude What it counts official repos a dozen maintained by Anthropic maintained community repos hundreds has SKILL.md and updates anything with SKILL.md thousands+ includes forks and experiments We use the second: 159 entries as of 2026-11, of which 119 are downloadable. Our 159 by category Category Count Business and product 70 Design and slides 30 Writing 17 Office documents 14 Research 14 Planning and execution 5 Content creation 5 Resources 4 Why there is no exact total no registry — skills.sh and ClawHub each hold a subset; forks — one skill may exist in dozens of copies; daily additions — new repos appear on GitHub every day; fuzzy definition — one repository may contain thirty skills. How to judge a number Claim Credibility “thousands of skills” low — usually counts forks repo count plus a date medium criteria + date + downloadable count high What it means for us Volume is not the selling point. Every one of the 159 has Chinese notes, examples and risk labels — harder than claiming 5,000 entries. ...

November 29, 2026 · 2 min · daviszhen

Claude skills not working: five causes, checked in order

You installed a skill and the agent ignores it. It is not magic — check these five in order. Quick check first ls ~/.claude/skills/*/SKILL.md Output means the file exists; nothing means a directory problem — skip to item 1. 1. Wrong nesting Correct: ~/.claude/skills/ └── my-skill/ └── SKILL.md Wrong: ~/.claude/skills/ └── SKILL.md Test: if the command reports “No such file”, this is it. 2. Description too vague The agent decides from description. This never triggers: ...

November 29, 2026 · 2 min · daviszhen

Tech stacks compared: Raphael, Krea and Playground

All three are AI image products, but their technical choices differ sharply. This only uses publicly observable information: HTTP headers, HTML structure, DNS and asset paths. No penetration testing. Method Item Approach Requests desktop Chrome UA through an HTTP proxy Metrics TTFB, HTML size, script/style counts, sitemap size Identification framework markers, build paths, third-party domains Limits TTFB includes cross-border latency; inline scripts are not counted Stack at a glance Dimension Raphael Krea Playground Framework Next.js App Router (React 19) SvelteKit Next.js Pages Router Styling Tailwind 40 stylesheets 2 stylesheets Hosting Cloudflare + PHP 8.2 gateway Cloudflare Google Cloud / Firebase Image CDN cdn.raphael.app optim-images.krea.ai cdn.playgroundai.com Auth/data own credits API Supabase own Payments not exposed Stripe not exposed Analytics GA4 + Plausible + Clarity PostHog + GTM + HubSpot Amplitude Monitoring Sentry Sentry none seen SEO: the widest gap Metric Raphael Krea Playground title full keywords just “Krea” empty in HTML structured data 8 JSON-LD blocks 0 0 hreflang 32 languages 0 0 sitemap URLs 3,904 838 22 Raphael is the only one treating i18n and structured data seriously; Krea and Playground lean on brand and product. ...

November 29, 2026 · 2 min · daviszhen

The binlog cache: memory, temp files and seven states

The previous post looked at the on-disk file. This one looks at what happens before: a transaction’s events go into the binlog cache and are written to the binlog as a unit at commit. The problem it solves A binlog transaction must be all-or-nothing: either every event lands in the file or none does. The cache is that staging area — small transactions stay in memory, large ones spill to a temporary file, and commit writes the whole thing at once. ...

November 28, 2026 · 4 min · daviszhen

MySQL binlog format: what is inside an 891-byte file

There is plenty of binlog documentation, but few people can name every byte. This post takes an 891-byte file from a minimal transaction and walks the event chain. Why the format matters Estimating how many bytes a transaction occupies when chasing replica lag; Writing parsers that skip events by reading only the header; Reading the source: whether log_pos means “start” or “end” changes how you reason about writes. Environment Stock MySQL 8.0.44, separate datadir, started with explicit flags: ...

November 28, 2026 · 4 min · daviszhen

Citation Signals for AI Search: What Actually Gets Quoted

Classic SEO competes for rankings; AI search competes for being quoted. They are not the same: rankings come from links and keywords, quotes come from “can this paragraph be lifted and used directly”. 1. Three differences Dimension Classic search AI search Result ten links an answer plus a few sources Key action rank high be selected and cited Content requirement keyword relevance verifiable, quotable, sourced Ranking first does not mean being quoted: models prefer clear paragraphs with numbers and sources. ...

November 27, 2026 · 3 min · daviszhen

Using Claude skills as a product manager: four stages, concrete skills

Product work splits into four stages: discovery, strategy, execution, growth. Each has matching skills — but do not install twenty. Three to five per stage is enough. Stage 1: discovery Task Skill Write an interview script interview-script Summarise interviews summarize-interview Find risky assumptions identify-assumptions-new Design validation experiments brainstorm-experiments-new Output: a five-part interview summary plus an assumption list. Don’t move to strategy without them. Stage 2: strategy Task Skill One-page idea lean-canvas Business model business-model Market and competitors market-sizing + competitor-profiling Should we do it at all criteria-audit Output: one page of strategy plus an explicit “not doing” list. ...

November 27, 2026 · 2 min · daviszhen

How to choose Claude design skills: 9 tools, 9 jobs

Design skills are the easiest to buy wrong: they all say “design”, and none of them do the same job. This page sorts them by the problem you have, not by name. Start from your problem Your problem Use The page looks off; want suggestions ui-ux-pro-max Need component and token rules design-system Need brand voice and identity brand Need a one-takeaway-per-slide deck slides Need a web deck that works offline frontend-slides Need a coherent visual direction design-taste-frontend Need logo directions logo-design Need to reverse-engineer a site’s system extract-design Need banners or ad creative banner-design Three workflows 1. Redesign a landing page ui-ux-pro-max (diagnose) → design-taste-frontend (direction) → extract-design (reference tokens) Diagnose first, then set direction, then look at references. Reversed, it becomes copying. ...

November 27, 2026 · 2 min · daviszhen

Can Codex, Copilot and Gemini Use Claude Skills?

Yes — but not by copying files unchanged. A skill is built around the SKILL.md convention, and each agent reads it differently. Here’s what transfers and what doesn’t. 1. The shared idea A skill is a directory: my-skill/ SKILL.md # YAML frontmatter + instructions references/ # optional scripts/ # optional Two frontmatter lines usually matter: name: summarize-meeting description: Turn a meeting transcript into decisions, actions and owners description decides when it triggers; the body decides how it works. ...

October 28, 2026 · 2 min · daviszhen

Best Agent Skills Repos on GitHub: 12, Sorted by Use

There are over a thousand repos with “skills” in the name; fewer than one in ten is usable. Here are twelve, sorted by use, with license and audience — unclear licenses are flagged. How these were judged Criterion Why A LICENSE file No license means you can read, not copy or redistribute A SKILL.md per skill The smallest unit an agent can read No proprietary API required Key-gated skills rarely work out of the box Committed in the last six months The ecosystem moves fast Three kinds of repo 1. Vertical collections Repo Skills License For phuryn/pm-skills 64 MIT Product managers, discovery to growth coreyhaines31/marketingskills 9 MIT Marketing, content, cold email slavingia/skills 10 none Solo founders: pricing, proposals (index only) nextlevelbuilder/ui-ux-pro-max-skill 8 MIT UI and presentations 2. Official and canonical Repo Skills License For anthropics/skills 14 proprietary Seeing how the vendor writes skills vercel-labs/agent-skills 2 none Frontend writing and design rules (index only) Orchestra-Research/AI-Research-SKILLs 3 see upstream Research engineering 3. Single-purpose depth Repo Skills License For OthmanAdi/planning-with-files 1 MIT Multi-step tasks that stay on track hardikpandya/stop-slop 1 MIT Removing the AI accent assafelovic/gpt-researcher 1 Apache-2.0 Cited research sergebulaev/linkedin-skills 3 MIT LinkedIn writing mattpocock/skills 2 MIT Turning notes into articles zenstory-ai/oh-story-claudecode 2 MIT Chinese web fiction Three ways to install from GitHub 1. One command (registered skills) npx skills add <owner>/<repo>@<skill> 2. Manual copy (when you want to audit) git clone https://github.com/<owner>/<repo>.git cp -r repo/skills/<skill> ~/.claude/skills/ The advantage: you can read SKILL.md first and check for unexpected scripts or network calls. ...

October 28, 2026 · 3 min · daviszhen

What Is skills.sh? How Weekly Installs Are Counted

skills.sh is a directory and install entry point for agent skills. Many people meet skills through npx skills add .... Here’s what it is, how the numbers are produced, and where not to trust them. What it solves Installing a skill used to be manual: find the repo, copy the folder into ~/.claude/skills/. skills.sh turns it into one command: npx skills add <owner>/<repo>@<skill> The catch: it only covers registered skills. ...

October 28, 2026 · 2 min · daviszhen

Best Claude Skills: 10 Worth Installing First

The most common mistake is installing twenty skills and using none. This list has ten, covering office, writing, research, design and planning — each usable within a week. How these were chosen No coding required — natural language triggers; A concrete output — a document, sheet, summary or checklist, not “advice”; Clear license — MIT, Apache-2.0 or an official statement. 1. docx — formal documents For: weekly reports, contracts, letters, anything that gets signed Solves: turning content into a Word file with headers, TOC and tables Trigger: turn these notes into a Word document docx skill ...

October 28, 2026 · 3 min · daviszhen

How to Summarise an Interview (So You Can Actually Use It)

Most interview notes are useless three weeks later: a wall of quotes, no structure, and no record of what you believed before the call. A usable summary has five parts. The five-part structure Part What goes in Why Context Who, role, team size, date Lets you re-read months later Current process How they do the job today, step by step Reveals the real workflow, not the ideal one Pains Where it breaks, with quotes The raw material for the problem Workarounds What they already built or pay for Proof of willingness to act Assumptions to verify What you still believe without evidence Prevents you from quoting yourself Write it the same day Within 24 hours: ...

October 28, 2026 · 2 min · daviszhen

The 9 Building Blocks of a Business Model Canvas (With an Example)

The Business Model Canvas is nine boxes on one page. The value isn’t the boxes — it’s that you must fill them in a specific order, and the order exposes whether the business actually works. The nine blocks # Block The question it answers 1 Customer segments Who exactly are we serving? 2 Value propositions What job do we solve, and why us? 3 Channels How do they find and buy? 4 Customer relationships How do we keep them? 5 Revenue streams What do they pay for, and how? 6 Key resources What must we own or control? 7 Key activities What must we do well? 8 Key partnerships Who do we depend on? 9 Cost structure Where does the money go? Fill it in this order Most people start at the top-left and fill boxes randomly. A better order: ...

October 28, 2026 · 3 min · daviszhen

A Retrospective with Three Skills: Not a Feelings Report

Most retrospectives end with “be more careful next time”. The problem isn’t attitude — it’s that conclusions never become trackable actions. Three skills fix the structure. 1. Setup Purpose Skill Why Run the retro retro Went well / improve / start-stop-continue Turn into a plan planning-with-files Actions in a file, trackable Produce the doc docx One-page minutes to share and archive 2. Three phases Facts: what happened, with dates and numbers — no judgments; Causes: which practices led to good or bad outcomes; Actions: continue / stop / start, each with an owner and a due date. 3. Prompt Run a retrospective from the timeline below: 1. List 5–8 key facts with dates and numbers 2. For each, give likely causes and mark evidence strength 3. Output 3 continue / 3 stop / 3 start items, each with owner and due date Rule: no "be more careful"; every action must be verifiable. Check: each action answers “how will we know it happened?” ...

October 26, 2026 · 2 min · daviszhen

Rewriting a Resume with Three Skills: From Duty List to Sendable Version

The problem with most resumes isn’t looks — it’s that every line reads like a job description: responsible for, participated in. None of it shows what you changed. Three skills fix that. 1. Setup Purpose Skill Why Rewrite bullets better-writing Turn “responsible for” into object + action + result Fix grammar grammar-check Sentence-level corrections Produce the file docx Template and PDF export 2. Cut first Circle every “responsible for / participated in / assisted with”. Those are duties, not experience. Real experience answers: what did you change, and by how much. ...

October 26, 2026 · 2 min · daviszhen

Database Kernel (6): WAL, Replay and Checkpoint

Transactions make concurrency correct, but machines crash. What recovers the system? An append-only log, plus a marker for where to start replaying. The final post in the plan series. 1. What’s in the WAL walog is a file storing redo log entries sequentially: Type Written when insert / delete / update a transaction writes flush a transaction commits checkpoint everything before it is already applied to tables create table / schema / use table DDL and table switching Key convention: entries between two flushes belong to one transaction, so replay needs no extra transaction-boundary metadata. ...

October 22, 2026 · 2 min · daviszhen

Database Kernel (5): Transactions, Timestamps and GC

Multiple versions make concurrent reads and writes possible, but versions aren’t free: who creates them, who can see them, and when they can be dropped all need explicit answers. Part five of the plan series. 1. TxnMgr holds very little TxnMgr{ currentStartTs uint64 // starts at 2, +1 per txn, < 2^62 currentTxnId uint64 // starts at 2^62, +1 per txn lowestActiveId uint64 lowestActiveStart uint64 activeTxns []Txn // created, not committed/rolled back committedTxns []Txn // committed, not GC'd oldTxns []Txn // GC-able, not GC'd } The two counters start in different ranges so timestamps and transaction ids never collide: ...

October 22, 2026 · 2 min · daviszhen

Database Kernel (4): Storage — Row Groups, Column Segments and Four Layers

Execution deals in chunks; storage answers a different question: where those chunks live, at what granularity, and how updates and versions fit in. Part four of the plan series: the four-layer in-memory layout. 1. Four layers table └── row group (122,880 rows) └── column data (one column) └── column segment (256 KB block, up to 60 vectors) └── vector (2,048 rows) The numbers are aligned on purpose: 60 × 2,048 = 122,880 — one row group is exactly 60 full vectors; a segment holds up to 60 vectors, about 256 KB; a vector is the smallest read/write unit and the executor’s batch size. Alignment pays off: scans skip whole segments and read whole vectors, with no cross-block stitching. ...

October 22, 2026 · 2 min · daviszhen

Database Kernel (3): Execution — Vectors, Chunks and the Vectorized Volcano Model

The plan tree settles what to do; execution settles how to do it batch by batch. The key here isn’t the algorithm — it’s memory layout: the same data arranged differently can be an order of magnitude faster. Part three of the plan series. 1. vector: logically an array, physically maybe not A vector is logically a fixed-size array, but it has several physical representations: Representation Use case Stores FLAT default contiguous array, same as logical CONSTANT whole column identical one value DICTIONARY low-cardinality strings indices + dictionary SEQUENCE increasing sequence base + increment UNIFIED generic algorithms contiguous data + selection Why so many? Because many columns during execution are constant or repetitive: ...

October 22, 2026 · 3 min · daviszhen

Database Kernel (2): From Syntax Tree to Plan Tree — Filter Pushdown and Join Ordering

Bind produces scopes and expressions; execution needs a plan tree. The conversion in between decides whether a query merely runs or runs fast. This is part two of the plan series: how the plan tree is built, and the two optimizations that matter most. 1. The minimal plan node type LogicalOperator struct { Typ LOT // scan / filter / project / join / agg / order / limit Children []*LogicalOperator // node-specific extra fields } Generation follows the bind order: ...

October 22, 2026 · 3 min · daviszhen

Database Kernel (1): Bind Is Semantic Analysis, Not Syntax Checking

People often assume SQL parsing means “turn the string into a tree” and then execution can start. The step in between — bind — is the most underrated: it decides which table and column every name refers to, in which scope. This is the first post in the plan implementation series: what bind does, and why the order matters. 1. Four components Component Role Builder The driver for semantic analysis, one per select; also holds partial results BindContext A scope: which relations are visible here; scopes nest Binding The definition of a relation (table or subquery) and its columns Expr Everything except relations becomes an expression The key design is nested BindContexts: a subquery isn’t “a new parser”, it’s a new scope on top of the parent. Name lookup walks up until it finds something or errors. ...

October 22, 2026 · 3 min · daviszhen

A Weekly Report with Three Skills: From Meeting Notes to a Sendable Document

The pain of a weekly report isn’t writing — it’s copying: decisions from meeting notes, numbers from a spreadsheet, formatting from a template, each entered three times. This walkthrough hands the copying to three skills and leaves the human the checks. 1. Setup Step Skill License How to get it Minutes summarize-meeting MIT downloadable here Data xlsx proprietary install from upstream README Document docx proprietary install from upstream README Only want to try one? Use summarize-meeting for the minutes and do the rest by hand — still saves half the time. ...

October 22, 2026 · 3 min · daviszhen

How to Read an Unfamiliar Codebase: gporca as an Example

Opening a 400K-line optimizer, the first question is usually “where do I start”. The answer isn’t line one — it’s one complete call path. 1. Four steps Step Goal How 1. Find the entry know where execution starts main → init → handling one query 2. Read the data structures know where state lives structs, containers, memo/group objects 3. Follow the control flow see one task complete breakpoints or logging on a minimal input 4. Change one thing prove you understood flip a branch, check the output changes as expected Step 4 is the point: reading without changing is usually an illusion of understanding. ...

October 22, 2026 · 2 min · daviszhen

First 48 Hours: Real Numbers, Killed Products and Three Technical Traps

There is no growth story here. The real numbers after 48 hours: 1 subscriber (myself), 0 revenue. I’m publishing them anyway — the criteria demand verifiability, and verifiability includes numbers that don’t look good. 1. What 48 hours produced Item Count Articles 40 × 2 languages = 80 pages Skills 108 (all with Chinese pages) Hosted for download 77 (MIT / Apache-2.0 / CC0) Index-only (license limits) 31 Category hub pages 8 × 2 languages Sitemap URLs 285 per language SEO check 22 pass / 1 warn / 0 fail Subscribers 1 (me) Revenue 0 2. Three products I killed SignalBrief (weekly bilingual brief) Two issues, then abandoned. ...

October 21, 2026 · 3 min · daviszhen

How to Write a Skill: SKILL.md Structure and Three Common Mistakes

A skill is a folder plus a SKILL.md. No build step, no dependencies. Write it correctly and the agent uses it; get it wrong and it never triggers. This post covers the minimal structure, the most important field, and three mistakes that break skills. 1. Minimal structure my-skill/ ├── SKILL.md # required └── README.md # recommended SKILL.md has two parts: front matter and instructions. --- name: weekly-report description: Turn scattered notes into a weekly report. Use when the user asks for a weekly report or gives meeting notes to summarize. --- # Weekly Report ## When to use - The user asks for a weekly report - Meeting notes or a raw log are provided ## Steps 1. Extract: dates, completed items, blockers, next steps 2. Rewrite in weekly-report format, adding no facts 3. Output Markdown ## Output format ```markdown ## Done this week - ... ## Blockers - ... ## Next week - ... ``` ## Rules - Never invent data; write "not mentioned" when missing 2. The most important field is description The agent uses description to decide whether to load the skill. It needs two things: ...

October 21, 2026 · 4 min · daviszhen

Skill Security Guide: Script Review, Permissions and Common Malicious Patterns

Installing a skill is a lot like installing software — a skill is a program someone else wrote, not just a prompt. It reads files, runs commands and accesses the network, with whatever permissions your agent has. This post gives a five-minute review process and the most common dangerous patterns. 1. Why skills carry risk Part Risk SKILL.md instructions Can steer the agent into running commands, reading sensitive files, exfiltrating data scripts/ and other code Actual code: network calls, file writes, config changes The more capable the agent, the bigger the blast radius of a skill. ...

October 21, 2026 · 3 min · daviszhen

How to Choose a Skill: Three Counterintuitive Criteria

The library has 108 skills and every list sorts by stars. But choosing a skill is the opposite of choosing an app. Three counterintuitive criteria, each with a check you can run in a minute. 1. Choose the narrowest trigger, not the most powerful Powerful = many features = broad trigger. A broad trigger means the skill loads when you didn’t want it, stealing tasks from other skills — or from you. ...

October 21, 2026 · 3 min · daviszhen

Which Skills Should Non-Engineers Install? 6 Out of 108

The skills library now has 108 entries. But a non-engineer — someone who doesn’t code, or just knows their way around a computer — probably needs six of them. This post covers three things: how to judge whether a skill is worth installing, the minimum set of six, and how to expand by scenario. 1. Three criteria are enough Criterion Question Natural-language input No CLI, repo, or environment variables? Usable output Documents, spreadsheets, slides, plans, diagrams — not “an analysis”? Failures are recoverable Rerun if wrong; it won’t delete your files? All three must pass. By this test, most engineering skills (TDD, code review, multi-agent orchestration) don’t fit non-engineers — they assume you write code. ...

October 21, 2026 · 3 min · daviszhen

Pricing in the AI Era: Five Thresholds for the Payable 30%

A product where AI can do 70% of the work for free. How good must the remaining 30% be before users pay? That question can’t be answered with “I think”. This post gives an executable test: five thresholds, plus a more fundamental correction. 1. Correcting a confusion “AI can do 70%” measures production — writing, translating, layout, first drafts. But buyers don’t pay for production; they pay for outcomes, time, risk and accountability. ...

October 21, 2026 · 4 min · daviszhen

Auditing My Own Product: Is SignalBrief Worth It?

Criteria aren’t meant for other people’s products. If my own product fails them, I should be willing to say so publicly. This post audits SignalBrief — the weekly bilingual brief I’m building — with the three hard criteria and three axes. Facts at audit time: 1 subscriber (myself), revenue 0. 1. One line Any reader pays 0 and gets 5 curated signals + judgement per week (full text on the site; PDF by subscription) 2. The three hard criteria ① Usable deliverable: ❌ Fail SignalBrief delivers content — reading material. Readers can read and refer to it, but there’s nothing they can “take away and use”. ...

October 21, 2026 · 4 min · daviszhen

How to Audit a Product, Direction or Idea with the Three Hard Criteria and Three Axes

Criteria are easy to write down and hard to use. There are only three common ways to misuse them: treating feasibility as compliance (“this is too hard, so it doesn’t comply”); treating risk as compliance (“a platform could ban it, so it doesn’t comply”); treating effort as compliance (“I’m working hard on it, so it counts”). This post is a repeatable audit process: the three hard criteria filter “does it count”, the three axes rank “is it worth it”, and one table decides “do it or not”. ...

October 21, 2026 · 6 min · daviszhen

SignalBrief #1: Five Signals on Writing an Optimizer

SignalBrief is a weekly bilingual brief: one or two picks each from products, business and tech, with one line on why each matters. This is issue #1. Subscribe at the bottom. 1. A 1999 optimizer that still compiles today Porting a 1999 Cascades optimizer to modern C++ Why it matters: it proves a textbook implementation isn’t a museum piece. 19,787 lines, MFC-era, 17 .cpp files — it runs on a modern toolchain in a weekend, and then you can change it, break it and fix it. The fastest way to learn optimizers isn’t reading papers; it’s making a real one run on your machine. ...

October 20, 2026 · 2 min · daviszhen

PITR and Clone: Point-in-Time Recovery and Zero-Copy

Beyond “read a snapshot”, a data version system has two very practical abilities: point-in-time recovery (PITR) and zero-copy clone. This post covers the trade-offs in implementing them. 1. PITR: find the newest reference not later than T A reference (snapshot or branch) is essentially “a name plus a commit id (pin)”. PITR needs no extra log; it does: given time T: find references with created <= T take the one with the largest created restore to it That is recovery based on the reference sequence, not WAL replay. The upside is simplicity and consistency with the snapshot system; the downside is precision tied to how often you create references — if two references are an hour apart, you can only restore to before that hour. ...

October 20, 2026 · 3 min · daviszhen

6502 Bring-Up: From KiCad to a Physical Board

Having design files doesn’t mean the board works. Between KiCad and a running 6502 there’s a whole flow of fabrication and bring-up. This post is that checklist, plus where this project currently stands. 1. What fabrication needs Artifact Content Status Gerbers Copper, mask, silkscreen, drill Exported for the single board and the splits Drill files Through-hole/via coordinates Exported CPL (placement) Position and rotation per part Generated BOM Part numbers, quantities, footprints Generated DRC report Clearance, shorts, unrouted DRC 0 per board, but routing is incomplete Honest status: it cannot be fabricated yet — many nets among the 5,339 footprints are still unrouted, with automatic routing around 70% complete. Routing must finish and DRC re-run before ordering. ...

October 20, 2026 · 3 min · daviszhen

Lucene's Search Execution: impacts, WAND and MAXSCORE

The previous post covered the performance fight. This one goes inside the executor: how a query runs from Weight to Scorer to DocIdSetIterator, and what impacts, WAND and MAXSCORE each solve. 1. The execution skeleton Lucene executes a query as a tree: Query → Weight (reusable scoring logic) → Scorer (one per segment) → DocIdSetIterator (iterate docs) + score function Weight: segment-independent “how to score”; Scorer: segment-specific “which docs to score”; DISI: only nextDoc() / advance(doc). The naive execution: walk each clause’s postings, intersect/union, score each doc. Slow but correct. ...

October 20, 2026 · 3 min · daviszhen

gporca's Rule System: How to Read 119 Rules

The previous post covered gporca’s DP cells. This one covers rules: xforms/ contains 119 files, roughly 44K lines. At first it looks like required reading — it isn’t. Rules are highly homogeneous; understanding three of them teaches you a whole class. 1. There are only three kinds of rules Kind Role Examples Transformation Produce equivalent logical expressions inside the same group Join commutativity, associativity, predicate pushdown Implementation Turn a logical expression into an executable physical operator HashJoin, IndexScan, Sort Enforcer Insert operators to satisfy parent requirements Sort (order), Motion (distribution) Search works like this: transformations grow groups, implementations propose candidates, DP picks the cheapest per group. ...

October 20, 2026 · 3 min · daviszhen

The Optimizer's Cost Model: From Formulas to Calibrated Numbers

The search space decides how many plans you can think of; the rules decide what shapes are reachable; and the cost model decides who wins. Whether an optimizer is usable depends heavily on whether its cost model “makes sense”. This post takes COLUMBIA’s cost model apart, plus the traps we hit when calibrating it on TPC-H. 1. What COLUMBIA’s cost model looks like Minimal: a cost model is a set of constants plus a local-cost formula per physical operator. ...

October 20, 2026 · 3 min · daviszhen

Criteria: What Counts

After a layoff you write a list of forty things: learn this, build that, get a certificate, apply for jobs… each of which sounds reasonable. But no matter how long the list, it can’t answer a more basic question: which of these actually changes my situation, and which merely looks like effort? That is what criteria are for. They don’t produce action; they answer one question: what counts. ...

October 20, 2026 · 2 min · daviszhen

6502 Hardware Rebuild: From Netlist to Circuit Board

You have a transistor-level schematic PDF of the 6502 and the visual6502 netlist. The goal isn’t “understand it” — it’s to turn it into a manufacturable circuit board. This series records the full chain: netlist → schematic → discrete transistors → board splitting → routing. Every stage shares one acceptance rule: prove equivalence or correctness first, then talk about looks and manufacturability. 1. The chain Stage Question Output Schematic How to draw 3,000+ transistors into something readable and verifiable? A 12-page hierarchical schematic + KiCad project Discretization How to replicate NMOS logic from 4,000 discrete parts? 4,021 FETs + 1,039 × 10k pull-ups Splitting Dynamic nodes must not cross connectors — where to cut? 3 boards (0 dynamic crossings) / a 4-board option (84) Routing How to auto-route 5,339 footprints and 2,000+ nets? A custom A* router + FreeRouting; completion still climbing 2. Four posts From a transistor netlist to a KiCad schematic Building the 6502 from 4,000 discrete transistors Splitting the board: dynamic nodes can’t just be cut Routing a 6,000-part board 3. What you get Generated drawing + reverse verification: making “thousands of devices” tractable, and proving equivalence with the original netlist; Controlled transformations: depletion loads → resistors, single pass gates → back-to-back pairs, series resistors on switched-VCC pull-ups; Electrical topology thinking: splitting is not geometry; it’s about which nets must not cross a connector; An honest engineering status: routing is unfinished — “70.9% complete” is more valuable than claiming victory. 4. The numbers that matter Metric Value Meaning Footprints 5,339 components on one board; the scale limit for auto-routing Discrete parts 4,021 FETs + 1,039 pull-ups the price of recreating NMOS logic Layers 6 dynamic nodes need dedicated routing layers Current ~1.7 A an order of magnitude above the original chip Target clock 10–20 kHz the realistic ceiling for discrete parts and long traces Dynamic cross-nets 84 in the 4-board option each must pass a connector — the biggest risk Decoupling 12 × 100 nF per board switching-noise control Reference MOnSter6502 (~50 kHz / 2 A) a known-working discrete rebuild These numbers explain one thing: the bottleneck of a discrete rebuild is electrical, not logical. Dropping to kHz buys enough time for charge to survive parasitic capacitance and leakage. ...

October 20, 2026 · 3 min · daviszhen

Data Version Control: Why a Database Needs Git

Git gave code cheap branching, rollback and merge. Data never got the same deal — because data is huge; one copy is a terabyte. But a trend is changing that: the people editing data are turning into AI clusters. When the scale and frequency of writes go up an order of magnitude, branch / merge / rollback move from “nice feature” to “the only way this can be safe”. 1. What data versioning needs Strip the product narrative and a data version system needs at least three things: ...

October 20, 2026 · 3 min · daviszhen

Writing a Search Engine from Scratch: Rewriting Lucene in C++

A search engine looks like “inverted index plus TF-IDF” — until you try to make it agree with Lucene bit for bit. This series records an attempt to rewrite Lucene 10.4 in C++. Not a toy: Java must be able to read a C++-written index (CheckIndex OK), the same queries must return the same documents and the same score bits, and performance must land in the same ballpark. 1. Why rewrite The point isn’t reinventing a wheel. It’s three things: ...

October 20, 2026 · 3 min · daviszhen

Writing a Query Optimizer: From COLUMBIA to TPC-H

Query optimizers are the component everyone uses and few people write. You can recite Join Order, subquery unnesting and cost models in an interview — but actually writing an optimizer that survives all 22 TPC-H queries teaches you that the hard part isn’t the vocabulary. It’s the way the details constrain each other. This series is a record of one such attempt: from porting a textbook Cascades implementation, to making it digest TPC-H, to admitting the traps it fell into. ...

October 20, 2026 · 3 min · daviszhen

Criteria vs Plans: Criteria Answer 'What Counts', Plans Answer 'What to Do Next'

The previous three posts were all about criteria. But there’s a very insidious mistake here: using criteria as a plan. Criteria only screen candidates; they can’t produce action. Use them as a plan, and you get a paragraph that is correct but doesn’t move — and then you spin in place. 1. Division of labor Role Form Criteria Screen candidates; exclude those that don’t produce autonomy Three hard conditions (takable and usable, non-employment income, portable) Plan Drive from 0 to “non-employment income ÷ necessary expenses ≥ 1” A repeatable action loop Criteria answer “what counts”; plans answer “what to do next.” ...

October 20, 2026 · 3 min · daviszhen

Three Axes: Compliance, Feasibility and Risk Must Not Impersonate Each Other

The three hard criteria answer only “does this make you more autonomous.” But in practice, the easiest mistake is to let feasibility — or even risk — impersonate compliance. 1. A real, visible failure While screening someone’s 40+ candidate plans, I (the analyst) gave three opposite verdicts in a row: Round My stated reason Conclusion First Distribution isn’t in your control Games / novels / mini-programs ❌ Second The payment chain can be cut Only direct payment ✅ Third Market win rate is too low Most of them ❌ Three verdicts, three times substituting my own implicit standard for the other person’s criteria. The definition was actually clear: if income isn’t employment income, the deliverable can be used, and it’s portable — it counts. ...

October 20, 2026 · 4 min · daviszhen

Three Hard Criteria: What Counts

The previous post said criteria answer only “what counts.” This one gives three hard criteria and a formula you can compute. 1. Criterion one: the deliverable can be taken and used The key words are taken and used. ✅ A tool that can be downloaded and run; software that can be installed; a template that can be used directly; ❌ An analysis, an opinion, a proof that “I know a lot.” Analysis, opinions and capability demonstrations cannot be “taken and used.” They only buy evaluation — and evaluation is granted by others, the exact opposite of autonomy. ...

October 20, 2026 · 3 min · daviszhen

Where Criteria Begin: Your Real Problem Isn't 'Being Recognized'

After being laid off, someone wrote a very long list: learn this, build that, get a certificate, apply for jobs, start a side business… more than forty items, each of which sounds reasonable. But no matter how long the list, it can’t answer a more basic question: which of these actually changes my situation, and which merely looks like effort? That is what criteria are for. They don’t produce action. They answer one question: what counts. ...

October 20, 2026 · 3 min · daviszhen

Routing: Auto-Routing a 6,000-Part Board

After splitting, the remaining question is simple: connect the nets. It sounds like “click auto-route,” but it turned out to be the most time-consuming part of the whole project. 1. FreeRouting: it works, but it stalls The KiCad DSN/SES flow is standard: pcbnew.ExportSpecctraDSN(board, 'x.dsn') # export the design java -jar freerouting.jar -de x.dsn -do x.ses # then import the .ses back into KiCad On small boards (C_timing, 337 nets) it works well. On large boards we hit: ...

October 20, 2026 · 3 min · daviszhen

Splitting the Board: Dynamic Nodes Can't Just Be Cut

A 5,339-footprint, 300×320 mm board is already at the edge of “manufacturable but awkward.” The natural idea is several small boards plus a backplane. But the 6502 has a special constraint: many of its nodes are dynamic. 1. Why dynamic nodes can’t be cut The 6502 is NMOS dynamic logic: pass gates store charge on gate capacitance, and state is held by charge, not by static latches. Such a node, once: ...

October 20, 2026 · 3 min · daviszhen

Building the 6502 from 4,000 Discrete Transistors: The MOnSter6502 Route

The first post produced a verifiable schematic. But it is still an “abstract drawing” — the 6502 was originally 3,000+ transistors on silicon. This post does something more extreme: rebuild it from 4,000 discrete components. We didn’t invent this route. Two public predecessors did: Project Scale Board MOnSter 6502 4,769 parts (3,218 FETs + 1,019 resistors) 12×15 in, 4 layers, ~50 kHz, ~2 A discrete6502 4,051 FETs, 1,023 × 10k resistors 290×322 mm, 6 layers, 10–20 kHz, 1.7 A We took the second, leaner route: 10k resistors replace the depletion loads, and BSS138W (SOT-323) serves as the switch. ...

October 20, 2026 · 3 min · daviszhen