AgentSkillsCN

feature-developer

在Node.js API仓库中新增或修改应用功能。在实施端点变更、更新应用行为、编写单元测试,以及确保测试覆盖率稳定在90%以上时使用。

SKILL.md
--- frontmatter
name: feature-developer
description: Add or modify application features in this Node.js API repository. Use when implementing endpoint changes, updating app behavior, writing unit tests, and ensuring coverage remains at or above 90%.
license: MIT

Feature Developer

When to Use This Skill

Use this skill when the task requires feature implementation or behavior changes in application code.

Typical triggers:

  • Add or modify API endpoints.
  • Update request/response behavior.
  • Add unit tests for new or changed logic.
  • Ensure coverage gates continue to pass.

Execution Workflow

  1. Implement minimal, focused changes to app code.
  2. Add or update tests for happy path, edge cases, and failure/unknown-route paths where relevant.
  3. Run test and coverage checks.
  4. Keep API responses explicit and stable unless a breaking change is required.
  5. Update root README.md when feature behavior changes.

Test and Coverage Standards

  • Tests should be deterministic, isolated, and behavior-focused.
  • Use clear test names and Arrange-Act-Assert structure.
  • Preserve global thresholds for statements, branches, functions, and lines.
  • Target and maintain >= 90% global coverage.

See feature validation checklist before completion.

Quick Commands

  • Install dependencies: npm install
  • Run unit tests with coverage: npm test