building-company-interview-kits

Use when preparing for a specific company's interview loop (OA, phone screen, onsite, system design, behavioral), doing company due diligence, collecting leaked or reported interview questions, or cla

SKILL.md

GitHub

Building Company Interview Kits

Overview

A company has two homes (CLAUDE.md, "Learning area vs research area"; Amazon and Headlands are the models).

  • Learning area, the kit: vault/interviews/companies/<co>/. Only what Chi reads or practises: README.md (the one entry point), LOOP_GUIDE.md, LP/behavioural pages, company-only rounds, and practice code (problem dirs with problem.md, starter, solution, tests; the runner the README names, conftest.py, pytest.ini). No sources, catalogs, CHECKPOINT/LEDGER, authoring tools or agent files in here.
  • Research area: research/companies/<co>/. Sources and evidence (catalog/raw/, CATALOG.md), CHECKPOINT.md, LEDGER.md, PROVENANCE.md, CONVENTIONS.md, agent task files, and the interview tree (tree/interview-loop.yaml). The authoring tools are not copied per company: they are the shared trellis kit <tool> --co <co> commands in trellis/kit/ (pareto, coverage, verify_suites, summary, contents, check_tree, harvest, mirror, refresh_check, articles_readme). Start it with a README.md of 5–10 lines saying what is there and where the learning pages are.
  • General topics (system design, LLD, coding patterns, language courses) are not kit-only: they go to vault/interviews/core/<topic>/<co>/ (for example core/system-design/amazon/, core/cpp/headlands/) or a domain branch (LLD deck 10 is the amazon branch). The kit links to them.

General coding-round skills live in the code-core domain (vault/interviews/rounds/code-core/): give the company a transfer.<co> leaf and a core: [leaf, …] list per coding round in the kit's loop tree, so the kit links to the general leaves instead of rewriting them.

Every page under vault/ is a learning page and follows proposals/WRITING_RULES.md: no provenance or process words, no reconstruction labels, no agent or gate talk, (low priority) on problems not asked in the last month, and diagrams that survive a phone (rule 12: text diagrams at most 40 display columns, no CJK on drawing lines; prefer a table, a list, or a small mermaid). Check pages with python3 scripts/plain_style.py <page.md> (LP pages with --outline) and python3 scripts/phone_diagrams.py <page.md | dir>; dead links with python3 scripts/check_wikilinks.py.

Core principle: distill what others already curated before researching yourself, and never state a number you did not compute.

Procedure

  1. GitHub first. Search repositories and code (gh api -X GET search/repositories -f q="<co> interview", "<co> oa", company wise leetcode; search/code for "<co>" "phone screen"). Fetch every company-specific file. Write research/companies/<co>/catalog/raw/github_repos.md: source, stars, last push, confidence, how used. Run vault/interviews/core/leetcode/lc_company.py <Co> (from the repo root) for LeetCode originals.
  2. Web sources (forums, 1p3a, Blind, aggregators) → research/companies/<co>/catalog/raw/<topic>.md, URL + date per fact, one file per source (emails, official, forums_en, forums_cn, aggregators). Confidence: high = first-hand post or official page, medium = aggregator whose details match a first-hand one, low = SEO or AI-rewritten site (trust the problem type, not the numbers).
  3. research/companies/<co>/catalog/CATALOG.md: one row per problem family; #refs = independent sources; confidence high (first-hand) / medium (consistent aggregator) / low (SEO). trellis kit pareto ranks and writes the cut line (put it in CATALOG.md).
  4. Build above the cut line first, in the kit: coding = problem.md + starter_template.py + solution.py + test_*.py (the per-set REPORT.md is process, so it goes to research/companies/<co>/reports/); non-coding = bank + rubric + stories; system design = prompt/rubric/model_answer/followups in vault/interviews/core/system-design/<co>/. LeetCode originals get a list row, not a kit.
  5. Accept each set only after trellis kit verify_suites (solution green, empty starter red) and trellis kit check_tree --strict, then run the style gates on every learning page (plain_style.py, phone_diagrams.py).
  6. Study layer in Chinese: essentials, per-round guide, one article per problem, written as rehearsable action items.
  7. Report trellis kit coverage numbers, naming the universe they are measured against. The report lives in research/companies/<co>/, never in the kit.

Quick Reference

Paths: everything runs from the repo root. trellis kit <tool> --co <co> reads vault/interviews/companies/<co> (the kit) and research/companies/<co> (the research area); --kit DIR / --research DIR override either. Per-company differences (round names, focus rounds, coverage labels, codebase kits) are options with defaults in trellis/kit/paths.py (PROFILES): add an entry there for a new company instead of copying a tool. Only the practice runners the kit README names (drill.py, loop/mock.py, a language test runner) run from inside the kit, as uv run --project <repo root> python drill.py …; they import the practice runtime (progress, pytest_progress) from trellis.kit. A new company starts with conftest.py + pytest.ini copied into the kit and its interview tree in research/companies/<co>/tree/interview-loop.yaml. Only company-specific scripts (a bank builder, a language test runner) live in research/companies/<co>/tools/.

Artifact Command
LeetCode company-tag list python3 vault/interviews/core/leetcode/lc_company.py <Co> (repo root)
Rank + cut line uv run trellis kit pareto --co <co> (reads catalog/RANK.md, table 总表; --focus names the current round)
Acceptance gate uv run trellis kit verify_suites --co <co> "<glob>" (glob relative to the kit)
Coverage uv run trellis kit coverage --co <co>
Test summary uv run trellis kit summary --co <co> --run
Book contents (rounds → skills → problems, ranked) uv run trellis kit contents --co <co> after every tree or RANK change
Page style python3 scripts/plain_style.py <page.md> · python3 scripts/phone_diagrams.py <dir> (repo root)

A LeetCode problem that the company changed (new constraints, extra Parts, a design twist) is not an original: it gets a kit.

Red Flags — stop

  • Opening WebSearch before any gh api search call.
  • Writing a full solution kit for a LeetCode original.
  • "Coverage is ~90%" without a trellis kit coverage run, or with a universe that excludes GitHub lists.
  • Marking a subagent task accepted from its own report.
  • A cut line, count, or percentage typed from memory.
  • Filling paywalled or missing parts without recording it in research/companies/<co>/PROVENANCE.md (never as a label on a learning page).
  • A raw/, catalog/, tools/, CHECKPOINT or LEDGER file created inside vault/interviews/companies/<co>/.
  • Provenance, confidence, "reconstructed" or agent talk on a learning page, or a wrapped ASCII diagram.
Rationalization Reality
"Nobody curates this company on GitHub" The last sweep found a 104-problem LeetCode tag list and an 87-question aggregator mirror. Search takes two minutes.
"Web aggregators already cover it" They missed 26 company-specific problems that one GitHub file listed.
"The subagent said tests pass" Two accepted sets had wrong tests or links. Re-run the gate.
"I counted the rows" Hand counts were wrong twice. Use the script.

Common Mistakes

  • Denominator drift: adding sources after computing coverage. Recompute after every source.
  • Relative links from loop/rounds/<round>/<id>/ to the kit root need ../../../.
  • Subagents spawning subagents, or more than 3 in parallel: the limit is the orchestrator's job.
  • Losing progress on usage limits: append research/companies/<co>/LEDGER.md, update research/companies/<co>/CHECKPOINT.md, commit + push per task; relaunch the rest on opus with a resume rule when sonnet is limited.

Study layer since 2026-11 (the Cerebras build)

The kit is the reading layer. The cards go into general domains, and the company gets a sprint deck that borrows them. See docs/explanation/study-system.md.

  1. Research. Three agents run in parallel:
    • due diligence: products, business, news, competitors, team, culture;
    • interview reports, GitHub first;
    • a skill map of 150–200 leaves, weighted by likelihood × centrality and checked against the cards that exist. Then per round: a technical-rounds page, plus a gap list against LeetCode, LLD and the system-design bank.
  2. Cards.
    • Gaps go into the domain they belong to; create a general domain when no home exists.
    • Company-only cards go into domain <co> (company, role, loop, HM answers, behavioural mapping, questions to ask).
    • Runnable practice sets live in practice/, accepted with trellis kit verify_suites.
  3. Deck.
    • Write a public role track (tracks/<role>.yaml), or reuse one.
    • Add a private overlay with the company's sections.
    • Build: scripts/track_plan.py overlay -o plan.json → scripts/company_deck.py deal.
    • Set the order with scripts/reposition_new.py.
    • For LeetCode, add a separate view deck from the 公司::<Co> tag.
    • Maps: scripts/knowledge_tree.py --track.
  4. After the interview: company_deck.py --deck <name> release.

Mistakes made here:

  • A public file naming the company is fine now, since prep is public by default; only NDA material stays local.
  • Copies of LeetCode problems per company: never. Tag the one card instead.
  • A deck order fixed only by sub-decks: inside a sub-deck, Anki deals by position, so reposition.
  • Deleting many decks, or writing the collection file, forces a full sync: ask Chi before choosing Upload or Download.