Skip to content

Add AGENTS.md with Cursor Cloud development environment instructions#407

Merged
syed-reza98 merged 3 commits intomainfrom
cursor/development-environment-setup-187d
Apr 2, 2026
Merged

Add AGENTS.md with Cursor Cloud development environment instructions#407
syed-reza98 merged 3 commits intomainfrom
cursor/development-environment-setup-187d

Conversation

@syed-reza98
Copy link
Copy Markdown
Collaborator

PR Type

  • Independent feature

Related Issues

  • Development environment setup for Cursor Cloud agents

Changes

Added

  • AGENTS.md with Cursor Cloud specific development instructions including:
    • Required services (PostgreSQL, Next.js dev server)
    • Environment file setup and Prisma CLI gotchas
    • Database migration and seed commands
    • Key development commands (lint, test, type-check, dev server)
    • Test credentials reference
    • Known gotchas (Vitest false positive, Docker startup, optional service degradation)

Testing

  • Manual testing completed

Verified Development Environment

  • PostgreSQL 16 running via docker compose
  • Database migrations applied (all migrations succeeded)
  • Database seeded with 131 demo entities
  • ESLint passes clean
  • Vitest: 344 tests passed, 17 test files passed (1 false positive on playwright.config.test.ts)
  • Next.js dev server running on port 3000
  • Login flow verified with Super Admin credentials

Demo

stormcom_login_and_dashboard_demo.mp4

Landing page:
StormCom landing page

Admin dashboard after login:
Admin dashboard with metrics

Customers management page:
Customers page with data

Documentation

  • AGENTS.md created with development environment instructions for future Cloud agents

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No breaking changes
  • All tests pass locally
  • No security vulnerabilities introduced
  • Branch is up to date with base branch

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: Syed Salman Reza <syed.reza181@gmail.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stormcomui Ready Ready Preview, Comment Apr 2, 2026 1:10am

Co-authored-by: Syed Salman Reza <syed.reza181@gmail.com>
@syed-reza98 syed-reza98 marked this pull request as ready for review April 2, 2026 01:07
Copilot AI review requested due to automatic review settings April 2, 2026 01:07
@syed-reza98 syed-reza98 merged commit 715cf4d into main Apr 2, 2026
6 of 7 checks passed
@syed-reza98 syed-reza98 deleted the cursor/development-environment-setup-187d branch April 2, 2026 01:08
@github-project-automation github-project-automation bot moved this from Backlog to Done in StormCom Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Cursor Cloud-focused developer setup documentation for StormCom, aiming to streamline environment bootstrapping (DB, env vars, Prisma, and common commands) for cloud agents.

Changes:

  • Added AGENTS.md with Cursor Cloud development environment setup steps, commands, and seeded test credentials.
  • Updated package-lock.json (lockfile content changes not described in the PR body/title).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
AGENTS.md New Cursor Cloud setup guide (services, env files, Prisma steps, commands, credentials, gotchas).
package-lock.json Lockfile updated with additional nested dependency entries and metadata changes.


```bash
npx prisma migrate deploy # apply all migrations
npm run prisma:seed # seed demo data (131 entities)
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The database setup snippet uses npx prisma migrate deploy and then seeds, but it doesn’t mention generating the Prisma Client afterward. In a fresh environment (or if postinstall skipped because DATABASE_URL wasn’t set at install time), this can leave @prisma/client missing/out of date and cause runtime errors. Consider updating these steps to run npm run prisma:generate after migrations, or use an existing npm script that already combines migrate + generate (e.g. npm run prisma:migrate:dev:seed / npm run prisma:migrate:dev).

Suggested change
npm run prisma:seed # seed demo data (131 entities)
npm run prisma:generate # generate Prisma Client
npm run prisma:seed # seed demo data (131 entities)

Copilot uses AI. Check for mistakes.

### Gotchas

- The Vitest run reports `playwright.config.test.ts` as a failed suite because it contains no Vitest tests — this is a known false positive and safe to ignore.
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc suggests ignoring a Vitest “failed suite” caused by playwright.config.test.ts, but the repo’s vitest.config.ts currently includes **/*.{test,spec}.{ts,tsx} and does not exclude that file, so this will keep recurring and can break CI depending on Vitest settings. Instead of documenting it as safe to ignore, consider addressing it by excluding playwright.config.test.ts in Vitest config or renaming the Playwright config file so it doesn’t match the Vitest include glob.

Suggested change
- The Vitest run reports `playwright.config.test.ts` as a failed suite because it contains no Vitest tests — this is a known false positive and safe to ignore.
- If Vitest reports `playwright.config.test.ts` as a failed suite, update `vitest.config.ts` to exclude this file (for example via `test.exclude`) or rename/move the Playwright config so it no longer matches the `**/*.{test,spec}.{ts,tsx}` pattern, rather than ignoring the failure.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants