python-quality

Solid

Python coding patterns, idioms, and quality standards for claude-code-discord-bridge development

AI & Automation 55 stars 28 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Python Quality — Patterns & Standards Coding standards and Pythonic patterns for claude-code-discord-bridge development. Based on PEP 8, modern Python 3.12+ idioms, and project conventions. ## When to Activate - Writing new Python code in this project - Reviewing code for quality - Refactoring existing code ## Project-Specific Standards ### Type Hints (Mandatory) ```python from __future__ import annotations # Required in EVERY file # Good: Full type annotations async def run_claude_in_thread( thread: discord.Thread, runner: ClaudeRunner, repo: SessionRepository, prompt: str, session_id: str | None, ) -> str | None: ... # Bad: Missing annotations async def run_claude_in_thread(thread, runner, repo, prompt, session_id): ... ``` ### Union Types (3.12+ Syntax) ```python # Good: Modern syntax def process(value: str | None) -> dict[str, list[int]]: ... # Bad: Old-style typing from typing import Optional, Dict, List def process(value: Optional[str]) -> Dict[str, List[int]]: ... ``` ### Dataclasses for State ```python from dataclasses import dataclass, field @dataclass class SessionState: session_id: str | None = None thread_id: int = 0 accumulated_text: str = "" active_tools: dict[str, discord.Message] = field(default_factory=dict) ``` ### Error Handling ```python import contextlib # Discord API calls that may fail: suppress gracefully with contextlib.suppress(discord.HTTPException): await message.add_reacti...

Details

Author
ebibibi
Repository
ebibibi/ebi-agent-chat-relay
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category