No slash command · from programming-tasuke
Test code conventions. Modify tests only for genuine spec or architecture changes—never trivialize, skip, or align expected values to a buggy implementation. Avoid implementation branches that depend on specific test data values. Use when writing or modifying test code, or when tests are failing.
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.
テストは仕様を表すものであり、実装の正しさを検証するためのものです。 そのためテストコードを変更する時は、 そのテストが何を保証していて、変更後にも同じ保証が維持されるかを意識してください。
実装にバグがあってテストが失敗している場合は、実装側を修正してください。 「実装の出力に合わせて期待値を書き換える」のは、 テストの意味を失わせる典型的な変更で禁止です。
特に以下のような変更は明確に禁止します。
assert(true)や1 == 1のような恒真式に置き換えてテストを通す判断に迷う場合はユーザーに確認してください。 特にテストの期待値を変更する時は、 仕様の理解が合っているかを事前に確認するのが安全です。
以下のような場合はテストの変更が妥当です。 変更する時は、なぜその変更が正しいのかをコミットメッセージや差分の説明で明確にしてください。
アーキテクチャ変更の際は、 旧テストをそのまま無理に通そうとすると、リファクタリングそのものが歪むことがあります。 新しい構造に合ったテストへ書き直す方が健全な場合は、書き直して構いません。 ただし以下を意識してください。
実装コードがテストで使用されている具体的なデータ値を特別扱いすることは禁止です。 具体的なデータ値とは、テストで使われる変数名やテーブル名などのことです。
データに依存した実装は以下のような問題を引き起こします。
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./comparison-operatorPrefer 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./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.