ITSM Backend Guide
SkillDev toolsGuides your agent to write and review Go backend code for an IT service management system following its rules.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the ITSM Backend Guide skill
About this skill
Implement and review enterprise ITSM backend changes in Go, Gin, and Ent across DTOs, services, controllers, routes, workflows, CMDB, SLA, RBAC, tenants, connectors, and AI features. Use for backend features, bug fixes, refactors, or architecture decisions in itsm-backend.
What this skill tells your AI
The instructions your AI receives, as published by heidsoft/itsm in .trae/skills/itsm-backend-guide/SKILL.md and read by ahel’s review.
Preserve layer ownership
- Controller: bind/validate, read authenticated context, call a service, map errors, return the standard envelope.
- Service/domain: enforce lifecycle rules, permission/tenant checks, transactions, audit, and orchestration.
- DTO/mapper: define the public
camelCasecontract and convert Ent models. - Ent/repository: persist/query with explicit tenant predicates.
- Router/bootstrap: register handlers and dependencies without duplicating business logic.
Never return an Ent model from a controller.
common.Success(c, dto.ToTicketResponse(ticket))
Change workflow
- Trace the current route → controller → service → schema/DTO path.
- Define request and response DTOs using
camelCaseJSON tags. - Add tenant/account ownership to new persistent domain data.
- Put multi-record mutations in a service transaction.
- Add audit records for lifecycle, workflow, approval, AI, connector, and bulk actions.
- Register the route and update frontend types/client when the contract changes.
- Add regression tests before broad verification.
After changing Ent schemas, use the repository's current generation/migration mechanism; do
not hand-edit generated ent/ files.
Domain constraints
- Keep ticket, incident, problem, change, release, and service request lifecycle rules distinct.
- Reuse BPMN/process records instead of introducing a second approval engine.
- Preserve SLA timestamps and policy bindings as authoritative state.
- Treat CMDB CI schema, CI instance, relationship, discovery, reconciliation, topology, and impact analysis as separate concepts.
- Route LLM calls through the gateway; retain model/provider, confidence, version, decision, operator feedback, and fallback behavior.
- Keep connector secrets masked and actions permission-checked/audited.
Fail closed on cross-tenant or permission ambiguity.
Verification
cd itsm-backend
go test ./<owning-package> -count=1
go test ./tests/contract ./tests/rbac -count=1
go test ./...
For contract changes, also run frontend type checks and the focused Playwright spec.
Signals
- GitHub stars
- 77
- Forks
- 18
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
itsm-backend-guide- Source
- github.com/heidsoft/itsm