← Browse

@hirokidaichi/gilot

B

Gilot Project Development Rules

rulescursor

Install

agr install @hirokidaichi/gilot --target cursor

Writes 1 file into .cursor/rules/, pinned to git-b7650eb0.

  • .cursorrules

Document

Gilot Project Development Rules

プロジェクト概要

  • Gitログの視覚的分析ツール
  • Python 3.12以上が必要
  • uv を使用した依存関係管理・仮想環境運用

開発環境セットアップ

uv venv create         # 仮想環境の作成(初回のみ)
uv venv exec bash      # 仮想環境に入る
uv pip install -r requirements.txt  # 依存関係のインストール
# または
uv pip install .[dev]  # 開発用依存も含めてインストール
  • Python 3.12以上がインストールされていることを確認してください。

コードスタイル

  • flake8とautopep8に従うこと
  • mypyによる型チェックを必須とする
  • テストカバレッジの維持を重視(pytest-cov使用)

プロジェクト構造

主要コンポーネント:

  • core.py: コアロジック
  • plotter.py: 可視化機能
  • app.py: メインアプリケーション
  • hotgraph.py: ホットスポット分析
  • filetracker.py: ファイル追跡機能

テスト

  • すべての新機能にはテストを追加すること
  • 仮想環境内で pytest でテストを実行
  • カバレッジレポートの生成: pytest --cov=gilot

型ヒント

  • すべての新しいコードには型ヒントを付けること
  • mypyによる静的型チェックを実施

コミットルール

  • 機能追加はfeature/ブランチで開発
  • コミットメッセージは具体的で明確に
  • リファクタリングは独立したコミットとして管理

CI/CD

  • テスト、リント、型チェックをプッシュ前に実行
  • カバレッジレポートの確認

注意点

  • データ処理時のメモリ使用量に注意
  • 大規模リポジトリ解析時のパフォーマンス考慮
  • 可視化関連の依存関係(matplotlib, seaborn, python-louvain等)のバージョン互換性に注意

ドキュメント

  • コードには適切なドキュメンテーションを含めること
  • README.mdは最新の状態を維持
  • 重要な変更は必ずドキュメントに反映

補足

  • uv環境下では、仮想環境内でpytestmypy等を直接実行してください。
  • 依存追加時は uv pip install パッケージ名 を推奨します。

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • warnFreshnessstale (>1y)

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-b7650eb00a742026-08-06