AgentSkillsCN

feature-dev

功能开发工作流程:涵盖实现、验证、提交前检查、重构等环节。引导开发者完成从设计到实现、再到验证、审核与提交的完整流程。

SKILL.md
--- frontmatter
name: feature-dev
description: Feature development workflow. Covers implementation, verification, pre-commit checks, refactoring. Guides through design -> implement -> verify -> review -> commit flow.
allowed-tools: Read, Grep, Glob, Edit, Write, Bash

Feature Development Skill

Trigger

  • Keywords: develop feature, implement, write code, verify, precommit, commit, refactor, simplify

When NOT to Use

  • Just want to understand code (use Explore)
  • Review code (use codex-code-review)
  • Review documents (use doc-review)
  • Test-related (use test-review)

Workflow

code
Requirements -> Design -> Implement -> Test -> Review -> Commit
                │          │            │        │          │
                ▼          ▼            ▼        ▼          ▼
           /codex-     /codex-      /verify  /codex-    /precommit
           architect   implement             review-fast

Commands

PhaseCommandDescription
Design/codex-architectGet architecture advice
Implement/codex-implementCodex writes code
Verify/verifyRun tests to verify
Review/codex-review-fastCode review
Commit/precommitlint + typecheck + test
Refactor/simplifyFinal refactoring

Verification

  • All tests pass
  • lint + typecheck with no errors
  • Code review passed (Gate ✅)

Testing Requirements

Change TypeTest Requirements
New Service/ProviderMust have corresponding unit test
Modify existing logicEnsure existing tests pass + new logic tested
Bug fixMust add regression test

Test File Mapping

code
src/service/xxx.service.ts       -> test/unit/service/xxx.service.test.ts
src/provider/evm/parser.ts       -> test/unit/provider/evm/parser.test.ts
src/controller/xxx.controller.ts -> test/integration/controller/xxx.test.ts

Review Loop

MUST re-review after fix until PASS

code
Review -> Issues found -> Fix -> Re-review -> ... -> ✅ Pass -> Done

Examples

code
Input: Implement a fee calculation method
Action: /codex-architect -> /codex-implement -> /verify -> /codex-review-fast -> /precommit
code
Input: This code needs refactoring
Action: /simplify -> streamline code, eliminate duplication -> /codex-review-fast