AgentSkillsCN

cramer-backend-entities-services

当用户在Cramer项目中请求“添加端点”、“更改服务”、“更新实体”、“重构后端逻辑”或“调整API行为”时,可选用此技能。

SKILL.md
--- frontmatter
name: cramer-backend-entities-services
description: This skill should be used when the user asks to "add an endpoint", "change a service", "update an entity", "refactor backend logic", or "adjust API behavior" in the Cramer project.
allowed-tools:
  - Read
  - Grep
  - Glob
  - Edit

Cramer Backend Entities and Services

Purpose

Align backend changes with documented entities, services, and API behavior.

Workflow

  1. Read docs first:
    • docs/library/backend/ENTITIES.md
    • docs/library/backend/SERVICES.md
    • docs/library/backend/API_REFERENCE.md
  2. Locate relevant code in backend/src/main/java/com/cramer/:
    • controller/, service/, repository/, entity/, dto/, mapper/
  3. Propose changes with a clear rationale.
  4. Edit code and update docs where needed.
  5. Summarize updates and any follow-up tasks.

Guardrails

  • Keep docs consistent with implementation.
  • Avoid speculative changes without a concrete user request.