AGENT SKILL
规则条目添加
rules.add
向规则集中添加一条规则
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Add a rule to the set of rules
03 SKILL.md 正文
Goal
- The user passes:
- The description of a rule / behavior
<CONTENT>to be added to a rule file - (Optional) The target rule file to update
<TARGET_RULE_FILE>in the format.claude/skills/*.rules.md
- The description of a rule / behavior
Workflow
Read Skill Rules
- Read
.claude/skills/skill.rules.mdabout conventions and rules to write skills
Determine Target Rule File
- If the user didn't specify
<TARGET_RULE_FILE>, decide which of the files<TARGET_RULE_FILE>the new rule needs to be added to, based on the content of<CONTENT> - The available rules are:
> ls -1 .claude/skills/*.rules.md - If
<CONTENT>fits more than one rule file equally well, or fits none of them clearly, do not guess: ask the user which<TARGET_RULE_FILE>to use, listing the candidate files
Read Target Rule File
- Read the target rules file
<TARGET_RULE_FILE>to understand its structure and existing rules
Draft the New Rule
- Draft the proposed rule
<CONTENT>to be added, following the conventions in:.claude/skills/markdown.rules.md.claude/skills/text.rules.md
Add the New Rule
- Find the proper H1 header that is related to
<CONTENT>- See
.claude/skills/skill.rules.md## Keep Rules Organized in the Rule File
- See
- Add the rule
<CONTENT>to<TARGET_RULE_FILE>, following the conventions in.claude/skills/skill.rules.md - Make sure there is no overlap with other rules
Verification
- [ ]
<CONTENT>is added under the correct H1 header in<TARGET_RULE_FILE> - [ ] No existing rule in
<TARGET_RULE_FILE>already covers<CONTENT> - [ ]
<TARGET_RULE_FILE>was confirmed with the user instead of guessed, if it was ambiguous
04 同仓库更多 Skills
Docker 文件同步与模板对齐
tutorial_in_60_mins.propagate_docker_changes
同步教程和课程项目的 Docker 文件,使其与 project_template 保持一致。
★ 155
Markdown 合并至 Jupyter Notebook
tutorial_in_60_mins.merge_markdown
将 Markdown 文件的内容合并到 Jupyter Notebook 中。
★ 155
60 分钟教程格式规范化
tutorial_in_60_mins.format
格式化目录,使其遵循「Learn X in 60 Minutes」(60 分钟学会 X)教程约定。
★ 155
60 分钟教程目录创建
tutorial_in_60_mins.create
按照「Learn X in 60 Minutes」(60 分钟学会 X)约定创建教程目录。
★ 155
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
★ 155
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage
★ 155