Repository navigation
docs(agents): add Effect and UI review specs for /code-review - #64
Conversation
Adapt t3code's two Macroscope review specs into internal repo skills that /code-review's Standards axis reads: effect-service-conventions and ui-consistency, under .agents/skills with .claude/skills symlinks. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0191mSZ5Nrvn7FMoNMRbKxhS
|
Two-axis review of Seven review agents ran in parallel (Standards, Spec, method, YAGNI, Effect fit, UI fit, writing-for-agents). Axes are not merged. StandardsWiring matches this repo: internal skills under Documented-standard (hard)
Judgement (smells)
SpecQuoted against issue #59: "adapt (a) Missing / partial
(b) Scope creep
(c) Looks implemented, implementation is off
Placement under MethodIssue #59 asked for light adaptation of both. That method is right for Effect (t3code is the chosen Effect reference). It is the wrong method for UI (t3code is an Electron + Tailwind + Base UI app). Effect mostly did the intended cut: Macroscope YAML gone,
Dirt left in the method: examples invented from the map instead of the tree (S3, TokenStore barrel, MemoryPatchStore), and t3code's multi-entity startup-repair rule kept. UI is the same seven sections in the same order with owners renamed. Real Patchy lines that landed: Wiring method is correct: do not fork the external YAGNIEffect skill is the real port contract with one t3code organ left in. Keep namespace imports, single-file Cut from Effect: the startup-reconciliation bullet (retry-before-readiness, isolate one bad entity, tests for both paths). Patchy startup is listen + an unref'd hourly sweep. Sweep already continues on per-draft failure and is not a readiness gate. Reviewers will invent a boot repair loop. UI skill still reads like a component app pasted onto Cut from UI: tab / resize handle / swatch / image-target; fade, mask, scrollbar-lane; runtime token bridges; theme forks; light/dark evidence; safe-area; animations; hover/disabled color indirection; contrast-token mixing cookbook. Hedge "shared class when geometry repeats" for later auth chrome — do not invent a design system. Both skills repeat change-discipline + reporting. Keep a two-line closer on each. Auth UI, when it arrives, is still a page shell, not primitives. Effect v4 fitMostly Patchy's Effect style. It will not invent MCP, Atom, relay, or Electron. It will invent t3code-shaped ports, test fakes, and boot repair unless those lines go. Kept as style: namespace Still t3code product: the startup-reconciliation bullet. An agent will add retry/isolate-per-entity to limiter, sweep, or expiry. Still t3code service shape:
Missing for this port (an agent will improvise Fastify/pg/mocks): HttpApi ( The smallest fix: delete the reconciliation bullet, retarget examples (PatchStore, filesystem/Azure, limiter/sweep), add four lines for HttpApi error mapping, SqlSchema, UI direction fitThe skill is t3code's desktop checklist with a Patchy caption. The hedge does not rewrite the rules. Genuinely Patchy (thin): prefer t3code residue that will mis-train: resize handle, swatch, tab; fade/mask/scrollbar-lane; runtime token bridges; composable shadows; dark contrast; hover/disabled as a control library; empty Worst mismatch: "A page that re-emits its own Missing Patchy lead-ins a product skill would open with: no JS on served drafts; wrapper There will not be a built-in user-facing surface until the auth layer. That is not a reason to keep a component-library checklist. Auth pages should still compose Standards: 4 documented + 3 judgement. Worst: UI skill keeps t3code mechanics behind a "skip its mechanics" hedge. Spec: 3 findings (WFA pass partial; examples are not ours; UI is neither light-adapt nor rewrite). Worst: the required writing-for-agents pass stopped at frontmatter. Method / YAGNI / product-fit (requested extra): Effect skill is the right object with leftover t3code organs (startup repair, S3/Memory ports). UI skill does not fit Patchy's direction and should be rewritten around |
The two adapted specs still carried t3code shapes. The Effect spec's examples named an S3 blob store, an in-memory patch store, and a token store barrel, none of which exist here, and it kept a startup-repair rule for a boot sequence Patchy does not have. The UI spec was t3code's component-app checklist behind a hedge: fades, masks, scrollbar lanes, runtime theme tokens, tabs and swatches, against a single-theme server-rendered page shell. Worst, its "re-emitted <head> is a finding" rule would have failed renderDraftWrapper, which is a separate document on purpose. Retargeted the Effect examples at the real storage modules, dropped the startup-repair rule, and added the port shapes #54 settled (HttpApi in packages/api with typed error responses, @effect/sql-pg with SqlSchema, @effect/vitest layers over mocks, Config per capability, YAGNI until a second consumer). Rewrote the UI spec around htmlPage versus renderDraftWrapper, the draft frame's CSP and escaping, unwatched readers, and scroll ownership. Both descriptions drop the trigger lists that AGENTS.md already owns, and the AGENTS.md pointer stops caching /code-review's own process. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Review pass on Fixed
Not changed
|
The Effect v4 port map (#54) settled on no Macroscope: t3code's two review specs become repo skills that
/code-reviewcan run. Until now the Standards axis had nothing Effect-specific to read.Adapted
effect-service-conventionsandui-consistencyinto internal skills under.agents/skills/(symlinked from.claude/skills/, outsideskills/so the CLI build does not ship them). Macroscope frontmatter, tools, and include globs are dropped; "do not demand unrelated repository-wide cleanup" is kept once per skill.The Effect spec uses the capability package names #54 settled, notes that Effect is not yet imported and binds each package as the port lands, draws its examples from the real storage modules, and carries the settled port shapes (HttpApi in
packages/apiwith typed error responses,@effect/sql-pgwithSqlSchema,@effect/vitestlayers over mocks,Configper capability, YAGNI until a second consumer).The UI spec targets the server-rendered pages this repo actually serves:
htmlPagefor first-party chrome,renderDraftWrappernamed as the standing exception it is, plus the draft frame's CSP, escaping, unwatched readers, and scroll ownership. t3code's component-app rules — fades, masks, scrollbar lanes, runtime theme tokens, tabs and swatches — are gone rather than hedged.AGENTS.mdgains a "Review specs" pointer telling the Standards axis which file to hand its sub-agent, and it is the single home for the per-skill triggers.docs/SKILL_DISTRIBUTION.mdlists the new internal skills.Resolves #59
Made by Claude Fable 5 via Claude Code (workflow subagent).