Update Migration Skillsのロゴ

Update Migration Skills

コミュニティ
wjwwwww
update-migration-skills

Use when API specs have changed and the developer asks to update the migration skills based on the diffs in api-specs/diff/. This skill reads old vs new OpenAPI spec diffs and updates the unified-sp-migration, unified-sb-migration, and related SKILL.md files accordingly.

概要

公開者wjwwwww
リポジトリamazon-ads-api-skills
スキル名update-migration-skills
スター
30
フォーク
2
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    wjwwwwwがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Update Migration Skills」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/update-migration-skills
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wjwwwww/amazon-ads-api-skills.git /tmp/amazon-ads-api-skills
mkdir -p .claude/skills
cp -r /tmp/amazon-ads-api-skills/skills/update-migration-skills .claude/skills/update-migration-skills
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでUpdate Migration Skillsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUpdate Migration Skillsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Update Migration Skillsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Update Migration Skills from API Spec Diffs

1. When to Use This Skill

Use this skill when:

  • The developer ran ./scripts/sync-api-specs.sh and it detected changes
  • The developer ran ./scripts/extract-enums.sh and it detected enum changes
  • The developer asks: "Update migration skills from the latest diff"
  • Files exist in api-specs/diff/ directory

2. Workflow

1. Read api-specs/diff/*.changes.md   → understand WHAT changed
2. Read api-specs/diff/*.old.json     → understand the OLD spec
3. Read api-specs/diff/*.new.json     → understand the NEW spec
4. Determine which SKILL.md files are affected
5. Update the affected sections in each SKILL.md
6. Report what was changed

3. File Locations

FilePurpose
api-specs/diff/unified-api-sp.old.jsonPrevious SP OpenAPI spec
api-specs/diff/unified-api-sp.new.jsonCurrent SP OpenAPI spec
api-specs/diff/unified-api-sp.changes.mdSummary of SP changes
api-specs/diff/unified-api-sb.old.jsonPrevious SB OpenAPI spec
api-specs/diff/unified-api-sb.new.jsonCurrent SB OpenAPI spec
api-specs/diff/unified-api-sb.changes.mdSummary of SB changes
api-specs/diff/enums-unified-api.old.jsonPrevious enum values
api-specs/diff/enums-unified-api.new.jsonCurrent enum values

4. Which Skills to Update

Diff SourceAffected Skills
unified-api-sp.*.jsonskills/unified-sp-migration/SKILL.md
unified-api-sb.*.jsonskills/unified-sb-migration/SKILL.md, skills/amazon-ads-sb-collections/SKILL.md
enums-unified-api.*.jsonALL migration skills (enum mapping tables)

5. Update Rules

5.1 New Endpoints Added

When *.changes.md shows new endpoints:

  1. Find the matching section in the SKILL.md endpoint mapping table (Section 3)
  2. Add a new row to the endpoint mapping table
  3. Check the request schema in the new spec to determine the request body structure
  4. If the endpoint is for a resource already covered (e.g., new CRUD operation for existing resource):
    • Add to the existing endpoint table
  5. If the endpoint is for an entirely new resource type:
    • Add a new section with the full create/query/update/delete mapping
    • Include a request body example

Template for new endpoint row:

markdown
| [Operation Name] | [Legacy path or "N/A (new)"] | `POST /adsApi/v1/{action}/{resource}` |

5.2 Removed Endpoints

When endpoints are removed from the spec:

  1. Do NOT remove them from the SKILL.md immediately
  2. Mark them as deprecated with a note:
    markdown
    | Operation | Legacy | Unified API | Note |
    |-----------|--------|-------------|------|
    | ... | ... | ~~`POST /adsApi/v1/...`~~ | ⚠️ Removed in spec version YYYY-MM-DD |
  3. Move to "Features NOT Available" section if confirmed permanently removed

5.3 Schema/Field Changes

When schemas change (new fields, removed fields, type changes):

  1. Read the specific schema from both old and new specs:
    • jq '.components.schemas.SchemaName' api-specs/diff/{name}.old.json
    • jq '.components.schemas.SchemaName' api-specs/diff/{name}.new.json
  2. Compare field lists:
    • New required fields → Add to field mapping table + migration checklist
    • Removed fields → Note in FAQ/troubleshooting
    • Changed types → Update the field mapping table
  3. Update code examples if the request body structure changed

5.4 Enum Changes

When enums-unified-api.new.json differs from enums-unified-api.old.json:

  1. Identify which enums changed by comparing .enums[enumName].values
  2. Find all references in SKILL.md files to that enum (search for the enum name)
  3. Update mapping tables:
    • New values → Add row to mapping table, mark as ✅ Confirmed
    • Removed values → Strike through and add deprecation note
    • Renamed values → Update the mapping and add migration note

Enum sections to check in each skill:

  • unified-sp-migration: Section 4.3 (bidStrategy), 4.4 (placement), 7.3-7.6 (match types, target types)
  • unified-sb-migration: Section 5.2 (bidStrategy), 5.3 (placement)
  • unified-api-migration-guide: Step 4 (Quick Reference enum tables)

5.5 New Schemas (Models)

When new schemas appear in the spec:

  1. Assess relevance: Is this schema used in any existing endpoint's request/response?
  2. If relevant to migration: Add field mapping documentation
  3. If it's a new feature: Consider adding to "Features NOT Available" section removal + new section

6. Confidence Labels

When adding new information to the SKILL.md, always apply confidence labels:

LabelWhen to Use
✅ Confirmed from schemaField name, type, enum value directly visible in the spec
⚠️ Reasonable inferenceSemantic mapping based on naming patterns (e.g., old PRODUCT_LIST → new ASIN_LIST)
❓ UnconfirmedCannot determine mapping from schema alone

Rule: New information derived purely from comparing spec field names/types/enums = ✅ Confirmed. Anything requiring interpretation of business logic = ⚠️ or ❓.

7. Migration Checklist Updates

After updating field mapping tables, also update the Migration Checklist section at the end of each SKILL.md:

  • New required field → Add checklist item: - [ ] Add {field} to {operation} requests
  • Changed enum → Add checklist item: - [ ] Update {enumName} values ({old} → {new})
  • New endpoint → Add checklist item: - [ ] Implement {operation} using new endpoint

8. Code Example Updates

If a request body schema changed significantly:

  1. Read the new schema to understand current required fields
  2. Update the "Side by Side" comparison in the relevant section
  3. Keep the old (legacy) example as-is — only update the Unified API example
  4. Ensure minimum required fields are correct in Quick Reference section

9. Validation After Updates

After updating SKILL.md files, verify:

  1. All markdown tables are well-formed (equal columns per row)
  2. Code examples contain valid JSON
  3. No broken section references
  4. Confidence labels are present on new mappings
  5. Migration checklist is consistent with field mapping tables

10. Example: Processing a Diff

Given api-specs/diff/unified-api-sp.changes.md:

## New Endpoints
/adsApi/v1/create/adExtensions
/adsApi/v1/query/adExtensions

## New Schemas
SPCreateAdExtension
SPAdExtension
SPAdExtensionType

Actions:

  1. Read the new schema: jq '.components.schemas.SPCreateAdExtension' api-specs/diff/unified-api-sp.new.json
  2. Determine if this is a new resource type → Yes (adExtensions)
  3. Add to unified-sp-migration/SKILL.md Section 3:
    markdown
    | Create Ad Extension | N/A (new in Unified API) | `POST /adsApi/v1/create/adExtensions` |
    | Query Ad Extensions | N/A (new in Unified API) | `POST /adsApi/v1/query/adExtensions` |
  4. Note in "Features NOT Available in Unified API" section → remove if it was listed there
  5. Optionally add a new sub-section documenting the request body structure

11. What NOT to Change

  • Do NOT modify legacy API examples (the "before" code blocks)
  • Do NOT remove ❓ Unconfirmed items unless the new spec explicitly clarifies them
  • Do NOT change the overall document structure (section numbering, heading levels)
  • Do NOT add features from a different ad product (SP changes → only update SP skill)

よくある質問

AIスキル「Update Migration Skills」では何ができますか?

Use when API specs have changed and the developer asks to update the migration skills based on the diffs in api-specs/diff/. This skill reads old vs new OpenAPI spec diffs and updates the unified-sp-migration, unified-sb-migration, and related SKILL.md files accordingly.

TypingMindでUpdate Migration Skillsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Update Migration Skillsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUpdate Migration Skillsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/update-migration-skillsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Update Migration Skillsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Update Migration Skillsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUpdate Migration Skillsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Update Migration Skills」は無料ですか?

はい。wjwwwwwがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇