.cursor/skills/coding-standards/SKILL.md
TypeScript coding patterns and implementation standards. Load when structuring logic, defining boundaries, handling errors, or deciding what belongs in a route, feature, or shared module.
npx skillsauth add poko8nada/corp_site-type01 coding-standardsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };
T | undefined or T | nullPromote absence to a domain error only at the boundary that actually owns that decision.
Choose module boundaries by ownership, not by habit.
Owns:
framework context
Should usually not own:
Owns:
Should usually receive explicit inputs rather than framework context when that keeps the contract cleaner.
Owns:
Should not know about route metadata, redirects, or page-level rendering.
Start with the smallest boundary that matches the ownership of the code.
Extract upward only when one of these becomes true:
Do not extract a file or layer if it does not create a clearer boundary.
Use when:
Use when:
Use when:
Use try-catch for external I/O and impure boundaries.
Return structured errors rather than throwing across module boundaries.
When catching external I/O failures:
Comment only when the intent cannot be made obvious with names, types, or structure.
Do not use comments to compensate for muddy boundaries.
development
Bootstraps project documentation for an existing repository by reading the codebase, README, tests, and package metadata, then creates or updates docs/overview.md, docs/behavior.md, and ADRs when significant architectural decisions are discovered. Use when asked to document a repo, extract project purpose, write overview/behavior docs, review an existing codebase, or capture architecture decisions from source.
development
Creates or updates docs/overview.md — the project's purpose and background. Load when starting a new project, when the project's goals or context have changed, or when docs/overview.md does not exist. Covers what to write, what to omit, and how to keep the document agent-friendly.
documentation
Implements a new feature using docs-first delivery, boundary-driven structure, and skeleton-first execution. Load when adding a route, feature, or new user-visible behavior.
tools
Manages GitHub Issues using gh CLI — creation, decomposition, update, and close. Load when asked to create a new issue, break down a large task into issues, update issue status or labels, or close an issue after a PR is merged. Human decides whether to create an issue. Agent handles all gh CLI operations.