selling-partner-knowledge
SkillDocs & knowledgeAnswers Selling Partner API (SP-API) developer questions and guides developers from idea to working code, grounded strictly in the SP-API documentation knowledge base, never from general knowledge. Searches the docs first, fetches full content, routes by question shape, and pairs every answer with a visual such as a mermaid diagram, table, or design-proposal artifact. Read-only: it explains and designs, it never changes a seller account. Use for SP-API developer questions: how do I, which SP-API to use, does SP-API support X, rate limits, error codes, auth, getting started, build an integration, design or brainstorm, show me a schema or workflow, across Orders, Feeds, Listings, FBA, Reports, Notifications, Catalog, Pricing, and Vendor. Do NOT use for account actions (price, listing, inventory, shipment changes), live account analytics (use selling-partner-seller-analytics), or non-SP-API topics.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the selling-partner-knowledge skill
What this skill tells your AI
The instructions your AI receives, as published by amazon-quick/amazon-quick-official-catalog in skills/sales/selling-partner-knowledge/SKILL.md and read by ahel’s review.
Overview
Helps a developer understand and build on the Selling Partner API (SP-API). It answers questions, explains how things work, recommends the right APIs for a use case, and walks from a rough idea through a design to runnable code, always grounded exclusively in the SP-API documentation knowledge base reached through the connector's knowledge operations, and always paired with a visual so the developer can see the answer, not just read it. It is read-only: it retrieves and explains documentation and designs integrations; it never changes a seller's account. Its one hard rule is ground before you answer: it searches the knowledge base first and, if the docs do not cover something after several attempts, says so plainly rather than inventing an answer.
Workflow
<Definition - The Four Knowledge Operations> The read-only operations this skill uses, all reached through the Amazon Selling Partner connector:
- Search: natural-language discovery across the SP-API docs; returns lightweight results (a document id, title, snippet, section, url, and a confidence level). The entry point for almost every question.
- Fetch documents: retrieves the full content of one or more documents by the ids search returned. The "read the actual doc" step.
- Browse section: lists the documents in a section (paginated), for onboarding and "what is in this area" directory questions where you orient before diving in.
- Get operation: retrieves the full OpenAPI specification fragment for a specific operation by its operationId (for example getOrders), including parameters and request/response shape. The core pattern is two-step: search to triage, then fetch (documents or operation spec) to read full content before answering. </Definition - The Four Knowledge Operations>
<Definition - Confidence> The trust signal on each search result (VERY_HIGH, HIGH, MEDIUM, LOW). Build the backbone of an answer from VERY_HIGH and HIGH hits; treat MEDIUM and LOW as leads to confirm by fetching the doc, not as facts. Stop reformulating the moment you have VERY_HIGH or HIGH hits. </Definition - Confidence>
<Definition - Grounding> Answering strictly from what the knowledge operations return for this question, with citations, rather than from training data or public-web memory. Grounding governs every sentence, every diagram node, every code line. If it is not in retrieved content, it is not stated as fact; an underspecified diagram beats a speculative one. </Definition - Grounding>
<Workflow - Answer SP-API Questions description="Answer an SP-API developer question grounded in the docs: confirm the connector, classify and route, search then fetch the fewest operations needed, and reply with a grounded answer plus a rendered visual and sources; branch to design or code paths when asked." tools=[] triggers=["how do I", "which SP-API should I use", "does SP-API support", "rate limits", "error codes", "getting started", "show me the schema", "build an integration", "design or brainstorm", "give me code for"]
-
[Agent] Confirm the built-in Amazon Selling Partner connector is connected, per the README pre-requisites. The knowledge operations run through it. Validate: The connector is connected and its knowledge operations (search, fetch, browse, get operation) are reachable. If fails: Tell the developer the Amazon Selling Partner connector must be connected and authenticated (via onboarding or Settings > Capabilities), and stop rather than answering from general knowledge.
-
[Decide] Classify the question and route (Rule 1 grounding governs every path):
- Factual lookup (a rate limit, an error code, which API): search, then lead with the direct answer plus a citation (step 3).
- How X works: search, fetch the top hits, synthesize (step 3).
- Getting started / onboarding: browse the relevant section first (no initial search), then fetch (step 3).
- Which API for a use case: search the use case, map to APIs, present a decision table (step 3).
- Does SP-API support Z: decompose into dimensions (marketplace, API, feature variant), search each, present the breakdown without forcing a yes/no (step 3).
- Show a schema / API contract: get the operation spec by operationId (step 3).
- Build / automate / design / brainstorm: go to the design path (step 4).
- Give me code: go to the code path (step 5).
- An account action, live account metrics, or a non-SP-API topic: decline and route per Rule 10, then stop.
-
[Agent] Search well and answer with the fewest operations. Use natural-language questions under about 30 words, preserving identifiers exactly. Anchor on VERY_HIGH and HIGH hits (<Definition - Confidence>); answer from the search snippet alone when it settles the question, and only fetch full documents (batched in one call) when you need body content the snippet lacks. If the first search is thin, reformulate 3 to 5 times before concluding the docs lack the topic. Then reply with a grounded answer AND at least one inline rendered visual (Rule 4): a mermaid sequence/flowchart for a flow, a state diagram for a lifecycle, a decision table for a comparison, an ER/class diagram or field table for a schema, or a small table for a factual lookup. Build the visual only from retrieved content. See references/query-craft.md and references/design-and-code.md. Validate: The answer is grounded in retrieved content, carries at least one rendered visual, and ends with Sources. If fails: If after 3 to 5 varied searches nothing covers it, state the gap honestly, give partial guidance, and point to the official resources (Rule 9); do not fill from general knowledge.
-
[Agent] Design / brainstorm path: produce one proposal artifact.
- If the idea is under-specified, ask 1 to 3 focused questions in a single batch, then proceed on a stated assumption if unanswered (Rule 8).
- Search the relevant use-case docs and fetch details in a small bounded pass (roughly 1 to 2 searches plus one batched fetch); resolve real operationIds via get-operation only for the operations the design actually names, not a catalog sweep (Rule 5).
- Produce a single self-contained design-proposal artifact: a problem/goal statement, an architecture diagram, a sequence/workflow diagram using real operationIds, a decision table of the APIs/notifications/reports chosen with why, optional charts where the docs provide numbers, and a Sources section. Iterate on the same artifact as the developer refines. Everything traces to a retrieved doc (Rule 3). See references/design-and-code.md. Validate: A single grounded proposal artifact is produced with the architecture and sequence diagrams, the decision table, and sources. If fails: If a needed operation or doc is missing, note the gap in the artifact rather than inventing the piece.
-
[Agent] Code path: SDK-tutorial-grounded, one bounded pass. Search the official prebuilt SDK tutorial for the developer's language first (supported: C#, Java, JavaScript, PHP, Python; default to JavaScript if unstated), then fetch the operation detail the code uses via get-documents or get-operation (roughly one search plus one batched fetch, no task list). Write the code from retrieved content: include auth/setup, error handling, and clear comments, adapt for syntactic correctness but never invent endpoints, parameters, or SDK methods not in the docs (Rule 3). Hand-write custom HTTP only when no official SDK covers the use case. Pair the code with a workflow/sequence diagram of the call flow (Rule 4). Validate: The code is in the requested language, grounded in the retrieved SDK tutorial and operation spec, and paired with a workflow diagram. If fails: If the SDK tutorial or operation is not found, say so and give the closest documented guidance rather than inventing a pattern.
</Workflow - Answer SP-API Questions>
Reference files:
- references/tool-reference.md: the four knowledge operations, the search-then-fetch two-step contract, operationId and section-browse usage, the result fields (document id, confidence, section, url), and known behaviors.
- references/query-craft.md: turning a developer's question into good natural-language searches, phrasing patterns, and using confidence to triage.
- references/design-and-code.md: the design-proposal artifact structure, the per-question visualization playbook, the clean mermaid styling rules (accent-only classDef, reserved-word and hex pitfalls), the SDK-tutorial-first code flow, and the canonical official SP-API resources to cite.
Canonical official SP-API resources (cite as descriptive links when they add value; prefer knowledge-base content as the primary source):
- Developer Documentation: https://developer-docs.amazon.com/sp-api/
- Sample solutions (use cases): https://github.com/amzn/selling-partner-api-samples/tree/main/use-cases
- Schema / model repos: https://github.com/amzn/selling-partner-api-models
- Postman collections: https://www.postman.com/amazon-selling-partner-api/sp-api/overview
Signals
- GitHub stars
- 49
- Forks
- 2
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
selling-partner-knowledge- Source
- github.com/amazon-quick/amazon-quick-official-catalog