Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules guiding Next.js and TypeScript code generation for Astral

Cursor rule file giving the AI project context for the Astral block explorer, plus coding guidelines for TypeScript, Tailwind CSS, reusable components, and error handling.

People use this for

  • cursor rules nextjs typescript
  • nextjs typescript project rules
  • tailwind css component guidelines
  • write reusable typescript react components
  • generate nextjs code with typescript and tailwind
Name
cursor-rules-guiding-nextjs-and-typescript-code-generation-for-a
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-nextjs-and-typescript-code-generation-for-astral-9wsy/export/mdc" -o .cursor/rules/cursor-rules-guiding-nextjs-and-typescript-code-generation-for-a.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-guiding-nextjs-and-typescript-code-generation-for-a.mdc
Manual install

Save cursor-rules-guiding-nextjs-and-typescript-code-generation-for-a.mdc as .cursor/rules/cursor-rules-guiding-nextjs-and-typescript-code-generation-for-a.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-nextjs-and-typescript-code-generation-for-a.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Next.js development with TypeScript and Tailwind CSS integration." globs: */ alwaysApply: false

Project Overview

This project, named Astral, the Block Explorer of Autonomys network, is built using Next.js and TypeScript. It integrates various libraries for state management, UI components, and data fetching.

Key URLs

Project Structure

  • Components: Contains reusable UI components.
  • App: Next.js app for routing.
  • Hooks: Custom React hooks for state management.

Development Guidelines

  • Use TypeScript for type safety.
  • Follow the coding standards defined in the ESLint configuration.
  • Ensure all components are responsive and accessible.
  • Use Tailwind CSS for styling, adhering to the defined color palette.

Important Scripts

  • dev: Starts the development server.
  • build: Builds the application for production.

AI Interaction Guidelines

  • When generating code, prioritize TypeScript and React best practices.
  • Ensure that any new components are reusable and follow the existing design patterns.
  • Minimize the use of AI generated comments, instead use clearly named variables and functions.
  • Always validate user inputs and handle errors gracefully.
  • Use the existing components and pages as a reference for the new components and pages.

Lexicon of Terms and Concepts

  • H+AI (Human + Artificial Intelligence): The collaboration between humans and AI to enhance capabilities and ensure a harmonious coexistence.
  • Autonomys Network: A decentralized network designed to provide infrastructure for AI-powered decentralized applications (dApps).
  • deAI Ecosystem: A stack of components that includes distributed storage, compute, and a dApp/agent layer for building and deploying AI applications.
  • Distributed Storage: A system ensuring data integrity and availability for AI-related data.
  • Distributed Compute: Scalable computational resources for AI training and inference.
  • dApp (Decentralized Application): Applications that run on a decentralized network, providing enhanced security and transparency.

Additional Resources

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.