---
title: "Customize Claude Code with mods in TypeScript | Claude by Anthropic"
url: "https://xlrocket.men/customize-claude-code-with-mods-in-typescript-or-claude-by-anthropic"
markdown_url: "https://xlrocket.men/customize-claude-code-with-mods-in-typescript-or-claude-by-anthropic.md"
format: "link"
published: "2026-10-02T12:15:20.000Z"
link_url: "https://claude.com/blog/claude-code-mods"
site: "火箭君 MEN"
---

# [Customize Claude Code with mods in TypeScript | Claude by Anthropic](https://claude.com/blog/claude-code-mods)

译：用 TypeScript 定制 Claude Code 的 mods

- mods 让 Claude Code 可扩展，但本机同权意味着代码来源就是权限边界。
- 默认开启时先只装可信源，别把便利换成任意命令执行。
- local-first 的关键是可审计、可停用：迁不迁与交不交数据都要先看清。
