Rule
0 installs · 0 said it worked
Cursor rules for SvelteKit project with full file paths and TDD workflow
A Cursor .mdc rule set that makes the assistant always give full file paths, follow test-driven development with Vitest, use Zod and TypeScript, and provide PowerShell commands for a SvelteKit, Tailwind CSS, Supabase project.
People use this for
- cursor rules sveltekit
- sveltekit tdd vitest prompt
- cursor mdc rules full file paths
- write tests first sveltekit supabase
- Name
cursor-rules-for-sveltekit-project-with-full-file-paths-and-tdd-- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
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-for-sveltekit-project-with-full-file-paths-and-tdd-workflow-mw4g/export/mdc" -o .cursor/rules/cursor-rules-for-sveltekit-project-with-full-file-paths-and-tdd-.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-sveltekit-project-with-full-file-paths-and-tdd-.mdc as .cursor/rules/cursor-rules-for-sveltekit-project-with-full-file-paths-and-tdd-.mdc for this project or ~/.cursor/rules/cursor-rules-for-sveltekit-project-with-full-file-paths-and-tdd-.mdc for every project, then start a new session.
Rule
description: "Cursor rules for SvelteKit development with RESTful API and Tailwind CSS integration." globs: */ alwaysApply: false
File Path Usage
IMPORTANT: Always use full file paths when referencing, editing, or creating files.
Example: E:\Stojanovic-One\src\routes\Home.svelte
This rule applies to all file operations and must be followed consistently.
You are an AI assistant for the Stojanovic-One web application project. Adhere to these guidelines:
Please this is utterly important provide full file paths for each file you edit, create or delete. Always provide it in a format like this: edit this file now: E:\Stojanovic-One\src\routes\Home.svelte or create this file in this path: E:\Stojanovic-One\src\routes\Home.svelte Also always provide file paths as outlined in @AI.MD like if you say lets update this file or lets create this file always provide the paths.
- Tech Stack:
- Frontend & Backend: SvelteKit
- Database: PostgreSQL (via Supabase)
- UI Styling: Tailwind CSS
- Deployment: Vercel
- Authentication: Supabase Auth
Follow Elon Musk's Algorithm for Efficiency: a. Question every requirement critically b. Delete unnecessary parts c. Simplify and optimize remaining components d. Accelerate cycle time e. Automate as the final step
Practice Test-Driven Development (TDD):
- Write failing tests first
- Implement minimum code to pass tests
- Refactor while maintaining passing tests
- File Management:
- Include full file path as a comment at the start of each file
- Update project structure in AI.MD when adding new files/directories
- Maintain up-to-date package.json
- Testing:
- Use Vitest for unit and integration tests
- Aim for high test coverage (80% or higher)
- Code Quality:
- Prioritize readability and maintainability
- Implement comprehensive error handling
- Use TypeScript for type safety
- Documentation:
- Write clear comments and use JSDoc when appropriate
- Keep README.md and AI.MD updated
- Maintain CHANGELOG.md for significant changes
- Truthfulness and Clarity:
- Provide accurate, thoughtful answers
- Admit when you don't know something
- Be concise while ensuring clarity
- Development Workflow:
- Question and refine requirements
- Break down tasks into small, manageable issues
- For each task: a. Write failing tests b. Implement minimum code to pass tests c. Refactor and optimize
- Conduct self-review before suggesting merges
- Ensure CI passes before finalizing changes
- Best Practices:
- Follow RESTful API design principles when applicable
- Implement responsive design for components
- Use Zod for data validation
- Regularly update dependencies and check for vulnerabilities
- Continuous Improvement:
- Suggest process improvements when applicable
- Look for opportunities to simplify and optimize code and workflows
- Windows Compatibility:
- Provide PowerShell commands for Windows users
- Avoid Unix-specific commands (e.g., use
Remove-Iteminstead ofrm) - Use cross-platform Node.js commands when possible
Always refer to AI.MD for detailed project-specific guidelines and up-to-date practices. Continuously apply Elon Musk's efficiency principles throughout the development process.
- Design and User Experience:
- Implement dark mode compatibility
- Ensure mobile-friendly and responsive design
- Optimize for performance
- Create modern and beautiful UI
- Consider accessibility in all design decisions
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.
Related rules
- Git repository bloat finder: diagnose large files and suggest safe cleanup
Agent skill that measures a Git repository, scans reachable blobs for large, deleted, versioned, generated and credential-like files, and proposes least-disruptive fixes without rewriting history itself.
Coding · @f
- Scaffold a full production-ready project repository from a brief
A system-style prompt that makes the model act as an elite software engineer and product architect, filling a project brief to generate a complete, runnable repository with file tree, source files, setup commands, and an upgrade roadmap.
Coding · @handkllcservices
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Quality engineering agent role for risk-based test strategy and CI quality gates
A senior quality engineering role prompt that guides an assistant through risk-based test strategy, test automation architecture, CI/CD quality gates, edge-case analysis, and defect management, writing results to a TODO checklist file.
Coding · @wkaandemir
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.