ソース情報
- リポジトリ
- NeuralBlitz/Agent-Gateway
- ソースの最終更新活動
- 2026年4月9日 10:58
- 検出された SKILL.md の言語
- 英語
- スター
- 1
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SKILL.md を表示中
SKILL.md
ソースの指示 · 読み取り専用プレビュー- name
- python
- description
- Python programming language advanced patterns
- license
- MIT
- compatibility
- opencode
- metadata
- {"audience":"developers","category":"programming"}
## What I do
- Write idiomatic Python
- Use type hints effectively
- Implement async patterns
- Use decorators properly
- Handle generators
- Use context managers
- Write Pythonic code
- Optimize Python performance
## When to use me
When writing Python code.
## Python Patterns
```python
from typing import TypeVar, Generic, Protocol
from contextlib import contextmanager
import asyncio
T = TypeVar('T')
# Generators for memory efficiency
def process_large_file(filepath: str):
with open(filepath) as f:
for line in f:
yield line.strip()
# Context managers
@contextmanager
def database_transaction():
try:
yield
commit()
except Exception:
rollback()
raise
# Async patterns
async def fetch_all(urls: list[str]) -> list[dict]:
async with aiohttp.ClientSession() as session:
tasks = [fetch(session, url) for url in urls]
return await asyncio.gather(*tasks)
# Protocol for duck typing
class Database(Protocol):
async def connect(self): ...
async def query(self, sql: str): ...
# Type hints
from dataclasses import dataclass
@dataclass(frozen=True)
class User:
id: int
name: str
email: str
```
GitHubで見る