# NorthernGo agent skill

Use this when the user wants to build or iterate an app that should run on [NorthernGo](https://northerngo.com): preview, EU database, login, subdomain publish.

This is **not** a remote control of NorthernGo. You write (or describe) the app. NorthernGo hosts and finishes it.

## Fastest path (no API)

1. Give the user this link, URL-encoded prompt:

   `https://northerngo.com/?prompt=YOUR+PROMPT`

   The prompt is filled in the editor. The user still presses Generate. NorthernGo's engine (Gemini, or the user's local/Ollama/BYOK model) writes the HTML.

2. If you already have a complete HTML document, tell the user to use **Import HTML** in the editor (Premium or Pro, logged in). NorthernGo injects `window.NorthernGoUI` / `window.NorthernGoDB` and legal chrome. Do not ask them to paste raw SDK internals. Own API key (Claude / GPT) is the same plans.

## If you write the HTML yourself

- One file: vanilla HTML + CSS + JS. Tailwind utility classes are fine.
- Put the app in a root such as `#app` / `#app-root`.
- Persist data with `window.NorthernGoDB.save(collection, data)` and `window.NorthernGoDB.get(collection)`. Never `localStorage` for app data unless the user explicitly asked for local-only storage.
- Auth: `register`, `login`, `logout`, `getToken`, `deleteAccount`. Any app with login **must** include a working delete-account path (GDPR art. 17).
- Do not redefine `window.NorthernGoDB`, `window.NorthernGoUI`, or `window.NorthernGoAI`.
- `window.NorthernGoAI.generate` / `speak` / `generateImage` only if the user's NorthernGo plan is Premium or Pro. On Free, skip in-app AI.
- Buttons need `type="button"` unless they actually submit a form.
- Do not include `northerngo.com` marketing chrome, gold/amber unless the user asked for gold, or a second copy of Tailwind Play CDN if NorthernGo already injects one.

## After the app exists on NorthernGo

The user publishes from the editor (Premium/Pro for live subdomain). GitHub/ZIP export is Premium/Pro. You cannot publish for them from this skill.

## See also

- https://northerngo.com/llms.txt
- https://northerngo.com/skill.md
