Agent Nestjs Skills provides AI-driven functionalities for NestJS applications. Developers can automate repetitive tasks, generate boilerplate code, and integrate AI features. It connects to IDEs and CI/CD pipelines to streamline development workflows.
npx skills add sh/kadajettAgent Nestjs Skills provides AI-driven functionalities for NestJS applications. Developers can automate repetitive tasks, generate boilerplate code, and integrate AI features. It connects to IDEs and CI/CD pipelines to streamline development workflows.
Automate API creation
Improve application performance
Simplify database interactions
npx skills add sh/kadajettgit clone https://github.com/sh/kadajettCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a NestJS service for a [COMPANY] in the [INDUSTRY] sector that handles [DATA] operations. Include TypeScript interfaces, repository pattern, and validation decorators. Ensure the service follows NestJS best practices and includes error handling.
# NestJS Service for User Management
```typescript
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from './user.entity';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
@Injectable()
export class UserService {
constructor(
@InjectRepository(User)
private userRepository: Repository<User>,
) {}
async create(createUserDto: CreateUserDto): Promise<User> {
const user = this.userRepository.create(createUserDto);
return this.userRepository.save(user);
}
async findAll(): Promise<User[]> {
return this.userRepository.find();
}
async findOne(id: number): Promise<User> {
return this.userRepository.findOne({ where: { id } });
}
async update(id: number, updateUserDto: UpdateUserDto): Promise<User> {
await this.userRepository.update(id, updateUserDto);
return this.userRepository.findOne({ where: { id } });
}
async remove(id: number): Promise<void> {
await this.userRepository.delete(id);
}
}
```
## Key Features
- **TypeScript Interfaces**: Strong typing for data structures.
- **Repository Pattern**: Clean separation of concerns.
- **Validation Decorators**: Ensures data integrity.
- **Error Handling**: Robust error management.
## Usage
1. Import the service into your module.
2. Inject the service into your controller.
3. Use the service methods to interact with the database.Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan