소스 정보
- 저장소
- 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에서 보기