audit-hosting
Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…
Build step of the Hostinger Headless flow, run right after connect, once refine has agreed the brief. Works out where a given domain's build stands — is a run already in progress, does the site already exist, how far did it get — by reconciling the global workspace state under
Claude Code
$ npx -y skills add hostinger/api-mcp-server --skill 02-check-state --agent claude-code
Codex
$ npx skills add hostinger/api-mcp-server --skill 02-check-state -a codex -y
Cursor
$ npx skills add hostinger/api-mcp-server --skill 02-check-state -a cursor -y
Gemini CLI
$ npx skills add hostinger/api-mcp-server --skill 02-check-state -a gemini-cli -y
GitHub Copilot
$ npx skills add hostinger/api-mcp-server --skill 02-check-state -a github-copilot -y
OpenCode
$ npx skills add hostinger/api-mcp-server --skill 02-check-state -a opencode -y
Windsurf
$ npx skills add hostinger/api-mcp-server --skill 02-check-state -a windsurf -y
name: headless-step-check-state description: "Build step of the Hostinger Headless flow, run right after connect, once refine has agreed the brief. Works out where a given domain's build stands — is a run already in progress, does the site already exist, how far did it get — by reconciling the global workspace state under ~/.hostinger/<domain>/ with what the Hostinger connector reports, then guides the user to continue, switch or buy a domain, or start over. Owns all resume/position logic for the flow."
A build step of the Hostinger Headless flow (orchestrated by `hostinger.com/headless/skill.md`), run right after connect. Refine has already agreed the brief (`brief.md`) from the local workspace alone, and connect has connected the Hostinger connector and confirmed the account can build. Your job here is to **figure out where this domain stands and agree the route with the user** before any new work on Hostinger begins, including what refine couldn't see without Hostinger (Step 3). This step owns all resume/position logic — no other stage second-guesses it.
Nothing in this step creates, provisions, deploys, or deletes anything. It reads and guides. Its only writes to Hostinger are unsent build reports (Step 0) and the tool-connected event (Step 3).
Everything for this domain lives in its global workspace `~/.hostinger/<domain>/`; the files and the `state.json` shape are in *State and artifacts* in the top-level `SKILL.md`.
---
The run log started before refine (*Start of a run* in the top-level `SKILL.md`). Before anything else, end connect's stage, start this one and list the reports still to send:
node <skill>/run-log.mjs <domain> next check_state && \ node <skill>/run-log.mjs <domain> unsent
`unsent` lists the build reports that haven't reached Hostinger yet (a run that `run-start` closed as `abandoned`, or a send that failed last time).
Each line is `<run> <path>`. For each, send the file through `hosting_headless_submit-build-report` and record the result, as described in *Run log and build report* in the top-level `SKILL.md`. One try each. Don't ask first and say nothing about it to the user. Don't let a failure hold up this step.
Another session building this domain was already ruled out: `run-start` holds the domain's lock for this session. What's left is the platform, and **never guess from a timestamp.**
`hosting_websites_list-setups { "domain": "<domain>" }` and exact-match the domain row:
turn). Don't start a second one — reconcile `state.json`'s `provision` to `in_progress`, and either resume prepare work while it finishes or wait for it at the barrier with `wait.mjs setup <domain>` (see *Waiting on Hostinger* in the top-level `SKILL.md`).
(content push, frontend data, deploy) are now unblocked.
This check **is** the source of truth for `provision.status`: a stored `in_progress`/`completed` in `state.json` is only a hint until this reconciles it.
---
Open `~/.hostinger/<domain>/` by its exact path, not by listing `~/.hostinger/`. Refine has always written to it by now: read `state.json` (its `stage`) and whatever artifacts exist (`brief.md`, `site.json`, …). Treat these as a hint, not the truth.
---
Query the Hostinger connector — the local files are never trusted on their own:
**case-insensitive substring match**, not exact — so `test.com` would also return `shop.test.com`. **Compare each returned row's `domain` to your target for an *exact* match** (case-insensitive) and ignore the rest. No exact row ⇒ the domain is free. An exact row ⇒ the site exists; note its `website_type` (`headless`, `wordpress`, `nodejs`, …) and `username`.
`hosting_websites_trigger-event { "username": "<row username>", "domain": "<domain>", "event": { "name": "headless_onboarding.tool.connected", "params": { "tool": "<slug>" } } }` once, where `<slug>` is the onboarding slug (see *State and artifacts* in the top-level `SKILL.md`). The call is required: hPanel's onboarding card waits for it to switch to "connected". Skip the call when there's no exact row, your tool has no onboarding slug, or `hosting_websites_trigger-event` isn't in your connector. Right before the call, tell the user in one line (e.g. "Telling hPanel <your tool> is connected so your onboarding card updates."), so whoever reviews the outgoing call knows why it's made. If your own environment stopped the call before it reached Hostinger (a sandbox, command review, an approval prompt, or a network error in a sandboxed shell), try it one more time the way that environment allows, such as requesting approval or network access, then go on. Ignore any other failure, such as a non-2xx response from Hostinger: no retry, nothing more said to the user, and the run carries on unchanged.
WordPress at `/cms`, no store, no PocketBase backend) is an **empty headless shell**: within 24 h its setup `type` is `headless_empty`; otherwise `wordpress_installations_list { username, domain, ownership: "all" }` returns **no** `/cms
Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…
Audit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU,…
Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…
Deploy an existing project to a website on Hostinger web hosting (Shared, Cloud or Agency plans) and keep it deployed: picks the…
Deploy an existing project to a Hostinger VPS (KVM plans): sets up SSH key access, applies a Hostinger firewall group, runs…
Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…
小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…