スキル一覧に戻る
ZehaoLu98

python-script

by ZehaoLu98

My little blog :)

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: python-script description: When writing Python scripts, always include author information header.

When writing a Python script, always include the following header at the top of the file:

  1. Author information block: Include a docstring or comment block with:

  2. Use this format:

#!/usr/bin/env python3
"""
Author: Zehao Lu
Email: luzehao1998@gmail.com
Date: [YYYY-MM-DD]
Description: [Brief description of what this script does]
"""
  1. Additional guidelines:
    • Include #!/usr/bin/env python3 shebang for executable scripts
    • Add type hints where appropriate
    • Include a if __name__ == "__main__": block for scripts meant to be run directly

Example

A script to calculate fibonacci numbers:

#!/usr/bin/env python3
"""
Author: Zehao Lu
Email: luzehao1998@gmail.com
Date: 2026-01-21
Description: Calculate and print fibonacci numbers up to a given limit.
"""

def fibonacci(n: int) -> list[int]:
    """Generate fibonacci sequence up to n numbers."""
    if n <= 0:
        return []
    if n == 1:
        return [0]

    fib = [0, 1]
    while len(fib) < n:
        fib.append(fib[-1] + fib[-2])
    return fib


if __name__ == "__main__":
    result = fibonacci(10)
    print(f"Fibonacci sequence: {result}")

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です