Agent skill
task-completion-standards
Use when completing ESLint rule tasks to verify all required files exist and quality standards are met.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/task-completion-standards
SKILL.md
Task Completion Standards for ESLint Rules
Definition of Done
For New Rule Implementations
Files Checklist
- Rule file exists:
src/rules/<rule-name>.ts - Test file exists:
src/tests/<rule-name>.test.ts - Documentation exists:
docs/rules/<rule-name>.md -
src/index.tsupdated in THREE places:- Import statement at top
- Entry in
configs.recommended.rules - Entry in
rulesobject
-
README.mdupdated with rule listing
Quality Checklist
- All tests pass:
npm test - Linting passes:
npm run lint:fix && npm run lint:js - Build succeeds:
npm run build - Minimum 20 tests covering:
- 10+ valid cases (code that should NOT trigger)
- 10+ invalid cases (code that SHOULD trigger)
- Edge cases mentioned in issue specification
- Unusual patterns and nested structures
- Auto-fix works correctly (if rule has
fixable: 'code') - Documentation includes examples of correct and incorrect code
For Bug Fixes
- Bug is reproducible via test case
- Root cause identified
- Fix implemented
- Regression test(s) added
- All existing tests still pass
- Linting passes:
npm run lint:fix && npm run lint:js - Build succeeds:
npm run build - No new bugs introduced
Common Reasons for Rejection
- Missing files - All 5 file locations must be created/updated
- Insufficient tests - Less than 20 tests is not comprehensive
- src/index.ts not updated in all 3 places - Very common mistake
- Tests don't cover edge cases - Must include unusual patterns
- Build fails - TypeScript errors must be resolved
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?