Skip to content
Prompt

My-Cursor-Rules-List — Windsurf Rules

by TheDarkSkyXD

AI Summary

A Windsurf rules collection providing best practices for Docker, npm/npx, uv package managers, and package publishing workflows. Developers working with containerization and package management will find structured guidelines for common development tasks.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "My-Cursor-Rules-List — Windsurf Rules" prompt rules to my project.
Repository: https://github.com/TheDarkSkyXD/My-Cursor-Rules-List

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Windsurf Rules for My-Cursor-Rules-List

Client Usage

`typescript // Client usage example import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"; async function connectToServer() { // Initialize client const client = new Client( { name: "my-client", version: "1.0.0" }, { capabilities: {} } ); // Create SSE transport const transport = new SSEClientTransport({ url: "http://localhost:3000", connectEndpoint: "/connect", messageEndpoint: "/messages", headers: { "X-API-Key": "your-api-key-here" } }); // Connect to server await client.connect(transport); // Use the client const tools = await client.listTools(); console.log("Available tools:", tools); } connectToServer().catch(console.error); `

Docker Best Practices

• Multi-stage builds: Separate build and runtime environments • Minimal base images: Use Alpine or slim variants • Non-root users: Run processes as non-privileged users • Version pinning: Pin specific base image versions • Layer optimization: Organize Dockerfile to optimize layer caching • Health checks: Implement container health checks • Resource limits: Set memory and CPU limits

npx Best Practices

• Specify versions: Use exact versions for production • Verify packages: Use the -y flag cautiously • Registry security: Consider using private registries • Cache management: Be aware of npx caching behavior • Performance: Consider startup time for frequently used servers • Exit handling: Implement proper process exit handling • Dependency size: Keep dependencies minimal

uv Best Practices

• Virtual environments: Always use dedicated virtual environments • Lockfiles: Maintain lockfiles for dependency consistency • Offline mode: Consider offline mode for production • Caching: Configure appropriate cache locations • Integration: Ensure proper integration with existing Python tools • Activation scripts: Handle environment activation properly • Platform compatibility: Test on all target platforms

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 10mo ago
Stale
AdoptionUnder 100 stars
6 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars6
Issues0
Updated10mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more