Loading...
Loading...
Apply shared coding standards when writing, reviewing, or refactoring TypeScript in apps, services, workers, and shared packages. Use before editing TypeScript functions, types, exports, error handling, or documentation, and React components and hooks. Includes conditional React and Next.js rules; backend repositories do not require either framework.
npx skill4agent add berachain/skills typescript-coding-standardsAGENTS.md| Guide | Read when |
|---|---|
| TypeScript contracts | Writing or reviewing functions, arguments, types, or constants. |
| File naming and size | Creating, renaming, or splitting files. |
| Comments and JSDoc | Documenting functions, types, or non-obvious logic. |
| Modules and organization | Choosing exports, import boundaries, or where code belongs. |
| Runtime behavior | Handling errors, external data, service dependencies, or backend import boundaries. |
| React and Next.js | Changing components, callbacks, or hooks; read the Next.js section only in Next.js apps. |
| Testing | Deciding whether a test is useful, adding coverage, or reviewing assertions. |
| Tooling and verification | Selecting tools or validating a code change. |