Replit Agent Command Templates - Enhanced Control System
Provides a structured command system for controlling Replit Agent actions with safety, module targeting, and priority levels.
What this file does
Provides a structured command system for controlling Replit Agent actions with safety, module targeting, and priority levels.
When to use it
- Working with Replit Agent on a multi-module project
- Need to enforce read-only analysis before modifications
- Require approval workflows for code changes
- Target commands to specific modules like CER or 510k
Assumes this stack
Replit Agent Command Templates - Enhanced Control System
Use these exact phrases when interacting with the Replit Agent for maximum control and safety:
š Analysis Commands (Read-Only):
- "ANALYZE ONLY - do not modify: [describe what to analyze]"
- "EXPLAIN EXISTING CODE in [file path] - no changes"
- "LIST FILES that contain [specific pattern] - read-only"
- "SHOW ME the structure of [component/function] - inspection only"
- "REVIEW ARCHITECTURE for [module/component] - documentation only"
- "IDENTIFY DEPENDENCIES in [file/module] - mapping only"
- "TRACE DATA FLOW in [component] - visualization only"
ā ļø Controlled Modification Commands:
- "AWAIT APPROVAL - propose changes to [specific file] for [exact purpose]"
- "SINGLE FILE ONLY - modify [exact file path] to [specific change]"
- "CONFIRM BEFORE EXECUTING - [specific task]"
- "ENHANCE EXISTING FUNCTION: [function name] in [file] to [specific improvement]"
- "ADD NEW FEATURE to [specific component] - [detailed requirements]"
- "REFACTOR COMPONENT: [component name] for [specific optimization]"
š”ļø Safety Commands:
- "READ-ONLY MODE - inspect [target] without changes"
- "BACKUP BEFORE CHANGES: [file/component]"
- "VALIDATE SYNTAX ONLY: [file path]"
- "STOP ALL ACTIONS - revert to read-only mode"
- "CANCEL CURRENT OPERATION - await new instructions"
- "EMERGENCY ROLLBACK: [component/file]"
š„ TrialSage Module-Specific Commands:
CER (Clinical Evaluation Report) Module:
- "CER MODULE ONLY - work on [specific task] in client/src/components/cer/"
- "CER GENERATION ONLY - modify [specific generator] for [purpose]"
- "CER VALIDATION ONLY - enhance [validation component]"
- "CER COMPLIANCE ONLY - update [compliance checker]"
CoAuthor Document System:
- "COAUTHOR MODULE ONLY - work on [task] in client/src/components/coauthor/"
- "DOCUMENT EDITOR ONLY - enhance [editor feature]"
- "DOCUMENT TEMPLATE ONLY - modify [template type]"
- "COLLABORATION ONLY - update [collaboration feature]"
510k FDA Submission:
- "510K MODULE ONLY - work on [task] in client/src/components/510k/"
- "FDA COMPLIANCE ONLY - update [compliance component]"
- "PREDICATE ANALYSIS ONLY - enhance [analysis feature]"
- "SUBMISSION BUILDER ONLY - modify [builder component]"
Server-Side Operations:
- "SERVER ROUTE ONLY - modify [specific route] for [exact purpose]"
- "API ENDPOINT ONLY - enhance [endpoint] in server/routes/"
- "DATABASE SCHEMA ONLY - adjust [table/field] in shared/schema.ts"
- "MIDDLEWARE ONLY - update [middleware] in server/middleware/"
Client-Side Components:
- "CLIENT COMPONENT ONLY - update [component] in client/src/components/"
- "UI LIBRARY ONLY - enhance [ui component] in client/src/components/ui/"
- "SERVICE LAYER ONLY - modify [service] in client/src/services/"
- "HOOK ONLY - update [hook] in client/src/hooks/"
šØ Priority Levels:
- "LOW PRIORITY: [task description]"
- "MEDIUM PRIORITY: [task description]"
- "HIGH PRIORITY: [task description]"
- "CRITICAL PRIORITY: [task description]"
š Context Templates:
- "CONTEXT: Working on regulatory compliance feature for [specific regulation]"
- "CONTEXT: Enhancing user experience for [specific user type]"
- "CONTEXT: Fixing bug related to [specific functionality]"
- "CONTEXT: Optimizing performance for [specific operation]"
- "CONTEXT: Adding security enhancement for [specific area]"
š Approval Workflow:
- "PROPOSE CHANGES FIRST - do not implement immediately"
- "SHOW DIFF PREVIEW - before making changes"
- "AWAIT EXPLICIT APPROVAL - for each file modification"
- "CONFIRM COMPLETION - after successful implementation"
šÆ Complete Command Structure:
š REPLIT AGENT - STRICT CONTROL MODE
š COMMAND: [Primary action using templates above]
šÆ MODULE: [Specific TrialSage module]
šØ PRIORITY: [Low/Medium/High/Critical]
ā ļø CONSTRAINTS: [Specific limitations and requirements]
š CONTEXT: [Background information and goals]
ā
APPROVAL: [Required/Granted/Pending]
š ļø Example Complete Commands:
Safe Analysis:
š REPLIT AGENT - STRICT CONTROL MODE
š COMMAND: ANALYZE ONLY - review CER generation workflow
šÆ MODULE: CER
šØ PRIORITY: Medium
ā ļø CONSTRAINTS: Read-only analysis, no code changes
š CONTEXT: Understanding current CER generation process for optimization planning
ā
APPROVAL: Not required for read-only analysis
Controlled Modification:
š REPLIT AGENT - STRICT CONTROL MODE
š COMMAND: AWAIT APPROVAL - enhance CER validation component
šÆ MODULE: CER
šØ PRIORITY: High
ā ļø CONSTRAINTS: Only modify client/src/components/cer/CerValidationPanel.jsx
š CONTEXT: Adding EU MDR compliance checks to existing validation
ā
APPROVAL: REQUIRED - awaiting explicit approval
What's inside
8 command categories, 4 module-specific sections, 2 complete command examples, and a structured command template
Change this for your project
- Replace module paths like
client/src/components/cer/with your own project structure - Replace module names like
CER,CoAuthor,510kwith your own module names - Replace example file paths like
CerValidationPanel.jsxwith your actual files
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Prefixing commands with read-only or approval flags to prevent unintended changes
- Structuring commands with module, priority, constraints, and context for clarity
Related Documents
GOOBY - Closing Store Marketplace
Defines a full-stack marketplace app for discovering closing retail stores in NY/NJ/CT/PA, with automated closure scanning and admin review.
Lua Code Obfuscator/Deobfuscator
Provides a full-stack web app for obfuscating and deobfuscating Roblox Lua scripts with a Monaco editor and PostgreSQL storage.
GREEN NODE - Project Overview
Describes a full-stack recycling platform with three runtime modes, provider architecture, and development scripts for Cochabamba, Bolivia.
ADN Systems DMR Peer Server
Documents a forked FreeDMR server for amateur radio DMR voice/data routing with bridges, proxies, scheduled voice announcements, and centralized security.