Add Assertion Skill
SkillDev toolsAdd new assertion function with comprehensive tests following TDD
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Add Assertion Skill skill
What this skill tells your AI
The instructions your AI receives, as published by typeddevs/bashunit in .claude/skills/add-assertion/SKILL.md and read by ahel’s review.
Add a new assertion function to bashunit following strict TDD methodology.
Prerequisites
- Task file must exist — create
.tasks/YYYY-MM-DD-add-assertion-name.md - Study patterns — read
tests/unit/assert_test.shandsrc/assertions.sh
Workflow
1. Plan
Ask user: assertion name, parameters, success/failure behavior, error messages.
Document acceptance criteria and test inventory in task file.
2. Study Existing Patterns
Read src/assertions.sh and tests/unit/assert_test.sh to understand:
- Parameter validation, assertion logic, error message format
- Return codes (0 = success, 1 = failure)
- How tests verify both success and failure cases
3. TDD Cycles
For each test in inventory, follow RED -> GREEN -> REFACTOR:
- Basic success case — assertion passes with valid input
- Failure case — assertion fails correctly: capture its output and compare it with
bashunit::console_results::print_failed_test(there is noassert_fails) - Edge cases — empty input, special characters, nested structures, malformed data
4. Integration
- Source new file in
src/bashunit.shif created export -fthe assertion function- Run full test suite:
./bashunit tests/ - Quality checks:
make sa && make lint
5. Documentation
- Add function header with Arguments/Returns/Example
- Update CHANGELOG.md
- Update user-facing docs if applicable
Final Checklist
- All tests passing (success, failure, edge cases)
- Function documented and exported
- Quality gate passes
- CHANGELOG updated
- Task file completed
Signals
- GitHub stars
- 425
- Forks
- 57
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
add-assertion- Source
- github.com/typeddevs/bashunit