One set of architecture rules for Claude Code, Cursor, and every agent that reads AGENTS.md. One command writes framework-aware rules in each tool’s native format, so agents write consistent code that fits your architecture.
Starting a new project? Use ViraStack Start; AI rules come with setup.
One command writes Claude Code and Cursor rules to their own folders (.claude/rules and .cursor/rules), plus a rule map in AGENTS.md for every other agent. Only the rules that fit your project are installed from a catalog of 14.
core · architecture
Folder structure and feature boundaries stay fixed, so the agent puts every file in the right place, even as the project grows.
server-state · client-state
Server data lives in TanStack Query, client state in Zustand and shareable state in the URL, and failures go through one ApiError.
ui · forms · i18n
The agent builds forms with React Hook Form and Zod, and the UI with shadcn/ui and Tailwind CSS 4. The i18n rule is added only with next-intl or Paraglide.
react · typescript · testing
The code an agent writes follows React 19 patterns and strict TypeScript, and its tests use Vitest, Testing Library and MSW.
performance
LCP, INP and CLS budgets are set; the agent starts every optimization by measuring first instead of guessing.
nextjs · tanstack-start
Only your framework’s rules are written, so the agent never mixes in another framework’s APIs.
Browse every rule in the rule catalog.
Three steps: it learns your project, writes the rules and shares them with other agents. With ViraStack Start, these steps run automatically for a new project.
It reads package.json and the lockfile, so it knows whether you use Next.js or TanStack Start, which i18n library you have and your package manager.
Rules go to .claude/rules/virastack and .cursor/rules/virastack. Each rule applies when the agent touches matching files, and the core rules are always loaded.
A block in AGENTS.md lists every rule. Codex, Copilot and other agents that read AGENTS.md follow the same architecture.
Add the rules to an existing project.
$ pnpm dlx @virastack/ai init--agent — Choose which tools to install rules for: claude, cursor or none.
--dry-run — Show the plan without writing anything.
--force, -f — Also overwrite rule files you changed.
--framework — Set the framework explicitly (nextjs or tanstack).
--tr — Show CLI messages in Turkish.
remove — Remove the rules, the AGENTS.md block and the CLAUDE.md line.
Every command and flag is in the docs.
ViraStack Start scaffolds a production-ready Next.js or TanStack Start project in one command. Feature-based architecture, type safety and these AI rules are included.