← 返回 Skills 市场
hahamumu08

Add Typescript Best Practices

作者 hahamumu08 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
67
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install add-typescript-best-practices
功能描述
Setup TypeScript best practices and code style rules in CLAUDE.md
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install add-typescript-best-practices
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /add-typescript-best-practices 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug add-typescript-best-practices
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Add Typescript Best Practices 是什么?

Setup TypeScript best practices and code style rules in CLAUDE.md. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。

如何安装 Add Typescript Best Practices?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install add-typescript-best-practices」即可一键安装,无需额外配置。

Add Typescript Best Practices 是免费的吗?

是的,Add Typescript Best Practices 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Add Typescript Best Practices 支持哪些平台?

Add Typescript Best Practices 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Add Typescript Best Practices?

由 hahamumu08(@hahamumu08)开发并维护,当前版本 v1.0.0。

💬 留言讨论