gpsaggese/helpers / .claude/skills/coding.fix_inline
coding.fix_inline
VerifiedFind and remove the functions that are too thin
-
Given one or more files
<FILES> -
Find functions that are too "thin": they call another function directly with little 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, then inline the called function at every invocation
-
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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |