1---2name: justice-slash-commands3description: Use to handle slash-command inputs typed by users in the Louis chat interface. Defines the full command catalog, autocomplete behavior, parameter handling, and routing logic for each command. Each slash command is a shortcut to a Louis skill or workflow — this skill bridges user input to skill invocation. Covers all jurisdictions; no practice area restriction.4license: MIT5---67# Justice — Slash Commands89## Purpose1011Slash commands are keyboard-first shortcuts in the Louis chat input. When a user types `/`, the interface surfaces an autocomplete dropdown. This skill defines every supported command, its parameters, its routing target, and its behavior on invocation.1213## Trigger1415A slash command is triggered when the user:161. Types `/` at the start of a chat message (or after a space, for inline commands)172. The autocomplete dropdown appears, filtered as the user continues typing183. User selects a command (keyboard or click) or types the full command and presses Enter1920## Command catalog2122### Drafting2324| Command | Parameters | Behavior |25|---|---|---|26| `/draft [type]` | Type: nda, employment-contract, lease, spa, moa, loi, demand-letter, etc. | Invokes the appropriate drafting skill; prompts for required inputs; routes output to doc workspace |27| `/clause [name]` | Name: confidentiality, governing-law, limitation-of-liability, dispute-resolution, etc. | Pulls the named clause from the firm's clause library + the Louis standard library; inserts inline or into active document |2829### Review3031| Command | Parameters | Behavior |32|---|---|---|33| `/review [type]` | Type: general, risk-only, clause-by-clause, redline | Invokes the contract review skill on the most recently uploaded or pasted document; routes output to result page or inline |3435### Research3637| Command | Parameters | Behavior |38|---|---|---|39| `/research [topic]` | Topic: free text (e.g., "termination for cause UAE", "PDPL obligations KSA") | Invokes the legal research skill; prompts for jurisdiction if not specified; routes output to memo viewer |40| `/citation [case or statute]` | Reference: free text | Looks up and formats the citation in the active citation style; inserts into active document or returns inline |4142### Translation4344| Command | Parameters | Behavior |45|---|---|---|46| `/translate [lang]` | Lang: ar, fr, en, or auto | Translates the selected text or last assistant message to the target language; routes to bilingual viewer if > 200 words |4748### Navigation / context4950| Command | Parameters | Behavior |51|---|---|---|52| `/matter [id or name]` | Matter ID or partial name | Switches the active matter context; all subsequent saves and sends attach to this matter |53| `/jurisdiction [code]` | Code: LB, UAE, DIFC, KSA, EG, FR, UK, US, etc. | Sets the active jurisdiction filter for all subsequent skills in this session |5455### Utility5657| Command | Parameters | Behavior |58|---|---|---|59| `/skills` | None | Lists all available skills (filterable by category or jurisdiction); links to each skill's description |60| `/help` | Optional: [topic] | Opens the help panel; if a topic is provided, jumps to the relevant help article |61| `/export` | Optional: [format] (pdf, docx, md) | Exports the current conversation or active document to the specified format |6263## Autocomplete behavior6465- Dropdown appears immediately on `/` keystroke66- Commands are filtered in real-time as the user types (e.g., `/dr` shows `/draft`)67- Each item in the dropdown shows: command name, parameter hint, one-line description68- Keyboard navigation: arrow keys to move, Enter to select, Escape to dismiss69- Frequently used commands surface at the top based on user history70- Commands unavailable in the current context (e.g., `/matter` when no matters exist) are shown grayed out with a tooltip explaining why7172## Parameter handling7374- Parameters after the command name are parsed in order: `/draft nda` → type=nda75- For commands with required parameters not provided (e.g., `/review` with no document uploaded), surface a prompt: "What document would you like me to review? You can paste it now."76- Multiple parameters separated by space: `/draft employment-contract uae ar` → type=employment-contract, jurisdiction=UAE, language=ar77- Quoted parameters for multi-word values: `/research "termination for cause" uae`7879## Error handling8081| Error condition | User-facing message |82|---|---|83| Unknown command (e.g., `/foo`) | "I don't recognize `/foo`. Try `/skills` to see all available commands." |84| Command used out of context (e.g., `/review` with no document) | "[Brief explanation of what's needed] — [prompt to provide it]" |85| Command unavailable on current plan | "This command requires the [Plan] tier. [Upgrade link]" |8687## Related skills8889- [[justice-message-actions]]90- [[justice-result-page-routing]]91- [[justice-intent-how-to]]