Astro .cursorrules Cursor AI Three.js Tailwind CSS project prompt file
About .cursorrules prompt file
What you can build
Astro Portfolio Builder: A web application that allows users to easily build portfolio websites using Astro and Three.js, with predefined templates and components. The builder would emphasize following the best practices such as using TypeScript and Tailwind CSS for styling.
Static Site Performance Optimizer: A tool that analyzes Astro-based portfolio websites for performance improvements by providing suggestions on reducing client-side JavaScript and optimizing asset loading using Astro's features.
Markdown Portfolio Generator: A service that transforms Markdown or MDX files into a fully-fledged portfolio website using Astro, with support for dynamic content routing and styling with Tailwind CSS.
Astro & Three.js Learning Platform: An educational platform offering courses and tutorials focused on building interactive portfolio websites with Astro and Three.js, including deep-dives into Three.js rendering techniques and Astro optimizations.
Astro SEO Enhancer: A plugin for Astro that automatically configures and enhances SEO settings for portfolio websites, adding appropriate meta tags, canonical URLs, and offering reusable
components. Astro CI/CD Integration Tool: A service that integrates with popular CI/CD platforms like Netlify and Vercel to streamline the deployment process of Astro-based portfolio websites, ensuring that environment variables are handled correctly and builds are optimally configured.
Accessibility Audit Tool for Astro: A tool designed to audit Astro-based websites for accessibility compliance, offering insights on semantic HTML usage, ARIA attributes, and interactive element accessibility.
Tailwind Themer for Astro: An application or plugin that provides a user-friendly interface for creating custom Tailwind CSS themes and extensions specifically tailored for Astro projects.
Astro Content Management System: A lightweight CMS designed to manage content collections for Astro websites, supporting Markdown or MDX and offering a simple interface for content updates.
Astro and Three.js Component Library: A library of reusable components specifically designed for Astro and Three.js integration, including pre-built scenes, animations, and interactive 3D elements.
Benefits
- Emphasizes strict adherence to Astro's style guide, TypeScript, and functional programming, ensuring consistency and reliability.
- Integrates Three.js using React three fiber, focusing on efficient 3D rendering and management.
- Comprehensive performance optimization with Astro's features, including static generation, lazy loading, and client directives for interactivity.
Synopsis
Developers looking to build a streamlined, performance-optimized portfolio website using Astro and Three.js can benefit from this guide by implementing modern web development standards.
Overview of .cursorrules prompt
The .cursorrules file outlines a set of guidelines and conventions for developing a portfolio website using Astro and Three.js, hosted on jayciretose.github.io. It includes coding conventions such as using TypeScript, functional programming, and proper error handling. It specifies project structure, component development practices, and routing methodologies using Astro's system. Content management is advised through markdown files, and styling is primarily done with Tailwind CSS. The file emphasizes performance optimization, including static generation and asset optimization, and covers data fetching strategies. SEO best practices and integration guidelines are provided. Build and deployment processes are geared towards static hosting platforms, with specific notes on integrating Three.js using React three fiber for 3D rendering. Testing and accessibility standards are mentioned, along with performance metrics monitoring. Overall, the file serves as a comprehensive guide for maintaining consistency and optimizing the development process for the specified project.