Skip to main content

Overview

These slash commands help maintain code quality, identify issues, optimize performance, and implement test-driven development workflows.

Code Quality & Security

/check

by rygwdnPerforms comprehensive code quality and security checks, featuring static analysis integration, security vulnerability scanning, code style enforcement, and detailed reporting.

/code_analysis

by kinglerProvides a menu of advanced code analysis commands for deep inspection, including knowledge graph generation, optimization suggestions, and quality evaluation.

Performance Optimization

/optimize

by to4ikiAnalyzes code performance to identify bottlenecks, proposing concrete optimizations with implementation guidance for improved application performance.

Issue Reproduction

/repro-issue

by rzykovCreates reproducible test cases for GitHub issues, ensuring tests fail reliably and documenting clear reproduction steps for developers.

Test-Driven Development

/tdd

by zscottGuides development using Test-Driven Development principles, enforcing Red-Green-Refactor discipline, integrating with git workflow, and managing PR creation.

/tdd-implement

by jerseycheeseImplements Test-Driven Development by analyzing feature requirements, creating tests first (red), implementing minimal passing code (green), and refactoring while maintaining tests.

Code Analysis Workflow

A typical code analysis workflow using these commands:
  1. Initial Check: Run /check to perform comprehensive quality and security scanning
  2. Deep Analysis: Use /code_analysis for detailed inspection and quality metrics
  3. Performance Review: Apply /optimize to identify and fix performance bottlenecks
  4. Issue Reproduction: Create test cases with /repro-issue for reported bugs
  5. TDD Implementation: Use /tdd or /tdd-implement for new features

Benefits of Code Analysis Commands

Quality Assurance

Automated checks ensure consistent code quality and catch issues early in development.

Security

Vulnerability scanning identifies security issues before they reach production.

Performance

Optimization commands help identify and resolve performance bottlenecks.

Test Coverage

TDD commands enforce testing discipline and improve code reliability.

Best Practices

When using code analysis and testing commands:
  • Run Checks Regularly: Integrate /check into your workflow before commits
  • Follow TDD: Use TDD commands for new features to ensure comprehensive test coverage
  • Document Issues: Use /repro-issue to create clear, reproducible test cases
  • Optimize Strategically: Focus optimization efforts on identified bottlenecks
  • Continuous Improvement: Regularly review analysis results and adjust development practices

Build docs developers (and LLMs) love