agentleFS
giselles-aigiselles-ai/giselle/.cursor/rules/design-mode.mdc

giselle / rules

Cursor rule556 starsChanged 12 months agoApache-2.0View on GitHub

User request `design mode`, use this rule to enable design mode for all files.

  • Deletes or force-pushes
  • Installs packages

The file

We split this design-mode.mdc into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If functional changes or additions are necessary, create a consultation text for engineers and encourage the user to seek their input.

    line 12
  2. Distinctive:

    All required tools must be verified in the following order:

    line 22
  3. Distinctive:

    Ask the user if they want to:

    line 87
  4. Distinctive:

    If a process is using port 3000, terminate it:

    line 112
  5. Distinctive:

    Verify port is free after termination:

    line 116
  6. Distinctive:

    After completing ALL previous steps, start the development server:

    line 123
  7. Distinctive:

    Use this checklist to ensure all steps are completed:

    line 138

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
design-mode.mdc
---
description: User request `design mode`, use this rule to enable design mode for all files.
globs: 
alwaysApply: false
---
# Design Mode

Design Mode is intended for users who excel in design rather than software development. It enables direct application design by editing Next.js code instead of using tools like Figma.

- **Avoid destructive changes.**
- Limit modifications to appearance or behavior only.
- If functional changes or additions are necessary, create a consultation text for engineers and encourage the user to seek their input.

---

## How to Start Design Mode

The step-by-step procedure below **MUST** be followed in order. Each step **MUST** be completed before proceeding to the next one. No steps should be skipped.

### 1. Check Requirements

All required tools must be verified in the following order:

1. **Node.js Version Check**
   ```bash
   node -v
   ```
   ✅ REQUIRED: Version must be 22.14.0 or later
   ❌ If version requirement not met: See `./nodejs.mdc` for installation instructions

2. **pnpm Version Check**
   ```bash
   pnpm -v
   ```
   ✅ REQUIRED: Version must be 10.2.1 or later
   ❌ If version requirement not met: See `./nodejs.mdc` for installation instructions

3. **Vercel CLI Version Check**
   ```bash
   vercel --version
   ```
   ✅ REQUIRED: Version must be 41.6.0 or later
   ❌ If Vercel CLI is missing: Install with the command below
   ```bash
   pnpm add -g vercel
   ```

4. **Vercel CLI Login Status**
   ```bash
   vercel whoami
   ```
   ✅ REQUIRED: Must show a username
   ❌ If not logged in: See `./vercel-cli.mdc` for login instructions

5. **Vercel Project Link Check**
   ```bash
   [ -f .vercel/project.json ] && echo "Project is linked" || echo "We need to link vercel project"
   ```
   ✅ REQUIRED: Must show "Project is linked"
   ❌ If "We need to link vercel project" is displayed:
      a. List available teams:
         ```bash
         vercel team list
         ```
      b. Switch to team and list projects:
         ```bash
         vercel team switch [team-name]
         vercel project list
         ```
      c. Link the project:
         ```bash
         vercel link --yes --project [project-name]
         ```

### 2. Clean Your Workspace

IMPORTANT: Complete each step in order:

1. **Preview Files to be Removed**
   ```bash
   git clean -fx -n
   ```
   ✅ REQUIRED: Review the output and get user approval before proceeding
   ❌ If the user doesn't want these files removed: Skip the cleaning step but note potential issues

2. **Current Branch Decision**
   Ask the user if they want to:
   - Continue in the current branch
   - Switch to the main branch with:
     ```bash
     git checkout main && git pull
     ```

3. **Install Dependencies**
   ```bash
   pnpm i
   ```
   ✅ REQUIRED: Wait for installation to complete successfully

4. **Build SDK Dependencies**
   ```bash
   pnpm build-sdk
   ```
   ✅ REQUIRED: Wait for build to complete successfully

5. **Check Port 3000 Availability - CRITICAL STEP**
   ```bash
   lsof -i :3000 || echo "Port 3000 is available"
   ```
   ✅ REQUIRED: Must either:
   - Show "Port 3000 is available" OR
   - If a process is using port 3000, terminate it:
     ```bash
     kill -9 $(lsof -t -i:3000)
     ```
   - Verify port is free after termination:
     ```bash
     lsof -i :3000 || echo "Port 3000 is now available"
     ```

### 3. Start Design Mode

After completing ALL previous steps, start the development server:

```bash
vercel dev
```

The server should start successfully and display:
```
> Ready! Available at http://localhost:3000
```

---

## Design Mode Checklist Summary

Use this checklist to ensure all steps are completed:

- [ ] Node.js version verified (22.14.0+)
- [ ] pnpm version verified (10.2.1+)
- [ ] Vercel CLI version verified (41.6.0+)
- [ ] Vercel CLI login confirmed
- [ ] Vercel project link confirmed
- [ ] Workspace files previewed for removal
- [ ] Branch decision made (current or main)
- [ ] Dependencies installed
- [ ] SDK dependencies built
- [ ] Port 3000 verified as available
- [ ] Development server started with vercel dev

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.