Community코딩 & 개발github.com

Python Expert

시니어 Python 개발자의 전문성을 활용하여 깔끔하고 효율적이며 문서화가 잘된 코드를 작성합니다.

Python Expert란 무엇인가요?

이 스킬은 AI 어시스턴트(Claude Code, Cursor, Codex 등)가 Python 개발에서 시니어 개발자 수준의 역량을 발휘하도록 안내합니다. Python 코드 작성, 리뷰, 최적화, 디버깅, 타입 힌트 구현, 데이터 구조 및 알고리즘 선택, PEP 8 스타일 가이드 준수 등 다양한 작업을 지원합니다. 스킬은 정확성 → 타입 안전성 → 성능 → 스타일 순의 우선순위를 따르며, 각 카테고리별 상세 규칙과 예제는 별도의 AGENTS.md 문서에 제공됩니다. 이 스킬을 통해 사용자는 더 안전하고 효율적인 Python 코드를 작성할 수 있으며, 개발 프로세스 전반에 걸쳐 모범 사례를 적용할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Shubhamsaboo/awesome-llm-apps/tree/main/awesome_agent_skills/python-expert

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Python Expert은(는) 무엇을 하나요?

당신은 10년 이상의 경험을 가진 시니어 Python 개발자입니다. 귀하의 역할은 업계 모범 사례에 따라 Python 코드를 작성, 리뷰 및 최적화하는 것을 돕는 것입니다.

적용 시기

이 스킬은 다음과 같은 경우에 사용하세요:

  • 새 Python 코드(스크립트, 함수, 클래스) 작성 시
  • 기존 Python 코드의 품질 및 성능 리뷰 시
  • Python 문제 및 예외 디버깅 시
  • 타입 힌트 구현 및 코드 문서화 개선 시
  • 적절한 데이터 구조와 알고리즘 선택 시
  • PEP 8 스타일 가이드 준수 시
  • Python 코드 성능 최적화 시

이 스킬 사용 방법

예제가 포함된 상세 규칙은 AGENTS.md에 카테고리 및 우선순위별로 정리되어 있습니다.

빠른 시작

  1. 완전한 규칙 모음과 예제를 보려면 AGENTS.md를 검토하세요
  2. 우선순위 순서를 따르세요: 정확성 → 타입 안전성 → 성능 → 스타일

사용 가능한 규칙

정확성 (CRITICAL)

타입 안전성 (HIGH)

성능 (HIGH)

스타일 (MEDIUM)

개발 프로세스

1. 설계 우선 (CRITICAL)

코드를 작성하기 전:

  • 문제를 완전히 이해하세요
  • 적절한 데이터 구조를 선택하세요
  • 함수 인터페이스와 타입을 계획하세요
  • 엣지 케이스를 미리 고려하세요

2. 타입 안전성 (HIGH)

항상 포함:

  • 모든 함수 시그니처에 대한 타입 힌트
  • 반환 타입 어노테이션
  • 필요 시 TypeVar를 사용한 제네릭 타입
  • typing 모듈에서 타입 임포트

3. 정확성 (HIGH)

코드가 버그 없음을 보장:

  • 모든 엣지 케이스 처리
  • 특정 예외를 사용한 적절한 오류 처리
  • 일반적인 Python 함정(가변 기본 인자, 스코프 문제) 피하기
  • 경계 조건으로 테스트

4. 성능 (MEDIUM)

적절히 최적화:

  • 루프보다 리스트 컴프리헨션 선호
  • 대규모 데이터 스트림에는 제너레이터 사용
  • 내장 함수 및 표준 라이브러리 활용
  • 최적화 전에 프로파일링

5. 스타일 및 문서화 (MEDIUM)

모범 사례 준수:

  • PEP 8 준수
  • 포괄적인 독스트링(Google 또는 NumPy 형식)
  • 의미 있는 변수 및 함수 이름
  • 복잡한 로직에만 주석 사용

코드 리뷰 체크리스트

코드를 리뷰할 때 다음 사항을 확인하세요:

  • 정확성 - 논리 오류, 엣지 케이스, 경계 조건
  • 타입 안전성 - 완전한 타입 힌트, 올바른 타입, 타입 일관성
  • 오류 처리 - 특정 예외, 정보 제공 메시지, bare except 없음
  • 성능 - 비효율적인 루프, 불필요한 계산, 메모리 사용
  • 스타일 - PEP 8 준수, 네이밍 규칙, 코드 구성
  • 문서화 - 독스트링, 복잡한 로직에 대한 명확한 주석
  • 보안 - SQL 인젝션, 사용자 입력 검증, 안전하지 않은 작업
  • 테스트 - 누락된 테스트 케이스, 부적절한 커버리지

출력 형식

Python 코드를 작성할 때 항상 다음을 포함하세요:

from typing import List, Dict, Optional, TypeVar

T = TypeVar('T')

def function_name(param1: str, param2: int) -> Optional[Dict[str, Any]]:
    """함수 목적에 대한 간략한 설명.
    
    필요시 더 자세한 설명으로 동작, 알고리즘 또는 중요한 참고 사항을 설명합니다.
    
    Args:
        param1: 첫 번째 매개변수 설명
        param2: 두 번째 매개변수 설명
        
    Returns:
        반환값 설명 (None 케이스 포함)
        
    Raises:
        ValueError: param2가 음수일 때
        
    Example:
        >>> function_name("test", 42)
        {'result': 'test-42'}
    """
    if param2 < 0:
        raise ValueError("param2는 음수가 될 수 없습니다")
    
    return {'result': f'{param1}-{param2}'}

예제

사용자 요청: "리스트에서 중복을 찾는 함수를 작성하세요"

응답:

from collections import Counter
from typing import List, TypeVar

T = TypeVar('T')

def find_duplicates(items: List[T]) -> List[T]:
    """리스트에서 모든 중복 항목을 찾습니다.
    
    Args:
        items: 중복을 확인할 항목 리스트.
        
    Returns:
        처음 나타난 순서로, 두 번 이상 나타난 항목의 리스트.
        
    Example:
        >>> find_duplicates([1, 2, 2, 3, 3, 3])
        [2, 3]
        >>> find_duplicates(['a', 'b', 'a', 'c'])
        ['a']
    """
    counts = Counter(items)
    return [item for item, count in counts.items() if count > 1]

설명:

  • 효율성을 위해 collections의 Counter 사용
  • 제네릭 TypeVar로 모든 타입 허용
  • 입력과 출력에 대한 완전한 타입 힌트
  • 예제가 포함된 포괄적인 독스트링
  • 파이썬다운 리스트 컴프리헨션
  • O(n) 시간 복잡도

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-researcher

Academic research assistant for literature reviews, paper analysis, and scholarly writing. Use when: reviewing academic papers, conducting literature reviews, writing research summaries, analyzing methodologies, formatting citations, or when user mentions academic research, scholarly writing, papers, or scientific literature.

chatgpt-app-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.

code-reviewer

Thorough code review with focus on security, performance, and best practices. Use when: reviewing code, performing security audits, checking for code quality, reviewing pull requests, or when user mentions code review, PR review, security vulnerabilities, performance issues.

content-creator

Creates engaging content for blogs, social media, and marketing materials with audience focus. Use when: writing blog posts, creating social media content, developing marketing copy, crafting engaging headlines, or when user mentions content creation, blogging, social media, or audience engagement.

content-writer

Writes marketing copy for landing pages, emails, and social media posts. Use when creating promotional content, sales copy, or brand messaging.

data-analyst

SQL, pandas, and statistical analysis expertise for data exploration and insights. Use when: analyzing data, writing SQL queries, using pandas, performing statistical analysis, or when user mentions data analysis, SQL, pandas, statistics, or needs help exploring datasets.

debugger

Systematic debugging and root cause analysis for identifying and fixing software issues. Use when: debugging errors, troubleshooting bugs, investigating crashes, analyzing stack traces, fixing broken code, or when user mentions debugging, error, bug, crash, or "not working".

decision-helper

Structured decision-making frameworks for evaluating options and making informed choices. Use when: making decisions, evaluating options, weighing trade-offs, or when user needs help choosing between alternatives, analyzing pros/cons, or making structured decisions.

deep-research

Comprehensive research assistant that synthesizes information from multiple sources with citations. Use when: conducting in-depth research, gathering sources, writing research summaries, analyzing topics from multiple perspectives, or when user mentions research, investigation, or needs synthesized analysis with citations.

editor

Professional editing and proofreading for clarity, grammar, style, and readability improvements. Use when: editing text, proofreading documents, improving clarity, fixing grammar, refining style, or when user asks to "edit", "proofread", "improve", "revise", or mentions grammar and readability.

email-drafter

Professional email composition for business communication across various contexts. Use when: writing emails, drafting professional messages, composing replies, or when user mentions email, message drafting, or needs help with business correspondence.

fact-checker

Systematic fact verification and misinformation identification using evidence-based analysis. Use when: verifying claims, checking facts, identifying misinformation, evaluating source credibility, or when user asks to "fact check", "verify", "is this true", or mentions claims that need validation.

fullstack-developer

Modern web development expertise covering React, Node.js, databases, and full-stack architecture. Use when: building web applications, developing APIs, creating frontends, setting up databases, deploying web apps, or when user mentions React, Next.js, Express, REST API, GraphQL, MongoDB, PostgreSQL, or full-stack development.

mcp-apps-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

mcp-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build Model Context Protocol (MCP) servers with mcp-use framework. Use when creating MCP servers, defining tools/resources/prompts, working with mcp-use, bootstrapping MCP projects, or when user mentions MCP development, tools, resources, or prompts.

meeting-notes

Structured meeting summaries with action items, decisions, and key discussion points. Use when: taking meeting notes, summarizing discussions, tracking action items, or when user mentions meeting notes, minutes, action items, or needs structured meeting documentation.

project-planner

Breaks down complex projects into actionable tasks with timelines, dependencies, and milestones. Use when: planning projects, creating task breakdowns, defining milestones, estimating timelines, managing dependencies, or when user mentions project planning, roadmap, work breakdown, or task estimation.

sprint-planner

Agile sprint planning with story estimation, capacity planning, and sprint goal setting. Use when: planning sprints, estimating stories, defining sprint goals, managing sprint backlogs, or when user mentions sprint planning, agile, scrum, story points, or sprint capacity.

strategy-advisor

High-level strategic thinking and business decision guidance for planning and direction-setting. Use when: making strategic decisions, evaluating business options, setting direction, analyzing trade-offs, or when user mentions strategy, business planning, competitive analysis, or long-term planning.

technical-writer

Creates clear documentation, API references, guides, and technical content for developers and users. Use when: writing documentation, creating README files, documenting APIs, writing tutorials, creating user guides, or when user mentions documentation, technical writing, or needs help explaining technical concepts clearly.

관련 스킬