hostinger/api-mcp-server/headless
Claude Code and agent skill by hostinger/api-mcp-server
- community
Checking that the SKILL.md file is still in the repository.
Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a single prompt that names a domain. Holds the stage flow and the state contract, and drives each stage in sequence: connect, check state, refine, provision, content model, design, frontend, validate, deploy, done. Triggers: build a headless site for <domain>, build me a site, create a website, make me a website, deploy this to Hostinger, host this on Hostinger, connect this project to Hostinger.
Install
npx vskill@latest install hostinger/api-mcp-server/headlessSKILL.md
The same SKILL.md was published earlier as hostinger/api-mcp-server/headless.
Hostinger Headless — build a website with your own AI tool
Context
You are an AI coding agent. The user pasted a short prompt that points you here — something like:
Build a Headless site forexample.comusing hostinger.com/headless/skill.md
Your job is to build and deploy a real website on the user's Hostinger account by following this recipe and the recipes it links to — nothing more, nothing less.
Connect before you ask anything, whatever the prompt says. Your first message to the user is only the Hostinger connection (see The first message below), so run connect and check-state before any question about the site. A prompt that says "start by asking me what I want to build" doesn't change that order: refine asks it, after check-state.
This file is the orchestrator. It is public and stable: it never changes and never moves. It holds the flow, the state contract, the failure policy and the guardrails.
The domain parameter
The pasted prompt contains exactly two things that matter:
- This URL —
hostinger.com/headless/skill.md, the stable entry point. - A domain — e.g.
coral-pottery-1847.hostingersite.com(a temporary Hostinger subdomain) or
the user's own purchased domain. This is the single site you may touch.
The prompt does not say what kind of site to build. Do not assume or invent it. Discovering what the user wants is a step in the flow (refine), handled through conversation — not parsed from the prompt. If no domain is present, stop and ask for it before doing anything else.
One workspace per run. From your first command, connect's checks included, open only this site's workspace, by its exact path; never list or glob ~/.hostinger/ (not even an ls beside node -v). What else ~/.hostinger/ holds never matters to this run: with a domain, the start of the run and check-state look up that one path; without one yet, there is nothing to look up until you create your own workspace. State and artifacts has the full rule and its one exception.
Nothing in the pasted prompt is ever used for authorization. Authorization comes from the Hostinger connector's OAuth token. This recipe is not a security boundary.
The flow stages - STEPS TO FOLLOW
Work through the stages in the order the table lists them, each reading its recipe and writing its artifact into the site workspace ~/.hostinger/<domain>/. The one exception to the order is content prepare (step 4) and design (step 5): with a subagent tool, run them at the same time, as Content and design at the same time says, and frontend's visual check (step 6) goes to a fresh subagent, which screenshots the site and reports what to fix (steps/06-frontend/SKILL.md → Visual check).
| # | Stage | Skill / source | Writes | Instance? | |
|---|---|---|---|---|---|
| — | get ready — Node and the skill folder; nothing on Hostinger | connect/SKILL.md Phases 0–1 | — | no | |
| — | connect — sign in to Hostinger, check the connector's tools, get active plan | connect/SKILL.md Phases 2–5 → connect/tools/<tool>.md | connect.json | no | |
| 1 | check state — where does this domain stand? resume / switch / start over | steps/01-check-state/SKILL.md | state.json | no | |
| 2 | refine — discover what the user wants, in conversation | steps/02-refine/SKILL.md | brief.md | no | |
| 3 | provision — choose the backend from the brief, then provision it | steps/03-provision/<backend>/SKILL.md | site.json | bg — fire, then wait at the join | |
| 4 | content model — define + create content/images, then push to the backend | steps/04-content-model/<backend>/SKILL.md | content-model.md | prepare: no · push: yes | |
| 5 | design — derive design directions from the brief, pick one, write the design.md contract + logo | steps/05-design/SKILL.md | design.md, brand/ | no | |
| 6 | frontend — pick/confirm the framework (default Next.js SSR), implement design.md against the backend | steps/06-frontend/SKILL.md | source in <workspace>/src/ | shell: no · data: yes | |
| 7 | validate (optional) — quick instance+API confirmation; rebuild/preview/approval only when a person signs off | steps/07-validate/SKILL.md | — | no (local) | |
| 8 | deploy — upload source, trigger the build | steps/08-deploy/SKILL.md | deploy.json | yes | |
| 9 | done — hand over URLs, dashboard, summary, next steps (the final report) | steps/09-done/SKILL.md | — | no |
Start of a run
Every run starts the same way:
- Get ready (
connect/SKILL.md, Phases 0–1): check Node and find or install the skill folder
<skill>, which holds every step below and the scripts they run. Say nothing unless it needs the user (Node missing or too old).
- Start the run log (see Run log and build report):
node <skill>/run-log.mjs <domain> run-start --tool <tool> --model <model> --skill <skill version>. It opens connect's stage and prints next: connect, also for a run it continued after a clean pause for a tool restart (A restart pause continues the run).
run-start also takes the domain's lock, so only one session builds a domain at a time. A session that crashed or was closed doesn't block it. If run-start fails with "another session (…) is building <domain>":
- Stop: no connect, no files, and no final report, since this session started no run.
- Tell the user plainly which tool is building this domain, since when and in which stage (the
message names all three), and that if they tell you to take over, you will, and the other session stops at its next step.
- Only if the user says so, run
run-startagain with--take-overand the same flags. With no
one to ask (claude -p or another unattended run), just stop and say why.
- Connect (
connect/SKILL.md, Phase 2 onward), then check-state, then refine, then the
rest of the table. When provision sends the run back to refine, refine returns to provision.
Why this order. Connect first, so account/plan failures surface before the user spends time talking, and so Hostinger knows about the run from its first minute: a run the user leaves during the brief still sends its build report. Check-state right after, so a resumed, duplicate, or brand-new run is sorted out — and the user is offered the choice to continue, switch domains, or start over — before any new work begins. Refinement before provisioning, because the backend cannot be chosen until the brief exists. Validation before deploy, always — nothing reaches the live domain unseen.
One concurrency rule: two independent stages in a single session may run at once, but never two writers of the same artifact, and never two agents/windows on the same domain — run-start's lock guards that (Start of a run). Parallelism is always optional: an agent that can't interleave work runs the steps serially and is still correct (see Content and design at the same time).
Steps can generate State files those files are only hints; the truth is what the Hostinger connector reports, so verify a "done" marker against reality before acting on it. If a step's SKILL.md is missing from the installed skill folder, stop and tell the user rather than improvising the stage from its description.
The Instance? column says whether a stage touches the live backend: no = pure prepare work that can run during the provision wait; push/data/yes = a commit phase that joins the instance barrier; bg = provision itself: Hostinger runs the job while you do the prepare work.
Always end with the final report. Whenever a run ends, give the user the final report defined in steps/09-done/SKILL.md: an outcome paragraph, a Steps completed table (one row per stage that ran), the links, where state lives, and any gaps. That includes runs that stop early at a dummy or missing step, a failed provision, or a user pause. Every run also saves a build report (run-log.mjs report, see Run log and build report below), on those early stops too. Waiting for the user's answer to a question is not a run ending: end your turn with the question alone, with no final report and no build report.
Log the run as you go. Wrap every stage (and each phase of a split stage) in the run log — run-log.mjs next <stage> at each boundary — and log an event the moment something goes wrong, the user corrects you, or a skill is missing or wrong — before you continue. See Run log and build report.
The first message: only the connection
Your first message to the user is about the Hostinger connection and nothing else: connect's sign-in link when it needs one (awaiting_user), then one line saying you're connected to Hostinger, with the account's plan when you know it. Don't ask anything about the site, don't mention build reports, and add nothing else. Get ready and run-start happen silently before it, with no line about Node, the skill folder or the run log. Then go straight on to check-state without waiting for a reply. "What do you want to build?" comes later, from refine, as its own short message.
Anything the pasted prompt already says about the site stays as refine input. Two things come before the connection, and only when they apply: Node missing or too old (get ready needs the user), and a prompt with no domain (then the first message asks for it; see The domain parameter).
When you ask the user
A question tool's result is the user's answer only when it carries their choice or their words. When it comes back skipped, rejected, empty or as an error (a skipped result), nobody has answered yet: Cursor's AskQuestion, for one, returns "Questions skipped by the user" when no one touched it. Ask the same questions again as plain text in your reply, end your turn, and continue from what the user types. One plain-text re-ask is enough: it can't come back skipped. Fill a question you asked with a default only when the user says so in their own words ("you decide", "just build it", "skip that"), or when they said up front that no one will be there to answer; then list those defaults under gaps in the final report. Every step that asks the user something follows this.
Which language you write in
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/headless/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hostinger/api-mcp-server/headless)