You shouldn't have to repeat the same requests every session. These commands handle entire workflows—from picking a task to merging a PR—with just a few interactions. You approve the plan, then the system runs autonomously.
For deep dives: See workflow documentation for phase-by-phase breakdowns.
| Section | Jump to |
|---|---|
| Command Overview | What each command does |
| When to Use | Quick decision guide |
| Command Reference | Detailed usage for each |
| Real-World Examples | See it in action |
| Common Workflows | Typical usage patterns |
| Tips | Get the most out of it |
| Command | Purpose | Scope |
|---|---|---|
/next-task |
Find and implement prioritized tasks | Full autonomous workflow |
/ship |
Complete PR workflow to production | CI, deployment, validation |
/deslop |
Clean up debugging code, TODOs | Fast codebase scan |
/audit-project |
Multi-agent code review | Thorough analysis |
/drift-detect |
Compare docs to actual code | Plan drift detection |
/repo-intel |
Unified static analysis | Git history, AST symbols, project metadata |
/enhance |
Analyze prompts, plugins, agents, docs, hooks, skills | Quality improvement |
/sync-docs |
Sync docs with code changes | Documentation sync |
/perf |
Performance investigation workflow | Baselines, profiling, evidence |
Starting Your Day:
/next-task
# Shows prioritized tasks from GitHub issuesBefore Committing:
/deslop apply
# Cleans up debugging codeBefore Creating PR:
/audit-project
# Catches issues earlyReady to Deploy:
/ship
# Handles everything: PR, CI, merge, deploy, validateRemove debugging code, old TODOs, and AI slop from your codebase with a 3-phase detection pipeline.
/deslop # Report mode (safe, no changes)
/deslop apply # Apply fixes automatically
/deslop apply src/ 10 # Fix 10 issues in src/ onlyArchitecture:
- Phase 1 - Built-in regex patterns (HIGH certainty) - always runs
- Phase 2 - Multi-pass analyzers (MEDIUM certainty) - context-aware
- Phase 3 - Optional CLI tools (LOW certainty) - graceful degradation
- JavaScript/TypeScript: jscpd, madge, escomplex
- Python: pylint, radon
- Go: golangci-lint
- Rust: clippy
Thoroughness levels:
quick- Phase 1 only (fastest)normal- Phase 1 + Phase 2 (default, recommended)deep- All phases if tools available (most thorough)
Detects:
- Console debugging (
console.log,print(),dbg!()) - Old TODOs and commented code
- Placeholder text, magic numbers
- Empty catch blocks, disabled linters
- Placeholder functions
- Excessive documentation
- Phantom references
- Buzzword inflation
- Code smells and over-engineering patterns
Complete task-to-production automation with state management.
/next-task # Start new workflow with policy selection
/next-task --status # Check current workflow state
/next-task --resume # Resume from last checkpoint
/next-task --abort # Cancel workflow and cleanup
/next-task bug # Filter by task type
/next-task --implement # Start implementing selected task12-Phase Workflow:
- Policy Selection → Choose task source, priority, stopping point
- Task Discovery → Find and prioritize tasks, you pick one
- Worktree Setup → Create isolated branch and directory
- Exploration → Deep codebase analysis
- Planning → Design implementation plan
- User Approval → Approve the plan (LAST human interaction)
- Implementation → Execute the plan
- Pre-Review → Clean AI slop, check test coverage
- Review Loop → Multi-agent review until clean
- Delivery Validation → Verify tests, build, requirements
- Docs Update → Sync documentation
- Ship → Create PR, monitor CI, address comments, merge
Phase 9 uses the orchestrate-review skill to define review passes and signal thresholds.
Comprehensive multi-agent code review that adapts to your project.
/audit-project # Full review with all agents
/audit-project --quick # Single-pass review
/audit-project --domain security # Security review only
/audit-project --recent # Only recent changes8 Specialized Roles (2 always active, 6 conditional):
| Agent | When Active | Focus Area |
|---|---|---|
| security-expert | Always | Vulnerabilities, auth, secrets |
| performance-engineer | Always | N+1 queries, memory, blocking ops |
| test-quality-guardian | If tests exist | Coverage, edge cases, mocking |
| architecture-reviewer | If 50+ files | Modularity, patterns, SOLID |
| database-specialist | If DB detected | Queries, indexes, transactions |
| api-designer | If API detected | REST, errors, pagination |
| frontend-specialist | If frontend detected | Components, state, UX |
| devops-reviewer | If CI/CD detected | Pipelines, configs, secrets |
Only relevant agents run based on your codebase - no wasted analysis.
Sync documentation with actual code state. Find outdated references, update CHANGELOG, flag stale examples.
/sync-docs # Report mode (safe, no changes)
/sync-docs apply # Apply auto-fixable issues
/sync-docs report src/ # Check docs related to src/
/sync-docs --all # Full codebase scanPhases:
- Get changed files (since last commit to main, or all with
--all) - Find related documentation (references to changed files)
- Analyze issues (outdated imports, removed exports, version mismatches)
- Check CHANGELOG (undocumented commits)
- Report findings or apply fixes
Auto-fixable (apply mode):
- Outdated version numbers
- CHANGELOG entries for undocumented commits
Flagged for manual review:
- Removed exports referenced in docs
- Code examples that may need context updates
Structured performance investigation with baselines, profiling, and evidence‑backed decisions.
/perf # Start new investigation
/perf --resume # Resume previous investigationPhase flags (advanced):
/perf --phase baseline --command "npm run bench" --version v1.2.0
/perf --phase breaking-point --command "npm run bench" --param-min 1 --param-max 500
/perf --phase constraints --command "npm run bench" --cpu 1 --memory 1GB
/perf --phase hypotheses --hypotheses-file perf-hypotheses.json
/perf --phase code-paths
/perf --phase optimization --change "reduce allocations"
/perf --phase decision --verdict stop --rationale "no measurable improvement"
/perf --phase consolidation --version v1.2.0Complete PR workflow from commit to production.
/ship # Full workflow
/ship --dry-run # Preview without executing
/ship --strategy rebase # Use rebase instead of squash
/ship --state-file PATH # Integrate with next-task workflowStages:
- Pre-flight checks and platform detection
- Commit with AI-generated message
- Create PR with context
- Wait for CI and address PR feedback
- Multi-agent review (standalone mode only)
- Merge PR
- Deploy to development (if configured)
- Validate development deployment
- Deploy to production (if configured)
- Validate production deployment
- Cleanup
- Completion report
Scenario: Console.log statements and TODOs scattered in your code.
You: /deslop
Claude:
Detected: Node.js project, single-branch workflow
Found 8 issues:
1. src/app.js:15 - console.log("User logged in")
2. src/app.js:42 - // TODO: Add validation
3. src/utils.js:8 - console.log("Debug:", data)
4. src/api.js:23 - // FIXME: This is hacky
5. src/api.js:67 - empty catch block
...
Would you like me to apply fixes?
You: Apply fixes, but keep the console.log in tests
Claude:
[OK]Removed 5 console.log statements
[OK]Removed 2 old TODO comments
[OK]Added logging to empty catch block
[OK]Kept test console.logs
Running tests... [OK]All tests pass
Ready to commit!
Scenario: 20 GitHub issues, need to prioritize.
You: /next-task
Claude:
Analyzing tasks from GitHub Issues...
Found 20 open issues
Top 5 Priority Tasks:
1. [P1] Fix authentication timeout bug (#142)
Status: Not implemented
Priority Score: 85
Estimated effort: Small
Files: src/auth/session.ts
2. [P2] Add dark mode to settings (#89)
Status: Partially done
Priority Score: 60
Estimated effort: Medium
Files: src/components/Settings.tsx
Which task would you like to work on?
You: /next-task --implement
Claude:
Creating branch: fix/auth-timeout-bug-142
Investigating implementation...
Found issue: Session timeout hardcoded to 5 minutes
Implementing fix...
[OK]Fix implemented
[OK]Tests written and passing
[OK]Ready to ship
Scenario: Finished login feature, want thorough review.
You: /audit-project
Claude:
Detected: React + TypeScript project
Launching specialized review agents...
Review Complete! Found 4 issues:
CRITICAL (1):
1. Security: src/api/auth.ts:45
Issue: Password sent in URL parameters
Fix: Use POST body instead
HIGH (2):
2. React: src/components/LoginForm.tsx:23
Issue: Missing useCallback (causes re-renders)
3. Testing: tests/login.test.tsx:15
Issue: Missing test for failed login
MEDIUM (1):
4. Performance: src/hooks/useAuth.ts:10
Issue: Expensive calculation every render
Would you like me to fix these?
You: Yes, fix all review issues
Claude:
Round 1: [OK]Fixed security issue
Round 2: [OK]Fixed React performance + added tests
Round 3: [OK]Re-verified - no open issues remain
Code is ready to ship!
Scenario: Feature finished, want to deploy.
You: /ship
Claude:
Starting complete PR workflow...
Phase 1: Pre-flight checks
[OK]Detected: GitHub Actions CI
[OK]Detected: Railway deployment
[OK]On branch: feature/add-dark-mode
Phase 2: Committing
Generated commit: "feat(ui): add dark mode toggle"
[OK]Committed as: abc123f
Phase 3: Creating PR
[OK]Created PR #156
URL: https://github.com/youruser/repo/pull/156
Phase 4: Waiting for CI...
[OK]All checks passed
Phase 5: Review passes...
[OK]code quality: approved
[OK]test coverage: approved (95% coverage)
Phase 6: Merging
[OK]Merged PR #156 to main
Phase 7-8: Deploying to development...
[OK]Deployed to: https://app-dev.railway.app
[OK]Validation passed
Phase 9-10: Deploying to production...
[OK]Deployed to: https://app.railway.app
[OK]Production healthy
[OK]DEPLOYMENT COMPLETE!
Scenario: Quick security check before release.
You: /audit-project --domain security --quick
Claude:
Running focused security review...
Found 2 security issues:
CRITICAL:
1. src/api/users.js:34 - SQL Injection
Code: db.query(`SELECT * FROM users WHERE id = ${req.params.id}`)
Fix: Use parameterized queries
HIGH:
2. src/middleware/auth.js:12 - Weak JWT secret
Code: jwt.sign(payload, 'secret123')
Fix: Use env variable
Would you like me to fix these?
You: Yes, fix both
Claude:
[OK]Fixed SQL injection
[OK]Fixed JWT secret
[OK]Added JWT_SECRET to .env.example
Security issues resolved!
1. /next-task --implement # Pick task and start
2. *develop feature*
3. /deslop apply # Clean up
4. /audit-project # Get feedback
5. /ship # Deploy
1. /audit-project --quick # Quick check
2. Fix issues
3. /audit-project # Full review
4. Iterate until clean
5. /ship # Deploy
1. /deslop report # See all slop
2. /deslop apply # Clean it up
3. /next-task # See priorities
4. /audit-project # Full audit
1. /ship --dry-run # Preview
2. /ship # Full workflow
Don't start with /ship on production immediately!
Try this order:
/deslop report- Just look, no changes/next-task- See task prioritization/deslop apply- Make safe changes/audit-project --quick- Quick feedback/ship --dry-run- Preview the workflow/ship- Full deployment
You: Can you explain what /ship will do in my project?
Claude: *analyzes your project*
I see you have:
- GitHub Actions CI
- Railway deployment
- Single-branch workflow
Here's what /ship will do:
1. Commit your changes
2. Create PR to main
3. Wait for GitHub Actions
4. Run code review
5. Merge to main
6. Railway auto-deploys
7. Validate deployment
You: Run /deslop, then /audit-project, then /ship
Claude:
1. Cleaning up slop... [OK]Removed 5 issues
2. Running review... [OK]Fixed 2 issues
3. Shipping to production... [OK]Complete!
Your code is cleaned, reviewed, and deployed!
/next-task bug # Focus on bugs only
/audit-project --domain security # Security review only
/deslop apply src/ 10 # Limit scopeWhen working in this repo directly, you can sanity-check detection and tooling:
npm run detect # Platform detection (CI, deploy, project type)
npm run verify # Tool availability + versionsNo setup files. No config. Just install and use.
- Detects: Node.js, Python, Rust, Go
- Detects: GitHub Actions, GitLab CI, CircleCI, Jenkins
- Detects: Railway, Vercel, Netlify, Fly.io
- Uses what you have, skips what you don't
Every finding includes:
- File path and line number
- Actual code quote
- Specific fix suggestion
- Why it matters
- Runs tests
- Checks types
- Validates deployments
- Monitors errors
- Automatic rollback if production fails
- GitHub Actions
- GitLab CI
- CircleCI
- Jenkins
- Travis CI
- Railway
- Vercel
- Netlify
- Fly.io
- Platform.sh
- Render
- Start with:
/deslop report- safest command, immediate value - For issues: https://github.com/agent-sh/agentsys/issues
- Contributing: See CONTRIBUTING.md