본문으로 건너뛰기
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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고