Agent skill
gyazo-latest-image
Gyazo APIを使用して最新の画像を取得して表示するスキル
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/gyazo-latest-image
SKILL.md
Gyazo Latest Image Skill
概要
このスキルは、Gyazo APIを使用してユーザーの最新画像を取得して表示します。Node.jsの標準fetch APIを使用して実装されています。
機能
- Gyazo APIで画像一覧を取得
- 最新の画像URLを取得
- 画像情報を表示
使用方法
前提条件
- Node.js v22以上
- Gyazo APIアクセストークン
Gyazo APIアクセストークンの取得
- Gyazoにログイン
- https://gyazo.com/oauth/applications にアクセス
- 新しいアプリケーションを登録してアクセストークンを取得
環境変数の設定
実行前に以下の環境変数を設定してください:
export GYAZO_ACCESS_TOKEN="your_access_token_here"
スクリプトの実行
cd /Users/n0bisuke/ds/2_playground/my-first-skill/gyazo-latest-image
node scripts/fetch_latest.js
API仕様
Gyazo API エンドポイント
- 画像一覧取得:
GET https://api.gyazo.com/api/images - 必要なヘッダー:
Authorization: Bearer {access_token}
レスポンス例
[
{
"image_id": "abc123",
"permalink_url": "https://gyazo.com/abc123",
"url": "https://i.gyazo.com/abc123.png",
"created_at": "2025-10-21T02:24:35+0000"
}
]
いつ使用するか
- ユーザーがGyazoの最新画像を確認したい時
- Gyazo APIを使った画像取得の例が必要な時
- スクリーンショット管理ツールとしてGyazoを活用している場合
注意事項
- APIアクセストークンは環境変数で管理し、コードに直接記述しないこと
- API利用制限に注意すること
- アクセストークンは第三者と共有しないこと
トラブルシューティング
エラー: "GYAZO_ACCESS_TOKEN is not set"
環境変数が設定されていません。上記の手順に従って設定してください。
エラー: 401 Unauthorized
アクセストークンが無効または期限切れです。新しいトークンを取得してください。
エラー: "No images found"
Gyazoアカウントに画像がアップロードされていません。
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?