From cogni-ai-programmer
Expert Python language skill for writing, refactoring, and testing idiomatic Python 3 code. You MUST load this skill when developing Python modules, classes, or scripts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cogni-ai-programmer:pythonThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->
Use this skill when developing Python code. For inline bash script Python execution, refer to the python-cli skill.
pytest or unittest.python-cli instead).bash) or other languages (JS/TS, Go, Rust).pipenv or pipfile skills instead).typing module annotations, making the code harder to maintain and refactor.def foo(items=[]) instead of def foo(items=None).except: or except Exception: without logging the traceback or re-raising, swallowing critical errors silently.typing module) for function signatures and class attributes.match/case, dataclasses, and standard library enhancements when applicable.pytest).Use dataclasses for robust data structures:
from dataclasses import dataclass, field
from typing import List, Optional
@dataclass
class User:
id: int
username: str
email: Optional[str] = None
roles: List[str] = field(default_factory=list)
def is_admin(self) -> bool:
"""Check if the user has the 'admin' role."""
return 'admin' in self.roles
Use explicit exception handling:
import logging
logger = logging.getLogger(__name__)
def process_data(data: dict) -> None:
try:
value = data['key']
# Process value
except KeyError as e:
logger.error(f"Missing required key: {e}")
raise ValueError("Invalid data format") from e
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub cogni-ai-ou/cogni-ai-agentic-collections --plugin cogni-ai-programmer