Skip to content
Development
Command

/check-async

Analyze Python async code for correctness, patterns, and potential issues.

From plugin
claude-night-market
343162 skills60 agents162 commands1 MCP
> /plugin marketplace add athola/claude-night-market

Command definition

check-async.md
name: check-async
description: Analyze Python async code for correctness, patterns, and potential issues.

Check Async Command

Usage

Analyzes Python async code for correctness, patterns, and potential issues.

Basic Usage

/check-async

Analyzes async code in the current directory.

Specific File

/check-async src/api/handlers.py

What It Does

1. **Pattern Detection**: Identifies async/await usage patterns 2. **Issue Detection**: Finds common async pitfalls 3. **Blocking Call Detection**: Identifies blocking operations in async code 4. **Concurrency Analysis**: Reviews gather, create_task, and semaphore usage 5. **Best Practice Check**: Validates against async best practices

Analysis Categories

  • **Correctness**: Missing await, blocking calls, unclosed resources
  • **Patterns**: Proper use of gather, create_task, semaphores
  • **Error Handling**: CancelledError handling, timeout usage
  • **Performance**: Connection pooling, rate limiting
  • **Testing**: pytest-asyncio compatibility

Common Issues Detected

  • Missing `await` on coroutines
  • Blocking calls (`time.sleep`, sync I/O) in async code
  • Unhandled `CancelledError`
  • Missing timeout handling
  • Improper resource cleanup
  • Missing connection pooling

Output Format

For each file:

  • Async function count
  • Issues found with severity
  • Pattern compliance score
  • Specific recommendations

Examples

# Check with detailed output
/check-async --verbose

# Focus on blocking calls
/check-async --blocking-only

# Include test files
/check-async --include-tests

Integration

Uses the `python-async` skill's analysis tools:

  • `async-analyzer`: Pattern and correctness analysis
  • `concurrency-checker`: Concurrent operation validation

This command validates async code follows best practices and avoids common pitfalls.

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other commands on claude-night-market.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command