Skip to content
Prompt

old-browseros-agent — Cursor Rules

by browseros-ai

AI Summary

Do what has been asked; nothing more, nothing less. NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one.

Install

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

I want to add the "old-browseros-agent — Cursor Rules" prompt rules to my project.
Repository: https://github.com/browseros-ai/old-browseros-agent

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

This is just the submodule of browserOS agent; MAIN REPO: https://github.com/browseros-ai/BrowserOS

ALWAYS FOLLOW THESE RULES.

• DO NOT automatically create or update, README.md file for changes. • DO NOT automatically generate example file to use the code unless asked. • DO NOT automatically generate tests for the code unless asked. • IMPORTANT: When asked a question or given a task, ALWAYS first generate a rough plan with pseudo code or design. DO NOT make changes without asking for approval first. • IMPORTANT: Never use optional defaults like || "default-value" in code. Always define constants at the top of the file for any default values (e.g., const DEFAULT_MODEL = "gpt-4o-mini")

important-instruction-reminders

Do what has been asked; nothing more, nothing less. NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.

Code Style & Formatting

• Use English for all code and documentation. • Write concise, technical TypeScript. Follow Standard.js rules. • Always declare the type of each variable and function (parameters and return value). • Avoid using any. • Create necessary types. • Keep interfaces in the same file as their components rather than in a separate types directory. • Use JSDoc to document public classes and methods. • For interfaces, class properties, and smaller logic use inline comments, give two spaces and "// <comment>". • DO NOT use JSDoc-style comments (/* ... /) for class properties or schema definitions, use inline comments instead. • IMPORTANT: Follow this commenting style for clean, readable code: • Keep related code blocks compact and grouped together • Add brief comments only at the top of logical sections (e.g., "// Get the tool", "// Execute tool and handle result") • Avoid obvious comments - let the code be self-documenting • Comment spacing: Add comments to separate logical blocks within longer methods (5-10 lines per block) • Only comment where intent isn't immediately clear from the code • Examples of good comments: • Section separators: "// Check for task completion" • Non-obvious logic: "// Re-plan if execution failed" • TODO items or warnings about gotchas • Examples of bad comments to avoid: • "// Log tool call" (obvious from code) • "// Set result" (self-evident) • "// Call function" (redundant) • Favor loops and small helper modules over duplicate code. • Use descriptive names with auxiliary verbs (e.g. isLoading, hasError). • File layout: exported component → subcomponents → hooks/helpers → static content. • IMPORTANT: All imports must use path aliases like "@/lib" instead of relative paths like "./" or "../" • IMPORTANT: Private methods must be prefixed with underscore (e.g., _privateMethod())

Naming Conventions

• Use PascalCase for classes. • Use camelCase for variables, functions, and methods. • Directories: Use kebab-case (e.g. components/auth-wizard). • Files: • Use PascalCase ONLY for files that export a class with the same name (e.g. BrowserContext.ts exports class BrowserContext) • Use lowercase for all other files: utilities, functions, interfaces, types, enums (e.g. profiler.ts, types.ts, tool.interface.ts) • Components (.tsx files) always use PascalCase (e.g. UserProfile.tsx) • Use UPPERCASE for environment variables. • Avoid magic numbers and define constants. • File extensions: • Components → .tsx • Hooks/Utils → .ts • Style modules → .module.scss • Prefer named exports for components • Types/Interfaces in PascalCase (e.g. User, ButtonProps) • OUR PRODUCT NAME IS Nxtscape (the "s" is small letter) -- so use that name correctly when naming things.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 3mo ago
Stale
AdoptionUnder 100 stars
72 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars72
Forks59
Issues11
Updated3mo ago
View on GitHub
AGPL-3.0 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