No slash command · from programming-tasuke
Prefer left-to-right ascending comparisons with less-than operators over greater-than operators, so values read in number-line order. Use when writing or reviewing comparison or range-check expressions.
Ships in programming-tasuke. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
比較を書く時は、
x > yの形式よりx < yの形式を優先してください。
<や<=を使い、
左から右に向かって値が大きくなるように書きます。
頭の中の数直線上に数字を左から右へ並べて考えるため、 左の方が大きいと違和感を覚えるからです。
特に範囲チェックでは、 下限と上限を数直線の並び順に書けるため読みやすくなります。
// 好ましい
if (min <= x && x <= max)
// 避ける
if (x >= min && x <= max)
このルールにそこまで執着はしません。
特に理由がなければ<や<=を好むという程度の優先度です。
その時書いている言語で広く普及しているリンターが、 変数を右に書くのをヨーダ記法として拒否する場合などは、 わざわざ逆らわずリンターに従ってください。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ncaq/konoka --plugin programming-tasuke9 skills in this plugin
/commandGuidelines for shell commands. Avoid `cat`, `find`, `grep`, `head`, and `tail`; prohibit `rm` (use `trash` instead). Use when invoking shell commands via Bash./githubHow to access GitHub. Avoid direct URL fetches; prefer GitHub MCP tools or the `gh` CLI subcommands. Use when fetching GitHub information or operating on issues, pull requests, or workflows./naming-ruleGeneral naming rules across programming languages. Avoid meaningless words like `common` or `util`, and prefer singular base forms. Use when creating or reviewing names of files, directories, modules, functions, or variables.