.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/pj_docs 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.
tools
Composite Skill. This skill is used for project planning. Users request that a project plan be created, particularly during the initial stages.
documentation
Core Skill. This skill is for document creation. User ask you to create planning documents, such as requirement and task breakdown.
development
Core Skill. Next.js 15+ App Router architecture guidelines including component patterns, state management with Zustand, server actions, and project structure. Use when developing Next.js applications.
development
Core Skill. HonoX architecture guidelines including file-based routing, Islands pattern, component types, performance optimization, and best practices for full-stack development.