본문으로 건너뛰기
cccskills
무료GitHub에 공개

add-command

Add a new bashdep:: lifecycle command with TDD

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Chemaclass/bashdep스타 19(GitHub 19 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Add Command Skill

Add a new public bashdep:: lifecycle command (sibling of install, uninstall, clean, doctor, list, self_update) following strict TDD.

Prerequisites

  1. Task file - create .tasks/YYYY-MM-DD-add-<command>.md
  2. Read the existing commands - bashdep is a single file; scan how bashdep::clean, bashdep::doctor, bashdep::uninstall are structured to match style
  3. Read the API doc - docs/api.md defines the public contract; the new command's signature must fit the same shape

Workflow

1. Plan

Decide with the user:

  • Command name (bashdep::<verb>)
  • Arguments (positional vs key=value like bashdep::setup)
  • Mutating? If yes, must honor BASHDEP_DRY_RUN, BASHDEP_SILENT, BASHDEP_VERBOSE, BASHDEP_FORCE
  • Lockfile interaction (read / write / both / none)
  • Exit codes (0 success, 1 validation/IO failure)
  • Logging surface (bashdep::_log / bashdep::_vlog)

Document acceptance criteria + test inventory in the task file.

2. Study Existing Patterns

Read the closest sibling command in bashdep and its tests in tests/unit/bashdep_test.sh. Reuse helpers: bashdep::_classify_dep, bashdep::_lock_get, bashdep::_lock_remove, bashdep::is_dry_run.

3. TDD Cycles

For each test in the inventory, follow RED → GREEN → REFACTOR:

  1. Happy path - pure-logic test if possible (no filesystem)
  2. Filesystem path - use $TEST_DIR + _seed_* helpers
  3. Mode coverage - one test each for dry-run, silent, verbose, force if the command is mutating
  4. Failure modes - bad arguments, missing lockfile, IO error
  5. Snapshot test for any new user-visible output

4. Integration

  • Add the public function near the bottom of bashdep (after the existing public commands, before any trailing CLI dispatch)
  • Add a CLI dispatch case if bashdep is invoked as an executable for this command
  • Run full suite: make test
  • Quality gate: make pre_commit/run

5. Documentation

  • Add the function to docs/api.md with usage, arguments, return codes, and a worked example
  • Update docs/behavior.md if the command introduces new lockfile or filesystem semantics
  • Update CHANGELOG.md ## Unreleased under ### Added
  • Update the public-API table in .claude/CLAUDE.md
  • Update README.md Quick Start if the command is part of the typical workflow

Final Checklist

  • All tests passing (happy path, failure modes, mode flags, snapshot)
  • Function namespaced bashdep:: and documented in docs/api.md
  • Mutating? Modes honored (dry-run / silent / verbose / force)
  • Quality gate passes (make pre_commit/run)
  • Bash 3.2+ compatible
  • CHANGELOG.md updated
  • Task file completed

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

commit

무료

Stage and commit changes using conventional commits format

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Chemaclass/bashdep192026년 10월 20일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

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의 스킬 모두 보기

이 스킬의 문제 신고