Commands: Codex library, page 3
485 commands in the Codex library. 198 are open to read here. The rest are in the members library.
- /write-query -- SQL Query Generator
Generate SQL queries from natural language — supports BigQuery, PostgreSQL, MySQL, and more
- /red-team-prd -- Attack the Plan Before Reality Does
Red-team a PRD, roadmap, or strategy — attack its load-bearing assumptions and return the cheapest test for each before you commit
- /proofread -- Grammar & Flow Check
Check grammar, logic, and flow in any text — targeted fixes without rewriting
- /performance-audit-static has moved
- /security-audit-static has moved
- /derive-tests has moved
- /document-app has moved
- /ship-check has moved
- Documentation (doc-gen)
Generate documentation from the codebase for the specified scope.
- Devops (ci-pipeline)
Generate a CI pipeline configuration for GitHub Actions.
- security-scan
Perform a security-focused scan of the codebase targeting OWASP Top 10 and common vulnerability patterns.
- /doc-forge:api-docs
Generate API reference documentation from source code annotations, types, and route definitions.
- /perf-profiler:profile
Analyze the codebase for performance bottlenecks, resource inefficiencies, and scalability concerns.
- /perf-profiler:optimize
Apply targeted performance optimizations to a specified file, function, or module.
- Project Codemap
Update the project codemap to reflect the current state of the codebase.
- Testing (e2e)
Generate end-to-end tests using Playwright for critical user flows.
- Documentation (api-docs)
Generate API documentation from route definitions and handlers.
- Stage 1: Build
Generate an optimized Dockerfile for the current project.
- /doc-forge:generate-docs
Generate comprehensive documentation for the current project or a specified module.
- /api-architect:generate-openapi
Generate an OpenAPI 3.1 specification from the existing codebase or API design.
- /doc-forge:update-readme
Update or create a README.md that accurately reflects the current state of the project.
- /deploy-pilot:ci-pipeline
Generate a GitHub Actions CI/CD workflow tailored to the current project.
- /deploy-pilot:dockerfile
Generate an optimized multi-stage Dockerfile for the current project.
- review
Perform a thorough code review of the current uncommitted changes or a specified file/directory.
- Security (audit)
Perform a security audit of the codebase covering common vulnerability categories.
- Refactoring (simplify)
Simplify code to improve readability and maintainability.
- Architecture (migrate)
Plan and execute a framework or library migration incrementally.
- Architecture (refactor)
Perform a systematic refactoring of the specified code area.
- Architecture (plan)
Create a structured implementation plan for the requested feature or change.
- Testing (test-coverage)
Analyze test coverage gaps and generate tests for uncovered code paths.
- Testing (tdd)
Start a TDD (Test-Driven Development) cycle for the requested feature or function.
- Commands (load-test)
Run a load test against an API endpoint to measure throughput and identify breaking points.
- Workflow (orchestrate)
Run a multi-step workflow by breaking a complex task into coordinated sub-tasks.
- review-pr
Perform a thorough code review of a pull request with actionable feedback.
- Commands (sync-versions)
Synchronize package versions across a monorepo for consistent releases.
- Security (dependency-audit)
Audit project dependencies for known vulnerabilities and outdated packages.
- Commands (test-endpoint)
Test an API endpoint with various request scenarios and validate responses.
- benchmark
Run benchmarks to measure and compare performance of code implementations.
- test-prompt
Test an AI prompt against multiple scenarios to verify consistent, quality output.
- commit
Analyze all staged git changes and generate an intelligent conventional commit message.
- Architecture (diagram)
Generate Mermaid diagrams from codebase analysis or description.
- Devops (k8s-manifest)
Generate Kubernetes manifests for deploying the current application.
- /api-architect:design-api
Design a RESTful or GraphQL API based on the project's domain model and requirements.
- Architecture (design-review)
Conduct a structured design review of a module, feature, or system component.
- Refactoring (cleanup)
Find and remove dead code, unused imports, and unreachable branches.
- /deploy-pilot:k8s-manifest
Generate production-ready Kubernetes manifests for the current application.
- Devops (monitor)
Set up monitoring, alerting, and observability for the application.
- optimize-dockerfile
Optimize an existing Dockerfile for smaller images, faster builds, and better security.
- a11y-scan
Scan web application components for accessibility violations against WCAG guidelines.
- aria-fix
Fix ARIA attributes and accessibility issues in web components.
- profile-api
Profile an API endpoint to identify performance bottlenecks and optimization opportunities.
- Devops (deploy)
Deploy the application to a target environment with pre/post checks.
- Security (csp)
Generate Content Security Policy headers for a web application.
- Refactoring (extract)
Extract a function, component, or module from existing code into its own unit.
- Commands (annotate)
Add inline documentation (JSDoc, docstrings, comments) to under-documented code.
- Refactoring (rename)
Rename a symbol (variable, function, class, file) across the entire codebase.
- Security (secrets-scan)
Scan the codebase for leaked secrets, API keys, tokens, and credentials.
- Developer Onboarding Guide
Generate an onboarding guide for new developers joining the project.
- Commands (scaffold)
Scaffold a new project with a complete, production-ready structure.
- Commands (simplify)
Simplify complex code by reducing nesting, eliminating duplication, and improving clarity.
- Commands (affected)
Detect which packages in a monorepo are affected by recent changes.
- Project Memory
Update the project's CLAUDE.md memory bank with current session learnings.
- Commands (add-feature)
Add a new feature module to an existing project with all supporting files.
- generate-changelog
Generate a changelog from git history, grouping commits by type and version.
- Checkpoint: <timestamp>
Save a session checkpoint capturing current progress, decisions, and next steps.
- Commands (trace)
Trace the execution path of a request or operation through the codebase.
- improve-prompt
Analyze and improve an AI prompt for clarity, specificity, and effectiveness.
- Commands (extract-fn)
Extract a block of code into a well-named, reusable function with proper typing.
- Git (pr-review)
Review a pull request by number: fetch the diff, analyze changes, and post review comments.
- Commands (debug-pod)
Debug a failing or unhealthy Kubernetes pod by analyzing events, logs, and configuration.
- Workflow (wrap-up)
End the current session with a structured summary and memory update.
- report (analytics reporter)
Generate a project analytics report covering code quality, velocity, and health metrics.
- Commands (explain)
Explain a code file, function, or concept in clear, structured language.
- Commands (debug)
Systematically debug an issue by analyzing symptoms, forming hypotheses, and testing them.
- Database Configuration
Set up environment configuration files from templates with validation.
- Testing (snapshot-test)
- Commands (env-validate)
- build-image
- Testing (integration-test)
- ADR-NNNN: <Title>
- code-migrate
- audit-deps
- Git (fix-issue)
- Git (release)
- Commands (flow-release)
- Commands (generate-manifest)
- unit-test
- Git (commit)
- dashboard (analytics reporter)
- update-deps
- Commands (flow-start)
- approve-pr
- Git (worktree)
- integration-test
- db-migrate
- Git (pr-create)
- Commands (think)
- Module: <name>
- commit-push
- Commands (discuss)