agentleFS
Prism-ShadowPrism-Shadow/penguin-harness/.agents/skills/penguin-harness-dev/SKILL.md

penguin-harness-dev

Skill2.4k starsChanged 3 months agoApache-2.0View on GitHub

Use when developing PenguinHarness itself — changing packages/{core,server,web,cli,desktop,landing,docs,skills}, the built-in model catalog, the installers or the release workflow; writing or auditing changelog entries; writing a blog post or capturing release screenshots; running the test suite here or, when asked, on another machine; reading a prompt-cache regression out of the core suites; deciding what to do about data already on disk; auditing prose that reads like a leaked authoring session; or changing anything a user sees or reads — a component, a style, UI strings, docs, landing copy — which must not read as AI slop. Covers the two-repo symlink layout, the CI-parity verification chain, the record-and-ship contract, where blog media is hosted, and the seams that are intentional.

  • Installs packages
  • Commits and pushes

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 3 mentionsAug 2026: 2 mentionsSep 2026: 10 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the Prism-Shadow/penguin-harness repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Prism-Shadow/penguin-harness

The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 16

Talked about on GitHub and Hacker News (16 times).

On GitHub · 14

9 more on GitHub

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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
  1. Distinctive:

    Commit them there, on their own branch, in their own PR.

    line 49
  2. Very specific:

    Before a test, write its scenarios (Given / When / Then) in the file header.

    line 77
  3. Very specific:

    Every branch a change adds is taken by a scenario.

    line 83
  4. Very specific:

    Always cheap, always worth it: git diff --check, and pnpm format + format:check on any diff at all.

    line 114
  5. Distinctive:

    Run the whole chain in exactly three cases: the change spans the repo widely enough that nothing narrower is credible, you are diagnosing a …

    line 117
  6. Very specific:

    When a test fails in a way that does not match your diff, when CI reads green too easily, or when a fake or an assertion looks like it …

    line 129
  7. Very specific:

    Every change ships a changelog entry, in both languages, in changelog/unreleased/: a YYYY-MM-DD-<slug>.md and YYYY-MM-DD-<slug>.zh.md pair …

    line 159
  8. Distinctive:

    A conclusion is not a deliverable: Do not package findings as a standalone page, artifact or report file: it detaches them from the diff …

    line 164
  9. Very specific:

    When a change touches data or configuration already on disk — Traces, system_config.yaml, .project_config.toml, installed skills, web.db, …

    line 176
  10. Distinctive:

    OmniMessage is closed by default: No new field, type or enum value unless the fact is unrepresentable by existing records and underivable …

    line 188

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Developing PenguinHarness

PenguinHarness is a TypeScript monorepo: an Agent SDK (packages/core), an HTTP server (packages/server), a Web App (packages/web), a CLI (packages/cli), an Electron shell (packages/desktop), the landing and docs sites, and the shipped plugin library — one npm package per plugin under the repo root's plugins/, with packages/plugins as the loader that depends on them all. It consumes LLM providers through @prismshadow/mmsp (MMSP, formerly @prismshadow/agenthub) and implements no provider clients of its own.

This page is the part that applies to every change. The reference files carry the detail, read them when the task reaches them:

ReadWhen
reference/verification.mdA test fails oddly, CI reads green when it should not, or the user asks you to run the suite on another machine
reference/changelog.mdWriting or auditing a changelog entry
reference/model-catalog.mdTouching model-catalog.ts, pricing, provider groups or glyphs
reference/authoring.mdWriting a blog post, auditing prose, or proposing a simplification
reference/release.mdPreparing a release: the branch order, what changes, the announcement, the blog post and its screenshots
reference/testing.mdWriting or changing any test: scenarios first, behaviour only, one fake per boundary, branch coverage, speed
reference/ai-slop.mdEvery change a user sees or reads: UI, styles, UI strings, docs, landing, blog, changelog — the rules, the scanner, the catalogue of tells

No AI slop — every time something is rendered or written

Whatever you add to the UI or the copy, check it before you call it done: decide before you decorate; one accent, one voice; hierarchy from scale and space; subtract first; specific beats punchy; decoration must mean something. No gradients, glows, emoji, pill spam, cards in cards, coloured keywords or "it's not just X — it's Y". Reuse the theme tokens and lib/tone.ts; status is an icon plus a tooltip; sections are ruled, not boxed. Run node .agents/skills/penguin-harness-dev/reference/ai-slop/scan.mjs <what you touched> and triage every hit. reference/ai-slop.md has the repo's own decisions and the full catalogue.

Repo shape — read before your first edit

Two repositories sit side by side: the implementation repo (penguin-harness) and the design repo (penguin-harness-design). Three paths inside the implementation repo are symlinks into the design repo and are gitignored here:

  • design/ → the design repo, so specs are reachable as design/specs/…
  • AGENTS.md → design/AGENTS.md
  • CLAUDE.md → AGENTS.md

Editing AGENTS.md, CLAUDE.md or anything under specs/ edits the design repo's files. Commit them there, on their own branch, in their own PR. They can never appear in an implementation-repo PR. A fresh clone has none of the three links; recreate them by hand. A clone with no design repo beside it — the normal state for a remote or throwaway environment — has nothing to link to, so it carries no AGENTS.md at all and these skills are its whole contract.

Both repos take changes through branch + PR against main, squash-merged. Do not push to main, and gh pr create --base main — not dev, whatever a sibling repo does.

Branches are feat/<topic>, fix/<topic>, docs/<topic> in both repos. Some older branches here read docs-<topic> instead: a remote branch literally named docs once held that ref namespace and made the slashed form unpushable. It is gone — if a push is ever rejected as a directory/file conflict again, git ls-remote --heads origin names the branch responsible.

Independent changes each get their own git worktree under ../penguin-harness-wt/<topic>/ so several can run in parallel.

Keep searches inside the worktree you are working in. Scanning the home directory or the whole disk is rarely worth it: it is slow, and what it turns up outside the tree is usually another checkout's copy of the file you are already looking at. When a path does not resolve, prefer narrowing — reason about the package layout, ask git ls-files, follow the conventions above — over widening the root. The only paths outside the worktree worth reading are the siblings named here: ../penguin-harness-design for specs, ../penguin-harness-wt/* for another topic's tree, and ../agenthub for MMSP where it is checked out (the checkout keeps the library's former name). Reach them by name; never find them by scanning. Say all of this to every subagent you dispatch — widening the search root is the first move a subagent makes when a path does not resolve.

Tests prove behaviour, not the source

Before a test, write its scenarios (Given / When / Then) in the file header; one it per scenario, named as the behaviour. Assert only what the caller can observe — and look first for what must not happen (a retry that must not duplicate, a refusal that must not write). Never test a constant, a copied table, a UI string against its dictionary, or which private helper ran. Fake only at the system's edge with the package's shared helpers (one fetch fake, one mock LLM, createTestApp, real temp dirs, fake timers); do not vi.mock the package's own modules. Every branch a change adds is taken by a scenario; pruning never lowers branch coverage. No real sleeps, no per-test servers. reference/testing.md has the rules and the checklist.

Verify what you changed

Node must be >= 24. In each worktree, pnpm install --frozen-lockfile first.

The full chain CI runs is pnpm build, pnpm format:check, pnpm typecheck, pnpm test, sh scripts/test-installer.sh. Do not reach for pnpm test by reflex — it is nine packages and ~2500 tests, minutes per run, and for a docs-only diff it proves nothing the narrow run does not. Pick the narrowest evidence that would actually fail for this change's regression:

pnpm --filter @prismshadow/penguin-core exec vitest run test/model-catalog.test.ts   # one file, ~1s
pnpm --filter @prismshadow/penguin-web test                                          # one package
ChangedRun
Markdown only — changelog, .github/CONTRIBUTING.md, .agents/, READMEpnpm format:check
packages/docs/content/**, blog posts under packages/landing/content/**format:check + the docs and landing package tests (search index, blog fixtures)
plugins/** (repo root)the plugins package test (loader, README tables, the hook scripts against fake Traces) + docs's skills-sync.test.ts
The model catalogcore model-catalog.test.ts, web model-grouping.test.ts and protocol-path.test.ts, server models.test.ts
Request assembly, history rebuild, compaction, the system prompt, a tool's description or schemacore's three prompt-cache-* suites — read the section below before you touch what they report
One package's sourcethat package's test, plus typecheck
Exported core types, or anything downstream importspnpm build + pnpm typecheck before any test
Anything that opens, folds, resizes or animates in the Web App or packages/uithe ui and web tests + frames captured mid-transition in all three themes (penguin-harness-frontend, "Motion"); a resting screenshot is not evidence
A remote test tree after main moved (a merge, a rebase)rebuild @prismshadow/penguin-server... there first: a stale core dist reads as dozens of TS2305 "no exported member" errors in web and the gallery
package.json, the lockfile, pnpm-workspace.yamlpnpm install --frozen-lockfile + pnpm build
Installers, release.ymlsh scripts/test-installer.sh

Always cheap, always worth it: git diff --check, and pnpm format + format:check on any diff at all.

Run the whole chain in exactly three cases: the change spans the repo widely enough that nothing narrower is credible, you are diagnosing a CI failure, or you are asked to. There are no coverage thresholds in this repo, so nothing forces a wider run than the behavior needs.

Tests run on this machine unless the user asks otherwise. Moving a suite to another host is something they request in so many words, not an optimisation to take on your own — see reference/verification.md for how, and for why a difference between two machines is a finding rather than something to paper over.

Once the evidence you chose passes, commit and push to the current branch without asking. Force-pushes and reverting someone else's commits still need confirmation.

When a test fails in a way that does not match your diff, when CI reads green too easily, or when a fake or an assertion looks like it proves nothing, read reference/verification.md before spending a second round on it.

A prompt-cache miss is a cost regression, and it has to be said out loud

A provider serves a cached prefix only while the next request repeats the previous one byte for byte from the front: the model id, the tools, the fast-mode parameters, the system prompt, the remaining prompt-affecting parameters, then the messages. Everything from the earliest divergence onward is re-read at full price, on every request of every running conversation — not only the one in front of you. A word added to a tool description costs far more than its own tokens.

Three suites in packages/core/test hold that line, and a failure means something different in each:

FailingWhat it is telling you
prompt-cache-invariants.test.tsYour change made a request stop extending its predecessor. This is the regression itself; the diagnostic names the tier that diverged and estimates the input that falls after it.
prompt-cache-lifecycle.test.tsThe same thing counted in provider tokens. A number that went down is money.
prompt-cache-simulator.test.tsYou changed the rule engine, not the harness. Only correct when the provider's documented rules changed — go and check the documentation, not the test.

Never re-baseline these to green. Editing an expected number, or adding a case to the list of misses that are there by design, is a decision about spending the user's money — not a fix. Put the tier that moved and what it costs in front of them and let them decide.

And say it in the reply, not only in a test log. A cache regression shows up in no other signal this repo produces: nothing is slower, nothing is wrong on screen, and CI goes green the moment the numbers are edited. If you do not raise it, it ships.

Record and ship

Every change ships a changelog entry, in both languages, in changelog/unreleased/: a YYYY-MM-DD-<slug>.md and YYYY-MM-DD-<slug>.zh.md pair mirroring section for section, inside the PR that makes the change. One without the other is unfinished, there is no index file, and reasoning belongs in the PR description rather than on disk.

A conclusion is not a deliverable. Do not package findings as a standalone page, artifact or report file: it detaches them from the diff they are about and no one opens it twice. A review's findings go in PR comments, on the lines they concern; everything else goes in the PR description and in the reply to whoever asked.

changelog/README.md is the full spec and reference/changelog.md has the shape plus the traps (the metadata block's fixed order, translated headings, #N numbers that are often issues rather than PRs, and the PR: field everyone forgets). Read one of them before writing an entry rather than pattern-matching a neighbouring one.

Backward compatibility is the user's call, not yours

When a change touches data or configuration already on disk — Traces, system_config.yaml, .project_config.toml, installed skills, web.db, localStorage keys — do not pick a strategy. State plainly what breaks if nothing is done, offer the options (permanent dual-format tolerance / one-time migration / a documented reset path / accept the break and say so), and let the user decide.

Whatever is decided, compatibility code is a standing cost: name how long it stays, who removes it, and what has to be true first, at the code site and in a dedicated changelog/unreleased/YYYY-MM-DD-backward-compatibility.md. Other entries in that batch reference that file instead of re-telling it. A batch with no compatibility handling has no such file.

The message protocol is closed by default

  • OmniMessage is closed by default. No new field, type or enum value unless the fact is unrepresentable by existing records and underivable by readers; prefer recording earlier or streaming an existing record over a new field. Say so in the PR. The architecture spec's message-format section states the rule, and packages/core/src/omnimessage/types.ts repeats it at its head.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.