Logo: Update Migration Skills

Update Migration Skills

Communautéit
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.

Iwwersiicht

Editeurwjwwwww
Repositoryamazon-ads-api-skills
Skill-Nummupdate-migration-skills
Stären
30
Forks
2
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    wjwwwww huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Update Migration Skills an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/update-migration-skills
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Update Migration Skills an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Update Migration Skills automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Update Migration Skills net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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)

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Update Migration Skills op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Update Migration Skills besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Update Migration Skills an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/wjwwwww/amazon-ads-api-skills/tree/main/skills/update-migration-skills an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Update Migration Skills benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Update Migration Skills benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Update Migration Skills domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Update Migration Skills gratis?

Jo. wjwwwww huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇