Safely insert new methods into existing API + domain service files
58
73%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Use this skill only when the task is updating service files:
If the task is creating a brand-new service pair, use the creation skill.
src/api/services/CATEGORY/SERVICE_NAME.api.service.ts
src/api/services/CATEGORY/SERVICE_NAME.service.tsCATEGORYSERVICE_NAME (kebab-case)HTTP_METHOD (get|post|put|patch|delete)API_FN (camelCase)SERVICE_FN (camelCase)ENDPOINT_PATHAPI_FN/SERVICE_FN already exists, do not duplicate.If one target file is missing, create a minimal scaffold first (per update-rs-2.md), then insert methods.
Do not rewrite populated files.
{.get: api.get(..., { params: data })post|put|patch: api.<method>(..., data)delete: match current file stylethis.apiService (or existing instance name in file)..then/.catch with console.error + rethrow.Read -> check duplicates -> insert in class -> verify existing methods remain -> save.
API: API_FN added or already existed in CATEGORY/SERVICE_NAME.api.service.ts
SERVICE: SERVICE_FN added or already existed in CATEGORY/SERVICE_NAME.service.ts