agentleFS
giselles-aigiselles-ai/giselle/.cursor/rules/development-guide.mdc

giselle / rules

Cursor rule556 starsChanged 12 months agoApache-2.0View on GitHub

The file

Show its rules and text

We split this development-guide.mdc into the rules it gives an agent

17 rules. About 0 are common, 6 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run tests: pnpm -F <package> test or cd <directory> && vitest

    line 14
  2. Very specific:

    Run specific test: cd <directory> && vitest <file.test.ts>

    line 15
  3. Very specific:

    MUST run pnpm biome check --write [filename] after EVERY code modification

    line 20
  4. Distinctive:

    All code changes must be formatted using Biome before being committed

    line 21
  5. Distinctive:

    Use Biome for formatting with tab indentation and double quotes

    line 24
  6. Very specific:

    Follow organized imports pattern (enabled in biome.json)

    line 25
  7. Very specific:

    Use TypeScript for type safety.

    line 26
  8. Distinctive:

    Use functional components with React hooks

    line 27
  9. Very specific:

    Use Next.js patterns for web applications

    line 28
  10. Distinctive:

    Follow package-based architecture for modularity

    line 29
  11. Distinctive:

    Use async/await for asynchronous code rather than promises

    line 30
  12. Very specific:

    Files: Use kebab-case for all filenames (e.g., user-profile.ts)

    line 35
  13. Very specific:

    Components: Use PascalCase for React components and classes (e.g., UserProfile)

    line 36
  14. Very specific:

    Variables: Use camelCase for variables, functions, and methods (e.g., userEmail)

    line 37
  15. Very specific:

    Boolean Variables and Functions: Use prefixes like is, has, can, should for clarity:

    line 38
  16. Very specific:

    Function Naming: Use verbs or verb phrases that clearly indicate purpose (e.g., calculateTotalPrice(), not process())

    line 41
  17. Distinctive:

    Consistency: Follow these conventions throughout the codebase

    line 42

≈ “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
development-guide.mdc
---
description: 
globs: *.tsx,*.ts
alwaysApply: false
---
# Giselle Development Guide

## Build, Test, and Lint Commands
- Build all: `pnpm build`
- Build specific packages: `pnpm build-sdk`, `pnpm build-data-type`
- Type checking: `pnpm check-types`
- Format code: `pnpm format`
- Development: `pnpm dev` (playground), `pnpm dev:studio.giselles.ai` (studio)
- Run tests: `pnpm -F <package> test` or `cd <directory> && vitest`
- Run specific test: `cd <directory> && vitest <file.test.ts>`
- Lint: `cd <directory> && biome check --write .`
- Format modified files: `pnpm biome check --write [filename]`

## Critical Requirements
- MUST run `pnpm biome check --write [filename]` after EVERY code modification
- All code changes must be formatted using Biome before being committed

## Code Style Guidelines
- Use Biome for formatting with tab indentation and double quotes
- Follow organized imports pattern (enabled in biome.json)
- Use TypeScript for type safety; avoid `any` types
- Use functional components with React hooks
- Use Next.js patterns for web applications
- Follow package-based architecture for modularity
- Use async/await for asynchronous code rather than promises
- Error handling: use try/catch blocks and propagate errors appropriately
- Tests should follow `*.test.ts` naming pattern and use Vitest

## Naming Conventions
- **Files**: Use kebab-case for all filenames (e.g., `user-profile.ts`)
- **Components**: Use PascalCase for React components and classes (e.g., `UserProfile`)
- **Variables**: Use camelCase for variables, functions, and methods (e.g., `userEmail`)
- **Boolean Variables and Functions**: Use prefixes like `is`, `has`, `can`, `should` for clarity:
  - For variables: `isEnabled`, `hasPermission` (not `status`)
  - For functions: `isTriggerRequiringCallsign()`, `hasActiveSubscription()` (not `requiresCallsign()` or `checkActive()`)
- **Function Naming**: Use verbs or verb phrases that clearly indicate purpose (e.g., `calculateTotalPrice()`, not `process()`)
- **Consistency**: Follow these conventions throughout the codebase

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.