← Back to Skills Marketplace
hahamumu08

Add Typescript Best Practices

by hahamumu08 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
67
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install add-typescript-best-practices
Description
Setup TypeScript best practices and code style rules in CLAUDE.md
README (SKILL.md)

Setup TypeScript Best Practices

Create or update CLAUDE.md in with following content, \x3Ccritical>write it strictly as it is\x3Ccritical>, do not summaraise or introduce and new additional information:

## Code Style Rules

### General Principles

- **TypeScript**: All code must be strictly typed, leverage TypeScript's type safety features

### Code style rules

- Interfaces over types - use interfaces for object types
- Use enum for constant values, prefer them over string literals
- Export all types by default
- Use type guards instead of type assertions

### Best Practices

#### Library-First Approach

- Common areas where libraries should be preferred:
  - Date/time manipulation → date-fns, dayjs
  - Form validation → joi, yup, zod
  - HTTP requests → axios, got
  - State management → Redux, MobX, Zustand
  - Utility functions → lodash, ramda

#### Code Quality

- Use destructuring of objects where possible:
  - Instead of `const name = user.name` use `const { name } = user`
  - Instead of `const result = await getUser(userId)` use `const { data: user } = await getUser(userId)`
  - Instead of `const parseData = (data) => data.name` use `const parseData = ({ name }) => name`
- Use `ms` package for time related configuration and environment variables, instead of multiplying numbers by 1000
Usage Guidance
This skill simply writes opinionated TypeScript style guidance into a file named CLAUDE.md and does not request credentials or install anything. Before installing or running it, confirm where CLAUDE.md will be written (it may overwrite an existing file) and consider backing up or committing current changes. Review the exact markdown (it's enforced to be written verbatim) to ensure the wording and recommendations match your team's preferences.
Capability Analysis
Type: OpenClaw Skill Name: add-typescript-best-practices Version: 1.0.0 The skill is designed to automate the setup of TypeScript best practices by creating or updating a CLAUDE.md file with standard coding rules and library recommendations. The instructions in SKILL.md are focused on project configuration and do not contain any malicious logic, data exfiltration, or harmful execution commands.
Capability Assessment
Purpose & Capability
The name and description (add TypeScript best practices into CLAUDE.md) align with the SKILL.md content, which instructs the agent to create or update CLAUDE.md with the provided rules. The skill does not request unrelated capabilities.
Instruction Scope
The SKILL.md instructs the agent to write the provided markdown exactly as-is into a file named CLAUDE.md. That means the skill will create or overwrite a repository file; the instruction is narrowly scoped and does not ask the agent to read other files, access environment variables, or send data externally. User beware: it may overwrite existing CLAUDE.md content. The content is opinionated style guidance but contains no external endpoints or secrets.
Install Mechanism
No install spec is present (instruction-only), so nothing is downloaded or written to disk by an installer step. This is the lowest-risk install model.
Credentials
The skill requests no environment variables, credentials, or config paths. The guidance references common libraries by name but does not require access to package registries or keys.
Persistence & Privilege
always:false (default) and the skill does not request elevated or persistent privileges. It does modify project state by writing a file, but it does not alter other skills, agent configs, or request system-wide access.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install add-typescript-best-practices
  3. After installation, invoke the skill by name or use /add-typescript-best-practices
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the skill to add TypeScript best practices and code style rules. - Sets up standardized content for CLAUDE.md, including strict type enforcement, code style preferences, and best practice guidelines. - Library recommendations and common code quality rules are specified for consistent TypeScript usage across projects.
Metadata
Slug add-typescript-best-practices
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Add Typescript Best Practices?

Setup TypeScript best practices and code style rules in CLAUDE.md. It is an AI Agent Skill for Claude Code / OpenClaw, with 67 downloads so far.

How do I install Add Typescript Best Practices?

Run "/install add-typescript-best-practices" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Add Typescript Best Practices free?

Yes, Add Typescript Best Practices is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Add Typescript Best Practices support?

Add Typescript Best Practices is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Add Typescript Best Practices?

It is built and maintained by hahamumu08 (@hahamumu08); the current version is v1.0.0.

💬 Comments