asyncpg-detection
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "detect asyncpg usage", "find asyncpg patterns", "scan for asyncpg imports", or "identify asyncpg database…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
AsyncPG Detection for FastAPI Projects
This skill provides comprehensive detection of asyncpg usage patterns in FastAPI applications, identifying all code that needs to be converted to SQLAlchemy with asyncpg engine support.
Detection Overview
Scan FastAPI projects for asyncpg patterns including imports, connection management, queries, transactions, and error handling. Generate detailed reports with line numbers and conversion recommendations.
Core Detection Patterns
Import Detection
Look for these import statements:
import asyncpgfrom asyncpg importimport asyncpg as pgfrom asyncpg import Connection, Pool
Connection Patterns
Identify these asyncpg connection approaches:
asyncpg.connect()callsasyncpg.create_pool()usage- Manual connection string parsing
- Environment-based connection configuration
Query Patterns
Detect these asyncpg execution methods:
connection.fetch()for SELECT queriesconnection.execute()for INSERT/UPDATE/DELETEconnection.fetchval()for single valuesconnection.fetchrow()for single rowsconnection.iter()for result iteration
Usage Instructions
To detect asyncpg usage in your FastAPI project:
- Run comprehensive scan: Use the
/convert-asyncpg-to-sqlalchemycommand to scan all Python files in the project - Analyze detection results: Review the generated report for files containing asyncpg code
- Prioritize conversion: Focus on files with the most asyncpg usage first
- Check for complex patterns: Look for nested connections, transactions, and error handling that may require special attention
Reporting Format
The detection generates reports with:
- File list: All files containing asyncpg imports
- Pattern analysis: Specific asyncpg methods found
- Complexity assessment: Files requiring manual intervention
- Conversion recommendations: Suggested SQLAlchemy equivalents
Additional Resources
Reference Files
references/patterns-mapping.md- Complete asyncpg to SQLAlchemy pattern mappingreferences/complex-cases.md- Handling of complex asyncpg scenariosreferences/supabase-specific.md- Supabase-specific asyncpg patterns
Examples
examples/detection-report.md- Sample detection outputexamples/fastapi-project-structure.md- Example FastAPI project with asyncpg usage
Установить asyncpg-detection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл asyncpg-detection?
This skill should be used when the user asks to "detect asyncpg usage", "find asyncpg patterns", "scan for asyncpg imports", or "identify asyncpg database code in FastAPI projects". It automatically scans Python files to identify asyncpg imports, connection patterns, and query execution methods that need conversion to SQLAlchemy.
Как установить скилл asyncpg-detection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл asyncpg-detection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic