スキル一覧に戻る
queelius

ptk-photo-toolkit

by queelius

Photo Toolkit - CLI for managing personal photo libraries with AI-powered organization, SHA256 deduplication, and semantic search

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

SKILL.md


name: ptk-photo-toolkit description: Manage and annotate photo libraries with ptk. Use when working with photos, describing images, categorizing pictures, analyzing family photos, or when the user mentions ptk, photo library, image annotation, or photo organization. allowed-tools: Read, Bash(ptk:), Bash(python:)

ptk Photo Toolkit

You can help users manage their photo library with ptk (Photo Toolkit).

Quick Start

# Check library status
ptk stats

# Query photos
ptk q                          # list all photos
ptk q --favorite               # favorites only
ptk q --tag beach              # photos tagged "beach"
ptk q --format json            # JSON output for scripting

# Show photo details
ptk show <photo-id>

Viewing Photo Contents

To see what an image contains, you need to:

  1. Get the photo path from ptk:
ptk show <photo-id> --format json
  1. Use the Read tool on the image path - you can see images directly since you're multimodal.

  2. Describe or analyze what you see in the image.

Common Workflows

Describe a single photo

  1. Get the photo info:
    ptk show abc123 --format json
    
  2. Read the image file at the original_path
  3. Describe what you observe
  4. Optionally save your description:
    ptk set abc123 --caption "Your description here"
    

Bulk describe photos

  1. Query photos that need descriptions:
    ptk q --format json --limit 10
    
  2. For each photo:
    • Read the image at its original_path
    • Generate a description
    • Save with ptk set <id> --caption "..."

Tag photos by content

  1. Query untagged photos:
    ptk q --format json
    
  2. For each photo:
    • Read the image
    • Identify appropriate tags (beach, family, landscape, etc.)
    • Apply tags:
      ptk set abc123 --tag beach --tag sunset --tag vacation
      

Find photos by criteria

# Photos from 2023
ptk q --sql "SELECT * FROM photos WHERE strftime('%Y', date_taken) = '2023'"

# Photos with location data
ptk q --sql "SELECT * FROM photos WHERE latitude IS NOT NULL"

# Favorites with specific tag
ptk q --favorite --tag family

Command Reference

See reference.md for full command documentation.

Important Notes

  • Photo IDs are SHA256 hashes - use partial IDs (first 8+ chars) for convenience
  • Always use --format json when you need to process output programmatically
  • The library must be initialized (ptk init) in the working directory
  • Changes are saved to the SQLite database automatically

スコア

総合スコア

65/100

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

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

+5

レビュー

💬

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