turbopack

turbopack is a cursor rule for Cursor from iHildy/jules-task-queue. It costs 0 tokens per session (2,993 once invoked), scanned A, original, MIT.

A set of development rules for Turbopack, a build tool used with Next.js to compile and update web applications.

In plain words
What is it for?
Use it when developing a Next.js application with Turbopack, TypeScript, Prisma, Redis, React, and related testing and styling tools.
Why use it?
It gives a project consistent guidance for code organization, incremental builds, security, testing, and the surrounding TypeScript toolchain.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when developing a Next.js application with Turbopack, TypeScript, Prisma, Redis, React, and related testing and styling tools.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ihildy/jules-task-queue/turbopack
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/iHildy/jules-task-queue

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for turbopack

README.md
[![agentmods](https://agentmods.dev/badge/rules/ihildy/jules-task-queue/turbopack/github.svg)](https://agentmods.dev/rules/ihildy/jules-task-queue/turbopack)
Your own site
<a href="https://agentmods.dev/rules/ihildy/jules-task-queue/turbopack"><img src="https://agentmods.dev/badge/rules/ihildy/jules-task-queue/turbopack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for turbopack

Your own site · 80×15
<a href="https://agentmods.dev/rules/ihildy/jules-task-queue/turbopack"><img src="https://agentmods.dev/badge/rules/ihildy/jules-task-queue/turbopack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,993 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02993
Opus 5.5 $0.00000 $0.01197
Sonnet 5.5 $0.00000 $0.00599
Haiku 4.5 $0.00000 $0.00299

Measured 13d ago against content hash 297a1f08c4d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

turbopack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/turbopack.mdc · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Turbopack Best Practices

This document outlines best practices for developing with Turbopack, focusing on code organization, performance, security, testing, and tooling.

Project Tech Stack:

ALWAYS USE THE FOLLOWING IN CONJUNCTION WITH EACHOTHER TO HAVE A SAFE CODEBASE WHERE WE CAN MOVE FAST AND BREAK NOTHING

  • Next.js
  • Typescript + ESlint
  • Zod + Prisma + tRPC + React Query
  • Prisma (supabase) + Redis
  • ShadCN + TailwindCSS v4
  • Vitest Unit Tests

1. Core Principles

  • Leverage the Turbo Engine: Turbopack's core strength lies in its Turbo engine for function-level caching. Understand and utilize this for incremental builds.
  • Embrace Incremental Computation: Be mindful of how changes affect the build process. Design your application to maximize incremental computation benefits.
  • Use TypeScript: Turbopack has built-in support for TypeScript and JSX, so use them to improve code quality and developer experience. Make full use of TypeScript's features like generics, interfaces and types.
  • Follow Next.js Conventions: When using Turbopack within Next.js, adhere to Next.js's recommended patterns and practices.
  • Avoid direct webpack configurations: Turbopack aims to abstract away webpack configurations, prefer using Next.js configurations to customize Turbopack.

2. Code Organization and Structure

  • Directory Structure:
    • src/: All application source code should reside within the src/ directory.
    • components/: Reusable UI components.
    • pages/: (Next.js) Pages for routing.
    • api/: (Next.js) API routes.
    • lib/ or utils/: Utility functions and shared logic.
    • types/ or interfaces/: TypeScript type definitions and interfaces.
    • styles/ or css/: Global styles and CSS modules.
    • public/: Static assets (images, fonts, etc.).
  • File Naming Conventions:
    • Use descriptive names for files and directories.
    • Component files: ComponentName.jsx or ComponentName.tsx.
    • Style files: ComponentName.module.css or ComponentName.module.scss.
    • Utility files: utilityName.js or utilityName.ts.
    • Consistent Case: Maintain a consistent casing convention (e.g., camelCase for variables, PascalCase for components). Use kebab-case for file names e.g. user-profile.tsx or user.router.ts
  • Module Organization:
    • Group related code into modules with clear responsibilities.
    • Export only what is necessary from each module.
    • Use ES modules (import/export) for modularity.
  • Component Architecture:
    • Atomic Design: Consider using Atomic Design principles to create a scalable and maintainable component architecture.
    • Composition: Favor composition over inheritance for component reusability.
    • Separation of Concerns: Separate UI logic, data fetching, and state management within components.
    • Keep components small: Focus on single responsability principle.
  • Code Splitting Strategies:
    • Dynamic Imports: Use dynamic imports (import()) to split code into smaller chunks that are loaded on demand.
    • Route-Based Splitting: (Next.js) Each page in the pages/ directory is automatically code-split.
    • Component-Based Splitting: Split large components into smaller, lazily loaded sub-components.
    • Vendor Splitting: Turbopack automatically splits vendor code (third-party libraries) into separate chunks.

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 199 lines · 2,993 tokens per session scan A 297a1f08c4d5

Subscribe to this mod's changes

turbopack is a cursor rule published in the GitHub repository iHildy/jules-task-queue (17 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,993 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.