web-development

A set of rules for building modern websites and web applications with JavaScript, TypeScript, React, Vue, Next.js, Node.js, HTML, CSS, and web APIs.

In plain words
What is it for?
Use it when creating or reviewing web projects, selecting a framework, setting up component libraries, checking compatibility, or applying everyday JavaScript and TypeScript practices.
Why use it?
It provides consistent guidance for starting projects, choosing current tool versions, and writing maintainable browser and server code. It helps avoid incomplete setups and common JavaScript mistakes.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/madebyaris/rakitui-ai/web-development
Clone the repo
git clone --depth 1 https://github.com/madebyaris/rakitui-ai

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 3,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00000 $0.03876
Opus 5 $0.00000 $0.01938
Sonnet 5 $0.00000 $0.00775
Haiku 4.5 $0.00000 $0.00388

Measured 2d ago against content hash 3e2eec806354, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

web-development scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const data = await fetch(url, {
.cursor/rules/web-development.mdc · 729 lines

How it starts

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

Web Development Patterns

Modern web development best practices for JavaScript, TypeScript, and related frameworks.

CRITICAL: Project Setup Workflow

ALWAYS Use CLI Tools for New Projects

WRONG approach (creates incomplete/broken projects):

1. Create package.json manually
2. Create files one by one
3. Copy component code from documentation
4. Forget to run npm install

CORRECT approach:

# Next.js
npx create-next-app@latest my-app --typescript --tailwind --app --eslint

# React (Vite)
npm create vite@latest my-app -- --template react-ts

# Vue
npm create vue@latest

# Then for component libraries:
cd my-app
npx shadcn-ui@latest init
npx shadcn-ui@latest add button card dialog

Version Checking Before Setup

<think>
Before creating a project, I MUST:
1. Check current stable versions
2. Verify CLI options are up to date
3. Check for compatibility issues
</think>

→ web_search("create-next-app latest version options December 2024")
→ web_search("shadcn-ui Next.js 15 compatibility 2024")

JavaScript Best Practices

Modern Syntax

  • Use const by default, let when reassignment needed, never var
  • Prefer arrow functions for callbacks and short functions
  • Use template literals for string interpolation
  • Destructure objects and arrays
  • Use spread operator for immutable operations
// Modern patterns
const { name, email } = user;
const updatedList = [...items, newItem];
const greeting = `Hello, ${name}!`;
const fetchData = async () => { /* ... */ };

Async Patterns

  • Prefer async/await over .then() chains
  • Always handle errors with try/catch
  • Use Promise.all() for parallel operations
  • Use Promise.allSettled() when some failures are acceptable
// Parallel operations
const [users, posts] = await Promise.all([
  fetchUsers(),
  fetchPosts()
]);

// Error handling
try {
  const data = await fetchData();
} catch (error) {
  console.error('Fetch failed:', error.message);
  throw new DataFetchError(error);
}

Read the full file on GitHub · 729 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. 2d ago First seen · 729 lines · 0 tokens per session scan A 3e2eec806354

Subscribe to this mod's changes

web-development is a cursor rule published in the GitHub repository madebyaris/rakitui-ai (5 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,876 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.