typescript-coding-standards
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, documentation, package dependencies, or React components and hooks. Includes conditional React and Next.js rules; backend repositories do not require either framework.
How do I install this agent skill?
npx skills add https://github.com/berachain/skills --skill typescript-coding-standardsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is a comprehensive guide for TypeScript, React, and Next.js coding standards. It contains only instructional markdown and benign code examples, with no executable code or external risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
TypeScript Coding Standards
Apply these conventions when writing, reviewing, or refactoring TypeScript in frontend apps, backend services, workers, and shared libraries.
Read the target repository's AGENTS.md, package scripts, and lint/test
configuration first. Explicit local requirements take precedence over these
shared defaults. Keep changes within the requested scope; existing violations
do not justify an unrelated repository-wide migration.
Guides
Read the guides relevant to the change before editing.
| 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. |
| Dependencies and catalogs | Adding or updating dependencies, package manifests, catalogs, or lockfiles. |
| 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. |
For backend-only work, skip the React guide. Use the consumer's existing tooling and runtime conventions; the skill does not require adopting another repo's framework, formatter, or dependencies.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/berachain/skills/typescript-coding-standards">View typescript-coding-standards on skillZs</a>