← Back to list

ptk-photo-toolkit
by queelius
Photo Toolkit - CLI for managing personal photo libraries with AI-powered organization, SHA256 deduplication, and semantic search
⭐ 0🍴 0📅 Jan 19, 2026
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:
- Get the photo path from ptk:
ptk show <photo-id> --format json
-
Use the Read tool on the image path - you can see images directly since you're multimodal.
-
Describe or analyze what you see in the image.
Common Workflows
Describe a single photo
- Get the photo info:
ptk show abc123 --format json - Read the image file at the
original_path - Describe what you observe
- Optionally save your description:
ptk set abc123 --caption "Your description here"
Bulk describe photos
- Query photos that need descriptions:
ptk q --format json --limit 10 - For each photo:
- Read the image at its
original_path - Generate a description
- Save with
ptk set <id> --caption "..."
- Read the image at its
Tag photos by content
- Query untagged photos:
ptk q --format json - 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 jsonwhen 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
Score
Total Score
65/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon

