MCP HubMCP Hub
返回技能列表

tip-javascript-typescript

sushichan044
更新于 Today
12 次查看
8
8
在 GitHub 上查看
general

关于

This skill provides automated TypeScript/JavaScript coding patterns and best practices when writing or refactoring code. It helps maintain consistency with your development style while improving code quality through readability enhancements and architectural decisions. Use it automatically for new code, refactoring, or code review scenarios in TypeScript/JavaScript projects.

技能文档

TypeScript/JavaScript Coding Techniques

Overview

Apply the user's preferred TypeScript/JavaScript coding techniques automatically when writing or refactoring code. This skill encapsulates coding patterns, best practices, and architectural decisions to ensure consistency with the user's mental model and development philosophy.

When to Use

Use this skill automatically in the following scenarios:

  • Writing new TypeScript/JavaScript code
  • Refactoring existing TypeScript/JavaScript code
  • Planning improvements of code quality
    • e.g. reduce duplication, improve readability, enhance maintainability, etc.
  • Reviewing code for improvements
  • Making architectural decisions in TypeScript/JavaScript projects

Apply these techniques proactively as the default approach.

Reference Structure

Coding techniques and tips are organized into two categories:

references/typescript/ - Language-Level Patterns

TypeScript/JavaScript language syntax, patterns, and best practices.

See references/typescript/README.md for details.

references/libraries/ - Library-Specific Tips

Usage patterns, optimizations, and gotchas for specific libraries and frameworks.

See references/libraries/README.md for details.

Usage

When writing TypeScript/JavaScript code, load and apply patterns from the relevant reference files automatically. Reference files contain template sections for adding new patterns as they emerge.

How to add new patterns

READ each reference categories' README to file place / naming conventions. It also includes DOs and DON'Ts for writing new patterns.

Use this template for tip files.

# [Topic Name]

## Overview

[Brief description and why these tips are needed]

## Basic Patterns

### [Pattern Name]

**When to use**: [Description of use case]

**Example**:

\`\`\`typescript
// ✅ Good: Recommended pattern
// Code example
\`\`\`

**Anti-pattern to avoid**:

\`\`\`typescript
// ❌ Bad: What to avoid
// Anti-pattern example
\`\`\`

**Notes**: [Additional context, edge cases, considerations]

## Common Issues & Solutions

### [Issue Title]

**Problem**: [What goes wrong]

**Solution**:

\`\`\`typescript
// Solution code
\`\`\`

## Performance Optimization

[If applicable]

## Type Usage

[TypeScript type patterns for this library]

## References

- Official docs: [URL]
- Related articles: [URL]

快速安装

/plugin add https://github.com/sushichan044/dotfiles/tree/main/tip-javascript-typescript

在 Claude Code 中复制并粘贴此命令以安装该技能

GitHub 仓库

sushichan044/dotfiles
路径: dot_claude/skills/tip-javascript-typescript

相关推荐技能

analyzing-dependencies

这个Claude Skill能自动分析项目依赖的安全漏洞、过时包和许可证合规问题。它支持npm、pip、composer、gem和go modules等多种包管理器,帮助开发者识别潜在风险。当您需要检查依赖安全性、更新过时包或确保许可证兼容时,可使用"check dependencies"等触发短语来调用。

查看技能

work-execution-principles

其他

这个Claude Skill为开发者提供了一套通用的工作执行原则,涵盖任务分解、范围确定、测试策略和依赖管理。它确保开发活动中的一致质量标准,适用于代码审查、工作规划和架构决策等场景。该技能与所有编程语言和框架兼容,帮助开发者系统化地组织代码结构和定义工作边界。

查看技能

Git Commit Helper

Git Commit Helper能通过分析git diff自动生成规范的提交信息,适用于开发者编写提交消息或审查暂存区变更时。它能识别代码变更类型并自动匹配Conventional Commits规范,提供包含功能类型、作用域和描述的标准化消息。开发者只需提供git diff内容即可获得即用型的提交消息建议。

查看技能

algorithmic-art

该Skill使用p5.js创建包含种子随机性和交互参数探索的算法艺术,适用于生成艺术、流场或粒子系统等需求。它能自动生成算法哲学文档(.md)和对应的交互式艺术代码(.html/.js),确保作品原创性避免侵权。开发者可通过定义计算美学理念快速获得可交互的艺术实现方案。

查看技能