{"id":50483327,"url":"https://github.com/prisma/cursor-plugin","last_synced_at":"2026-06-01T19:31:08.943Z","repository":{"id":337440314,"uuid":"1149590474","full_name":"prisma/cursor-plugin","owner":"prisma","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-09T14:22:22.000Z","size":116,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T20:37:36.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-04T09:39:26.000Z","updated_at":"2026-04-13T17:45:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/prisma/cursor-plugin","commit_stats":null,"previous_names":["prisma/cursor-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma/cursor-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fcursor-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fcursor-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fcursor-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fcursor-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/cursor-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fcursor-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33790713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-01T19:31:08.101Z","updated_at":"2026-06-01T19:31:08.906Z","avatar_url":"https://github.com/prisma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prisma Cursor Plugin\n\nA comprehensive Cursor plugin for Prisma development, providing MCP server integration, AI rules, specialized skills, custom agents, and automation hooks.\n\n## Features\n\n### 🔌 MCP Server Integration\n- Direct integration with Prisma MCP server\n- Database introspection and querying\n- Schema management through AI\n\n### 📋 Rules\n- **Schema Conventions**: Enforces Prisma naming conventions and best practices\n- **Migration Best Practices**: Guidelines for safe database migrations\n\n### 🎯 Skills\n- **Schema Designer**: Design and modify Prisma schemas following best practices\n- **Migration Manager**: Safely create, deploy, and manage database migrations\n\n### 🤖 Custom Agents\n- **Prisma Expert**: Comprehensive Prisma development expertise\n- **Schema Reviewer**: Specialized schema review and optimization\n\n### ⚡ Automation Hooks\n- **Pre-commit**: Validates Prisma schema before commits\n- **Post-save**: Auto-formats Prisma schema files on save\n- **On-schema-change**: Regenerates TypeScript types after schema changes\n\n## Installation\n\n### From Cursor Marketplace\n```bash\n# Install via Cursor CLI\ncursor plugin install prisma-cursor-plugin\n```\n\n### Manual Installation\n1. Clone this repository\n2. Copy to your Cursor plugins directory\n3. Run setup script:\n```bash\nnpm run setup\n```\n\n## Configuration\n\n### Database Connection\n\nCreate a `.env` file in your project root:\n\n```env\nDATABASE_URL=\"postgresql://user:password@localhost:5432/mydb\"\n```\n\n### MCP Server\n\nThe Prisma MCP server is automatically configured. Ensure your `DATABASE_URL` environment variable is set.\n\n## Usage\n\n### Using Rules\n\nRules are automatically applied to your Prisma schema files:\n- Schema conventions enforce naming standards\n- Migration best practices guide safe database changes\n\n### Using Skills\n\nInvoke skills via Cursor AI:\n- `/schema-designer` - Design new schemas or modify existing ones\n- `/migration-manager` - Create and manage migrations\n\n### Using Agents\n\nSwitch to custom agents in Cursor:\n- **Prisma Expert**: For general Prisma development tasks\n- **Schema Reviewer**: For schema reviews and optimization\n\n### Automation Hooks\n\nHooks run automatically on configured events:\n- Schema validation before commits\n- Auto-formatting on save\n- Type generation after schema changes\n\n## Project Structure\n\n```\nprisma-cursor-plugin/\n├── .cursor/\n│   └── plugin.json           # Plugin manifest\n├── rules/\n│   ├── schema-conventions.mdc\n│   └── migration-best-practices.mdc\n├── skills/\n│   ├── schema-designer/\n│   │   └── SKILL.md\n│   └── migration-manager/\n│       └── SKILL.md\n├── agents/\n│   ├── prisma-expert.md\n│   └── schema-reviewer.md\n├── scripts/\n│   ├── setup.sh\n│   ├── pre-commit.sh\n│   ├── format-schema.js\n│   └── generate-types.ts\n├── hooks.json                # Hook definitions\n├── mcp.json                  # MCP server configuration\n├── package.json\n└── README.md\n```\n\n## Development\n\n### Scripts\n\n```bash\n# Setup the plugin\nnpm run setup\n\n# Build MCP server (when implemented)\nnpm run build\n\n# Development mode (when implemented)\nnpm run dev\n\n# Run code generation scripts\nnpm run generate\n```\n\n## Requirements\n\n- Node.js \u003e= 18\n- Prisma CLI (installed automatically by setup)\n- Database connection (PostgreSQL, MySQL, SQLite, etc.)\n\n## Examples\n\n### Creating a Schema\n\n```prisma\nmodel User {\n  id        Int      @id @default(autoincrement())\n  email     String   @unique\n  name      String?\n  posts     Post[]\n  createdAt DateTime @default(now())\n  updatedAt DateTime @updatedAt\n\n  @@index([email])\n}\n\nmodel Post {\n  id          Int      @id @default(autoincrement())\n  title       String\n  content     String?\n  published   Boolean  @default(false)\n  authorId    Int\n  author      User     @relation(fields: [authorId], references: [id])\n  createdAt   DateTime @default(now())\n  updatedAt   DateTime @updatedAt\n\n  @@index([authorId])\n  @@index([published])\n}\n```\n\n### Creating a Migration\n\n```bash\n# Create and apply migration\nnpx prisma migrate dev --name add_user_posts\n\n# Deploy to production\nnpx prisma migrate deploy\n```\n\n## Contributing\n\nContributions are welcome! Please follow Prisma's contribution guidelines.\n\n## License\n\nMIT\n\n## Support\n\n- [Prisma Documentation](https://www.prisma.io/docs)\n- [Prisma Community](https://www.prisma.io/community)\n- [GitHub Issues](https://github.com/prisma/cursor-plugin/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fcursor-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fcursor-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fcursor-plugin/lists"}