Skip to content
Back to skills

Built In

ASecurity

- **触发方式**: `/write-a-skill` 或关键词「create skill」「write a skill」「新建 skill」 - **适用场景**: 创建自定义 Skill、封装团队工作流 - **不适用场景**: 修改已有 Skill(直接编辑文件)

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 24, 2026
developmentpythongosqlci/cd

Works with

  • claude code

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add luqiang-code/claude-code-skills --skill built-in --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Built In?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Built In
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/luqiang-code-built-in-claude-code-skills/badge)](https://www.skillsdirectory.com/skills/luqiang-code-built-in-claude-code-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# write-a-skill — 创建自定义 Skill

- **触发方式**: `/write-a-skill` 或关键词「create skill」「write a skill」「新建 skill」
- **适用场景**: 创建自定义 Skill、封装团队工作流
- **不适用场景**: 修改已有 Skill(直接编辑文件)

## 功能概述

`write-a-skill` 帮助你创建新的 Claude Code Skill。它提供完整的 Skill 创建指导:结构设计、Frontmatter 配置、Prompt 编写、资源打包。

## 触发条件

以下情况会自动触发 `write-a-skill`:
- 提到「创建 Skill」「写一个 Skill」
- 想封装重复的工作流程
- 使用 `/write-a-skill` 命令

## 使用示例

### 示例 1:创建简单 Skill

```
/write-a-skill 创建一个 skill,自动为 Python 函数生成 docstring
```

Claude 会生成 Skill 文件结构:

```
my-docstring-skill/
├── SKILL.md          # Skill 入口(frontmatter + prompt)
└── resources/
    └── examples.md   # 示例文档
```

SKILL.md 范例:
```markdown
---
name: python-docstring
description: Generate Google-style docstrings for Python functions
triggers:
  - "add docstring"
  - "generate docs for this function"
---

When activated, generate a Google-style Python docstring covering:
- Args (type + description)
- Returns (type + description)
- Raises (if applicable)
- Example usage

Follow PEP 257. Keep descriptions concise.
```

### 示例 2:带工具的 Skill

```
/write-a-skill 创建一个数据库迁移 skill,能连接 PostgreSQL 并验证迁移安全性
```

### 示例 3:封装团队规范

```
/write-a-skill 创建代码审查 skill,按我们团队的 5 条代码规范检查
```

### 示例 4:多语言翻译 Skill

```
/write-a-skill 创建一个 i18n skill,将中文 JSON 翻译文件翻译成英文和日文
```

### 示例 5:CI/CD Skill

```
/write-a-skill 创建一个 skill,检查 PR 是否符合我们的 CI 配置要求
```

## Skill 文件结构

```
skill-name/
├── SKILL.md          # 必需:Skill 入口文件
└── resources/        # 可选:附加资源
    ├── examples.md
    ├── templates/
    └── docs/
```

## 注意事项

- Skill name 使用 `kebab-case` 命名
- Frontmatter 中的 `description` 要简洁明确,这是触发匹配的关键
- 不要过度设计 — 一个 Skill 做好一件事
- 测试 Skill 时注意触发词的**精确性**和**误触率**
- 资源文件用于引用,不会被全部加载到上下文

## 相关 Skills

- [update-config](./update-config.md) — 配置 Skill 的权限和 hooks
- [init](./init.md) — 初始化项目的 CLAUDE.md
- [simplify](./simplify.md) — 简化 Skill 的 Prompt 内容

Files in this skill

  • caveman.md1.8 KB
  • claude-api.md2.3 KB
  • diagnose.md2.6 KB
  • fewer-permission-prompts.md1.7 KB
  • grill-me.md2.4 KB
  • grill-with-docs.md2.4 KB
  • handoff.md2.1 KB
  • improve-codebase-architecture.md2 KB
  • init.md2.2 KB
  • keybindings-help.md1.2 KB
  • loop.md1.9 KB
  • prototype.md2.8 KB
  • review.md2.4 KB
  • security-review.md2.3 KB
  • simplify.md2.5 KB
  • tdd.md3.1 KB
  • to-issues.md2.4 KB
  • to-prd.md2.2 KB
  • triage.md2.6 KB
  • understand-anything.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.