midnightntwrk/midnight-passport-sdk/code-style

Claude Code and agent skill by midnightntwrk/midnight-passport-sdk

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Project coding-preference review lens for Midnight Passport SDK changes — American English with Oxford comma, YYYY/MM/DD dates, TypeScript conventions, error-taxonomy consistency, and Midnight (not IOG) branding. Run per tranche, or on any change touching prose, UI copy, or public API shape.

Install

npx vskill@latest install midnightntwrk/midnight-passport-sdk/code-style

SKILL.md

code-style — project preferences

The judgment layer over prose, naming, and conventions (docs/development-workflow.md §2). The mechanical part — formatting and lint — is CI's job: run the formatter rather than hand-reviewing whitespace, and never nitpick what a tool enforces.

Prose (comments, docs, error messages, UI copy)

  • American English, with the Oxford comma. Leave code identifiers,

file names, and quoted external titles in their original spelling.

  • Dates as YYYY/MM/DD.
  • Complete sentences in doc comments and user-facing text; comments state

constraints the code can't show, not narration of the next line.

  • If .claude/rules/ exists in the repo, read it — it is authoritative for

anything it covers.

Brand

  • Midnight Passport is a Midnight-branded product, never IOG-branded:

product name "Midnight Passport", package scope @midnight-ntwrk/.

  • UI copy follows the Midnight brand voice; integrators may re-brand

upstream components (§3.11), but our defaults are Midnight.

TypeScript conventions

  • No `any` — the prototype's any-typed provider boundary is an

explicitly named failure (arch §7). Strict mode; exported API surfaces fully and explicitly typed.

  • Type as much as you can (human rule, 2026/07/30 — raised on PR #8):

unknown is a last resort, not a default. Before reaching for it, mirror the shape structurally (as AccWitnesses/AccPureCircuits do for the generated module), or take a generic parameter so the consumer can supply the type (bindAccModule<PS>). Every unknown that survives must carry a doc comment naming why it cannot be typed here and who owns the type (e.g. a runtime-owned type the package must not import, or a consumer-defined type whose owner is a later spec). An undocumented unknown on an exported surface is a review finding.

  • No module-global singletons — instance-scoped, disposable objects

(arch §4.3); multi-account must be possible.

  • Error taxonomy consistency — typed error classes with stable codes,

one taxonomy across packages; no stringly-typed or ad-hoc thrown errors on public surfaces. Error messages must never contain secret material (that is also a security-audit blocking finding).

  • Async discipline: no floating promises; abort/cleanup paths on

long-running flows.

UI (when the tranche touches user-facing surfaces)

  • Copy is i18n-ready — no string concatenation of sentence fragments.
  • A11y basics: labels, focus order, and keyboard paths on ceremony and

consent dialogs especially — those are the security-critical interactions.

  • Proof-provenance and remote-proving indicators (§2.5) use plain,

non-technical language: "proved in this browser" / "proved in a remote enclave".

Output

Findings list. Blocking only for: brand violations, error-taxonomy breaks on public surfaces, any on exported APIs, and module-global singletons. Everything else is advisory — style feedback should not stall a tranche.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/midnightntwrk/midnight-passport-sdk/code-style/badge)](https://verified-skill.com/skills/midnightntwrk/midnight-passport-sdk/code-style)

Something wrong with this skill or its page? Tell us.