Finish
Complete task with mandatory quality gates.
terminal Command: /ak_cm_finish
Usage
/ak_cm_finish
/ak_cm_finish bead-001
Quality Gates (Must ALL Pass)
- check_circle Type check -
npm run typecheck- No type errors - check_circle Tests -
npm run test- All tests pass - check_circle Lint -
npm run lint- No linting errors - check_circle Build -
npm run build- Build succeeds
Workflow
- Run all gates - Execute each quality gate
- Report issues - If any fail, report and stop
- Update status - If all pass, mark task as completed
- Create summary - Generate summary of changes
- Suggest commit message - Conventional commit format
Example - Success
/ak_cm_finish bead-001
# AIKit runs:
Running quality gates...
✓ typecheck: PASSED (0 errors)
✓ test: PASSED (42/42 tests passing)
✓ lint: PASSED (0 errors)
✓ build: PASSED
All quality gates passed!
Summary:
- Files modified: src/auth.ts, src/login.tsx
- Tests added: tests/auth.test.ts
- Functions added: login(), logout(), validateToken()
Suggested commit:
feat: add JWT authentication with login/logout
Use /ak_cm_commit to create this commit.
Example - Failure
/ak_cm_finish bead-001
# AIKit runs:
Running quality gates...
✗ typecheck: FAILED (3 errors)
src/auth.ts:23:5 - error TS2322: Type 'string' is not assignable to type 'boolean'
src/login.tsx:15:2 - error TS2345: Argument of type 'string' is not assignable...
src/utils/token.ts:8:3 - error TS2580: Cannot find name 'token'
Quality gates failed. Please fix errors before completing task.
Best Practices
- Fix errors locally - Don't rely on AI to auto-fix
- Run gates manually - Test before using
/ak_cm_finish - Review changes - Check all changes are correct
- Update tests - Ensure tests cover new code
Anti-Patterns
- cancel Skipping gates manually
- cancel Fixing errors after marking complete
- cancel Not reviewing generated commit message
- cancel Committing without all gates passing
Related Commands
- /ak_cm_implement - Implement work
- /ak_cm_commit - Create commit
- Anti-Hallucination - Learn about quality gates