shopline-oauth

shopline-oauth is a skill for Claude Code, Codex from lunw/shopline-ai-toolkit-dsh. It costs 57 tokens per session (1,189 once invoked), scanned A, original, MIT.

A guide for SHOPLINE app authorization and request signing. OAuth lets an app obtain store access tokens, while HMAC-SHA256 signatures verify that requests and callbacks are genuine.

In plain words
What is it for?
Use it to implement OAuth installation and callbacks, refresh tokens, sign API requests, verify webhook and callback signatures, and handle private apps that use administrator-provided tokens.
Why use it?
It helps prevent confusion between getting permission to access a store and checking that SHOPLINE requests have not been forged or altered.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to implement OAuth installation and callbacks, refresh tokens, sign API requests, verify webhook and callback signatures, and handle private apps that use administrator-provided tokens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lunw/shopline-ai-toolkit-dsh --skill shopline-oauth
Clone the repo
git clone --depth 1 https://github.com/lunw/shopline-ai-toolkit-dsh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shopline-oauth

README.md
[![agentmods](https://agentmods.dev/badge/skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth/github.svg)](https://agentmods.dev/skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth)
Your own site
<a href="https://agentmods.dev/skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth"><img src="https://agentmods.dev/badge/skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shopline-oauth

Your own site · 80×15
<a href="https://agentmods.dev/skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth"><img src="https://agentmods.dev/badge/skills/lunw/shopline-ai-toolkit-dsh/shopline-oauth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01189
Opus 5 $0.00028 $0.00594
Sonnet 5 $0.00011 $0.00238
Haiku 4.5 $0.00006 $0.00119

Measured 12d ago against content hash 539b4e8d11a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

shopline-oauth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/shopline-oauth/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SHOPLINE App Authorization & Request Signing

Two separate things are often confused: (1) OAuth for obtaining store access tokens (public/custom apps), and (2) HMAC-SHA256 request signing required on OAuth HTTP calls and webhook callbacks. Private apps skip OAuth entirely — the token is copied from the SHOPLINE Admin.

OAuth 2.0 authorization code flow (public & custom apps)

Step 1 — install request. When a merchant installs the app, SHOPLINE GETs your App URL with query params handle (store handle), timestamp (ms), sign (signature), plus lang if embedded. Verify the signature first (see below).

Step 2 — authorize. Redirect the merchant (or give them the URL):

GET https://{handle}.myshopline.com/admin/oauth-web/#/oauth/authorize?appKey={appKey}&responseType=code&scope={scope}&redirectUri={redirectUri}
  • scope: comma-separated permission points, e.g. read_products,read_orders
  • redirectUri: must exactly match a callback URL configured in the Partner Portal (URL-encoded)

Step 3 — callback. SHOPLINE redirects to your redirect URI:

GET https://{redirectUri}?appkey={appkey}&code={code}&customField={customField}&handle={handle}&timestamp={timestamp}&sign={sign}

The code is an OAuth authorization code, valid 10 minutes. Verify sign before using it.

Step 4 — exchange code for token:

POST https://{handle}.myshopline.com/admin/oauth/token/create
Content-type: application/json
appkey: {appkey}
timestamp: {timestamp}
sign: {sign}

{"code":{code}}

Response: {"code":200,"i18nCode":"SUCCESS","data":{"accessToken":"...","expireTime":"...","scope":"..."}}. The access token is valid 10 hours.

Step 5 — refresh before expiry:

POST https://{handle}.myshopline.com/admin/oauth/token/refresh
Content-type: application/json
appkey: {appkey}
timestamp: {timestamp}
sign: {sign}

(no body). After refresh, the old token stays valid for 5 minutes, then dies.

Request signing (HMAC-SHA256)

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 105 lines · 57 tokens per session scan A 539b4e8d11a9

Subscribe to this mod's changes

shopline-oauth is a skill published in the GitHub repository lunw/shopline-ai-toolkit-dsh (5 stars, last pushed 16d ago), licensed MIT. It adds 57 tokens to every session and 1,189 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pipefy-api-fallback

Use this skill when an MCP tool fails AND the introspection skill could not resolve the problem. This is the last-resort fallback (Tier 3): call the Pipefy GraphQL API directly using curl or httpx, authenticating with the Service Account (OAuth2) or a Personal Access Token (PAT) available as env var. Follow the 3-tier…

pipefy/ai-toolkit · 86 tokens

pipefy-introspection

Use this skill when you need to discover GraphQL type shapes, mutation signatures, enum values, or execute arbitrary GraphQL as a fallback. This is the first fallback tier (Tier 2) when dedicated MCP tools fail or don't exist for an operation. 7 MCP tools.

pipefy/ai-toolkit · 61 tokens

yao-process

Yao process execution expert. ALWAYS invoke this skill when the user needs to call a Yao process, query data models, run scripts, or check process permissions. Do not call processes without checking this skill first.

YaoApp/yao · 47 tokens

daytona-cloud-server

Daytona cloud server, Den sandbox, desktop plus cloud e2e, marketplace server, worker proxy, cloud auth, org policies, connect Electron to Den. Use for server-side setup in validated flows.

Devin-AXIS/iPolloWork · 46 tokens

stripe-billing-subscriptions

Analyze Stripe customers, subscriptions, prices, invoices, payment status, and lifecycle transitions with explicit environment and object scope.

Devin-AXIS/iPolloWork · 29 tokens

kotlin-ktor-patterns

Ktor server patterns including routing DSL, plugins, authentication, Koin DI, kotlinx.serialization, WebSockets, and testApplication testing. Use when building a Ktor server — routing, plugins, auth, DI, serialization, or tests.

gongyijie85/dsh-ecc · 55 tokens