debug
Debug an Apps in Toss mini-app across two environments — local browser (devtools panel, `window.__ait`, browser DevTools) and…
Write or review the server side of an Apps in Toss mini-app: any backend that stores per-user data or calls the Apps in Toss partner API (Toss login token exchange, anonymous-key exchange, other partner calls), on Cloudflare Workers, Node, a BaaS (Supabase, Firebase) or any
Claude Code
$ npx -y skills add toss/apps-in-toss-harness --skill server --agent claude-code
Codex
$ npx skills add toss/apps-in-toss-harness --skill server -a codex -y
Cursor
$ npx skills add toss/apps-in-toss-harness --skill server -a cursor -y
Gemini CLI
$ npx skills add toss/apps-in-toss-harness --skill server -a gemini-cli -y
GitHub Copilot
$ npx skills add toss/apps-in-toss-harness --skill server -a github-copilot -y
OpenCode
$ npx skills add toss/apps-in-toss-harness --skill server -a opencode -y
Windsurf
$ npx skills add toss/apps-in-toss-harness --skill server -a windsurf -y
name: server description: | Write or review the server side of an Apps in Toss mini-app: any backend that stores per-user data or calls the Apps in Toss partner API (Toss login token exchange, anonymous-key exchange, other partner calls), on Cloudflare Workers, Node, a BaaS (Supabase, Firebase) or any other hosting. Use it right away, before writing server code, for "서버에 저장해서 다른 기기에서도 보이게 해줘", "서버 붙여줘", "Supabase·Firebase에 내 기록 저장해줘", "Workers로 서버 만들어줘", "토스페이 결제 서버 붙여줘" (server calls to create, approve or refund a payment), "토스 로그인 붙여줘" (even client side only — login needs console setup and a server exchange), "서버에서 사용자 구분은 어떻게 해?", or "getAnonymousKey 값을 서버에서 그대로 써도 돼?" — even when the user only names the feature. It decides how the server identifies users (anonymous-key exchange vs Toss login), wires mTLS for partner API calls, parses the resultType envelope and sets exact CORS origins, then writes or fixes the code. Keeps the user's chosen hosting. Deploys only when asked; no console calls. Client screens are `/ait:design`; phone testing is `/ait:test-on-device`. Triggered by `/ait:server [request]`. argument-hint: '[request]'
미니앱이 쓰는 서버 코드를 쓰거나 고칠 때 앱인토스 고유의 판단과 연결부를 맡는다. 사용자별 저장, 파트너 API 호출(토스 로그인 토큰 교환, 익명 식별키 교환, 토스페이 결제 생성·승인·환불 등)이 대상이다. 프레임워크 템플릿을 새로 깔지 않고, 사용자가 고른 호스팅과 기존 코드를 따른다. 사실(경로, 스키마, 허용 origin)은 docs MCP로 읽는 개발자센터 문서가 정본이고, 이 skill은 판단 기준과 점검 순서를 더한다.
작업 디렉터리부터 읽는다(클라이언트 `package.json`의 web-framework 버전, 서버 디렉터리, `wrangler.jsonc`·`wrangler.toml` 같은 호스팅 설정). 서버가 아직 없고 사용자가 호스팅을 정하지 않았으면 무엇으로 할지 한 번 묻는다. 사용자가 이미 고른 호스팅을 다른 것으로 바꾸자고 먼저 제안하지 않는다.
`../launch/references/server-runtime.md`를 처음부터 끝까지 `Read`로 읽는다. 서버 코드를 한 줄이라도 쓰기 전에 읽는다. 사용자 식별, mTLS 인증서, Workers 경로, 응답 봉투, 토스페이 결제, CORS, 로컬 검증 기준이 모두 거기 있다. 경로와 스키마는 그 문서가 가리키는 docs 페이지를 getPage로 읽어 맞춘다.
클라이언트 `User.createAnonymousKeyAuthCode()` → 서버의 교환 API → `success.anonKey`.
설정이 먼저 돼 있어야 한다고 알린다(등록 전에는 토큰 발급이 errorCode 4050으로 실패한다). 클라이언트 쪽만 요청받아도 이 선행 조건과, 받은 인가 코드를 서버가 토큰으로 바꿔야 한다는 점을 함께 말한다.
사용자가 그렇게 해 달라고 해도 이유(그 값은 요청자를 증명하지 않는다)를 말하고 교환 방식으로 짠다.
코드를 거치게 한다. 그 코드는 Supabase Edge Functions·Firebase Cloud Functions에 둬도 된다. 클라이언트 직결은 공용 데이터에만 쓴다. secret key는 서버에만 두고 `supabase.auth` 같은 자체 로그인은 붙이지 않는다. 자세한 경계는 server-runtime.md의 BaaS 절.
server-runtime.md의 기준대로 쓴다. 최소한 다음을 지킨다.
`mtls_certificates` 바인딩과 `env.<BINDING>.fetch`.
값을 쓰고, 성공은 `resultType`으로 판정한다. 응답을 못 받았거나 승인이 거절되면 재시도 전에 상태 조회로 복구한다(승인은 멱등이 아니다).
다룬다.
사용자가 직접 해야 할 일을 빠뜨리지 않는다: 콘솔에서 mTLS 인증서 발급, 호스팅 로그인(`! npx wrangler login` 등), 배포 후 클라이언트 서버 주소 갱신과 재빌드.
서버 작업 결과
식별 방식: <익명 식별키 교환 | 토스 로그인>
확인한 것: <로컬 테스트·봉투 경우>
사용자가 할 일: <인증서 발급, 로그인, 배포 등>
다음 단계
/ait:test-on-device # 서버 주소로 다시 빌드한 번들을 폰에서 확인
# 말로: "만든 미니앱을 실제 토스 앱에서 돌려보고 싶어. 번들 올려서 폰에서 확인하게 해줘"
/ait:launch # 출시 전 점검
# 말로: "검수 넣기 전에 한번 봐줘"
문서가 필요하면 docs MCP(searchDocumentation/getPage)로 조회하세요.응답 봉투, 토스페이 결제, CORS, 로컬 검증)
앱인토스 미니앱을 AI 코딩 에이전트와 대화하며 만드는 플러그인 ait가 들어 있는 저장소입니다. "출석 체크 미니앱 만들고 싶어"라고 말하면 에이전트가 기획을 정리하고, 프로젝트를 만들고, 화면을 그리고, 내 폰의 토스 앱에 띄워 보여 줍니다. 검수 요청도 에이전트 안에서 합니다. Claude Code, Codex, Cursor에서 쓸 수 있습니다. 0.3.x 이하에서 올라오는 분은 먼저 .github/updating.md를 읽어 주세요.
Debug an Apps in Toss mini-app across two environments — local browser (devtools panel, `window.__ait`, browser DevTools) and…
Build and fix mini-app screens. Run it for "화면 만들어줘", "출석 체크 화면 그려줘", "화면이 구린데 예쁘게 해줘", "디자인 좀 봐줘" — it writes and edits the…
Implement an Apps in Toss SDK feature in the user's existing project: banner / interstitial / rewarded ads, in-app purchase…
Patch an existing Apps in Toss mini-app's build setup. Three facets: `/ait:inject-devtools` adds the `@apps-in-toss/devtools`…
Pre-launch check, review request and rejection handling for an Apps in Toss mini-app (검수 = the Apps in Toss app review, not code…
Scaffold a new Apps in Toss mini-app by driving the official `create-ait-app` CLI non-interactively (`--inline`, always…
Expert assistance for next-forge — a production-grade Turborepo template for Next.js SaaS apps. Triggers on questions about…
Build or change an app on EveryApp: create one, add a feature, a page, a table, an AI tool, a capability, a public route or a…
Use when the user mentions Nubase broadly, wants a backend for an AI-generated app, or needs to deploy/publish generated code…