@n4s/skills
v2.0.1
Published
Skills and conventions for nfour stack frontend development
Readme
Conventions
This library hosts conventions for Developer and AI to produce a consistent codebase.
Skills
Each skill lives at skills/<name>/SKILL.md. Start with ts-frontend for the full stack; use a section skill when working in just one area.
Section skills are self-contained. Supporting material is inlined into each SKILL.md so agents can operate from a single file.
- ts-frontend
- Comprehensive TypeScript frontend skill tying together React, MobX, XComponent, and XRoute. Names and cross-references every recurring pattern used across the conventions below (data flow, derived state, dependency injection, value objects, etc.), with formal pattern terminology where applicable.
- react
- File structure, component authoring, and JSX patterns.
- mobx
- Class-based state,
ctx()dependency injection, global state trees, andBoxedValue.
- Class-based state,
- xroute
- URL-as-source-of-truth routing state.
- xcomponent
- Xcomponent API usage:
X,X.useState,Value,AsyncValue,BoxedValue,BoolValue, lifecycle hooks,.with()composition.
- Xcomponent API usage:
- typescript
- Immutable/functional style and terse conditionals.
