Dev Workflow
The Dev Workflow skill provides context injection for development workflow tasks, including atomic commits with task traceability, conventional commit messages, and systematic release processes.Overview
| Property | Value |
|---|---|
| Skill ID | ct-dev-workflow |
| Tier | 2 (Execution) |
| Protocol | contribution |
| Tags | workflow, git, release |
Core Principle
CRITICAL: NO code changes or commits without a tracked task.Every commit MUST be traceable to a CLEO task. This ensures:
- Work is planned and tracked
- Changes are reviewable and reversible
- Progress is measurable
- Context is preserved
Immutable Constraints
| ID | Rule | Enforcement |
|---|---|---|
| WF-001 | Task required | NO commits without CLEO task reference |
| WF-002 | Branch discipline | NO commits to main/master |
| WF-003 | Atomic commits | ONE logical change per commit |
| WF-004 | Conventional format | <type>(<scope>): <description> |
| WF-005 | Tests before push | Relevant tests MUST pass |
Commit Message Format
Types
| Type | Description | Version Bump |
|---|---|---|
feat | New feature | MINOR |
fix | Bug fix | PATCH |
docs | Documentation | None |
refactor | Code restructure | PATCH |
test | Test additions | None |
chore | Maintenance | None |
perf | Performance | PATCH |
security | Security fix | PATCH |
Gate System
G0: Pre-Flight Check
G1: Classify Change
Determine type based on change nature.G2: Testing (Smart Scope)
| Change Type | Test Scope | Command |
|---|---|---|
feat | Related module tests | bats tests/unit/feature.bats |
fix | Regression + affected | bats tests/unit/affected.bats |
docs | None | Skip |
refactor | Affected modules | bats tests/unit/module*.bats |
test | New tests only | bats tests/unit/new.bats |
chore | Syntax check | bash -n scripts/*.sh |
G3: Commit
G4: Push (Triggers CI)
G5: Version Bump (Release Only)
G6: Tag & Release
Complete Workflow Example
Anti-Patterns
| Pattern | Problem | Solution |
|---|---|---|
| No task reference | Untracked work | Create/find task first |
| Committing to main | Bypass review | Use feature branches |
| Running full tests always | Slow iteration | Use smart test scope |
| Giant commits | Hard to review/revert | Atomic commits |
Related Skills
- Task Executor - Implementation work
- Validator - Pre-commit validation
- Test Writer - Create tests
