Complete Command Reference
Trellis provides 13 Slash commands (Claude Code), organized into 6 categories. The Cursor version has 12 (excluding /parallel).
5.1 Session Management
/start — Start a Development Session
When to use: Every time you open your AI coding assistant to start work. Claude Code users have context auto-injected via Hooks, so /start is optional (but recommended for first-time use to see the full flow). Cursor users must run /start.
Execution flow:
- Read
workflow.md to understand the workflow
- Run
get-context.py to get context (identity, Git status, active tasks)
- Read spec indexes to understand project specs
- Report context and ask: “What would you like to work on?”
Task classification decisions:
When in doubt, use Task Workflow. Task Workflow ensures Agents receive spec injection, resulting in higher code quality.
/parallel — Multi-Agent Parallel Orchestration
Claude Code only. Cursor, Codex, and other platforms do not support Multi-Agent Pipeline.
When to use:
- High task complexity, requiring > 30 minutes
- Can be split into multiple independent subtasks
- Needs isolation in independent worktrees
Two-phase flow:
Phase 1: Plan
The Plan Agent will:
- Assess whether requirements are clear (may reject, see Chapter 6)
- Invoke Research Agent to analyze the codebase
- Create task directory and configure JSONL context
- Generate the prd.md requirements document
Phase 2: Execute
Automatically creates a Git worktree. The Dispatch Agent executes implement, check, finish, and create-pr in sequence.
Monitoring commands:
/record-session — Record a Session
When to use: After the user has tested and committed code.
Prerequisite: The AI does not execute git commit; it only reads git history.
Execution flow:
Automatically completes:
- Appends session record to
journal-N.md
- Detects line count and auto-creates a new file when exceeding 2,000 lines
- Updates
index.md (session count +1, last active time, history table)
/onboard — New Member Onboarding
When to use: When a new team member joins.
Includes three parts:
- Core concept walkthrough (spec / workspace / task / hook)
- 5 hands-on exercises (bug fix, planning session, Code Review fix, large refactor, debugging session)
- Spec customization guidance
5.2 Development Preparation
/before-backend-dev — Backend Development Prep
Reads the backend spec index and related spec documents (database, error handling, logging, type safety, quality guidelines), ensuring the AI understands backend coding standards before writing code.
/before-frontend-dev — Frontend Development Prep
Reads the frontend spec index and related spec documents (components, Hooks, state management, type safety, quality guidelines).
5.3 Quality Checks
/check-backend — Backend Code Check
Execution flow:
git status to view changes
- Re-read backend specs
- Compare code against specs line by line
- Auto-fix violations (Ralph Loop driven, up to 3 rounds)
Check items: directory structure, database operations, error handling, logging conventions, type definitions, no console.log, no any types, no non-null assertions.
/check-frontend — Frontend Code Check
Check items: component naming (PascalCase), Props interfaces, Hook usage, state management, style consistency, TypeScript errors, ESLint errors, unused imports.
Also uses the Ralph Loop self-fix cycle.
/check-cross-layer — Cross-Layer Consistency Check
Reads the cross-layer thinking guide and analyzes 6 dimensions:
- Data flow consistency — Frontend, API, Database, API, Frontend
- Type definition sync — Frontend and backend interfaces match
- Error handling continuity — Errors properly propagated across layers
- Constant synchronization — Shared constants between frontend and backend
- Code reuse — No duplicate implementations
- Import path correctness — No broken references
5.4 Parallel Development
/parallel
See section 5.1.
5.5 Knowledge Accumulation
/break-loop — Deep Bug Analysis
When to use: After resolving a tricky bug, to perform deep analysis and prevent similar issues.
5-Dimension Analysis Framework:
-
Root Cause Classification:
- A — Missing Spec
- B — Cross-layer Contract Violation
- C — Change Propagation Failure
- D — Test Coverage Gap
- E — Implicit Assumption
-
Why Fixes Failed — Analyze why previous fix attempts failed
-
Prevention Mechanisms (6 types):
- Spec update
- Type constraints
- Lint rules
- Test cases
- Code review checklist items
- Documentation updates
-
Systematic Expansion — Search for other potential issues with the same pattern
-
Knowledge Capture — Solidify analysis results into specs
Core philosophy:
The value of debugging is not fixing this bug, but ensuring this class of bugs never happens again.
5.6 Utility Commands
/finish-work — Pre-Commit Checklist
6-dimension check before committing:
- Code quality (lint, type-check, test)
- Documentation sync
- API changes
- Database changes
- Cross-layer verification
- Manual testing
/create-command — Create Custom Commands
Generates dual-IDE command files under .claude/commands/trellis/ and .cursor/commands/. See Chapter 9 for details.
/integrate-skill — Integrate External Skills
Integrates community Skills into your project, creating a unified /use-[skill-name] command. See Chapter 12 for details.