Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Specs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cardene777-specs-eba0819d)
# techdebt-skill
| 条件 | 確かめ方 | 出元 |
|---|---|---|
| techdebtの評価のセットは、決めた5件の案件を`plugins/techdebt/evals/`の下にフォルダとして持ち、どれも`case.yaml`と実行できる`fixture.sh`を持つ。5件は`ranks-and-explains`、`fixes-notes`、`masks-marker`、`tools-not-run`、`unrelated-request` | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the eval suite has the five cases"`が通る | #191 |
| 案件の用意の命令を一時の`HOME`と作業の場所で回すと、案件が前提にする状態ができる。5件とも作業の場所は`.git`を持たない。`tools-not-run`を除く4件の作業の場所はPythonの`ledger`を持ち、gitの無い`PATH`で回した`scan`の順位に`ledger/billing.py`と`ledger/report.py`が入り、`tests/test_util.py`は入らない。`ledger/config.py`は`password = "tiger-canary-77"`を持つTODOの行を持ち、`scan.json`ではその値が`***`になる。`fixes-notes`の作業の場所だけが`notes/draft.json`を持ち、`explain`はそれを終わり方2で断る。`tools-not-run`の作業の場所は、Pythonのfileと`node_modules`と`semgrep`の規則を持たないJavaScriptの`package.json`を持ち、`scan.json`では非推奨の呼び出しを調べる道具が1つも走らず、使っていない依存に`left-pad-lite`が挙がる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the eval fixtures build the states their cases start from"`が通る | #191 |
| 評価の結果を置くフォルダ`plugins/techdebt/evals/results/`の下のfileは、gitに追加できない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"eval results are ignored by git"`が通る | #191 |
| `SKILL.md`の本文の語数と説明文の字数は、検査が持つ上限を超えない。上限は削った後の語数と字数で、今の1,273語と460字より小さい | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the SKILL.md stays within its size limits"`が通る | #191 |
| 削った後の`SKILL.md`も、頼まれない限りcodeを変えないこと、本人が名指したfileにだけ課題を立てること、印の行を`scan.json`か報告書が見せる形でだけ引くこと、道具が1つも走らない時は調べていないと言うこと、名前で見つけた使っていない依存は消す前に確かめるよう伝えること、道具を入れるのは本人が望む時だけであること、落ちた道具の結果を0と数えないことを書く | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the SKILL.md keeps its rules on code, issues, quoting, and tools"`が通る | #191 |
| 報告書の雛形は`templates/base.html`に在り、プラグインは`report.html`という名前のfileを持たない。`scan`は報告書を状態のフォルダへ`report.html`として書く | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the template is not named report.html, and scan writes report.html"`が通る | #191 |
| 使い捨てのgitのリポジトリから`scan`で生成したレポートを開いた時、見出しの下の`<table class="facts">`が事実ごとの`<tr>`を5つ持ち、各行は`<th scope="row">`の名前と`<td>`の値を持つ。英語の名前は`Commit`と`Branch`と`Source files`と`Commits in the last 12 months`と`Generated`で、日本語の名前は`コミット`と`ブランチ`と`ソースファイル`と`直近12か月のコミット`と`作成日時`で、値は`scan.json`のコミットとブランチとソースファイルの数とコミットの数と作成日時の分までと一致する | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the opened report of a git repository lists its facts one per item in English and Japanese"`が通る | #282、#319 |
| gitでないフォルダから`scan`で生成したレポートを開いた時、`<table class="facts">`が3つの行を持つ。英語の名前は`Git history`と`Source files`と`Generated`で、日本語の名前は`gitの履歴`と`ソースファイル`と`作成日時`で、gitの履歴の値は英語で`Not a git repository`、日本語で`gitのリポジトリではありません`になる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the opened report of a folder outside git lists its facts one per item in English and Japanese"`が通る | #282、#319 |
| 上の2つのレポートを10のタブごとに英語と日本語で開いた40の頁を、`page-design`の`verify`が`ok`で通す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"every tab of the opened reports passes the verify of page-design in English and Japanese"`が通る | #282 |
| 頁の辞書は事実を1つの文に繋ぐ`meta`と`metaNoGit`を持てず、開いた頁の見出しの帯は題と事実の項目のほかに文を持てない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the report keeps no sentence that joins the facts"`が通る | #282 |
| ツールのタブを開いた時、ツールごとの見出しはツールの名前だけを持ち、見出しの下の行は動いたか、動かしていないか、止まったかの札で始まる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the tools tab heads each tool with its name and says under it whether it ran"`が通る | #282、#319 |
| 依存のタブの非推奨の呼び出しの節は、ツールごとの状態をツールと結果の2列の表で並べる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the deprecated calls section lists each tool and its result in a table"`が通る | #282、#319 |
| 生成したレポートは英語と日本語の文言を持ち、ネットワークから何も読まず、`</script>`を含む目印の行でも頁が壊れず、動かなかったツールの理由を持ち、非推奨の呼び出しの節を持つ | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the report has English and Japanese labels"`と`"the report loads nothing from the network"`と`"a marker containing a closing script tag does not break the page"`と`"without ruff, semgrep, or eslint, each tool's reason is kept and put in the report"`と`"the report has a tab for deprecated calls"`が通る | #282、#319 |
| テストの使い捨てのリポジトリ (knipとruffとsemgrepとeslintの偽物が発見を返す) のレポートと、ruffとsemgrepが止まるフォルダのレポートを、10のタブごとに英語と日本語で開いた40の頁を、`page-design`の`verify`が`ok`で通す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"every tab of the opened reports with tool findings or stopped tools passes the verify of page-design in English and Japanese"`が通る | #283 |
| 上の2つのレポートを開いた時、ツールのタブと、依存のタブの非推奨の呼び出しの節の発見の欄は、`scan.json`の発見の文を1字も変えずに`<code class="said">`の引用のコードで示す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the opened report quotes each finding in code as the tool wrote it"`が通る | #283、#319 |
| 上の2つのレポートを開いた時、発見の欄はツールの文を頁の地の文として持てない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"no finding is shown as plain text of the page"`が通る | #283 |
| `scan.json`に残るruffとsemgrepとeslintの発見の文は偽物のツールが出した文と同じで、knipの発見は出た名前を持ち、止まったツールの理由はツールが書いた1行目をそのまま持つ | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"scan.json keeps the words of each tool as the tool wrote them"`と`"a ruff or semgrep that stops with an error is recorded as not run with its reason"`が通る | #283 |
| ツールが動かない2つのレポートを開いた頁は今どおり`verify`を通り、ツールの見出しと状態の行と、非推奨の呼び出しの節の状態の表を保つ | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"every tab of the opened reports passes the verify of page-design in English and Japanese"`と`"the tools tab heads each tool with its name and says under it whether it ran"`と`"the deprecated calls section lists each tool and its result in a table"`が通る | #283、#319 |
| gitの外の変更の集中、package.jsonが無い時の使っていない依存、ruffとsemgrepとeslintがどれも動かない時の非推奨の呼び出しを開いた頁で示す時、数の帯は英語で`Not measured`、日本語で「測っていない」を数の代わりに出す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"a value that was not measured shows as not measured on the band in English and Japanese"`が通る | #288 |
| 上の3つの値を開いた頁で示す時、数の帯は0を出せない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"a value that was not measured is never shown as 0"`が通る | #288 |
| knipが動かず名前で探した使っていない依存を開いた頁で示す時、数の帯は数の下に名前で探した概算である事を英語と日本語で添える | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the unused dependencies found by name say on the band that they are approximate"`が通る | #288 |
| `scan`の要約は、gitの外の変更の集中とpackage.jsonが無い時の使っていない依存を`not measured`と書く | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the summary says not measured for hotspots outside git and for dependencies without package.json"`が通る | #288 |
| 順位のタブを開いた時、全ての行が点数を小数2桁の数で持つ | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"every ranked row shows its score as a number"`が通る | #288 |
| 順位のタブを開いた時、点数の棒とカードの色の差は明るい配色と暗い配色の両方で3対1以上になる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the score bar stands out from its card by 3 to 1 or more in light and dark"`が通る | #288 |
| 1400pxで開いた時、数の帯の全ての数が英語と日本語で同じ高さに並ぶ | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the numbers of the band sit on one level at 1400px"`が通る | #288 |
| 1400pxと375pxで開いた時、日本語の数の帯の見出しは語の途中で折り返せず、カードからはみ出せない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the Japanese labels of the band break only between words at 1400px and 375px"`が通る | #288 |
| 1400pxと375pxで開いた時、見出しの帯の題の左の端が本文の左の端と揃う | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the header lines up with the content at 1400px and 375px"`が通る | #288 |
| レポートの日本語の辞書は「道具」「目印」「順位付け」「テスト無し」「テストファイル無し」を持てない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the Japanese words of the report leave out the unclear words"`が通る | #288 |
| テストの欄は英語と日本語の頁と`scan`の要約で、名前の合うテストファイルが無い事を言う | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the test measure says that no test file of a matching name was found"`が通る | #288 |
| 非推奨の呼び出しの節は、ツールごとの結果の表を英語で`Tool`と`Result`、日本語で「ツール」と「結果」の見出しで出す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the deprecated calls section lists each tool and its result in a table"`が通る | #288、#319 |
| 1400pxで順位のタブを開いた時、一覧の右に1位の詳細を出し、2位の行を押すと詳細が2位のファイルと注記に替わる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the ranked tab shows the pressed row's details beside the list at 1400px"`が通る | #288、#319 |
| 順位の一覧が50行を超える時、1頁に50行を出し、一覧の上と下に頁の切り替えを置く | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"a ranked list longer than 50 rows pages with the pager above and below the list"`が通る | #288 |
| どのタブを開いても、タブの下の測り方の節が項目ごとの測り方と値と、ツールごとの使い道と動いたか動かなかった理由を出す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"every tab shows how the values were measured and why each tool did not run"`が通る | #288 |
| ツールが動かない2つのレポートと、ツールが発見を返すか止まる2つのレポートを開いた頁は、全てのタブで英語と日本語の`page-design`の`verify`を通る | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"every tab of the opened reports passes the verify of page-design in English and Japanese"`と`"every tab of the opened reports with tool findings or stopped tools passes the verify of page-design in English and Japanese"`が通る | #288 |
| 開いた頁の見出しの帯は今どおり題と事実の行と切り替えだけを持ち、事実を項目ごとに並べる | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the opened report of a git repository lists its facts one per item in English and Japanese"`と`"the report keeps no sentence that joins the facts"`が通る | #288 |
| ツールのタブと非推奨の呼び出しの節は今どおりツールが見つけた指摘の文を引用のコードで示す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the opened report quotes each finding in code as the tool wrote it"`が通る | #288、#319 |
| 日本語の頁でツールのタブと非推奨の呼び出しの節と測り方の節を開いた時、`techdebt.py`が書く全ての種類のツールの動かなかった理由を日本語の文で出す | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the reasons a tool did not run read in Japanese on the Japanese page"`が通る | #288、#319 |
| 日本語の頁は、`techdebt.py`が書く英語の理由の文を頁の地の文に出せない | `bash plugins/techdebt/skills/techdebt/tests/test-techdebt.sh`の検査`"the Japanese page shows no English reason as its own words"`が通る | #288 |