本文へ移動
cccskills
無料GitHub で公開

doctor-check

Coverage gap analysis for the bashdep public API plus a bashdep::doctor audit

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdepスター 19(GitHub 19 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Doctor Check

Two-part health check:

  1. Test coverage - every public bashdep::* command must have tests for its happy path, mode flags, and failure modes.
  2. Runtime invariants - bashdep::doctor itself reports lockfile vs filesystem inconsistencies; verify it covers every relevant directory.

Workflow

1. Enumerate the Public API

grep -nE '^function bashdep::[a-z]' bashdep | grep -v '::_'

That list is the source of truth for what needs coverage.

2. Map Functions to Tests

For each public function:

grep -nE "bashdep::<name>\b" tests/unit/bashdep_test.sh

For each, check coverage of:

  • Happy path
  • BASHDEP_DRY_RUN=true
  • BASHDEP_SILENT=true
  • BASHDEP_VERBOSE=true
  • BASHDEP_FORCE=true (when relevant)
  • At least one failure mode (bad arg, missing file, IO error)

3. Categorize Coverage

  • Well tested - happy path + mode flags + ≥1 failure mode
  • Partially tested - happy path only
  • Not tested - no test references the function

4. Identify Critical Gaps

Priority 1: Any public bashdep::* function with zero tests Priority 2: Mutating commands missing dry-run coverage (silently breaking the contract is the easiest regression to ship) Priority 3: Failure paths (return 1) with no test Priority 4: Snapshot drift - re-run the suite; if any snapshot mismatch appears, decide drift vs regression

5. Run the Runtime Doctor

In the demo workspace (example/) or a scratch dir:

( cd example && bash demo.sh )
# Then, from the same dir:
source bashdep && bashdep::doctor

Confirm bashdep::doctor:

  • Reports OK when lockfile and dir match
  • Reports missing file when the lockfile entry has no on-disk file
  • Reports orphan file when a file in the dir has no lockfile entry
  • Honors BASHDEP_SILENT (errors still on stderr)

6. Generate Report

Output a markdown report with:

  • Summary (total public functions, tested, % with mode coverage)
  • Coverage table by function (✅ happy / 🟡 partial / ❌ none)
  • Critical gaps with line references in bashdep
  • Recommended new tests with proposed function names

Coverage Goals

  • 100% of public bashdep::* functions have ≥1 test
  • 100% of mutating commands have dry-run coverage
  • ≥1 failure-mode test per public function
  • bashdep::doctor exercised in the test suite for: missing file, orphan file, OK case

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Add a new bashdep:: lifecycle command with TDD

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdep192026年10月20日 更新

commit

無料

Stage and commit changes using conventional commits format

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdep192026年10月20日 更新

fix-test

無料

Debug and fix failing bashdep tests systematically

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdep192026年10月20日 更新

gh-issue

無料

Fetch a GitHub issue, create a branch, plan and implement with TDD, then open a PR

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdep192026年10月20日 更新

pr

無料

Push branch and create a GitHub PR following the bashdep PR template

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdep192026年10月20日 更新

Run a comprehensive pre-release validation checklist for bashdep

日本語の概要は準備中です。原文の説明を表示しています。

Chemaclass/bashdep192026年10月20日 更新

Chemaclass のスキルをすべて見る

このスキルの問題を報告する