Reviews and refactors Angular services to enforce single responsibility, splitting god services into focused roles like API access, state ownership, mapping, validation, and permissions.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to split Angular services by responsibility. The goal is to make service names, tests, dependencies, and public contracts reveal what each service owns.
Use this skill when:
CommonService, UtilsService, ManagerService, or HelperService.Split by role:
AuthService
- login
- logout
- session
UserApiService
- getUsers
- updateUser
- deleteUser
UserStateService
- users$
- selectedUser$
- setUsers
- setSelectedUser
UserMapper
- DTO to domain or view model transformation
UserPermissionService
- permission evaluation
UserFacade
- feature-level API for components
Use names that reveal responsibility:
OrderApiService
OrderStateService
OrderMapper
OrderPermissionService
OrderExportService
OrderFacade
Keep pure helpers outside Angular services when dependency injection is not needed:
export function mapUserDto(dto: UserDto): User {
return {
id: dto.id,
name: dto.name,
};
}
Avoid god services:
@Injectable()
export class UserService {
login(): void {}
logout(): void {}
getUsers(): Observable<User[]> {}
updateUser(): Observable<User> {}
setUsers(): void {}
getCurrentPermissions(): string[] {}
exportUsersToCsv(): void {}
}
Avoid generic names that hide boundaries:
CommonService
UtilsService
DataService
ManagerService
HelperService
Avoid splitting into many files if the service is already cohesive and small.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--services--single-responsibility-servicesfrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job