소스 정보
- 저장소
- jr2804/mcp-config-converter
- 최근 소스 활동
- 2026년 1월 9일 00:36
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jr2804/mcp-config-converter --skill python-cli명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | python-cli |
| description | Universal Python CLI development patterns and best practices |
| license | MIT |
| compatibility | opencode |
| metadata | {"related_python_guidelines":"For general Python development, use skill `python-guidelines`","related_coding_principles":"For overall coding standards, use skill `coding-principles`"} |
Provide universal patterns for developing command-line interfaces in Python that work across different projects and domains.
Recommended Frameworks:
# Universal Typer CLI structure
import typer
from typing import Optional
def main(
input_file: str = typer.Argument(..., help="Input file path"),
output_file: Optional[str] = typer.Option(None, "-o", "--output", help="Output file path"),
verbose: bool = typer.Option(False, "-v", "--verbose", help="Verbose output")
):
"""Universal CLI entry point"""
# CLI logic here
typer.echo(f"Processing {input_file}")
if __name__ == "__main__":
typer.run(main)
# Universal parameter handling
class CLIParameters:
def __init__(self):
self.input_file = None
self.output_file = None
self.verbose = False
def from_args(self, args):
"""Parse arguments into structured parameters"""
self.input_file = args.input_file
self.output_file = args.output_file or f"output_{args.input_file}"
self.verbose = args.verbose
return self
def validate(self):
"""Validate parameters before execution"""
if not os.path.exists(self.input_file):
raise FileNotFoundError(f"Input file not found: {self.input_file}")
Use this skill when:
# Universal output formatting with Rich
from rich.console import Console
from rich.panel import Panel
console = Console()
def format_output(result, title="Results"):
"""Universal output formatting"""
panel = Panel.fit(
str(result),
title=title,
border_style="blue",
padding=(1, 2)
)
console.print(panel)
# Usage examples
console.print("[green]✓[/green] Operation completed successfully")
console.print("[red]✗[/red] Error: File not found")
console.print("[yellow]⚠[/yellow] Warning: Deprecated feature used")
console.print("[cyan]?[/cyan] Processing: file.txt")
# Universal environment variable patterns
import os
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
class EnvironmentConfig:
def __init__(self):
self.debug = os.getenv("DEBUG", "false").lower() == "true"
self.timeout = int(os.getenv("TIMEOUT", "30"))
self.api_key = os.getenv("API_KEY")
def validate(self):
"""Validate required environment variables"""
if not self.api_key and not self.debug:
raise EnvironmentError("API_KEY environment variable required")
# Universal CLI error handling
def handle_cli_error(error, context="CLI"):
"""Handle errors with user-friendly messages"""
console = Console()
if isinstance(error, FileNotFoundError):
console.print(f"[red]✗[/red] File not found: {error.filename}")
suggest_similar_files(error.filename)
elif isinstance(error, PermissionError):
console.print(f"[red]✗[/red] Permission denied: {error.filename}")
console.print("[yellow]⚠[/yellow] Try running with elevated privileges")
else:
console.print(f"[red]✗[/red] {context} error: {str(error)}")
if console.width > 80:
console.print_exception()
Works with: