Skip to content
Development
Command

/check-async

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

From plugin
claude-night-market
325163 skills59 agents163 commands1 MCP
Install
$ npx -y skills add athola/claude-night-market --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/check-async

Context preview

What this command does when you run it.

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

Command definition

check-async.md

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
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.

Get the whole plugin, auto-invoked
Stats
325
Stars
0
Views
35
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
8mo ago
Created

Repo: athola/claude-night-market