清理冗余琐碎函数
coding.fix_inline
查找并移除过于单薄(逻辑过少)的函数
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Find and remove the functions that are too thin
02 资源文件 1
- 参考文档references/tactical-checklist.md611 B
03 SKILL.md 正文
-
I will pass you one or more files
<FILES> -
Look for functions that are too "thin", i.e., that call another function directly without doing much else
- E.g.,
python def cell1_plot_dag( G: nx.DiGraph, title: str, *, node_colors: Optional[Mapping[str, Any]] = None, edge_colors: Optional[Mapping[Tuple[str, str], Any]] = None, ax: Optional[maxes.Axes] = None, figsize: Optional[Tuple[int, int]] = None, pos: Optional[Dict] = None, dpi: int = hgraphviz.FIG_DPI, ) -> maxes.Axes: return hgraphviz.plot_causal_dag( G, title, mode="graphviz", node_colors=node_colors, edge_colors=edge_colors, ax=ax, figsize=figsize, dpi=dpi, )
- E.g.,
-
Ask the user if it's ok to remove them
-
Remove the functions and then look for all the invocations of the removed function and inline the called function
-
Read and apply to
<FILES>the rules from.claude/skills/coding.rules.md
Verification
- [ ] Confirm the user approved removal before any thin function is deleted
- [ ] Confirm every call site of a removed function is inlined correctly
- [ ] Confirm the code logic and behavior are unchanged
04 同仓库更多 Skills
Docker 文件同步与模板对齐
tutorial_in_60_mins.propagate_docker_changes
同步教程和课程项目的 Docker 文件,使其与 project_template 保持一致。
Markdown 合并至 Jupyter Notebook
tutorial_in_60_mins.merge_markdown
将 Markdown 文件的内容合并到 Jupyter Notebook 中。
60 分钟教程格式规范化
tutorial_in_60_mins.format
格式化目录,使其遵循「Learn X in 60 Minutes」(60 分钟学会 X)教程约定。
60 分钟教程目录创建
tutorial_in_60_mins.create
按照「Learn X in 60 Minutes」(60 分钟学会 X)约定创建教程目录。
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
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