Agent skill
test-workflow
Run BitBot's iterative test workflow (implement → test → fix → commit → push). Use PROACTIVELY during development to ensure quality before committing.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/test-workflow
SKILL.md
Running BitBot test workflow...
This workflow supports the full development cycle:
- Implement - Write/modify code
- Test - Fix line endings, check syntax, run tests
- Fix - Address failures iteratively
- Commit - Once all tests pass
- Push - Share your work
Usage
Single file check (basic mode):
.claude/skills/test-workflow/scripts/test-workflow.sh <file>
Implementation loop (use this in practice):
- Make changes to implementation file
- Run workflow on implementation + test file
- If tests fail, fix issues and repeat from step 2
- Once tests pass, commit and push
What It Does
Step 1: Fix Line Endings & Check Syntax
- Converts CRLF → LF
- Validates bash syntax
- Reports any syntax errors
Step 2: Run Tests (if test file)
- Executes with 60-second timeout
- Prevents hanging tests
- Shows pass/fail results
Step 3: Report Status
- Shows success/failure
- Next steps if errors found
When to Use Proactively
During iterative development (recommended):
# 1. Implement feature
vim core/util/feature.sh
# 2. Test implementation
.claude/skills/test-workflow/scripts/test-workflow.sh core/util/feature.sh
# 3. Create/update tests
vim dev/tests/test-feature.sh
# 4. Run test suite
.claude/skills/test-workflow/scripts/test-workflow.sh dev/tests/test-feature.sh
# 5. If tests fail, fix and repeat steps 2-4
# 6. Once all tests pass, commit
git add core/util/feature.sh dev/tests/test-feature.sh
git commit -m "Add feature with tests (all passing)"
git push
Quick single-file checks:
# After creating/modifying shell script
.claude/skills/test-workflow/scripts/test-workflow.sh core/util/new-script.sh
# After updating test file
.claude/skills/test-workflow/scripts/test-workflow.sh dev/tests/test-feature.sh
See Also
sparc/0-research/TESTING_PROCESS.md- Full testing guidelines.claude/skills/fix-line-endings-check-bash/- Individual fix+check.claude/skills/run-with-timeout/- Timeout wrapper
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?