claudegoodies
Command

services

From davila7

Create Angular services for $ARGUMENTS following project conventions.

Install

/services

Facts

Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this command runs.

# Angular Services

Create Angular services for $ARGUMENTS following project conventions.

## Task

Create or optimize Angular services based on the requirements:

1. **Analyze existing services**: Check current service patterns, naming conventions, and folder organization
2. **Examine Angular setup**: Review project structure, dependency injection patterns, and TypeScript configuration
3. **Identify service type**: Determine the service category:
   - Data services (HTTP API calls, state management)
   - Utility services (validation, formatting, helpers)
   - Business logic services (calculations, workflows)
   - Infrastructure services (logging, authentication, error handling)
   - Feature services (component-specific logic)
4. **Check dependencies**: Review existing services and shared modules to avoid duplication
5. **Implement service**: Create service with proper dependency injection and TypeScript types
6. **Add error handling**: Include comprehensive error handling with RxJS operators
7. **Create tests**: Write unit tests with proper mocking following project patterns
8. **Update module registration**: Register service in appropriate Angular modules

## Implementation Requirements

- Follow project's Angular architecture and naming conventions (usually .service.ts)
- Use proper dependency injection with @Injectable decorator
- Include comprehensive TypeScript interfaces
View full source on GitHub →

Other slash commands