Mannay Claude Code

Commands Reference

Complete reference for all Mannay slash commands.

Overview

Commands are quick tools for scaffolding and common tasks. Use /command-name syntax.

API Commands

/api-new

Create a new API endpoint with validation and error handling.

/api-new POST /api/users create user endpoint

Creates:


/api-backend-setup

Set up backend API with Express or Fastify for Vite/CRA projects.

/api-backend-setup express
/api-backend-setup fastify

Creates:


/api-test

Generate comprehensive test suite for an API endpoint.

/api-test /api/users

Creates:


/api-protect

Add authentication and authorization to API endpoints.

/api-protect /api/admin

Adds:


UI Commands

/component-new

Create a new React component with TypeScript.

/component-new UserCard

Creates:


/page-new

Create a new Next.js page with App Router.

/page-new dashboard

Creates:


/page-new-react

Create a React Router page for Vite/CRA projects.

/page-new-react settings

Creates:


Supabase Commands

/types-gen

Generate TypeScript types from Supabase database schema.

/types-gen

Creates:


/edge-function-new

Create a new Supabase Edge Function.

/edge-function-new send-email

Creates:


Quality Commands

/lint

Run ESLint, TypeScript, and Prettier.

/lint

Runs:


/code-cleanup

Refactor and clean up code following best practices.

/code-cleanup src/utils/helpers.ts

Does:


/code-optimize

Analyze and optimize code for performance.

/code-optimize src/components/List.tsx

Does:


/code-explain

Explain complex code sections.

/code-explain src/lib/auth.ts

Provides:


Planning Commands

/new-task

Analyze task complexity and create implementation plan.

/new-task add user authentication

Creates:


/feature-plan

Create technical specification for a feature.

/feature-plan user profile management

Creates:


/docs-generate

Generate documentation for code, APIs, or components.

/docs-generate src/lib/

Creates:


Ralph Commands

/ralph-init

Initialize Ralph Mode files in current project.

/ralph-init

Creates:


/ralph-build

Create a PRD interactively for Ralph execution.

/ralph-build

Process:

  1. Ask clarifying questions
  2. Generate user stories
  3. Create prd.json
  4. Validate atomicity

/ralph-start

Start Ralph autonomous execution loop.

/ralph-start

Does:

  1. Reads prd.json
  2. Executes stories sequentially
  3. Commits after each story
  4. Updates progress

/ralph-status

Check Ralph execution status.

/ralph-status

Shows:


/ralph-stop

Stop Ralph execution loop.

/ralph-stop

Does:


Codex Commands

/gpt-review

Queue a file for GPT code review using your ChatGPT subscription via Codex CLI.

/gpt-review src/auth.ts --security
/gpt-review src/api/payment.ts --performance
/gpt-review src/utils.ts --refactor
/gpt-review src/file.ts "Check for edge cases"

Flags: | Flag | Focus | |——|——-| | --security | Vulnerabilities, input validation, secrets | | --performance | Bottlenecks, memory leaks, optimization | | --refactor | DRY, naming, structure, clarity |

Requirements:


/gpt-status

Check Codex review status and daily usage.

/gpt-status

Shows:


/gpt-results

View GPT code review results.

/gpt-results              # Show all recent results
/gpt-results src/auth.ts  # Show specific file's review

Shows:


Memory Commands

/memory-status

Check memory system status and statistics.

/memory-status

Shows:


/memory-learnings

View recent learnings accumulated across sessions.

/memory-learnings

Shows:

See Memory System for full documentation.


Command Quick Reference

Command Purpose
/api-new Create API endpoint
/api-backend-setup Setup Express/Fastify
/api-test Generate API tests
/api-protect Add auth to endpoint
/component-new Create React component
/page-new Create Next.js page
/page-new-react Create React Router page
/types-gen Generate Supabase types
/edge-function-new Create Edge Function
/lint Run linting
/code-cleanup Refactor code
/code-optimize Optimize performance
/code-explain Explain code
/new-task Analyze task
/feature-plan Plan feature
/docs-generate Generate docs
/ralph-init Initialize Ralph
/ralph-build Create PRD
/ralph-start Start Ralph
/ralph-status Check status
/ralph-stop Stop Ralph
/gpt-review GPT code review via Codex
/gpt-status Codex review status
/gpt-results View GPT review results
/memory-status Memory system stats
/memory-learnings View learnings