/iq-nestjs:nestjsfrom iq-nestjs
NestJS patterns for blockchain indexers, background processing, and compute-intensive services. Use only for indexers, heavy background jobs, or persistent WebSocket services.
Ships in iq-nestjs. 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.
Read when SKILL.md points to them.
NestJS is used ONLY for specific use cases where Next.js is not suitable.
Use NestJS only for:
Do NOT use NestJS for:
Start with Next.js. Only reach for NestJS if you have a specific, justified need.
npm i -g @nestjs/cli
nest new my-indexer
// modules/indexer/indexer.module.ts
@Module({
imports: [
BullModule.registerQueue({ name: 'blocks' }),
PrismaModule,
],
controllers: [IndexerController],
providers: [IndexerService, BlockProcessor],
exports: [IndexerService],
})
export class IndexerModule {}
// modules/indexer/indexer.service.ts
@Injectable()
export class IndexerService {
private readonly logger = new Logger(IndexerService.name);
constructor(
private readonly prisma: PrismaService,
@InjectQueue('blocks') private readonly queue: Queue,
) {}
async queueBlock(blockNumber: number) {
await this.queue.add('process', { blockNumber }, {
attempts: 3,
backoff: { type: 'exponential', delay: 1000 },
});
}
}
// modules/indexer/processors/block.processor.ts
@Processor('blocks')
export class BlockProcessor {
private readonly logger = new Logger(BlockProcessor.name);
@Process('process')
async handleBlock(job: Job<{ blockNumber: number }>) {
this.logger.log(`Processing block ${job.data.blockNumber}`);
// Process block...
}
@OnQueueFailed()
onFailed(job: Job, error: Error) {
this.logger.error(`Job ${job.id} failed: ${error.message}`);
}
}
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub braindao/iq-claude-config --plugin iq-nestjs3 skills in this plugin
/databasePrisma ORM patterns within NestJS modules, database schema design, and query conventions. Use when working with databases, writing migrations, or defining Prisma schemas in NestJS services./testingTesting patterns with Vitest and Playwright for NestJS backend services. Use when writing unit tests, integration tests, or E2E tests for controllers, services, guards, and pipes.