Skip to content
Agentmart
Submit a tool

typescript-best-practice

TypeScript best practices and patterns for writing clean, type-safe, and maintainable code.

Skill by xiaoland

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xiaoland-typescript-best-practice

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

TypeScript best practices and patterns for writing clean, type-safe, and maintainable code. Use when implementing TypeScript code, refactoring for better type safety, or teaching TypeScript patterns.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/typescript-best-practice

What's inside

Skill name
typescript-best-practice
Description
TypeScript best practices and patterns for writing clean, type-safe, and maintainable code. Use when implementing TypeScript code, refactoring for better type safety, or teaching TypeScript patterns.
License
Apache-2.0
Compatibility
TypeScript 4.5+
Metadata
author: xiaoland · version: 1.0 · related-skills: code-smell-checker, dev-vue-component
Instructions
25 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • as-const-pattern.ts · assets/

SKILL.md (first lines)

---
name: typescript-best-practice
description: TypeScript best practices and patterns for writing clean, type-safe, and maintainable code. Use when implementing TypeScript code, refactoring for better type safety, or teaching TypeScript patterns.
license: Apache-2.0
compatibility: TypeScript 4.5+
metadata:
  author: xiaoland
  version: "1.0"
  related-skills: "code-smell-checker, dev-vue-component"
---

# TypeScript Best Practices

## When to use this skill

Use this skill when you need to:

- Implement TypeScript code following best practices
- Refactor JavaScript to TypeScript
- Improve type safety and code maintainability
- Choose between different TypeScript patterns
- Teach or explain TypeScript best practices
- Review code for TypeScript anti-patterns

## Instructions

1. **Identify the pattern**: Which best practice applies to your situation?
2. **Apply the pattern**: Follow the code examples provided
3. **Verify types**: Ensure TypeScript infers the correct types
4. **Test usage**: Confirm autocomplete and type checking work as expected

## Best Practices

- Use `as const` Instead of Enums: read at [as-const-pattern](assets/as-const-pattern.ts)

From xiaoland/agents, Apache-2.0.

More from xiaoland/agents

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jan 7, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from xiaoland

Cite this page

typescript-best-practice skill. Agent Mart. https://agentmart.dev/skills/xiaoland-typescript-best-practice (last updated 2026-10-24)