/ait:feature [request]from Apps in Toss
Implements Apps in Toss SDK features (ads, IAP, share, leaderboard, haptics, storage) in existing projects across web, Unity, engine HTML5, or React Native stacks. Reads project context, confirms API via docs MCP, and writes stack-idiomatic code with cleanup.
Ships in Apps in Toss. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
사용자 프로젝트에 앱인토스 SDK 기능을 구현한다. 스택은 정하지 않는다. 웹이든
Unity든 엔진이든 프로젝트를 읽고 그 스택의 관용구로 호출을 쓴다. API 모양은
기억이 아니라 docs MCP로 읽는 개발자센터 문서가 정본이다. 이 skill은 읽는 순서,
광고·결제 규약, 콘솔에서 먼저 할 일, 확인 방법을 더한다. 화면 시각은
/ait:design, 서버 코드는 /ait:server, 요구사항 정리는 /ait:plan, 폰 확인은
/ait:test-on-device가 맡는다.
"광고 붙여줘"처럼 뭉뚱그려 왔으면 배너, 전면, 보상형 중 무엇인지, "결제"면 소모품, 비소모품, 구독 중 무엇인지를 한 번 묻는다. 코드나 화면에서 알 수 있으면 묻지 않는다. 요청이 여러 기능이면 하나씩 끝내고 다음으로 간다.
작업 디렉터리부터 읽는다. 읽기 전에 "비어 있다"고 말하지 않는다.
| 단서 | 호출 형태 |
|---|---|
package.json에 @apps-in-toss/web-framework | 웹. 어떤 UI 프레임워크든 SDK는 이 패키지에서 import한다 |
Packages/manifest.json 또는 Assets/에 Apps in Toss Unity SDK | Unity. C# AIT.*. 패키지 안의 문서와 XML 주석을 먼저 읽는다 |
| 엔진 HTML5 빌드(Godot, Cocos, Phaser 등)를 웹 번들로 감싼 프로젝트 | 엔진에서 호스트 JS로 부르는 브리지. 엔진의 JS 호출 기능으로 위 웹 SDK 함수를 감싼다. 프로젝트 안의 얇은 어댑터 한 파일로 쓰고 패키지로 만들지 않는다 |
package.json에 @apps-in-toss/framework | React Native |
package.json에서 확인한다. 3.x는 Ads·IAP·Storage처럼 도메인
객체 사용을 권장하고, 2.x는 평평한 함수다. 프로젝트가 쓰는 쪽을 따르고 섞지 않는다.
3.x에서도 2.x 함수는 deprecated 상태로 동작한다..d.ts에 없는 API는 쓰지 않는다.API 이름, 인자, 이벤트 이름을 기억으로 쓰지 않는다. 광고와 결제는
references/conventions.md를 먼저 읽는다. 거기 적힌 "먼저 읽을 원문" 한 장만 getPage로
읽어 시그니처를 대조하고 바로 구현한다. 함수마다 페이지를 따로 열지 않는다. 설치된
패키지의 .d.ts가 있으면 그것으로 대조해도 된다. 그 밖의 기능은 searchDocumentation으로
페이지를 찾아 getPage로 한 장 읽는다. 검색 결과 조각만 보고 쓰지 않는다.
references/stack-pitfalls.md는 해당 스택일 때 읽는다.
destroy는 화면 이탈,
컴포넌트 해제, OnDestroy 같은 그 스택의 수명 끝에서 부른다.isSupported)와 토스 앱 버전을 확인하고, 미지원이면 빈 화면 대신 기능을
감춘다./ait:ux-writing으로 넘긴다.references/conventions.md가 근거다. 구현 전에 아래를 해당되는 것만 점검한다.
/ait:design의 하드 규칙과 같은 기준이다.userEarnedReward에서만 지급한다.processProductGrant 또는 스택별 대응)이 지급이 끝난 뒤에만 성공을
돌려주게 짜고, 미결 주문 복구를 같이 구현한다. 지급을 서버에서 검증해야 하면
/ait:server로 넘긴다./ait:server로 넘긴다. 인앱
결제(IAP)는 위 규칙대로 이 skill이 맡는다.permissions와 요청 흐름을 함께 쓴다. 정확한 이름은
권한 페이지 원문으로 확인한다.광고 그룹 ID 발급, 인앱 상품 등록, 정산·사업자 정보 같은 콘솔 설정은 사용자가 한다. 이 skill은 콘솔 MCP 쓰기 도구를 부르지 않는다. 필요한 값이 없으면 개발용 테스트 ID나 자리표시 상수로 구현을 끝내고, 어떤 값이 필요한지 보고에 적는다.
package.json의 scripts에서 찾는다).
Unity는 컴파일 오류가 없는지 확인한다.npm run dev로 브라우저에서 devtools mock 위에서 호출이 동작하는지 본다. 광고는
실제 렌더링이 토스 앱 안에서만 되므로 mock 로그와 이벤트 흐름까지만 확인한다./ait:test-on-device로 넘긴다.기능 구현 결과
스택: <웹 | Unity | 엔진 HTML5 | React Native> / SDK <버전>
구현한 것: <기능과 바꾼 파일>
근거 문서: <getPage로 읽은 페이지>
확인한 것: <빌드·타입체크·브라우저 mock>
사용자가 할 일: <콘솔 광고 그룹 ID, 인앱 상품 등록 등>
확인하지 못한 것: <실기기 동작 등>
다음 단계
/ait:test-on-device # 번들을 올려 폰에서 광고·결제가 실제로 도는지 확인
# 말로: "만든 미니앱을 실제 토스 앱에서 돌려보고 싶어. 번들 올려서 폰에서 확인하게 해줘"
/ait:server # 토스페이 결제 생성·승인·환불이나 지급 서버 검증이 필요할 때
# 말로: "토스페이 결제 서버 붙여줘"
/ait:design # 광고나 결제 UI의 위치와 모양을 다듬을 때
# 말로: "화면이 좀 구려 보여. 예쁘게 고쳐줘."
/ait:launch # 출시 전 점검
# 말로: "검수 넣기 전에 한번 봐줘"
문서가 필요하면 docs MCP(searchDocumentation/getPage)로 조회하세요.
/ait:server), 화면 시각 설계(/ait:design), 요구사항 정리(/ait:plan)references/conventions.md: 광고(배너·전면·보상형)와 인앱 결제 규약, 출처와 확인일references/stack-pitfalls.md: 스택별로 추론할 수 없는 사실plan(매핑), design(화면), server(백엔드), test-on-device(폰 확인), launch(출시 전 점검)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/debugDebug an Apps in Toss mini-app across two environments — local browser
(devtools panel, `window.__ait`, browser DevTools) and on-device
intoss-private candidate (real Toss WebView via `ait-debugger` MCP
relay-staging QR attach). Branches by what it observes, then runs an
autonomous observe → hypothesize → minimal-fix → re-verify loop and hands off
when it stalls (§6). Triggered by
`/ait:debug` (no args). Distinct from `status`/`logs` (console-side, not
live device state).
/designBuild and fix mini-app screens. Run it for "화면 만들어줘", "출석 체크 화면
그려줘", "화면이 구린데 예쁘게 해줘", "디자인 좀 봐줘" — it writes and edits
the project's actual screen files, not a chat answer about design. Works from
nothing: with no screen, no CSS file and no design assets in the project, it
still produces the screens. On projects built with TDS, MUI, Tailwind, shadcn
or their own tokens it keeps that system, so "어색한데 기존 스타일 유지하면서
다듬어줘" is this skill too. Fixes hard-rule breaks itself (text under 11px,
touch targets, bottom safe area, text-glyph chevrons, ads covering content,
dark patterns) and checks Apps in Toss container constraints against the docs
MCP. Also produces registration image assets at the console MCP
`miniapp_create` specs (logo, thumbnail, screenshots). Figma MCP is optional
input. Not a refactor pass (no component API, props or state changes). Never
registers or uploads. Skip it only when the user wants feature code and no
visual change at all ("스타일은 기존이랑 똑같이", "디자인은 손대지 말고",
"Figma 시안 그대로").
Triggered by `/ait:design [screen or request]`.
/injectPatch an existing Apps in Toss mini-app's build setup. Three facets:
`/ait:inject-devtools` adds the `@apps-in-toss/devtools` unplugin for browser dev,
registered for whichever bundler the project uses ("기존 Vite 프로젝트에 devtools
붙여줘", "Rspack 쓰는 기존 프로젝트에 devtools 붙여줘");
`/ait:inject-debugger-client` installs `@apps-in-toss/debugger-client` (on-device
attach) as a devDependency behind an opt-in build flag so release builds do not contain it; `/ait:inject-tossface` wires the Tossface emoji web font
(CDN link or subset bundling) into the project's global stylesheet. Idempotent,
minimal edits. This skill only
INSTALLS packages/assets into a build setup — it never diagnoses a running app.
"폰에서 이상하게 동작하는데 디버깅하고 싶어" / "라이브 상태를 보고 싶어" is
`debug`, not this.
/launchPre-launch check, review request and rejection handling for an Apps in
Toss mini-app (검수 = the Apps in Toss app review, not code review). Use
it right away for "검수 넣기 전에 한번 봐줘", "출시해도 되는지
점검해줘", "검수 요청 넣어 줘", or a pasted rejection ("검수에서
반려됐어. 사유가 …"); it reads the project itself, so don't ask which
files first. Checks code against the official checklist and console
review state, and drafts an inquiry when the cause isn't in the code.
Use it before any `bundle_submit_review` call: it shows the full
request and submits only after the user approves it; never releases or
rolls back. It refuses to propose a submission for a deployment recorded
as a debug build or whose uploaded output contains debug-tool markers. Phone testing is `/ait:test-on-device`; screen fixes, even
for review criteria, are `/ait:design`. Triggered by
`/ait:launch [rejection reason]`.
/new-miniappScaffold a new Apps in Toss mini-app by driving the official
`create-ait-app` CLI non-interactively (`--inline`, always `@latest`), then
verifying the `@apps-in-toss/devtools` wiring (mock SDK + panel) the CLI
performs so `npm run dev` runs in a plain browser immediately — falling back to
manual wiring only when the CLI did not do it. Stack-neutral: defaults to
`react-ts`, and when the user names a stack ("Vue로", "Svelte + TS") picks the
matching preset from `create-ait-app --list-templates`. Supports `--tds` and
`--sample iap,iaa` passthrough. `--local` is a React-only offline fallback
(bundled react-vite template, being phased out); `--no-devtools` un-wires
devtools afterwards.
The freshly scaffolded project also gets a design guide seeded into it
(tokens, hard rules, icon set, Tossface emoji font wiring) so later sessions
build screens against the same standard — `--no-design-guide` and
`--no-tossface` opt out of that seeding.
Greenfield only (see `inject-devtools` for existing projects).
Triggered by `/ait:new <app-name> [--template <name>] [--tds]
[--sample <ids>] [--local] [--no-devtools] [--no-design-guide]
[--no-tossface]`.
/planTake a mini-app from a vague idea to a plan — ideate when the user has no
concrete idea yet, shape a lightweight PRD, look up official docs for
reference, then map it to the needed SDK domains, the runtime permissions
they prompt for, and console terms (약관) that gate registration. Use when
the user asks "미니앱 만들고 싶은데 뭘 만들지 모르겠어" or "미니앱 만들 건데
필요한 SDK 도메인/권한/약관 먼저 정리해줘", or asks for a PRD ("출시 일정이랑
범위 정리한 PRD 써줘") — requirements work, not a docs lookup. Writes at most one file (`PRD.md`); no CLI, no console calls.
Hands off to `/ait:new`. Triggered by `/ait:plan [requirements]`.
npx claudepluginhub toss/apps-in-toss-harness --plugin aitOther plugins' skills for the same job