AgentSkillsCN

fullstack-slice

适用于需要在.NET后端仓库与React前端仓库中同步调整的功能或Bug。尽量保持变更最小化,在两个仓库中均运行测试,并详细记录接口契约。

SKILL.md
--- frontmatter
name: fullstack-slice
description: Use for features/bugs that require coordinated changes in BOTH the .NET backend repo and React frontend repo. Keep changes minimal, run tests in both repos, and document contracts.

Rules:

  • Start by locating the API contract boundary (DTOs, endpoints, OpenAPI/Swagger, client code).
  • Make backend change first, keeping backward compatibility if feasible.
  • Update frontend to match contract changes.
  • If contract changed: update documentation and any generated clients/types.

Verification:

  • Backend: run repo standard test command (default: dotnet test).
  • Frontend: run repo standard commands (default: npm test and npm run build or equivalent).
  • Provide a short manual verification checklist.

Finish with:

  • Summary of changes
  • Commands run + results
  • Any risks / follow-ups