founder-skills
CLAUDE.md42 starsChanged 4 months agoApache-2.0View on GitHub
This file is distilled: it keeps the rules and not the measurements behind them. Those are NOT in git history — docs/internal/claude-md-archive/ holds the only copy of the pre-distillation file, untracked, on one disk. Read it when a rule here states a conclusion and you need what was measured to reach it; several were learned by a run that cost money. If that directory is gone, so is the reasoning. Cite nothing in this file by SHA: the history has…
- Reads credentials
- Deletes or force-pushes
- Installs packages
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 107
Do NOT add version or metadata fields to marketplace.json
- Very specific: line 113
All scripts support --pretty for human-readable output and -o <file> to write to file (skill scripts emit a JSON receipt to stdout …
- Very specific: line 298
Keep pre-upgrade reports: per-item verdicts are not comparable across corpus-packaging changes, but per-skill not-adjudicable counts on …
- Very specific: line 316
Look BACK over runs already made with stats <scenario> --group-by skill-hash --runs.
- Very specific: line 321
Never pipe verify-cassettes to tail (deterministic EAGAIN crash replaces the verdict).
- Very specific: line 452
Pre-publish validation: Run claude plugin validate founder-skills to validate manifests against the CLI's schemas (requires CLI v2.1.131+).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md
This file is distilled: it keeps the rules and not the measurements behind them. Those are NOT in git history —
docs/internal/claude-md-archive/holds the only copy of the pre-distillation file, untracked, on one disk. Read it when a rule here states a conclusion and you need what was measured to reach it; several were learned by a run that cost money. If that directory is gone, so is the reasoning. Cite nothing in this file by SHA: the history has been rewritten and pre-rewrite hashes do not resolve. Name the change and grep for the identifier.
Repository Structure
founder-skills/— Claude Code plugin (SDK/CLI-based)founder-skills/.claude-plugin/plugin.json— Plugin manifestfounder-skills/commands/feedback.md—/founder-skills:feedbackslash command (drafts a bug/idea/help/win report, hands the user a prefilled GitHub/mailto:link to submit; transmits nothing automatically)founder-skills/skills/market-sizing/— Market sizing skill with scripts and referencesfounder-skills/skills/deck-review/— Deck review skill with scripts and referencesfounder-skills/agents/market-sizing.md— Market sizing agent definitionfounder-skills/agents/market-sizing-redteam.md— RED_TEAM agent: attacks a finished sizing the way a skeptical investor would, dispatched at exactly one step after the math and validation are complete. The fleet has EIGHT agents, not six — market-sizing and competitive-positioning each carry a second, red-team agent, and a skill pinning two is why the critique-corpus agent term is a UNION rather than the scalaragents/<skill>.md.founder-skills/agents/deck-review.md— Deck review agent definitionfounder-skills/agents/competitive-positioning-redteam.md— competitive-positioning's RED_TEAM agent: attacks a finished positioning analysis. A separate agent because the shared one's body is the scoring rubric the analysis was built with, and a reviewer carrying the builder's rubric inherits the frame it exists to escape.founder-skills/skills/ic-sim/— IC simulation skill with scripts and referencesfounder-skills/agents/ic-sim.md— IC simulation agent definitionfounder-skills/scripts/session-setup.sh— SessionStart hook (persists CLAUDE_PLUGIN_ROOT)founder-skills/scripts/founder_context.py— Founder context management (init/read/merge/validate)founder-skills/scripts/find_artifact.py— Artifact path discovery across skillsfounder-skills/scripts/insert_coaching.py— Shared Context B coaching-commentary inserter (idempotency matrix, uuid-marker replacement, run_id parity)founder-skills/scripts/check_handoff.py— Shared Context A file hand-off gate (typed exit codes for main-thread branching)founder-skills/scripts/merge_json.py— Shallow-merge of parallel sub-agent hand-off files for producer pipesfounder-skills/scripts/md_to_commentary.py— Wraps a sub-agent's raw-markdown coaching commentary into the JSON envelopeinsert_coaching.pyconsumes (the model never hand-escapes the commentary)founder-skills/scripts/_founder_text.py— Shared founder-facing text policy: four token types, three behaviours (humanize private enums + field names; keep stable identifiers and diagnostic codes verbatim). Everycompose_report.pysubstitutes then scans with it;insert_coaching.pyscans the commentary.identifier_values()is cap-table-only — its docstring says why.founder-skills/scripts/resolve_artifacts_root.py— Canonical + agent-namespace artifacts-root resolver (--agentfor HANDOFF_AGENT derivation)founder-skills/references/— Shared reference files (benchmarks, Israel guidance, etc.)founder-skills/references/brand/— Brand tokens + Sora variable webfont (OFL) for generated HTML artifacts; embedded base64-inline so artifacts stay self-containedfounder-skills/tests/test_market_sizing.py— Market sizing regression testsfounder-skills/tests/test_deck_review.py— Deck review regression testsfounder-skills/tests/test_reconcile.py— The numeric engine's 60 judgement calls, each pinned to a real corpus linefounder-skills/tests/test_reconcile_producer.py— The engine's producer layer: the gate, the three statuses, and that onlyselect()decides founder-visible outputfounder-skills/tests/test_ledger.py— Ledger validation, chiefly theraw-vs-valuescale checkfounder-skills/tests/test_quote_match_sync.py— the copies of cap-table's matcher (deck-review, market-sizing, competitive-positioning) must not driftfounder-skills/tests/test_ic_sim.py— IC simulation regression testsfounder-skills/tests/test_visualize_market_sizing.py— Market sizing HTML visualization testsfounder-skills/tests/test_visualize_deck_review.py— Deck review HTML visualization testsfounder-skills/tests/test_visualize_ic_sim.py— IC simulation HTML visualization testsfounder-skills/skills/financial-model-review/— Financial model review skill with scripts and referencesfounder-skills/agents/financial-model-review.md— Financial model review agent definitionfounder-skills/tests/test_financial_model_review.py— Financial model review regression testsfounder-skills/tests/test_visualize_financial_model_review.py— Financial model review HTML visualization testsfounder-skills/skills/competitive-positioning/— Competitive positioning skill with scripts and referencesfounder-skills/agents/competitive-positioning.md— Competitive positioning agent definitionfounder-skills/tests/test_competitive_positioning.py— Competitive positioning regression testsfounder-skills/tests/test_competitive_positioning_red_team.py— competitive-positioning's outside review: the rewording, the producer, the reviewed-state fingerprint, the compose gate and codes, and both pages rendering from the copyfounder-skills/tests/test_visualize_competitive_positioning.py— Competitive positioning HTML visualization testsfounder-skills/skills/cap-table/— Cap-table skill (SAFE / note conversion, priced rounds, anti-dilution, Israeli ↔ Delaware flips)founder-skills/agents/cap-table.md— Cap-table agent definition (Context A extraction + Context B coaching)founder-skills/tests/test_cap_table.py— Cap-table regression tests (math producers + 11-gotcha regression suite)founder-skills/tests/test_cap_table_freeform.py— Lane-3 freeform mapper tests (freeform_mapper.map_freeformgolden maps + blockers +--mode=freeform-emitCLI + thecap_stateE_NO_EQUITY_BASEguard)founder-skills/tests/test_cap_table_pool_basis.py— the pool-basis gate across every entry point;_pool_sizing_claims.py+test_pool_sizing_claims.py— the judge the paid cap-table lanes use on coaching pool sentences, and its free table; the same file ships as the cap-table skill'sscripts/_pool_sizing_claims.pyfor the in-pipeline backstop, held byte-identical bytest_pool_claims_check.pycowork-tests/lint_skill_gate.py+lint-skill-allowlist.json— CI'slint-skillgate: a pinned list of accepted (rule, file, count) findings that may only shrink; any other WARN failscowork-tests/handover_check_cassette.py— HARD CI step: each recording that ran a closing script carries the printed hand-over whole and the Stop hook found it; reuses the hook's own logiccowork-tests/preflight_classify.sh—rerecord.sh's cost pre-flight classifier (budget refusal vs a scenario that did not load, or a⚠ input error:a real record would refuse, which exits 0), keyed on the harness's message, not its exit code- Hook and harness tests:
test_stop_handover_hook.py(both Stop-hook checks),test_dispatch_prompt_hook.py,test_two_figures_hook.py,test_handoff_audit.py,test_handover_check_cassette.py,test_lint_skill_gate.py,test_rerecord_preflight.py,test_cassette_file_tool_paths.py(no relative or/sessions/path reaches a file tool in any cassette),test_fmr_handover.py founder-skills/tests/test_visualize_cap_table.py— Cap-table HTML visualization testsfounder-skills/tests/mutation_corpus.py+test_mutation_corpus.py— Curated mutant corpus over cap-table's math producers:MUST_KILL/KNOWN_SURVIVORS, both SHRINK-ONLY; every kill names the test that must notice (killed_by, measured never guessed — a kill from anywhere else fails); a no-op control must stay PASSING. The registry lives in the non-test_*module deliberately — its docstring says why.founder-skills/tests/test_release_gating.py— The release chain asserted: every job inpublish-release's TRANSITIVEneedsclosure must run on a tag push, because in Actions a skipped dependency SKIPS the dependent (four tags once shipped with no Release). Frozenif:strings + a simulated-tag-push evaluator that raises on an unknown context property. Wiring only, never that a job passes. The chain is unexercised: v0.10.0 predates thepublish-releasejob.founder-skills/tests/cowork_async_subagent_filter.py— Cowork sub-agent tool-name compatibility helper (skill-quality CI; v0.4.0-regression detector)cowork-tests/leak_scan.py— Founder-facing "internal plumbing" leak detector: nine syntactic classes plus the semanticplumbing_verb. Point it at a cassette FILE orevents.jsonl; a directory glob finds only*.jsonand reports a silent false-clean.founder-skills/tests/test_founder_facing_leaks.py— Ratchet overleak_scan.pyacross the committed cassettes. Gates "no NEW leaks beyondBASELINE", not zero; ratchet the constant DOWN after a re-record (it was raised once, deliberately, and the file's comment states the obligation to ratchet back). A green does not mean clean narration: what still passes is internal vocabulary with no plumbing verb ("canonical artifacts", "schema-drift warning", bareSTOP/BLOCKED, "Gate 1 passes"). Do not fix that by enumerating words — extending the classes was tried and does NOT red the suite, but an enumerated blocklist is unwinnable by the detector's own design note.founder-skills/tests/compose_invocations.py— Per-skill compose-script invocation registry (skill-quality CI)founder-skills/tests/test_cowork_async_subagent_filter.py— Helper unit testsfounder-skills/tests/test_cowork_invariants.py— Per-agent persistence + dangerous-tool declaration invariantsfounder-skills/tests/test_cowork_harness_floors.py— Drift guards for the cowork-harness version surface: the per-site registry splitting CI SELECTORS (pinned exactly,4.2.0) from FLOORS (recording>=4.2.0, replay>=3.8.0) — three postures, deliberately different,uses:-vs-version:major agreement (the action ref and the CLI move independently), and the derived cassette-format facts prose keeps restating wrongly. Every extraction asserts its own pattern matched, so a rotted regex reds instead of greening.founder-skills/tests/test_skill_orchestration.py— Per-SKILL.md frontmatter + sub-agent-cue-then-bash regression detectorfounder-skills/tests/test_compose_invariants.py—coaching_payloadshape +STALE_ARTIFACTregressionfounder-skills/tests/coaching_payload_keys.py+test_coaching_payload_key_coverage.py— The coach's key list DERIVED from eachcompose_report.pyby static AST (every unresolvable construct raises), asserted against agent bodies only. A lower bound in the addition direction — it does not replacetest_compose_invariants.py's_COACHING_COVERAGE_KEYSand is blind to SHAPE;test_high_severity_warning_shape_matches_the_producercovers that axis.founder-skills/tests/test_cap_table_warning_labels.py— cap-table may not hand the coach a rawE_/W_code under a founder-facing name. Asserts the humanizer's OUTPUT SHAPE over every code literal (not per-code coverage, which rots and gets deleted), and SEEDS a blocker + solver warning because the fixture carries none.founder-skills/tests/test_insert_coaching.py—insert_coaching.pysuite (6-state idempotency matrix, run_id parity, single-pass write-back, adversarial commentary)founder-skills/tests/test_check_handoff.py—check_handoff.pysuite (typed exit paths 0/3/4/5/6, adversarial file states, tolerant receipt extraction)founder-skills/tests/test_redteam_core.py—_redteam_core.pysuite; also pins each skill's copy oflist_documentsto the core'sfounder-skills/tests/test_merge_json.py—merge_json.pysuite (merge order, --set overrides, error paths)founder-skills/tests/test_resolve_artifacts_root.py— Artifacts-root resolver suite (Cowork mount signatures + agent-namespace root)founder-skills/tests/dead_payload.py— Shared analyzer for embedded-but-unread JS payload keys with three verdicts:read,unread,unverifiable(computed-name access — neither blanket consumption nor death).founder-skills/tests/test_dead_payload.py— Analyzer unit tests + all four embedders (threeexplore.py+review_inputs.py). Pins which payload objects are dynamic, so a generator switching to computed access cannot quietly reduce coverage.founder-skills/tests/test_dispatch_schema_drift.py— A dispatch template may not instruct a field nothing consumes; reads every fenced block on both prompt surfaces (json-only sees about a third). Cannot see shape-level drift (x_axis_rationaleis both the obsolete authoring shape and a legitimate internal one), so a direct axis-shape assertion covers that.founder-skills/tests/test_html_founder_text.py— Fleet ratchet: no internal token in founder-visible text of any generated HTML. Text nodes only; attribute values and script bodies are not founder-facing prose.founder-skills/tests/test_compose_invariants.pyalso scans every delivered markdown, not justreport.mdvia_EXTRA_DELIVERABLES(cap-table's counsel packet today), seeding one counsel item because the fixture flags none — without it the packet is boilerplate and passes with the leak present.founder-skills/tests/test_delivery_coverage.py— The fleet's delivery-defect coverage map, asserted rather than described; records the known "computed, not rendered" gap (gated only in competitive-positioning and financial-model-review) and one Gate-1 render contract as explicitly WEAK.founder-skills/tests/test_theme_sync.py— Brand-theme invariants: per-skill_theme.pycopies identical, brand font present, font embeds in CSSfounder-skills/tests/test_e2e_deck_review.py,test_e2e_financial_model_review.py,test_e2e_market_sizing.py,test_e2e_cap_table.py— the FOUR paid end-to-end lanes; LLM-driven; carry thee2emarker. Derive the list withls founder-skills/tests/test_e2e_*.py; a hand-list here has gone stale before. Shared plumbing intests/_e2e_harness.py— deck-review deliberately does NOT use it (it is the lane the release tag gates on; fold it in when a failure costs a re-run rather than a re-tag), except for the account-connector switch (ENABLE_CLAUDEAI_MCP_SERVERS=false) and its post-run check, which every lane runs;test_lane_connector_isolation.pyholds both, free. One lane per changed coaching-payload builder is the rule: contract tests pin that a payload key is emitted and named on both prompts, and structurally cannot show a sub-agent reading it.founder-skills/tests/fixtures/— Synthetic test inputs (deck-review compose-invariant fixtures + synthetic deck for e2e + golden expected file).github/workflows/skill-quality.yml— Skill-quality CI (contract tests per-PR, e2e smoke on internal PRs only)artifacts/— Persistent working directory for skill run artifacts (gitignored, created at runtime)
Plugin Structure
.claude-plugin/marketplace.json— Marketplace manifest (root level)founder-skills/.claude-plugin/plugin.json— Plugin manifest with hooks- marketplace.json must match Anthropic's format: only
name,owner,plugins(each withname,source,description) - Do NOT add
versionormetadatafields to marketplace.json
Script Conventions
- Scripts use PEP 723 inline metadata; default to
python,uv runoptional - Scripts output JSON to stdout, warnings/errors to stderr
- All scripts support
--prettyfor human-readable output and-o <file>to write to file (skill scripts emit a JSON receipt to stdout confirming the write) - Skill-local scripts live in
founder-skills/skills/<skill>/scripts/ - A producer that rejects its input MUST fail loudly: diagnostic to stdout, a line to stderr,
-oleft untouched, exit non-zero. Six producers across four skills independently got this wrong — they wrote a{"validation": {"status": "invalid"}}stub through-oand returned 0, which both destroyed the prior good artifact and made every SKILL.md's "the pipe fails next" error branch unreachable; the only downstream signal was a medium warning naming a symptom. Use the_fail_invalidhelper (canonical copy:skills/market-sizing/scripts/market_sizing.py). Stampmetadata/graded_againstbefore calling it, so the diagnostic still carries provenance.tests/test_skill_contract.py::test_producer_rejects_loudly_without_clobberingruns each producer against a rejecting payload and asserts all three properties — deliberately behavioural, because the structural version ("must contain_fail_invalidor asys.exit(1)") was measured vacuous: every one of these scripts already hadsys.exit(1)for malformed-JSON errors. Add new producers to that registry. - The audit trail does not require clobbering, and a sidecar needs a downstream reader. A producer may keep a rejected artifact beside the canonical one as
<canonical-filename>.rejected.json(appended, socompetitor_verification.json.rejected.json— not a replaced extension), leaving-ountouched.verify_competitors.pydoes this. If it does, something downstream MUST key on the sidecar: for an OPTIONAL artifact, absence otherwise reads as "the run skipped this step" and the deliverable presents unchecked analysis exactly as it presents checked analysis. Two ways for that signal to go missing, both measured here — key it on absence alone and a prior run's file silences it, so compare run_ids; and a medium code naming a symptom (STALE_ARTIFACT) is not the signal, because the founder needs the cause.compose_report.py'sVERIFICATION_REJECTEDis high and does both. - Compose scripts pair with it: a canonical artifact carrying
validation.status == "invalid"raisesARTIFACT_INVALID(orSIZING_INVALIDin market-sizing) at high severity, so it cannot be accepted away viaaccepted_warnings.
Shared Scripts
founder_context.py— Per-company context management (init/read/merge/validate subcommands); protects 11 key metric fieldsfind_artifact.py— Resolves artifact paths by skill name, artifact filename, and optional company sluginsert_coaching.py— Deterministic Context B insertion: reads the sub-agent's commentary JSON, applies the 6-state idempotency matrix, replaces the per-run uuidinsertion_markerwith## Coaching Commentary+ commentary in a single in-place write, and verifiesrun_idparity across--verify-artifactpaths (exit 0 inserted/already_inserted; exit 1 blocked with JSON diagnostic). Every skill's POST_COMPOSE_COACHING step calls it; sub-agents only compose commentary and never editreport.md. A report that declaresCOACHING_REQUIRES_CHECK_RECORD(cap-table's only) is inserted into only with a passing check record for that run (seepool_claims_check.py).check_handoff.py— Context A file hand-off gate: verifies a sub-agent's output file exists/parses as JSON and (optionally) that its receipt'soutput_pathmatches (--agent-pathaccepts the agent-namespace echo). Typed exit codes (0 ok / 3 missing-or-empty / 4 bad JSON / 5 path mismatch / 6 unparseable receipt / 7 content-shape invalid / 8 path-namespace mismatch) for main-thread branching. Exit 8 fires when no file is at the expected path but one IS where a doubled agent-namespace prefix would have put it — reported ahead of exit 3 because the two are indistinguishable from the file check yet need opposite responses (3 = the receipt may be fabricated; 8 = the agent complied and the path was wrong). Itsfound_atis diagnostic only: never read the hand-off from it, or exit 0 stops meaning "the file is at the contracted path" for the ~50 downstream$HANDOFF_DIRreferences.merge_json.py— Shallow-merges multiple JSON object hand-off files (later files win;--set key=valueoverrides) into one stream for producer pipes — used when a step consumes the union of parallel sub-agent outputs (e.g. market-sizing "both").md_to_commentary.py— Transport envelope for Context B: the sub-agent writes coaching commentary as plain markdown (never JSON, never escaped), this wraps it into the payloadinsert_coaching.pyreads. Quotes and line breaks in the commentary can't break the hand-off.resolve_artifacts_root.py— Resolves the canonical artifacts root AND the agent-namespace root (--agent/--json): in Cowork the sub-agents' file tools see theoutputs/mount at a different prefix than the VM shell, so SKILL.mds deriveHANDOFF_AGENTfrom--agentwhen buildingOUTPUT_PATHdispatch lines. Warns (never fails) when--dir-namenames a directory with no mirror under the canonical root: a mistyped name still yields a well-formed path, and the symptom — every hand-off failingcheck_handoff.pyexit 3 — reads as a fabricated receipt rather than a bad path, so the state machine spends its retry budget on redo-dispatches that cannot succeed. On a Cowork session tree the agent root is an ABSOLUTE host path: the main thread proves it once with--set-host-outputs-diragainst a probe its Write tool wrote (exit 2 bad shape / 4 probe missing / 5 mismatch); until then, agent-namespace calls exit 6._handoff_audit.py— Gate records:check_handoff.pywrites<file>.gate.json(with its sha256) on exit 0; each compose names every step with no record (HANDOFF_BYPASSED, medium, not acceptable where acceptance exists). The evidence is an ABSENT record, never something the fallback path writes. A missinghandoff/<run_id>/is not silence: it means no records, so every step the artifacts show ran is named. Residual: a step required only because its hand-off file is in the dir (cap-table's per-document extractions, competitive-positioning's enrichment re-dispatch) stops being required when the dir is deleted, so deleting it can still remove that warning. A run that dispatched no sub-agent has none of those artifacts and is required to show nothing. Residual: hand-writing a gate record, or deleting a canonical artifact (which removes its step's requirement), still defeats it._delivery_check.py— The Stop hook's delivery half (see Hooks): a successful report build whose files were linked but never attached, on a host that offered a delivery tool. Loaded by path fromstop_handover_check.py.pretooluse_dispatch.py,dispatch_prompt_check.py,two_figures_check.py— the PreToolUse hook's body and its two checks (see Hooks)._handover_check.py— The hand-over containment rule, in ONE place: the e2e lane and the Stop hook both ask whether the founder's message carries the printed message whole, and a rule with two copies drifts (the lane greens on one reading while the hook blocks on another). Link targets are dropped and whitespace squashed before comparing — the two runtimes render different links for the same file, and a re-typed indent is not a change. Containment, not digit-absence: a message is also wrong when it DELETES a printed line, which no digit check can see._redteam_core.py— The adversarial review's skill-neutral half: which findings may reach a founder, and which review is shown. Both red-team skills load it by path; what differs per skill (the quote matcher, the review's wording, the parameter names a finding may name, what a review is taken against) is passed in.stop_handover_check.py— The Stop hook's body (see Hooks); loads_handover_check.pyby path, since plugin-rootscripts/is not a package.
Market Sizing Scripts
market_sizing.py— TAM/SAM/SOM calculator (top-down, bottom-up, or both). Also the only place FX happens. On the skill's path (inputs by reference,--validation --inputs) the rate is a sourcedfx_rateentry invalidation.jsonwith from/to/as_of and a listed source;--fx-rateand*_currencyflags are refused (E_FX_ON_REFERENCE_PATH), a missing rate isE_FX_RATE_MISSING(remedyrecord_research), and a rate is never inverted. The legacy numeric path still takes--fx-rate/--fx-as-of/--fx-source; there a declared foreign currency with no rate is a hard error, never a guess. Conversions are recorded insizing.json'sfxblock and disclosed to the founder in bothreport.mdandreport.html; the recordedconverted_valueIS the number the math consumed, which is what letscompose_report.pycompare a founder-stated figure across the conversion.sensitivity.py— Stress-test assumptions with low/base/high ranges and confidence-based auto-widening. RECONCILES rather than defers: a range's ownconfidenceused to be absolute, which let a caller tag a medium-confidence parametersourcedand escape widening entirely; the stricter of the declared and cross-referenced tiers now wins (it can only ever WIDEN).confidence_sourceon each scenario records where the tier came from —range/validation/reconciled/default— because "no widening happened" and "no widening was called for" were previously the same artifact. With--sizing, base values come fromsizing.json(base_source,graded_against), and a founder-stated input the agent left unranged is varied at least ±30% and acrossfounder_stated_alternatives.checklist.py— Validates 22-item self-check with pass/fail per item;--sizingstampsgraded_againstcompose_report.py— Assembles report from artifacts, validates cross-artifact consistencyclosing_message.py— Prints the founder-facing hand-over message fromreport.json, and writes the same text tohandover.txtbeside the report for the check that runs after. It carries the report's ownverdictparagraph — the words the page opens with — because a message that asked the founder to go read the verdict was measured 0/2 at hostloop: the model dropped the pointer and wrote the verdict itself, with its own rounding. Composing this message in chat is what it replaces._upload_names.py— The founder's filenames as uploaded: the cloud-lane<8-hex>-upload prefix is stripped at RENDER time only (compose's final markdown +verdict, and visualize's adversarial section + verdict, where it runs BEFORE_escor an escaped'/&stops matching). It is not renamed at the source, becausered_team.pyopens<uploads-dir>/<file>and the OCR sidecars key on it. The coaching payload keeps the raw names, andtest_upload_names.pypins that by whole-payload equality. Stripping needs EVERY known name to be prefixed; a batch of one needs an a-f letter, since20240115-deck.pdfis a date; a collision keeps the prefix. The root fix is to strip while mirroring in Step 6c, but that is a SKILL.md change and cannot be exercised on the lane it targets._params.py— One owner of each sizing figure's unit and print format (money/count/percent), and of the builds' gap as a factor._provenance.py— Resolves inputs by reference (assumption / founder_stated / derived / estimate) into value, unit, normalisation, grade and entries; refuses unit mismatches with a remedy_kind._view.py— One owner of every founder-visible figure and derived fact for compose and visualize: verdict and "Short answer", sizing-integrity codes, claim ranges and disagreements, checked multiples.record_revision_answer.py/_revision_answer.py— Records Step 6d's deliver-or-revise answer; its absence, when an accepted high finding names a parameter, raisesREVISION_NOT_OFFERED.dispatch_prompt.py— Generates the RED_TEAM and CHECKLIST sub-agent dispatches from identifiers on disk (CHECKLIST reads a methodology copy with the revision record stripped, so the grader grades the analysis as it stands): the model supplies paths and ids, every sentence comes from this file, and the e2e lane regenerates the prompt and asserts the dispatched one is byte-identical. The founder's documents are listed FIRST, before any of our artifacts — a reader who opens the analysis's reading of the deck before the deck inherits its frame, and the step exists to escape the constructor's framing.ocr_uploads.py— Writes a machine-read text sidecar per page of every image-only upload, so a red-team citation to a scanned page can be checked against text rather than re-read by vision. Binary-only (pdftoppm+tesseract, the cap-table pattern) with NO Python OCR dependency: when either binary is absent it exits 0 withocr_available: falseand writes only its receipt (no sidecars), every document citation staysquote_verified: null, and that is disclosed. A missing OCR binary must never block a run. It writes<out>/receipt.jsonper document as it goes, so a re-run after a timeout RESUMES;dispatch_prompt.pyrefuses (exit 2) while any image-only PDF is not covered by the receipt — anocr_available: falsereceipt counts as covered.visualize.py— Generates self-contained HTML with SVG charts; outputs HTML (not JSON)
Deck Review Scripts
checklist.py— Scores 35 criteria across 7 categories (pass/fail/warn/not_applicable) with overall score percentagecompose_report.py— Assembles deck review artifacts into final report with cross-artifact validationvisualize.py— Generates self-contained HTML with SVG charts; outputs HTML (not JSON)ledger.py— Validates the extracted numeric ledger. Its load-bearing check israwagainstvalue: they are two independent statements about the same figure, so their disagreement catches the scale-slip class ("$493K" recorded as 493) without seeing the deck. Tolerance comes fromraw's own significant figures, not a flat percentage — "$1.2M" legitimately covers 1.15M–1.25M and a flat 2% rejects a correct extraction.reconcile.py— The arithmetic. Corroborates each figure's quote against a second read that never saw the ledger, computes the model's proposed relations, applies the tolerance/materiality/convention rules, andselect()is the single place that decides what a founder sees.relationsin the artifact holds only the survivors; everything else is a count, so no renderer can reach past the decision. Two rules that have each already been violated once: split founder-facing output onverdict(what the engine computed), never onkind(what the model proposed) — they routinely differ, and the flagship finding is proposedderived_ratioand returnscontradiction; and never render aunit_kindenum into prose ("per count" reached a rendered line)._quote_match.py— Copy of cap-table'squote_in_doc+ normalizers (skill scripts are standalone and cannot import across skills).tests/test_quote_match_sync.pycompares the parsed function bodies.value_in_docis deliberately NOT copied: on decks it false-passes 5.7% cross-deck and 37% on plausible round numbers, againstquote_in_doc's 0.8%, so the cap-table precedent is inverted here on purpose.
The numeric chain (Steps 3.5–3.8) is gated by slide_reviews.py --reconciliation, not by MISSING_ARTIFACT. Measured: removing a required artifact leaves compose_report.py exiting 0 with a complete report, so a step whose only downstream consumer is a warning gets skipped in silence — which is exactly what happened to the removed claim-check step. The gate sits on the producer of the deliverable, and checks run_id parity rather than mere presence (a stale artifact from an earlier review of the same company otherwise satisfies an existence check, and setup_run.py --clean, which removes the skill's own earlier-run checkpoints (scripts delete under outputs only their own files; a failed atomic write also removes its temp file), tolerates a refused delete, which hosts before Desktop 2.16120.0 gave; the model never deletes there).
IC Simulation Scripts
fund_profile.py— Validates fund profile structure (archetypes, check size, thesis, portfolio)detect_conflicts.py— Validates agent-produced conflict assessments and computes summary statsscore_dimensions.py— Scores 28 dimensions across 7 categories with conviction-based scoringcompose_report.py— Assembles IC simulation artifacts into final report with cross-artifact validationvisualize.py— Generates self-contained HTML with SVG charts; outputs HTML (not JSON)
Financial Model Review Scripts
extract_model.py— Extracts structured data from Excel (.xlsx) and CSV files into model_data.jsonvalidate_extraction.py— Anti-hallucination gate: cross-references model_data.json against inputs.json (company name, salary, revenue, cash traceability, scale plausibility);--fixauto-corrects scale denomination issues (e.g., model in $000)validate_inputs.py— Four-layer validation of inputs.json (structural, consistency, sanity, completeness);--fixauto-corrects sign errorschecklist.py— Scores 46 criteria across 7 categories with profile-based auto-gating by stage/geography/sector;--inputs <path>supplies the document to fingerprint (the sub-agent's payload carriescompany, not the whole inputs, so without it the fingerprint is null and staleness is undetectable for this artifact)unit_economics.py— Computes and benchmarks 11 unit economics metrics against stage-appropriate targetsrunway.py— Multi-scenario runway stress-test with decision points and default-alive analysiscompose_report.py— Assembles financial model review artifacts into final report with cross-artifact validationvisualize.py— Generates self-contained HTML with SVG charts; outputs HTML (not JSON)explore.py— Generates self-contained interactive HTML explorer from review artifacts; outputs HTML (not JSON)review_inputs.py— Dual-mode review viewer: HTTP server with live validation (Claude Code) or self-contained static HTML with JS sanity metrics (Cowork); outputs HTML. The static/Cowork branch must stay write-back-safe: guard every/api/*fetchbehind the build-timeIS_STATICflag with a lexicalif/else(an early-return guard reads as unguarded to the write-back analyzer), name the fetch responseresp/res/responseand checkresp.ok, and keep literal<script>/</script>tokens out of docstrings (the block extractor mis-reads them).test_review_inputs.py::test_every_api_fetch_in_the_static_page_is_in_an_is_static_else_branchpins the guard on every/api/fetch of a static build (the harness analyzer reports/api/feedbackas advisory with or without it, so it cannot)._theme.py— Brand theme helper: design-token CSS + base64 @font-face fromreferences/brand/; every skill's scripts dir carries an identical copy (standalone scripts can't import across skills) and all HTML generators inject_theme.brand_css();tests/test_theme_sync.pyenforces the copies stay identical — edit one, re-copy to allapply_corrections.py— Processes founder's downloaded corrections file: coerces, normalizes, merges overrides, writes corrected_inputs.json + extraction_corrections.json_evidence_multiple.py— Detects a "times" comparison an assessor's own cited figures contradict, and appends the founder-facing caveat. A sibling module because FOUR surfaces render the same assessor-written evidence and none sees the others' output (compose_report.py→report.mdand the coaching payload,visualize.py→report.html,explore.py→explorer.html); the first cut lived in compose and left both HTML pages showing the unsupported number plain. Calibration is a measured false-positive rate, not a judgement:founder-skills/tests/evidence_multiple_corpus.pyre-runs it over kept run dirs and imports this module rather than restating the grammar — a tool with its own copy reports a healthy rate for a detector that has stopped working, which is how an earlier attempt shipped a pattern containing a literal backspace that matched nothing. Baseline 2026-09-19: 2,854 real findings, 39 stating a comparison, 1 fire (the defect). Re-run it as reviews accumulate; a fire count above the number of real defects means the check is miscalibrated._fingerprint.py— Stable fingerprints of a producer's inputs, so a stale output is detectable.run_idparity cannot see this class:apply_corrections.pyrewritesinputs.jsonwithin a run, so pre- and post-correction outputs share a run_id.checklist.py/unit_economics.py/runway.pystampgraded_against;verify_review.pyrecomputes the currentinputs.jsonhash and compares. Comparing outputs to each other is insufficient — they agree while all are stale.verify_review.py— Review completeness gate: checks artifact existence, content quality (evidence, critical fields, metrics), and cross-artifact consistency; exit 0 = publishable, exit 1 = gapsfmr_closing_message.py— Prints the founder-facing hand-over fromreport.json's computedverdict(the report's own first paragraph: model quality, base runway, and the runway at today's burn when that is the planning number) and writes it tohandover.txtfor the Stop hook; exit 2 without a verdict. Same contract ascp_closing_message.py, named apart so the hook can tell the skills apart (closing_message.pyis a substring of it; the hook matches whole names). The quick-check path has no closer.
Cap Table Scripts
Rule-pack-driven cap-table math. Every math producer cites a rule_id from cap-table-rules.json (v0.2.8+). The pipeline is two-phase per design §9 Step 4.5 / Step 6: rule_audit.py --phase=pre_math writes the gating block math producers consume; --phase=post_math composes watchlist + counsel items after math runs.
cap_state.py— Aggregates inputs + instruments intocap_state.jsonwithas_converted_totals(the pre-financing snapshot the YC SAFEcompany_capitalizationdenominator binds to per Gotcha #1)safe_conversion.py— YC post-money SAFE math; all 5 forms; cap-implied + post-financing output sets; MFN cycle detection (Gotcha #4)note_conversion.py— Convertible-note math with full 7-branch enum (cap_conversion / discount_only / maturity_* / threshold_not_met) + override branchoption_pool.py— Option-pool top-up math over the rule pack's fivetarget_basisvalues (rule pack 0.4.10). Three are computed:post_money(the unallocated pool after the round is the target),post_money_increase(only the options ADDED in the round are the target — a different number whenever unallocated options already exist) andpre_money. The other two are refused, never approximated:post_money_excluding_converting_securitieshas no sourced definition as a pool denominator (every source sizes the pool on fully-diluted post-money INCLUDING conversions; "excluding converting securities" is real practice for the PRICE, not the pool), so the solver's basis gate (priced_round.py) blocks it withE_POOL_BASIS_EXCLUDING_NOT_MODELEDwhen SAFEs or notes convert, unless the founder chooses the plain post-money reading (thenW_EXCLUDING_BASIS_MODELED_AS_POST_MONEY, high);customis blocked withE_POOL_BASIS_NOT_MODELEDunless the founder states which computed measure the document matches (thenW_CUSTOM_BASIS_STATED_BY_FOUNDER, medium). Either post-money reading beside existing unallocated options is ALWAYS disclosed —post_moneyasW_POOL_BASIS_READING_NOT_CONFIRMEDplus the computed figure for the new-options-only reading,post_money_increaseasW_POOL_BASIS_READ_AS_NEW_OPTIONS_ONLYwith the whole-pool reading as its comparison — and no parameter clears it: a founder-answer flag the model writes is satisfied by writing it (it was tried, and a paid run wrote it with no question asked); a priced round also carries the pool on the other sizing basis, as computed figures or a stated reason it was not computed. Each scenario's Option pool section in the report states another sizing, with its computed figures (_pool_text.py); the coaching commentary does not discuss the pool's sizing at all._pool_text.py— The option pool's founder-facing text in one place: the sizing labels (named by the share count each measure counts; the plain post-money measure bridges once to a term sheet's "10% post-money pool", and "pre-money" is never printed beside "pool"), the comparison and new-options digests, andpool_section(), which report.md, report.html and explorer.html all render per scenario. compose re-exports its names. The coaching payload carries none of it: the pool's dilution-driver entry has areferenceto the section, and the pool-basis disclosures ride report.json'sreport_disclosuresfor the hand-over.pool_claims_check.py— Step 11's option-pool backstop. Judges the coach's commentary with_pool_sizing_claims.pyagainst the run's computed figures (only for a single post-money or pre-money basis; otherwisenot_judged, which adds the same founder line as a check that could not run plusPOOL_CHECK_NOT_RUN), exempting only the sentences this run's own Option pool sections state, rebuilt fromscenarios.jsonby the section builder rather than parsed out of a report. Exit 9 on findings (one corrective dispatch inside the 2-dispatch budget; with the budget spent, straight to--strip), then--stripremoves the flagged claims, keepscoaching.mdas written, and adds one founder line. Writescoaching.md.pool-check.jsonevery run. Refuses (exit 2,-ounwritten) when this run'sscenarios.jsonis missing, unreadable or has no run_id — failing open there would let a mistyped path skip the judge; past that point it fails open (action: error, this run's id). Its-ofile is NOT an envelopeinsert_coaching.pyaccepts:pool_check_release.pyturns it into one only when the record exists, matches the commentary and the checked file by sha256, is this run's, and its action is notfindings.- The insertion requires the check. cap-table's compose writes a
COACHING_REQUIRES_CHECK_RECORDdeclaration beside the insertion marker;insert_coaching.pythen refuses any envelope without a passingcheck_recordfor that run whose checked text is the text being inserted, and removes the declaration on insert. No other skill declares it, so their insertions are unchanged. What it does not stop: hand-editingreport.md, or a hand-written record naming this run. The paid cap-table lanes assert the record exists for the run and that report.md carries the checked file. pool_clause.py— Checks that a pool sentence quoted from an uploaded document is really in it, so it may be shown inside the Pool basis question. Exact or whitespace/dash/quote-normalized matching ONLY, bounded to a whole sentence or clause, with a(cid:N)glyph as a barrier. Deliberately narrower thanevidence_verifier.quote_in_doc: fuzzy matching accepted a meaning-flipped pool sentence, and compact matching makes10.5%equal105%. It is evidence, never the basis — only the answer to that question chooses the reading.anti_dilution.py— BBWA (with CP1 divisor per Gotcha #2) + full ratchetpriced_round.py— Solver/orchestrator: fixed-point iteration for coupled SAFE + note + pool + new_money + AD systems.solve_priced_roundis the ONE pool-basis gate every entry point (run_scenario, quick_assess, the CLI) reaches: it refuses or substitutes the basis and appends the pool-basis disclosures.flip_scenario.py— Israeli ↔ Delaware flip (v0.1: 1:1 share-for-share only per Gotcha #7)rule_audit.py— Two-phase (--phase=pre_math/--phase=post_math); scope-aware apply contract (legal_tax_applicability/benchmark_freshness/not_applicable); 5 mutually exclusive statuses + 2 near-edge overlaysrun_scenario.py— Top-level scenario orchestrator (routes byscenario.type); re-solves a priced round with a pool target on the other sizing (pool_sizing_counterfactual) and, where the reading was not confirmed, on the new-options-only reading (pool_increase_reading).sweep.pyturns both off.counsel_packet.py— Counsel-handoff packet (json + md); standalone deliverablecompose_report.py— Assembles report.md + report.json (with embeddedcoaching_payloadblock, schema_versionv0.5.0-cap-table); priced-round reports carry a source-document reconciliation section (computed vs source-stated PPS / pre-money / FD frominputs.stated_totals)concise_report.py— Concise-mode report: renders the headline numbers straight fromscenarios.json(lightweight math path; skips counsel_packet / full compose / visualize / explore / coaching)verify_one.py— Single-question cited rule-pack lookup (--rule-lookup <rule_id>→ the cited constant + reliance boundary; lightweight answer path, writes no artifact)visualize.py— Self-containedreport.html(inline SVG donut, no CDN)explore.py— Self-containedexplorer.html(vanilla JS interactive scenario picker; number tickers, donut value-morph, Sankey transition, card slide-in, and an optional pre-money sweep slider whensweep.jsonis present)sweep.py— Optionalsweep.jsongenerator: a pre-money parametric sweep (K real priced-round solver frames,new_moneyheld fixed) powering the explorer's slider; reuses the existingrun_all_scenariospath (no new math). Slider snaps to discrete real frames.extract_instrument.py— Lane-1 anti-hallucination validator (sub-agent does extraction; this validates returned JSON, normalizesdiscount_multiplierper Gotcha #3). Supports--verify/--verify-blocking/--invariants/--cross-check/--source-docflags, all default-on; uses--no-<flag>to opt out. Skips evidence checks on a ~30-field synthesized-fields list (form, jurisdiction, derived counts, etc.). The blocking gates run beforewrite_artifact, so a refusal leaves--instrumentsuntouched rather than persisting the extraction it just rejected.--instrumentsitself is a checked precondition: unreadable, non-object, a non-list array, a non-dictmetadata, or an object carrying none of the four instrument arrays (i.e. the wrong file) are refused withE_INSTRUMENTS_FILE_UNUSABLE. It APPENDS, so a wrong-path write is unrecoverable — and the schema cannot stand in for the check, since the validator ignoresadditionalProperties.extract_cap_table.py— Lane-2/3/4 (validate mode + Carta/Pulley stub + freeform Context-A output validator).--mode=freeform-emitdeterministically maps Lane-3 SPREADSHEET_STRUCTURE_DETECTION blocks → schema-validinputs.json+instruments.json(founder answers to gate blockers via repeatable--answer BLOCK.FIELD=VALUE).freeform_mapper.py— Puremap_freeform(blocks, grid, existing_inputs, answers)behind--mode=freeform-emit. Maps detected blocks via the closedreferences/schemas/freeform-role-map.jsoncontract; off-contract roles + required-but-unsupplied fields (interest_rate_type, preferred OIP, enum plan_type) become blockers (no fabrication); per-target-array stable ids; merges equity into existing inputs (keep-existing-on-conflict). Deterministic.pdf_probe.py— Per-page probe of whether a cap-table PDF has a text layer or is image-only (decides if OCR/table extraction is needed vs raw text). [dep: pdfplumber]extract_pdf_tables.py— OCRs an image-only cap-table PDF (no text layer) into a cell grid for ingestion._docx_text.py— Tracked-changes-aware.docxreader (stdlibzipfile+xml.etree):detect_tracked_changes()+extract_text(revisions="accept")keep<w:ins>and drop<w:del>so accepted-redline terms survive (python-docx drops both).evidence_verifier.py— Forward verifier. Three-layer check (quote_in_doc / value_in_quote / value_in_doc) catching HALLUCINATIONS. 3.6% FPR / 100% TPR on the private eval set.backward_verifier.py— Backward verifier (two-phase--phase=prompt/--phase=scoreCLI). Catches SEMANTIC CONFUSION via fresh-sub-agent re-extraction. WARN-mode default.invariant_checker.py— Real-world-bounds checker. Per-field ranges + cross-field math invariants. 0% FPR / 63% TPR.cross_checker.py— Demote-only confidence modulator when multiple extractors disagree._normalize.py— Shared text-normalization primitives (normalize_text, compact_form, numeric_tokens, date_tokens).extractors/— Span-preserving extraction module:FieldExtraction,SourceSpan,ExtractionContext,ExtractorProtocoltypes + 5 SAFE backstop extractors (extractors/safe/).
Competitive Positioning Scripts
validate_landscape.py— Validates competitor list structure, checks slug uniqueness, preserves provenanceverify_competitors.py— Adversarial competitor-set verification validator (Step 3.5, before Gate 1): validates the COMPETITOR_VERIFICATION sub-agent's per-competitor verdicts (genuine/adjacent/not_a_competitor), enforces the show-your-work gate (a flag must carry reasoning + independent buyer/job characterization), cross-checks landscape slug coverage, computes summary. Validator, not detector. Catches false-positive competitors (surface-level matches that don't genuinely compete). Emitssummary.challenge_slugs— the subset offlagged_slugsthat actually challenges the draft — so Gate 1 reads a judgement rather than re-deriving one across two disjoint vocabularies. On rejection it leaves-ountouched and keeps the artifact in a.rejected.jsonsidecar;compose_report.pyraisesVERIFICATION_REJECTED(high) on it, keyed on run_id so a prior run's file cannot silence a fresh refusal.cp_red_team.py— Validates the RED_TEAM reviewer's findings under the shared_redteam_core.py, rewords them (_cp_redteam_text.py) and writes this run's copy first (_cp_redteam_copy.py); every page renders from the copy, so editingredteam.jsonchanges nothing the founder sees. Refuses loudly without the shared core or a readablelandscape.json(a review with no competitor names would print slugs)._cp_redteam_text.pyleaves a one-word slug alone: in prose it is more likely the ordinary word.record_red_team_skip.py— Records why the review did not run, from a closed list of reasons. compose refuses a run with neither this run's review nor this run's skip (exit 1,-ountouched), keyed on this run's id (the first usable required artifact's, the id the review is resolved for; a stub's id never counts), never on the hand-off dir, so deletinghandoff/<run_id>/cannot silence it (the Cowork outputs folder allows deletes since Desktop 2.16120.0; "never delete under outputs" is our rule). A review or skip of another id the set carries does not satisfy it: a mixed set with no review of this run is refused, naming the ids; one reviewed for this run passes toSTALE_ARTIFACT(high). A run that dispatched no sub-agent recordsno_subagent_dispatch. market-sizing'sREVISION_NOT_OFFEREDlikewise no longer goes silent without the dir. The four deliver-only review codes are medium and cannot be accepted away, not high as in market-sizing, because Step 7 composes under--strictand a high code there would stop a run nothing can fix._quote_match.py— A copy of cap-table's matcher, held to it bytest_quote_match_sync.py.cp_closing_message.py— Prints the founder-facing hand-over fromreport.json's computedverdict(the map sentences with "If delivered" and the competitor asymmetry, the claims tally, defensibility, the public record) and writes it tohandover.txtfor the Stop hook; refuses without a verdict. Same contract as market-sizing'sclosing_message.py.cp_dispatch_prompt.py— Prints the MOAT_SCORING, POSITIONING_SCORING, CHECKLIST, STARTUP_RESEARCH and RED_TEAM sub-agent prompts (RED_TEAM lists the founder's documents before the analysis's files, and leaves out the checklist, which is the analysis grading itself) (--correctionfor a corrective redo); each is registered with the dispatch-prompt hook, so a prompt that is not the printed one is held. Named apart from market-sizing'sdispatch_prompt.py, which the test suite imports into the same process.score_moats.py— Scores 6+ moat dimensions per company; refuses a patent/licence/certification custom moat (scored underregulatory_barriers) and a custom moat with nodefinition; rewords our file names in evidence at pipe time; keeps the run's first copy (_cp_first_copy.py) so "Founder Override" shows only for a value that changedscore_positioning.py— Scores positioning views: ranks with ties recorded, the geometry the founder-facing sentences are built from (who is ahead on both axes, nearest competitor, lead over the best rival per axis), a planned position kept apart from today's (scored_point,today), and claimverdict_countsvalidate_startup_research.py— Validates the STARTUP_RESEARCH hand-off and COMPUTES each patent publication's status from its office and kind code (granted / published / unknown, never "pending"); rejects loudly._cp_view.py— The one place founder-facing wording is decided: the map sentences ("If delivered", ties, bands), the verdict paragraph, the proof-gap rows, the public-record rows and the outside review's outcome sentence. Every renderer and the coaching payload call it.checklist.py— Scores ~25 quality criteria across 6 categories with mode-based gatingcompose_report.py— Assembles report with cross-artifact validation, warning system, and accepted warningsvisualize.py— Generates self-contained HTML with SVG positioning map, moat radar, competitor table; outputs HTML (not JSON)explore.py— Generates interactive HTML explorer with Chart.js scatter plot (vendored, no CDN for the 2D view; the optional 3D View tab lazy-loads Plotly from a CDN on demand), view switching, bubble encoding controls, and company detail panels; outputs HTML (not JSON)
Dev Setup
Install dev dependencies:
uv sync --extra dev
# or: pip install -e ".[dev]"Linting & Formatting
uv run ruff check . # lint
uv run ruff format . # auto-format
uv run ruff format --check . # check formatting without changesType Checking
Scripts in different skills share filenames (checklist.py, compose_report.py), so mypy must be run per directory:
uv run mypy founder-skills/skills/market-sizing/scripts/
uv run mypy founder-skills/skills/deck-review/scripts/
uv run mypy founder-skills/skills/ic-sim/scripts/
uv run mypy founder-skills/skills/financial-model-review/scripts/
uv run mypy founder-skills/skills/competitive-positioning/scripts/
uv run mypy founder-skills/skills/cap-table/scripts/
uv run mypy founder-skills/tests/Using cowork-harness critique (read before trusting a grade)
Rules live at 4.2.0. Each was learned by measurement; the measurements and the version-by-version history are archived locally beside the per-release adoption plans.
Invoking
critiquetakes a POSITIONAL skill folder. Always pass--out <skill>.json --output-format json:--outalone writes TEXT, andjson.loadthen fails withExpecting value: line 1 column 1, which reads as a corrupt report (1.24.0 warns at parse time). The index cannot attribute a critique (recordscommand: "skill", noskillfield,session.jsonhas neitherskillnorprompt), so--outis the only provenance.--labellands on turn 1 only, deliberately.- Tier prerequisites:
container/hostloopneed a token in the environment or in.env(CLAUDE_CODE_OAUTH_TOKEN, orANTHROPIC_API_KEY) — ours lives incowork-tests/.env, and.envis discovered from CWD only, so run fromcowork-tests/ordoctorreports a misleading Keychain error. The evaluator passes needclaudeon PATH (COWORK_HARNESS_CLAUDE_BINoverrides). Upstream docs said the opposite until 1.19.0. - Use
--fidelity cowork(resolved once, before either turn spawns, via the pinned baseline's loop gate; echoed[loop] cowork → <tier>, reported asrequestedFidelity). The defaultcontaineris not the tier the cassettes record at.microvm/protocolrefused;chatrefusescowork.--dotenv: the child CLI loads that file before deciding, so aCLAUDE_FORCE_HOST_LOOPin./.envis read during resolution. - Do NOT swap
--evaluator-modelon a fleet sweep. For document-analysis skills — every skill here — the task turn is ~61% of spend and the evaluator ~30%, so the saving is a third of its advertised size and it trades away the injection-resistance property verified for the default evaluator only. The levers are--modeland probe scope. The default task-turn timeout is 30 min, which is NOT enough for market-sizing on a large corpus once the revision round runs: a 2026-09-24 run was killed mid-turn after two red-team rounds, produced no report, and was billed anyway. Pass--timeoutfor that shape. The report'scost:line prints the evaluator share. --ablate-skillis ONE arm; with--repeat Nit yields N ablated runs and zero treatment runs — run again without the flag. Rollups label arms ([ABLATED — control arm],[MIXED ARMS: k/n ablated]);evals/cap-table/run_reliability_bench.pyparsesrollups[]and reads these defensively.git adduntracked skill files first. Untrackedreferences/**or the agent body → EXCLUDED and named inevidenceBudget.corpusExcluded— the CORRECT outcome (evaluator sees what the agent sees), and a "the skill never explains X" finding against it is properly grounded. UntrackedSKILL.md→skillMdStatus: "untracked", content withheld, forcesnot-adjudicable. A plugin-root reference shows up ascorpusOmitted[].alsoUntracked— three-state, absent ≠ false.
Reading a report
- Budget from
report.costUsd.totalUsd;index.jsonlomits the evaluator passes. Each critique also writes a roll-up row (critiqueTotalUsd), sostatstotals are exact and label-filtered totals are not short (unpricedRunssays when a total is a floor).costUsdcarries a per-pass{input, output, cacheRead}split. Whole-content packaging costs +5–18% per critique. record'sokmeans "exited 0"; the recording's verdict isresults[0].verdict.pass(4.0.0). A refusal AFTER the run (a failing live verdict, a privacy finding) exits 1 withok: false, categoryruntime, and carries the run it refused inresults[0](a single file) or on the failed item'sverdict/result(a batch), whose cost counts toward--max-budget-usd. A refusal BEFORE the run (credentials, model, budget, policy) carries no run.- Items carry
idea/recommendedAction/evidence/source. There is notitle. - A
scripts/-groundednot-adjudicablemeans "the evaluator could not SEE the code", not "the claim is false" —scripts/is outside the corpus by design. If a script's contract matters to how the skill is used, state it in SKILL.md or areferences/file. Bites deck-review hardest: its gate contract lives ingate_state.py. noSkillFilesReadis observational. ic-sim trips it on a correct run becauseevaluation-criteria.md/partner-archetypes.mdare inlined intoagents/ic-sim.md(SKILL.md:73-75); do not add reads to silence it. Since 2.5.0 it keys on the wideunionReferenceAccesses(Read ∪ Grep ∪ a Bash command naming the path, main ∪ sub-agents) with a third statereferenceAccessUnobservablethat must never be read as "none". A$VAR-built path is an accepted detector miss, and our SKILL.mds use"$SCRIPTS/…"— one literal path flips the signal. The matchingreference_read/no_observed_reference_accessscenario keys evaluate on replay but are NOT adopted (freezing one raises the replay floor to 2.5.0).- One critique is a sample (upstream measured 78 vs 50 extracted figures across two runs of one bug). Reproduce ≥ 2 runs. A fleet-consistency defect is out of scope for any single critique by construction; that is what the drift tests are for.
result.json'smodelscan contain<synthetic>(a locally fabricated turn, recorded verbatim). Drop<…>entries before using it as provenance. After a re-record, checkprovenance.modelis UNIFORM across the corpus — a corpus silently spanning two models is a real hazard (tier changes correctness) and nothing else checks it. The AGENT version needs no hand check since 4.2.0:verify-cassettes(anotes[]entry) andreplay(a::notice::) print anagent-versionnote when a recording's agent differs from the one its baseline pins for that tier. None is expected; the note never fails a gate, so read for it.- A green run prints
·-prefixed warn signals in its footer (undelivered_deliverables,ended_with_question,scan_unavailable,exec_infra_error,prompt_asset_missing). Read it. [provenance] model=… skill=offered,invoked ablated=…rides every verdict andresults[].provenance.skill=…invokedmeans the Skill channel was used, NOT that the skill under test ran —skill_triggeredis the identity assert.offered,unknown/unknownmean evidence unavailable, never "no".--compact/--demosuppress it, and[status].- Keep pre-upgrade reports: per-item verdicts are not comparable across corpus-packaging changes, but per-skill
not-adjudicablecounts on identical prompts are, paired with thecitationResolved:falserate.
Corpus size (evidenceBudget)
- Four classes count against a 512 KiB ceiling: SKILL.md + every file under the skill's own
references/(ANY extension — schemas and rule packs count) + every agent the skill resolves (a UNION:agents/<skill>.md, every pinnedsubagent_typeliteral, every agent whosename:equals the skill, and the transitive closure of pins inside those bodies — market-sizing and competitive-positioning each pin two, which is why the term is a union; the fleet has EIGHT agents) + every plugin-rootreferences/file the skill's own text points at. Over the ceiling, content is cut before grading and named inevidenceBudget.corpusCuts(skillMdTruncatedis gone). - A data file scripts read by path belongs in
data/, notreferences/(cap-table-rules.jsonmoved 2026-08-01). Only evaluator-citable evidence is corpus. Relocating prose between SKILL.md andreferences/is corpus-neutral. - Measure with
tests/_critique_corpus.py(_corpus_bytesintest_skill_contract.py) orevidenceBudget.corpusByteson a real report.lint-skill(>=3.7.0 — earlier versions omit a whole class) prints the number only at ≥ 80% of the ceiling, so its silence is not a measurement.test_skill_contract.pyguards the ceiling and cap-table's> 10,000 Bmargin; the margin figure has rotted in prose repeatedly — derive it.
Scenario and cassette tooling
- Everything the harness prints goes to STDERR,
--helpincluded since 4.0.0; stdout is empty. Never poll withstatus | grep(exits immediately and silently) and never "fix" that with2>&1. Usestatus <dir> --followorstatus <dir> --output-format json; long runs also heartbeat on stderr (COWORK_HARNESS_NO_HEARTBEAT/_HEARTBEAT_MS).[status] <outDir>is withheld under--compact/--demobutstatus.jsonis written regardless. Do not watch the outputs dir for artifacts. --run-dir <fresh dir>isolates a run's history, and with it disables--max-budget-usd: the cap prices from prior runs, and a fresh dir has none, so the run proceeds UNCAPPED. Never isolate a paid re-record that way.lintis LENIENT; the loader is STRICT. Validate ONE scenario withrecord scenarios/<s>.yaml --dry-run --out /tmp/probe.cassette.json—--outis mandatory, because the bare form also pre-checks the cassette DESTINATION and refuses a valid scenario with no committed cassette (exit 2 at ≤ 3.1.0, 1 at ≥ 3.2.0;fidelity: containeris exempt). Never spend--allow-host-inventory-fixtureon a load check. For the WHOLE corpus use the DIRECTORY arm,record scenarios/ --dry-run --quiet(what CI runs): 0 = all load and under cap; 1 = a scenario did not LOAD (✗ broken:on stderr), a path-independent refusal (prompt policy, assert contradiction, duplicate target), or — since 4.0.0 — the budget gate refused, with or without broken files beside it (it was 2 before); 2 = a usage or setup error. Anything wrapping it must tell a budget refusal from a load failure, and not by exit code: 4.0.0 moves the budget refusal from 2 to 1.rerecord.shkeys on the harness's "refused before spending" line plus any other✗line (cowork-tests/preflight_classify.sh), so it reads right under both. Exit 0 is not the whole verdict since 4.1.0: an input a realrecordwould refuse (a bad path, effort or baseline, or a tier-vacuous negative tool assert) is listed underinputErrors[]in--output-format jsonwith a⚠ input error:line, and the exit code stays 0 — CI gates onokANDinputErrors == [], requiring the key (a budget refusal's envelope replaces the payload and has none). Non-recursive; a file with noprompt:key is· skipped:, not broken.lint --strictfails on ERROR and WARN and hides INFO (4.0.0; before it, it failed on INFO too); CI keeps its explicit--min-severity WARN, so the step means the same under either. Read the exit code, not the summary line.strict: truebelongs on the lint step only — on replay steps it also fails on cassette staleness, which is WARN-only by design.lint's vacuous-gate fix line is wrong for a scenario DESIGNED to fire no gates (cap-table-lane3-freeform): the remedy there is to dropgate_answers_delivered, not add a companion.lintand the bundledscenario.py lintdo NOT catch atool_not_called/subagent_tool_absentnaming a tool the tier does not serve (their tier table has nocoworkrow).record --dry-rundoes since 4.1.0, on both arms: it lists it underinputErrors[]with exit 0, which is why CI gates on that list. At hostloop the shell ismcp__workspace__bash, so'Bash'there is vacuous. Our own Context A agents declare no shell tool of any name, so the corrected assert is unviolatable for agents we wrote; its live value is a dispatch we did NOT write — aTaskwith nosubagent_typefalls back togeneral-purposewith a wildcard tool surface including workspace bash. Do not delete it as vacuous.test_cowork_invariants.py's per-agent tool declarations are the primary enforcement.- After editing any
assert:block:replay cassettes/<s>.cassette.json --assert-from scenarios/<s>.yaml— free, ~1 s, no Docker. It refuses on prompt drift, and that refusal means "re-record required". On every stale lane its exit 1 also carries askill-source drift (--fail-on-skill-drift)line — read the per-assert lines, and never waive it with--allow-failing.verify-runis the kept-run-dir equivalent and fail-closes on a PARTIAL run. - A recorded cassette is NOT relocatable (
scenario.session/scenarioSourceare directory-relative). Never rehearse on a/tmpcopy — the copy manufacturesunverifiable-skill/ "skill dirs not resolvable" and hides the real finding. semantic_matchesjudges top-levelassistant_textONLY — no tool blocks, no sub-agent text (unlessinclude_subagent_text: true). We use none; keep it that way. The key issubagent_dispatched(with "ed"; four upstream surfaces misspelled it).present_files_calledisz.literal(true)/ "at least one file", no per-file match — which is whycowork-tests/delivery_check.pyexists.subagent_declared_but_unusedis near-always vacuous (0 of 1091 real dispatches carry a declared tool list).assertions --listemits{key, description}— no replay class; read classes fromdocs/scenario.md.- Look BACK over runs already made with
stats <scenario> --group-by skill-hash --runs; runs before and after an edit share a scenario dir andstatswarns ondistinctSkillHashes. Narrow with--skill-hash <prefix>or--label;--sincebreaks when two versions run on one day. A PLANNED A/B iseval(below). eval(4.2.0, EXPERIMENTAL upstream) runs two plugin versions interleaved and compares how often each assertion passes. Every eval is a paid run needing the owner's approval — there is no standing budget. It is never a CI gate or a routine step: most of our assertions pass near 100%, where a rise is undetectable and the smallest detectable drop at 5 reps is 80pp, so it would print "no detectable change" as unearned reassurance. Use it where it has power: a fix aimed at a lane whose pass rate sits between roughly 25% and 75% (the flaky lanes), or a content change once an assertion (e.g.artifact_jsonover a checklist) turns that change into pass/fail. Before spending, read the minimum detectable difference it prints while planning and stop if the expected effect is smaller. Pin concrete model ids;--outmust be OUTSIDE a git work tree, while agit:<ref>:<path>arm needs the cwd INSIDE one; readsummary.erroredArmsbefore any row.rerecord.shrunsprune --keep-last 5, which trims eval runs too and leaves a report's run links dead (eval report <dir>still rebuilds it). A label is a signal to investigate, never proof.
Privacy gate
privacy-allowlist.shdefines a bash ARRAY, sosourcealone changes nothing:source cowork-tests/privacy-allowlist.sh && cowork-harness verify-cassettes cowork-tests/cassettes "${ALLOW[@]}". Sourced-but-unexpanded reports thousands of findings and looks exactly like a broken allowlist. Every--allow*regex is FULL-MATCH inside the harness's own wrapping —founder-skills:.*clears a class,^founder-skills:clears zero. Over-tight fails safe; over-loose disarms a class silently. Re-count after any edit and confirmcanary/email-canary.cassette.jsonstill flags[email]— it is hand-authored, deliberatelycassetteVersion10, and is never re-recorded.- Never pipe
verify-cassettestotail(deterministicEAGAINcrash replaces the verdict). Redirect to a file. - The per-class header counts INFORMATIONAL classes;
findings by class: unscanned Nwith exit 1 is staleness / scenario-drift, not PII. CI's privacy step passes--skip-staleness --skip-scenario-driftand exits 0. Areplaced-builtinNOTE onhost-path-canaryis not a finding and not a reason to re-record. host-inventory: our own plugin'sagents[]/skills[]entries are exempt because every recording declaresfounder-skillsinplugins[](1.19.0+; the built-in skill roster was fixed in 1.25.0 and extended for 3.6.0 — fix the roster, never allow). There is deliberately NO allow entry for them — a suppression that suppresses nothing invites misreading the gate. If a re-record reds this gate on our namespace, the cause is a missingplugins[]declaration, not a leak. The arrays live inside thesysteminit frame inevents[], whose entries are JSON-ENCODED STRINGS — a walker that does notjson.loadsstring leaves concludes the axis does not exist (andscenario.skillsis a different, staleness-scoping key). The zero is structural (the axis targetsprotocol; we record at hostloop), confirmed non-vacuous by probe. This makes the CLI floor load-bearing: floor every consumer ofprivacy-allowlist.shat>=1.19.0— though the replay floor is>=3.8.0, the RECORDING floor>=4.2.0, and the CI selectors are PINNED EXACTLY at4.2.0(see Release Process).- The predicates that would mean a REAL leak —
mcp_servers[].name,account.email/.organization/.subscriptionType, amcp__<server>__…tool naming a foreign server — return NONE across the corpus. Not covered: the command and plugin catalogs and command descriptions. A green is a backstop, not proof.
replay --mutate
- It SAMPLES — 10 per file, 50 total, per-file cap applied first — so
50/50 … CAUGHT BY NOTHINGis coverage thinness, not an assertion-failure rate, and the(sampled N of M eligible …)parenthetical's M is not the ratio's denominator. Aggregate over the JSONmutationobject ({sampled, eligible, truncatedBy, caps, uncaught}), not stderr. Globs are anchored and case-sensitive againstoutputs/…-prefixed paths:'**/handoff/**', never'handoff/**';'**/report.json'cannot match a root-levelreport.json. Scoped to the delivered report it is exhaustive, not sampled:--mutate-include '**/report.json' --mutate-max-per-file 500. Reporting-only by design — a count ratchet overreport.jsonwould red on every legitimate re-record.report.jsonis committed body-less ondeck-review-smokeandic-sim-contested, so it is neither mutatable norartifact_json-assertable there.
Running Tests
uv run pytest # all tests (e2e auto-skips without auth; cowork auto-skips without the harness CLI)
uv run pytest founder-skills/tests/ -v # verbose
uv run pytest founder-skills/tests/ -v -m "not e2e and not mutation" # explicitly skip the paid + slow lanes
uv run pytest -m cowork # token-free cowork-harness cassette replay (needs `npm i -g cowork-harness@4.2.0` — exact, matching CI; no Docker/token)
uv run pytest -m mutation # curated mutant corpus (~3 min; deselected by default — see the WARNING below)addopts deselects e2e AND mutation, and a command-line -m OVERRIDES addopts rather than
adding to it. So a bare -m "not e2e" silently RE-SELECTS the ~3-minute mutation corpus — and on a
working tree that is red for any unrelated reason it reports THE NO-OP CONTROL FAILED, which reads as
a break the contributor did not cause. Every explicit -m in this repo therefore says
-m "not e2e and not mutation": ci.yml's test job, skill-quality.yml's contract-tests job,
scripts/pre-tag.sh, CONTRIBUTING.md, and the two invocations in this file. That list was wrong when
first written — it named three sites and this file itself disproved it six lines up. The mutation lane has its own mutation-corpus job (dispatch and tag only) and its own
preflight gate; both must pass -m mutation, since naming the file alone collects nothing and reports green.
A skill's own test file is not what guards it. test_<skill>.py covers the producers;
test_<skill>_skill_contract.py covers the SKILL.md / agent-body contracts, and there are
cross-cutting guards besides (test_skill_contract.py size ceilings, test_cowork_invariants.py
tool declarations, per-script suites like test_backward_verifier.py). Editing a SKILL.md or an
agent body and running only the matching test_<skill>.py reports green while the contract tests
fail. Run -m "not e2e and not mutation" before believing a skill change is done.
Contract tests slice a fixed character window from an anchor (skill_text[start : start + N]).
An additive edit to a dispatch template can push the tail past that boundary, so the test fails on
content that is still present. Prefer bounding on structure — the template's closing fence, the next
## heading — over widening N, which only defers the next break.
The cowork lane (tests/test_cowork_cassette_replay.py) replays the committed
cowork-tests/cassettes/ through the harness's shipped pytest helper — deterministic,
no Docker or token. It is a local-dev showcase, not wired into ci.yml (the packaged
GitHub Action already replays in the cowork-replay workflow); it auto-skips when the
cowork-harness CLI is absent, so the default uv run pytest stays green on machines
without it.
The four e2e smokes drive the SDK against synthetic fixtures. Auth options (any one):
ANTHROPIC_API_KEYenv var (per-token API; ~$5-15/run)CLAUDE_CODE_OAUTH_TOKENenv var (subscription, long-lived token fromclaude setup-token)- Local subscription auth:
claude /loginpopulates the macOS Keychain entryClaude Code-credentials(or~/.claude/.credentials.jsonon Linux/Windows)
For live progress during the e2e run (~5-20 min wall time), add -s:
uv run pytest founder-skills/tests/test_e2e_deck_review.py -v -m e2e --tb=short -sWithout -s the run looks silent (pytest captures stdout); with -s you see auth-detected, prompt, and per-message tool calls (Bash, Read, Skill, Task, etc.) as the SDK stream arrives.
The e2e marker keeps these tests out of the default per-PR ci.yml run; they execute only in the dedicated skill-quality.yml workflow.
Internal Docs
docs/internal/— Design docs and internal notes; never tracked or committed (gitignored)
Hooks
- SessionStart (
founder-skills/scripts/session-setup.sh): writesCLAUDE_PLUGIN_ROOTintoCLAUDE_ENV_FILE. Nothing reads it: no script reads the variable, and Step 0 resolves the root itself. SKILL.mds use the braced token, which Claude Code's loader substitutes, except in a skill invoked on cloud before the conversation's first turn that needs a shell or file tool. Whether the hook fires in a cloud session is unverified (a cloud task leaves no local session dir to inspect); since nothing reads it, either answer is harmless. - Stop (
founder-skills/scripts/stop-handover-check.sh→stop_handover_check.py): after the model's final turn, checks that the founder's message carries the printed hand-over whole and adds nothing numeric, for each skill in itsSKILLStable (market-sizing'sclosing_message.py, competitive-positioning'scp_closing_message.py, financial-model-review'sfmr_closing_message.py; each trigger matched as a whole script name, the last closing call of the prompt deciding, each skill reading only its ownhandover.txt, or — when none is under the payload'scwd, which at the host-loop spawn newer Desktop uses is/var/empty— the same text sliced from the transcript's record of its closing call's output, opener line to closing offer, with a cut-short result not used); a{"decision": "block", "reason": …}reply sends the model back once. The same hook also checks DELIVERY (_delivery_check.py): when a founder-skills report build succeeded in the prompt through a shell tool, no shell call failed after it, the text after the build (restarting after a hook's feedback turn) links or names a deliverable (for a closing script's build, carrying its printed hand-over whole counts, since on cloud those name each file by label alone), the host offered a delivery tool (a name containingpresent_files, orSendUserFile, in the transcript'sprompt_snapshottools ordeferred_tools_delta), and no delivery call followed the build, it asks the model to attach the files. A connected-folder write (…__device_commit_files, served on cloud asmcp__remote-devices__device_commit_files) is counted as delivery by the cassette checker (cowork-tests/delivery_check.py, suffix-matched), not by this hook. Known gap: on the cloud lane the three closers print each document's label without a path (a path there is dead text beside the file card), so the "links or names a deliverable" condition cannot match their message there; the terminal lane keeps the path. It never fires on the plain CLI (entrypoint: cli), on a host that offers no delivery tool, or on a transcript that records no tool list. Measured 2026-09-29: it fires on the three real link-only misses and on none of the runs that delivered. Both checks share one block; when both fail, the delivery comes first and the printed hand-over is sent last, because nothing after the rewrite is checked. A block APPENDS — the faulted message stays on screen and the rewrite lands beneath it — so the reason dictates a follow-up the founder will read, not an internal note. Its lead (CORRECTION_LEAD) states provenance and which figure wins on a conflict, never that the message above was wrong: neither failure_handover_check.pyreports establishes a wrong figure (a correct paraphrase fails containment too), and a production block once told a founder to disregard figures that were right. The wrapper is POSIXsh(it runs host-native on macOS at hostloop and under dash in the Cowork VM) and fails open whenpython3is absent or the hook's Python file is missing: the hook enforces, the skill never depends on it. It fires at the end of EVERY turn in every session with the plugin enabled; any stop in which the current prompt ran neither a closing script nor a successful report build exits 0 with no output, and any error exits 0 with one stderr line. The Stop event can arrive before the final text reaches the transcript file, so when the transcript ends on a tool result the payload'slast_assistant_messageis judged as that text — only then, since the transcript is the record of what the founder saw. It fires and blocks in a cloud session (measured 2026-09-21). - PreToolUse (
founder-skills/scripts/pretooluse-dispatch.sh→pretooluse_dispatch.py), matcherAgent|Task: ONE process runs every dispatch check, first hold wins, each returning at its own prefix test. Two checks today. (1)dispatch_prompt_check.py: a dispatch whose first line ANDsubagent_type(after the plugin prefix) match a registered (context, agent) pair — thePAIRStable indispatch_prompt_check.pyis the list (market-sizing's RED_TEAM and CHECKLIST; competitive-positioning's four scoring/research contexts and its RED_TEAM, oncompetitive-positioning-redteam); deck-review's and financial-model-review's CHECKLIST prompts open with the same line and have no generator — must equal the latest printed prompt for its OWNOUTPUT_PATHas the TRANSCRIPT recorded it (a tool result, stdout or a Read of the-ofile), whitespace squashed; else it is held with that printed prompt as the reason (each pair carries its own reason text), at most twice perOUTPUT_PATH, then let through with a stderr line; no printed prompt for that path is held with "run the generator".OUTPUT_PATHis read as the whole line, trimmed: local-lane paths contain a space, and the path is both the hold-budget key and the comparand's scope. Scoping by path separates skills and rounds, and a template Read carries a<…>placeholder no real path equals. Consequence: a stale round's prompt sent verbatim to its own path passes — it adds no framing, and the newer round's missing hand-off failscheck_handoff.py. Replayed on the three 2026-09-26 critique transcripts: 3/3 round-1 dispatches pass, 2/2 rewritten round-2 dispatches are held. No disclosure code is written from it -- compose reading a hook marker would make the report depend on the hook. (2)two_figures_check.py: holds market-sizing's TOP_DOWN / BOTTOM_UP sizing dispatch once wheninputs.jsonrecordsfounder_stated_alternativesand noAskUserQuestionsince the current prompt offered every figure. The evidence is the TRANSCRIPT, neverfounder_stated_choiceorgate_defaults(model-written, so a check they satisfy is satisfied by writing them). The deny reason is the question itself and names the figures no question offered; each sizing dispatch (TOP_DOWN, BOTTOM_UP) is held at most once and its second attempt passes (the hook finds its own[two-figures-check][<CONTEXT>]marker in the transcript), which covers "the founder asked not to be asked" without trusting the model's word. Per-dispatch because on the first live firing a parallel sibling spent a shared retry. Every other dispatch returns at the prefix check. Same posture as the Stop hook: POSIXshwrapper, fails open, the skill never depends on it. Fires at hostloop per the runtime's code (plugin PreToolUse observed there). In a cloud session, plugin PreToolUse and Stop hooks were observed firing, including on a turn whose skill was a conversation's first message, and a PreToolUse deny is honoured there; this hook itself has not been observed in the cloud. - pre-commit (
scripts/hooks/pre-commit): ruff format/lint on staged Python + the privacy-leak guard. Activate once per clone:git config core.hooksPath scripts/hooks. Bypass a confirmed false positive withgit commit --no-verify. - commit-msg (
scripts/hooks/commit-msg): DCO gate — rejects a commit with noSigned-off-by:trailer matching the commit author. Validates only; it deliberately does not auto-append the trailer (a sign-off certifies that you have the right to submit, so a hook adding it silently would certify on your behalf). Then runs the privacy guard over the message (--commit-msg). - pre-push (
scripts/hooks/pre-push): the privacy guard over each pushed range's added lines and commit messages (--range), so a commit made with--no-verifyis still checked before it leaves the machine.
Committing (read before any git commit)
Always commit with git commit -s. This repo requires a DCO sign-off on every commit, and DCO is a required status check on main — an unsigned commit blocks any PR containing it. The commit-msg hook will reject an unsigned commit, but reaching that rejection means a wasted round-trip: pass -s the first time.
-s composes with everything, including the heredoc pattern used throughout this repo:
git commit -s -F - <<'EOF'
type(scope): subject
...
EOFThe trailer is appended to the existing trailer block, after Co-Authored-By: / Claude-Session:. Order within the block does not matter. To fix a commit already written: git commit --amend -s.
Historical note: 155 of the first 159 commits are unsigned, because enforce_admins is false on main and direct pushes bypass the required check. Do not retro-sign them — that would rewrite published history. The convention is that a DCO check only inspects the commits in a given PR, so existing history is grandfathered.
Privacy Guard
scripts/privacy_guard.py blocks confidential-data leaks without committing the names, figures or text it guards. Six layers:
- document — confidential doc types (
.xlsx/.pdf/.docx/…) tracked outside the synthetic-fixture allowlist (add a new legit fixture toALLOWLISTED_DOCS). Name-free. - provenance — the named-after-a-company antipattern triple: a proper-noun company name + a
P-#/R-#round/case ID + a failure word, together (templatethe <ProperNoun> <round/case-ID> <failure-word>). High-precision; name-free. - name — exact real names from
docs/internal/privacy-denylist.txt, which is git-ignored and never committed (the detection logic ships; the names don't). List only distinctive names/phrases — never bare common-word names. CI runs--tree --no-names(layers 1+2 only; no name list present), so nothing is disclosed. - figure (local only) — a figure the change ADDS ($ amounts, thousands-separated numbers, decimals, %,
xmultiples, integers of 3+ digits; whole-token, years/versions/UUID fragments and a minimal round-number list skipped) that also occurs in the local private sources and not in our own code atorigin/main. Skipscowork-tests/cassettes/(generated recordings whose timings and counts collide by chance). - verbatim (local only) — a 6-word run of added text found in the private sources and not in our code at
origin/main. Until local commits are pushed, text we wrote sinceorigin/mainand later echoed in a run can also match; that noise shrinks asorigin/mainadvances. - figure-provenance (everywhere) — a figure on a line that also names real data ("a live run", "the founder's", "from the data room", …; not "measured", which our own notes use constantly). Blocks locally, warns in CI (
--tree); mark a reviewed synthetic line withprivacy-guard: synthetic. Skipscowork-tests/cassettes/: recordings narrate synthetic runs in the skills' own words ("the founder's", "the deck's").
The private sources are folders listed in docs/internal/privacy-private-sources.txt (git-ignored; one path per line, !<substring> excludes copies of our own code). Without it the figure/verbatim layers skip silently, as the name layer does without its list. The index holds only hashes and is cached in ~/.cache/founder-skills/privacy-guard/. Local false alarms go in docs/internal/privacy-figure-allowlist.txt (git-ignored: a committed allowlist would reveal that a public number equals a private one). Findings print path, line and the added token only, never the matching source or its text.
Scans: --staged (pre-commit: whole staged files for layers 1-3, ADDED lines for 4-6), --commit-msg FILE (commit-msg hook, after the DCO check), --range A..B (added lines + commit messages; the pre-push hook runs it per pushed range), --tree (CI), and --verbatim-report with --range/--staged for per-file verbatim COUNTS (no text) when triaging. Tests: uv run pytest scripts/test_privacy_guard.py (fake private folder built in tmp_path, invented figures only). CI enforces layers 1+2 and reports figure-provenance warnings in the privacy job.
SKILL.md Conventions
Verified against the Claude Code v2.1.120 skill runtime contract and Desktop v1.6259.1 architecture:
- Skill re-attachment after auto-compaction has TWO budgets, and the second deletes silently. Cite VALUES, never minified identifiers — every symbol rotates per release and one has collided destructively (
_Onmeant 25,000 in one build and 5,000 in the next). Cap 1 — 5,000 tokens per skill, and it is a CHARACTER cap: the estimator isMath.round(len/4), sowc -mmeasures the right unit with zero conversion error. The stored content is theBase directory for this skill: <abs path>prefix (101–240 chars, install-dependent) + the body with frontmatter STRIPPED; it truncates at ≥ 20,002 chars — the last safe length is 20,001, and 19,900 is merely what survives (slice(0,19900)+ a 100-char marker). All six of our SKILL.mds are far over, so every one truncates on every compaction, discarding 75–86% of its body — and truncation is CERTAIN once compaction happens — but compaction itself is low single-digit percent, not routine: 424 of 26,608 transcripts carry a quotedcompact_boundary, about 1.6% (founder-skills-scoped,2.8%; Cowork unmeasured). COUNT THE QUOTED TOKEN, never the bare substring — a substring grep matches any transcript that merely mentions it and returns roughly three times as many. Do not argue that a rule late in a SKILL.md "will have been truncated by then": a 30-minute run with fifteen dispatches recorded zero boundaries. Truncation is head-preserving, so the base-directory line survives and a skill that OWNS A DIRECTORY is recoverable (measured 98% of truncated entries carry it). A single-file command has no recovery path at all:$10) — contract tests cannot see behavioural change — and a justifiedcommands/feedback.mdis 2,737 chars today and is the class to watch. Do NOT generalize this to "bundled/builtin skills have no base directory" —bundled:verifycarries one; directory ownership predicts recoverability, the source prefix does not. Refinement: the predicate is directory DURABILITY — a plugin upgrade removes the version-stamped cache dir, so a session RESUMED after an upgrade holds a recovery path to a dead directory (path-death measured; the failing resumeReadinferred, not observed). The 98% comes from local Claude Code transcripts, so it covers only skills the loader expanded: a skill invoked on cloud before the conversation's first turn that needs a shell or file tool names/mnt/skills/plugins/<plugin>:<skill>as its base directory, absent in the container, so recovery there is inferred to fail.skills[].pathis a source-qualified identifier (plugin:cap-table), not a location — recovery keyed onpathfails, keyed on the content's first line succeeds; the registry'sskillPathis renamed topathon the way out, so grepping transcripts forskillPathfinds nothing. Cap 2 — 25,000 tokens combined, over post-truncation sizes (each of ours contributes exactly 5,000), most-recently-invoked first, per-agent: over budget (strict>), the least-recently-used skill's content is set to""with no marker — a "re-read if something looks missing" instruction structurally cannot fire for zeroing. Six co-invoked = one zeroed. A skill still visible in a retained attachment is skipped and consumes no budget. Sub-agent fan-out relieves the main thread. Front-loading a "survival core" is WITHDRAWN — do not re-propose the additive form: the window is fixed-size, so a prepended core evicts exactly as much from the tail (measured: it would have evicted theSTAGING_DIRinvariants it was written to protect). Reordering is not invisible to tests (test_ic_sim_skill_contract.pyasserts step order), and the subtractive form has no cheap duplicate to harvest — the per-skill## Skill Execution Modelsections overlap the shared reference by only 20.6–28.0%. Any front-loading or reordering attempt needs an e2e A/B (test_skill_md_does_not_growceiling raise. Relocating prose toreferences/(target ≤ 20,001 chars of rendered prompt) is exempt from both caps but lands in the separate post-compaction file-restore budget: the 5 most recently read files, 5,000 tokens each, per-agent (a plain dispatch starts empty,context: forkcopies the parent's — we use nofork; re-check if one is added). Neither conflicts with the retired "never move prose intoreferences/" rule, which was about the 512 KiB critique corpus. Full derivation:docs/internal/2026-08-28-skill-frontloading-plan.mdrev 2 anddocs/internal/2026-08-28-skill-compaction-budget-and-frontloading-plan.md. - Env vars in skill bodies: Use
${CLAUDE_PLUGIN_ROOT}(braced form) — the plugin content expander substitutes it at load time on every lane but one: a skill invoked on cloud before the conversation's first turn that needs a shell or file tool arrives with the text literal (the cloud session is created by that turn; remote-device tools do not create it), so each skill's Step 0 detects that and printsREAD_ROOT=to use in its place. Bare$CLAUDE_PLUGIN_ROOTonly resolves at Bash subprocess time and depends onCLAUDE_ENV_FILEbeing sourced; the gist flags this as unconfirmed for skill subprocesses. The braced form is the contract. - Frontmatter keys must come from the documented set:
name,description,when_to_use,allowed-tools,argument-hint,arguments,context,agent,model,effort,user-invocable,disable-model-invocation,paths,hooks,shell,created_by. (versionis parsed but tagged "[Undocumented] Informational only" in gist 1 — don't rely on it.) Custom keys are silently dropped — put human-readable metadata in a## Skill Metadatabody section instead. Avoid undocumented nested structures (e.g. don't add a custommetadata: {…}block). The documented fields that do take structured values (shell.interpreter,hooks.PreToolUse,pathslist,argumentslist) are fine — they're explicitly specified. - Two parsers, two discovery outcomes (important):
- The CLI runtime (when invoking a skill) reads the full documented set above via a YAML parser.
- Desktop's skill discovery scanner is regex-based, supports
>and|block scalars, and only recognisesname,description,argument-hint,user-invocable. Per gist 2 §"Skill discovery logic", this scanner gates whether the skill is discovered at all in Desktop/Cowork — not just what the UI displays. A SKILL.md whose frontmatter the regex parser can't navigate may fail to register entirely. when_to_useis invisible to Desktop — only the CLI runtime reads it. So mirror the key trigger phrases intodescription(which Desktop does read) for users browsing the Settings UI to find your skill.- Undocumented nested YAML (e.g. a custom
metadata: {…}block) can confuse the regex parser — even though the keys would be dropped semantically, the parser still has to walk past them and may misparse adjacent fields. Stick to the documented set; if you need structured config, use one of the documented structured fields.
description+when_to_usebudget: combined length per skill ≤ 1,536 chars. Across all skills, keep the sum ≤ 6,000 chars (the shared listing budget is context window × chars per token (~3; 4 on Haiku 4.5) × 1%: about 6,000 chars at 200K, about 30,000 at 1M, 8,000 on Haiku 4.5; on overflow, skills drop to name-only one at a time, least recently used first — reported by skill-creator-plus against CLI 2.1.280, not measured here). The total-listing-budget regression test enforces this.- No shell substitution
!`cmd`, fenced```!blocks or$ARGUMENTSin a SKILL.md, command or agent file. Heavy work belongs in scripts the model runs via Bash tool calls — see existingPhase 0setup in any SKILL.md. - Regression test:
founder-skills/tests/test_skill_contract.pyenforces all of the above. Run before opening a PR that touches a SKILL.md. - Pre-publish validation: Run
claude plugin validate founder-skillsto validate manifests against the CLI's schemas (requires CLI v2.1.131+). CI does this automatically on every PR.
Release Process
Tag-push triggers deck-review-e2e-smoke in .github/workflows/skill-quality.yml. The workflow's preflight step fails fast if the tag does not match both pyproject.toml and founder-skills/.claude-plugin/plugin.json versions — version-bump errors are caught before the paid SDK call (~5 sec, no cost). Per-PR e2e is off by default; opt in via manual dispatch for architectural-surface PRs (list below).
Release ordering
- Refresh cowork cassettes (release cadence, paid, local):
cowork-tests/rerecord.sh. It preflightscowork-harness doctor --tier hostloop(needs Docker, the:2agent image, and BOTH staged agent binaries — the Linux/arm64 ELF and the native Desktop host binary the hostloop agent loop spawns), records in a bounded parallel pool, prints a normalizedcowork-harness diffper refreshed cassette (the primary drift review), and tailsstats+prune(runs land in~/.cowork-harness/runs, sostatscan trend reliability across re-records).fidelity: coworkrecords at native hostloop; host paths are stripped bycowork-tests/.cowork-redact.json, andrecordrefuses a cassette whose asserts orcomputer://links redaction broke. The cowork-replay staleness gate is WARN-only, so cassettes drift between releases. Skip only if nothing underskills/,scripts/,references/,agents/,commands/orplugin.jsonchanged since the last refresh — see "Cassettes and the assert block" below.
cowork-harness version posture. Three postures, per site — never collapse them into one number:
- CI selectors are PINNED EXACTLY at
4.2.0— the four workflowversion:inputs, theskill-static-analysisnpm i -g, and the install lines inCONTRIBUTING.md, this file andpyproject.toml. Never a caret: a range auto-adopts upstream releases into CI with nobody choosing it, and CI steps have gone red on rules the harness added. Raise the pin in a deliberate adoption pass (write the adoption plan first, under the internal docs dir), never to chase a red. - RECORDING floor
>=4.2.0—cowork-tests/rerecord.sh, four sites; find the gate withgrep -n 'minor.*-ge', never by line number. The gate keeps the shape-eq <major> && -ge <minor>because the floors test's regex READS that shape — "simplifying" it blinds the guard, not the gate. The floor moves for four distinct kinds of reason (plus a fifth, 4.2.0's, below), and only the first is a re-record trigger: (1) a release changes a fidelity input (emulated tool surface, spawn env, system prompt); (2) a release adds a record-time field that cannot be backfilled (environment.harnessVersion1.11.0,environment.model+ session fingerprint 3.1.0 —rehashmigrates hash FORMATS, never fingerprint shape, and cannot cross a cassette-version boundary) or refuses pre-spend — inexecuteScenario, past the loader — a scenario older versions accepted (2.5.0;--dry-runreports that class ininputErrors[]since 4.1.0); (3) the pinned agent ELF no longer matches what Desktop stages —doctor --tier hostloopthen reports a tolerated mismatch that a paid cassette would freeze, and recording needsCOWORK_HARNESS_ALLOW_AGENT_FALLBACK=1; (4) a scenario asserts a key newer than the CLI — the loader HARD-REJECTS withUnrecognized key,linton the same file exits 0, andcassetteVersiondoes not bump, so nothing warns (1.24.0,file_absent/question_options). 4.2.0 is the floor for a FIFTH kind of reason, and it is NOT a re-record trigger: itslatestbaseline moved to 2.16120.0, so a cassette recorded under an older CLI is stale against the CI pin the day it is recorded. Its one fidelity-input change (spawn env:PYTHONDONTWRITEBYTECODE=1) was assessed and the committed cassettes were RE-STAMPED (fingerprint.baseline, one line each), not re-recorded: at hostloop the variable reaches only the host-side hooks, never the shell the skill scripts run in, and bytecode changes nothing a cassette records. (4.0.0 held this slot before, for reason (3) and the major-version trigger: its pinned agent ELF matches the one Desktop stages (2.1.284;doctorreports a sha256 match), where 3.10.0's did not.) (3.10.0 held this slot before, for reason (1): the host-loop spawn moved -- the agent process runs at/var/empty(or a per-runhost-cwd), with--settings, deny rules on--disallowedToolsand the path gate's re-anchoring (src/runtime/hostloop.ts,src/runtime/argv.ts), plus one system-prompt line (hostloop-prompt.ts). Under it a relative file-tool path is refused as production refuses it; a cassette recorded below it freezes a world where one passes.) (3.8.0 held this slot before, for reason (1) on all three inputs at once:runtime/argv.tspasses--include-hook-events,hostloop/{skills,workspace}-handler.tsmove the emulated tool surface, andprompt.ts/prompt/subagent-manifest.tsmove the system prompt. It is also the first release under which a hook is assertable at all.) (3.6.0 held this slot for reasons (1) and (3): theCLAUDE_CODE_DESKTOP_APP_VERSIONinjection and the ELF Desktop 2.2553.1 stages.) - Replay skip-guard
>=3.8.0(no upper bound: the check isversion < (3, 8, 0)) —test_cowork_cassette_replay.py::_MIN_HARNESS, the only replay-floor site. It decides whether the local replay test runs at all, not which CLI CI installs; raising it turns a below-floor developer's red into a silent skip. It moved off^2.1.0on 2026-09-24 becausemarket-sizing-remote-lanefrozehook_event_fired: Stop, which an older CLI cannot grade — a scenario needed it, which is the only reason it ever moves.
test_cowork_harness_floors.py pins every site, this file included, and uses: (action) vs version: (CLI) major agreement — the two move independently. Read values from it; a version number in prose here has been stale on four separate occasions.
Adopting a new harness release — the checklist that has been wrong most often:
- Diff
src/andschema/WHOLE between tags. A prefix list (baselines/,src/runtime/…) is a hand-list with extra steps; it missed a moved session fingerprint (3.2.0). - Diff the baseline JSON leaf-by-leaf; compare
network.allowDomainsas a SET (order-only churn has read as a change three times); name what moved rather than listing what you checked (a hand-list once "verified" three keys that do not exist, and classifying the wholeprovenance.*prefix as noise missed a flipped gate — 3.0.0'ssubagentPromptServerOverrideON means no cassette can prove what sub-agent prompt text production sent).baselines/byte-identity is NOT "no fidelity debt" — 2.4.0 moved emulation code (hostLoopCwds,containerWebFetchaliasing) with an identical baseline, and spawn-env changes insrc/runtime/argv.ts(NO_PROXY,CLAUDE_CODE_DESKTOP_APP_VERSION) are invisible to any baseline diff. - Our baseline is whatever
latestresolves to (nothing declaresbaseline:): each cassette'sfingerprint.baselineis what it recorded against,latestis the numerically highest file in the harness'sbaselines/dir. Re-derive after anysyncor Desktop bump. - Run every token-free surface before and after —
replayover all cassettes,verify-cassetteswith the expanded allowlist,lint --strict --min-severity WARN,record --dry-run(both arms),analyze-skill --strict(exits 0 on advisory findings; onlyerrorgates),lint-skill --jsonthroughcowork-tests/lint_skill_gate.py— and diff the outputs. Settle an exit code by measuring, never by inheriting upstream prose. - Standing risks with no cassette tripwire: (1) the elicitation-conflict gap — every SKILL.md's
AskUserQuestion"(NOT plain chat)" directive can be silently overridden by the host's injected form guidance, unobservable by any harness run; cap-table's Step 0 hand-off gate is the one site without the fallback sentence (its fallback is scoped to a different gate). (2) TheArtifacttool has been seen in a real local session (2026-10-03); the harness still serves it at no tier. (3) Real Cowork re-syncs plugins into a live session — a quick pass about every 20 minutes, a full pass at app start and hourly; the harness stages once and never re-stages — a limit on what a green cassette proves. (4)COWORK_EGRESS_PROXY/COWORK_DOCKER_NETWORKnever worked and were removed in 1.20.0 — do not add them from an old README (COWORK_PROXY_IMAGEis live). - The upstream hook-detection fix (manifest-declared hooks) is gated to
protocolonly; ourSessionStarthook disclosure cannot fire at hostloop. Not a bug for us; recorded so nobody expects it.
Cassettes and the assert block — rules, not history (the history is archived locally with the per-release adoption plans):
- Staleness is skill-scoped (each scenario's
skills:key) but the mount is whole-plugin — narrowing the mount is what reintroduces a false-green. "Shared root" = everything NOT underskills/<x>/, socommands/feedback.mdandplugin.jsonstale the fleet too. In practice every cassette is already fleet-stale on baseline drift, so "just re-record that skill's lanes" leaves the rest red. Derive corpus facts withpython cowork-tests/cassette_inventory.pyandcowork-harness verify-cassettes cowork-tests/cassettes --skip-scenario-drift; never from prose. Barererecord.shrefreshes only scenarios with a committed cassette (it prints what it skipped); author a new one by name. After a refresh: confirm green, commitcassettes/by name, then grep the new cassettes for improvised shell (curl|wget|pip install|uv run|npx|apt-get|git clone) — egress from bash has been live since 1.20.0 and no SKILL.md sanctions it. - Plain
replayevaluates the assert block FROZEN in the cassette, never the on-disk YAML. An assert added after recording is invisible to CI; one deleted after recording still runs. After anyassert:edit, diffjson.load(cassette)["scenario"]["assert"]againstyaml.safe_load(scenario)["assert"]key sets. replay <cassette> --assert-from <yaml> --writepersists the on-disk block for free — but--allow-failingdisables its only drift gate, so a block written that way passes against pre-drift events, which is worse than silence (silence prompts a re-record; green does not). Do not cite those greens as evidence about current gate handling —deck-review-gate-stop(recorded fresh) is the evidence. Sequence a write-back with the fix, never before it. A refusal (answers drifted,prompt drifted) means a real re-record; re-derive which lanes refuse with a loop ofreplay <cassette> --reassertchecking rc=2.deck-review-numeric-chainis in_NO_CASSETTE_ALLOWLISTand must never be recorded: a frozen recording would preserve the defects it exists to surface.- Re-record trigger: every harness major, and any release whose changelog touches one of the three fidelity inputs. Nothing automatic flags it — the changelog is the authority. The one sanctioned exception is upstream's re-stamp (
docs/cassette.md, "Clearing a drifted baseline"): when a baseline moves and the change reaches neither the process running the skill's scripts nor anything a cassette records, setfingerprint.baselineby hand and record the argument in the adoption plan (4.2.0 is the precedent; its plan states why). A re-stamp is an assertion the tool cannot check.rerecord.shenforces a harness floor of>=4.2.0.
0.5. Run the gates pytest does not. A green uv run pytest is NOT a green CI. Two separate
gates have to pass before you tag, and neither is reachable from the test suite:
- mypy over all SEVEN directories — the six
skills/*/scripts/dirs andfounder-skills/tests/(ci.yml:33; it is easy to miss by reading only the first few- run:lines). The steps run under-e, so the first failure MASKS every later one: clearing one error does not turn the job green, it advances it to the next failing step. v0.7.0 burned two tags on exactly this — averify_positioning.pyshadowed-variable error hid 8 errors intests/. uv run ruff format --check .anduv run ruff check .. Run all of them, then bump. A retag is cheap (step 6 documents it) but each one costs a full paid e2e run.
- Bump versions in
pyproject.tomlandfounder-skills/.claude-plugin/plugin.json(must match) - Update
CHANGELOG.md— and read the diffs, not the commit messages. The v0.7.0 pass found a duplicated entry, four script filenames in user-facing text (0.6.0 names zero.pyto users), and three internal war stories. Match the format the previous release established (titled release +### Highlights, then Added / Changed / Fixed) rather than dumping bullets underFixed. git commit -m "release: vX.Y.Z"git pushgit tag vX.Y.Z && git push --tags- Wait for
deck-review-e2e-smokegreen in the GitHub Actions UI- Tag failure:
git tag -d vX.Y.Z && git push origin :refs/tags/vX.Y.Z, fix, retag — no user impact yet (no Release exists, so nothing advertises the tag) - LLM-variance flake: re-run the job from the Actions UI (free retry, same SHA)
- Tag failure:
The GitHub Release is now created FOR you — do not run
gh release createby hand.publish-releaseinskill-quality.ymlfires on a tag PUSH (and only a push — aworkflow_dispatchon a tag ref is excluded, or dispatching the rehearsal would publish), after the paid gate is green. It builds the notes and the title fromCHANGELOG.mdvia.github/scripts/changelog-notes.py, which emits exactlyvX.Y.Z — <title>to match the releases published by hand before it existed.Running it manually now races the workflow; whichever loses reds on "release already exists" (there is no
--clobberand no existence check). If you need to publish by hand — the automation failed, or you are backfilling an old tag — this is the command it replaces:# notes = that version's CHANGELOG section; title = the section's own "— <title>" text gh release create vX.Y.Z --verify-tag --latest \ --title "vX.Y.Z — <changelog title>" -F <(python3 .github/scripts/changelog-notes.py vX.Y.Z)Rehearse the notes without tagging (free, publishes nothing):
gh workflow run skill-quality.yml -f verify_release_notes_for=vX.Y.Z.A tag and a Release are different objects: a Release is created only by
gh release createor the web UI. Because this step was never written down, four tags shipped with no Release (v0.3.1, v0.6.0, v0.7.0, v0.7.1) and the repo's "Latest" badge sat on v0.4.7 for two months while the project kept shipping — a public repo advertising itself as stale on the day it released. Backfilled 2026-08-07; v0.3.1 deliberately left alone. Nothing was broken by the omission (users install from the marketplace clone trackingmain, soplugin.json#versionthere is what they get) — the cost is entirely perception, which is why nothing failed and it drifted for four releases.The release ENDS here.
sync-test-repo.shis deliberately NOT a release step — see below.Two mechanics worth knowing:
--verify-tagaborts if the tag isn't on the remote (catches a forgottengit push --tags), and "Latest" is computed, not chronological — when backfilling several, create them oldest-first with--latest=falseand pass--latestonly on the newest, or the badge lands on whichever GitHub decides. Reversible: a Release can be deleted without touching the tag.
sync-test-repo.sh RUNS ONLY WHEN EXPLICITLY ASKED FOR. It is not part of shipping, and "ship vX.Y.Z" is not a request for it. It is a local, untracked TESTING convenience: it rsyncs founder-skills/ into a SEPARATE and PUBLIC repo (yaniv-golan/founderskills-test) and pushes, so a build can be exercised in Cowork by hand. Nothing in the release depends on it and no user is waiting on it — users install from the marketplace clone that tracks main, so plugin.json#version on main is what they actually pick up (see VERSIONING.md).
It used to be numbered step 7 of the release, which read as "do this to finish shipping" and is wrong twice over: it publishes the working tree — not the tag — into a second public history, and it is a push to a repo the release process has no business touching unattended. If you do run it, run it only after the release gate is green: syncing a broken build means the manual test pass exercises a build you would never ship.
Model-tier acceptance: when adopting or recommending a new model tier, run the cap-table reliability bench (evals/cap-table/run_reliability_bench.py, see its README.md) and record the per-tier correctness; Sonnet 4.6 is the support floor. (The bench lives at repo-root evals/ — outside the distributed founder-skills/ plugin — so it isn't shipped to users, mounted into cowork runs, or folded into the cassette staleness hash.)
Already-distributed retag pitfall: if you had separately run sync-test-repo.sh before noticing the bug, bump to the next patch version instead of retagging — Cowork caches by plugin.json#version, so retagging the same version will not refresh user caches (cpd refresh ... --force-fetch -y is the manual recovery, not always coordinatable across users).
When to manually dispatch e2e on a PR
Per-PR e2e is off by default. Manually dispatch (gh workflow run skill-quality.yml --ref <pr-branch>) when the PR touches architectural surface that contract tests don't fully cover:
founder-skills/skills/*/SKILL.md(frontmatter or trigger phrases)founder-skills/agents/*.md(tool declarations, model, frontmatter)founder-skills/.claude-plugin/plugin.jsonfounder-skills/scripts/session-setup.sh(mutatesCLAUDE_ENV_FILE)founder-skills/skills/*/scripts/compose_report.py, but only when the change reaches the payload builder —_emit_coaching_payloadin five skills,build_coaching_payloadin cap-table (which also runs_assert_coaching_payload_privacy_cleanover the result; grep for the name rather than assuming, this differs per skill). That function IS thecoaching_payloadcontract.test_compose_invariants.pychecks its shape against synthetic fixtures; only e2e exercises the thing that shape exists for, namely a sub-agent reading the payload and writing usable commentary from it. The check: does the diff touch the payload builder or anything in its call graph? If yes, dispatch. If the change only alters how a section renders intoreport.md/report.json, the contract tests are sufficient and e2e buys nothing. This bullet used to name the whole file, which over-triggered: a rendering-only fix would read as needing a $10 paid run it cannot possibly exercise. Two such commits landed under the narrowed reading — a-1rank sentinel reaching founders, and a moat-radar caption — both rendering-only, both covered by contract tests, neither dispatched. Watch the shared-helper case:report.mdprose and the payload can call the same helper, and a change there does reach the contract even though the diff looks like rendering. That is exactly why the trigger is the call graph and not the file.- any of the four
founder-skills/tests/test_e2e_*.pylanes (derive withls), ortests/_e2e_harness.py(the SDK invocation itself) founder-skills/tests/cowork_async_subagent_filter.pyandcompose_invocations.py(CI-helper meta — if these break, contract tests pass vacuously)pyproject.tomldependencieslist or[project.optional-dependencies]block (any runtime dep can shift SDK behavior)
Other PRs (skill-internal scripts, fixtures, docs, contract tests): contract tests are sufficient — skip the $10.
Installing the Plugin in Claude Cowork
Customize → Plugins → the + at the right of the Anthropic/Partners/Personal tab row →
Add marketplace → Add from a repository → pick lool-ventures/founder-skills in the URL
picker → Sync → then + on the Founder skills card to install.
There is no "Personal Plugins" list and no "Browse Plugins" — that was an older layout. The two +
buttons are distinct: tab-row + adds a marketplace, card + installs a plugin. Syncing alone
installs nothing. To refresh an installed plugin, use Check for updates on the marketplace's ⋯
menu, which enables the plugin's Update button.
(Verified against the live UI 2026-07-29; captures under docs/internal/cowork-ui-validation-2026-07-28/.)
A private test build skips the marketplace: Customize → Plugins → Add plugin → Upload plugin.
Start a new conversation after installing ("New" on the merged interface; a new Cowork task where the Chat/Cowork choice still exists). Running conversations won't pick up the plugin.
Local CLI Testing with --plugin-dir
For iterating on plugin code in the standalone Claude Code CLI (host CLI, not Cowork), bypass the marketplace machinery entirely. From the repo root:
claude --plugin-dir "$PWD/founder-skills"This loads our plugin for the session only:
- No marketplace clone
- No
installed_plugins.jsonentry - No enabled-state in settings
- No interaction with Desktop's "Update available" badge or refresh flow
- Gone the moment the session exits
Use for: rapid local iteration on SKILL.md / agents / scripts when you don't want to reinstall after every change.
Caveats:
- Host CLI only. Cowork uses a VM-pinned binary at
~/Library/Application Support/Claude/claude-code-vm/<version>/claude(Linux ARM64 ELF) and has no equivalent flag exposed through Desktop. - Managed-policy block lists still apply — a blocked plugin name fails to load.
- Repeatable for multi-plugin testing:
--plugin-dir A --plugin-dir B.
Updating Plugin Files in Cowork Without Reinstalling
Local sessions only. These steps edit host copies; a cloud session reads the plugin synced to the account, so test a build there by uploading it (see "Installing the Plugin in Claude Cowork").
Cowork caches plugin files per-session. To hot-patch files for testing without reinstalling:
- Find the session cache:
find ~/Library/Application\ Support/Claude/local-agent-mode-sessions -name "SKILL.md" -path "*ic-sim*" 2>/dev/null - There are typically 4 copies per session — 2 marketplace names × (
cache/+marketplaces/):cowork_plugins/cache/<marketplace>/<plugin>/<version>/ cowork_plugins/marketplaces/<marketplace>/<plugin-dir>/ - Copy modified files into all locations:
SRC="founderskills" COWORK_BASE="$HOME/Library/Application Support/Claude/local-agent-mode-sessions/<org-id>/<session-id>/cowork_plugins" TARGETS=( "$COWORK_BASE/cache/<marketplace1>/<plugin>/<version>" "$COWORK_BASE/cache/<marketplace2>/<plugin>/<version>" "$COWORK_BASE/marketplaces/<marketplace1>/<plugin-dir>" "$COWORK_BASE/marketplaces/<marketplace2>/<plugin-dir>" ) for target in "${TARGETS[@]}"; do cp "$SRC/skills/ic-sim/SKILL.md" "$target/skills/ic-sim/SKILL.md" # ... repeat for each modified file done - Start a new conversation — running conversations have already loaded skill bodies into context.
Verifying the Marketplace Clone Actually Advanced
Cowork's "Refresh" can succeed without the local clone's git HEAD advancing — CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE and the SSH↔HTTPS fallback both absorb git pull failures silently while still bumping lastUpdated. The same trap exists for the standalone Claude Code CLI's marketplace cache.
Use claude-plugin-doctor (cpd) — it diagnoses drift across all six cache layers of the Claude Code / Claude Desktop plugin system, not just the marketplace clone.
npm install -g claude-plugin-doctorThe full safe dev loop is:
./scripts/sync-test-repo.sh— push your changes to the test repo.- In the Cowork UI, click Refresh on the marketplace.
- In your terminal, run
cpd refresh lool-founder-skillsto confirm the clone advanced and surface any other drift. - If the clone is stale, run
cpd refresh lool-founder-skills --force-fetch -y— bypasses the broken refresh path with a directgit fetch && git reset --hard. - Click Update on the plugin in Cowork (or use
cpd refresh lool-founder-skills --auto-update). - Open a new Cowork task to pick up the new content.
Run cpd refresh after clicking Refresh in step 2 — Cowork's Refresh is async and user-triggered, so it can't be wired into sync-test-repo.sh automatically.
Always run cpd check founder-skills@lool-founder-skills before debugging "why isn't my new SKILL.md being picked up" — it produces a single-plugin drift report across all six cache layers (marketplace clone, install snapshot, enabled state, RPM, session mounts, content-hash sync). Half the time the answer is the clone never moved; the other half it's a different cache layer.
Removing / Refreshing a Plugin in Claude Code / Cowork
There is no UI to remove a marketplace. Edit config files directly.
Claude Code (CLI)
~/.claude/plugins/known_marketplaces.json— delete the marketplace entry~/.claude/plugins/installed_plugins.json— delete anypluginname@marketplaceentries~/.claude/plugins/cache/<marketplace>/— delete to reclaim disk space
Cowork (Desktop App) — stale version troubleshooting
Local sessions only. These steps edit host copies; a cloud session reads the plugin synced to the account, so test a build there by uploading it (see "Installing the Plugin in Claude Cowork").
When Cowork won't pick up a new version, nuke all three locations:
BASE="$HOME/Library/Application Support/Claude/local-agent-mode-sessions/<org-id>/<user-id>/cowork_plugins"
rm -rf "$BASE/cache/<marketplace>"
rm -rf "$BASE/marketplaces/<marketplace>"
rm -f "$BASE/.install-manifests/<plugin>@<marketplace>.json"Then remove the entries from known_marketplaces.json and installed_plugins.json, restart Cowork, and re-add the marketplace.
Tip: installed_plugins.json pins a gitCommitSha — compare against git rev-parse HEAD to check freshness.
Pitfall: When deleting an entry from these JSON files, ensure the preceding entry's trailing comma is removed if it becomes the last entry. A trailing comma produces invalid JSON that JSON.parse() rejects, causing "Failed to add marketplace" errors in Cowork.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

