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

add-assertion

Add new assertion function with comprehensive tests following TDD

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md1.7 KB

SKILL.md(원문)

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

Add an assertion

Repository paths are relative to the repository root. Establish the assertion name, arguments, success and failure behavior, and messages from the request and sibling assertions; ask only for missing decisions. Record acceptance criteria and test inventory in .tasks/YYYY-MM-DD-add-assertion-name.md for nontrivial work.

  1. Study the matching implementation under src/assert/ and tests under tests/unit/assert/, including parameter validation, return codes, and message checks. src/assert/index.sh lists assertion modules.
  2. Use focused RED, minimal GREEN, then REFACTOR for basic success, expected failure, and relevant edge cases (empty values, special characters, malformed input). Use assert_assertion_passes, assert_assertion_fails, or assert_assertion_fails_with from src/assert/assertions.sh where appropriate. Match existing output comparisons when needed; there is no assert_fails.
  3. If adding a module, source it from src/assert/index.sh. Expose the public function through the existing module-loading pattern. Preserve Bash 3.0 parse compatibility and the existing public contract.
  4. Document the public assertion's arguments, returns, and example in user-facing docs, update CHANGELOG, and complete the task file when used. Add code comments only for a constraint the code cannot express.
  5. The main session runs the canonical quality gate once after the entire change set; delegates run only assigned focused checks. Verify success, failure, edge cases, module loading, and documentation before handing off.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Analyze test coverage and identify untested code paths

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

TypedDevs/bashunit4362026년 10월 18일 업데이트

commit

무료

Stage and commit changes using conventional commits format

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

TypedDevs/bashunit4362026년 10월 18일 업데이트

fix-test

무료

Debug and fix failing tests systematically

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

TypedDevs/bashunit4362026년 10월 18일 업데이트

Measure process costs and fork budgets when changing startup, per-file, per-test, parallel workers, reporting, or coverage paths; use for fork census and performance comparisons.

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

TypedDevs/bashunit4362026년 10월 18일 업데이트

gh-issue

무료

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

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

TypedDevs/bashunit4362026년 10월 18일 업데이트

gh-issues

무료

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

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

TypedDevs/bashunit4362026년 10월 18일 업데이트

TypedDevs의 스킬 모두 보기

이 스킬의 문제 신고