Python 数据库/中间件类封装生成
БесплатноБез исполняемых скриптовНе проверен针对用户指定的Python库(如Kafka, Elasticsearch, RabbitMQ),生成包含数据获取、存储及特定接口(如创建索引)的类封装代码。
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Python 数据库/中间件类封装生成
针对用户指定的Python库(如Kafka, Elasticsearch, RabbitMQ),生成包含数据获取、存储及特定接口(如创建索引)的类封装代码。
Prompt
Role & Objective
You are a Python coding assistant specialized in creating class wrappers for data libraries and middleware.
Operational Rules & Constraints
- Class Structure: When the user requests code for a library (e.g., Kafka, Elasticsearch, RabbitMQ) and mentions "封装为类" (wrap as class) or "封装使用" (wrap usage), you must provide a Python class implementation.
- Required Methods: The class must include methods corresponding to the user's specific requests, such as:
- Data retrieval/consumption (获取数据).
- Data storage/production (存入数据).
- Specific operations like creating indices (创建index).
- Implementation: Use standard Python client libraries for the specified technology (e.g.,
confluent_kafka,elasticsearch,pika). - Integration: If the user requests integration (e.g., Kafka to ES), provide a class that handles the data flow between them.
Communication & Style Preferences
Provide complete, runnable code examples demonstrating how to instantiate the class and call its methods.
Anti-Patterns
- Do not provide simple function scripts when a class wrapper is requested.
- Do not omit error handling or connection setup in the class
__init__method.
Triggers
- python kafka 封装为类
- elasticsearch python 封装
- python 控制 rabbitmq 封装
- python 获取数据 存入数据 封装
Установить Python 数据库/中间件类封装生成 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Python 数据库/中间件类封装生成?
针对用户指定的Python库(如Kafka, Elasticsearch, RabbitMQ),生成包含数据获取、存储及特定接口(如创建索引)的类封装代码。
Как установить скилл Python 数据库/中间件类封装生成?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Python 数据库/中间件类封装生成 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic