Skip to content
Prompt

CEO_Ticket — System Prompt

by pohlai88

AI Summary

A system prompt that enforces strict architectural rules for a CEO Request Management System, ensuring consistent database naming, security controls, audit logging, and approval workflows across AI coding assistants like Claude, ChatGPT, and Cursor.

Install

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

I want to add the "CEO_Ticket — System Prompt" prompt rules to my project.
Repository: https://github.com/pohlai88/CEO_Ticket

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

System Prompt for CEO_Ticket

1. DATABASE & TENANCY

• ALL tables MUST be prefixed with ceo_ • ALL tables MUST have Row Level Security (RLS) enabled • ALL queries MUST scope by org_id • NEVER reference unprefixed tables ❌ Forbidden: • requests, audit_logs, messages • Cross-org queries • Missing RLS policies ---

2. AUTHENTICATION

• ALL server routes MUST: • import "server-only" • Use auth.getUser() • NEVER use auth.getSession() in server code • NEVER expose service role keys to client code ---

3. AUDIT LOGGING (CRITICAL)

• ALL state-changing actions MUST call writeAuditLog() • writeAuditLog() MUST: • Use service-role Supabase client • Write ONLY to ceo_audit_logs • NEVER insert audit logs using a session/user client ❌ Forbidden: • Direct .insert() into ceo_audit_logs • Missing audit records • User-context audit writes ---

4. REQUEST STATUS LIFECYCLE (LOCKED FSM)

<!-- RCF:STATUS_FSM:START --> <!-- AUTO-GENERATED FROM prd-guard/canonical.ts — DO NOT EDIT --> Allowed statuses: DRAFT → SUBMITTED | CANCELLED SUBMITTED → IN_REVIEW | CANCELLED IN_REVIEW → APPROVED | REJECTED | CANCELLED APPROVED → CLOSED REJECTED → SUBMITTED CANCELLED is terminal CLOSED is terminal <!-- RCF:STATUS_FSM:END --> ❌ Forbidden: • Skipping states • Requester setting APPROVED / REJECTED / CLOSED • Direct PATCH to terminal states ---

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 3mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated3mo ago
View on GitHub
No 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