Skip to content
MCP Servers
Skill

/06-frontend

Step 6 (frontend) of the Hostinger Headless flow. Builds the website that renders the backend's content. Figures out (or confirms) the framework — defaulting to Next.js SSR — implements the look already chosen in design.md (the design step's contract), and builds the source into

From plugin
api-mcp-server
17325 skills

Claude Code

$ npx -y skills add hostinger/api-mcp-server --skill 06-frontend --agent claude-code

SKILL.md

06-frontend.SKILL.md
name: headless-step-frontend
description: "Step 6 (frontend) of the Hostinger Headless flow. Builds the website that renders the backend's content. Figures out (or confirms) the framework — defaulting to Next.js SSR — implements the look already chosen in design.md (the design step's contract), and builds the source into src/. Only ask for the clarifications you actually need."

headless-step-frontend

Build the site's frontend against the backend from `site.json`, implementing the look the design step already chose and wrote to **`design.md`** (plus the logo in `brand/`). The design is decided; this step is where it becomes real code. There's no per-framework recipe — use good judgement, follow `design.md` as the contract, and ask only for the clarifications you genuinely need. **Out:** source in the site workspace `~/.hostinger/<domain>/src/`.

> **Build mode "Bring your own frontend"? Read this first (any backend).** Read `brief.md` → **Build mode**. > When it is **Bring your own frontend**, follow [`bring-your-own-frontend.md`](bring-your-own-frontend.md): wire the user's own project to the > backend instead of scaffolding one. When it is **Agent designs and builds**, proceed normally.

> **PocketBase backend?** A `pocketbase` brief has **no CMS/store**: the app's data lives in the > PocketBase backend recorded in `site.json → pocketbase`, its collections in `pocketbase/schema.json` > (and the `## Data` section of `content-model.md`), and its fixed copy in `content-model.md`. A new > app is scaffolded from `brief.md` and `design.md` and binds its forms and views to the collections > in `pocketbase/schema.json`; an existing app under **Agent designs and builds** starts from its > source, keeps its screens and features, wires its data to the backend and rebuilds its UI to > `design.md`. In Step 3 follow the PocketBase bullet.

Step 1 — Pick the framework (guess → default → confirm)

**The rendering is already decided in `brief.md` → Rendering** (SSR or SSG, set during refine). Honour it, and the backend constraint:

  • **Ecommerce → SSR required** (carts/search need per-request rendering). Any SSR framework works —

Next.js is the default, not a requirement (Express, Nuxt, SvelteKit, etc. are all fine).

  • **WordPress + WooCommerce → SSR required** (same reason — cart/checkout need per-request rendering).
  • **WordPress → SSG (Astro)** when the brief says SSG, otherwise **SSR (Next.js default)**.
  • **PocketBase → the app's own stack.** An **existing app** keeps its current framework (don't impose one), including

one rebuilt under **Agent designs and builds**; a **new app** uses whatever fits the brief (SSR or SPA). Either way it deploys as a Node.js app (Step 8) — an SSR app runs a server, a SPA builds to static output. The app must not serve anything under `/api` or `/_`: PocketBase owns those paths on this domain, so server routes go under another prefix (`/server`): Next.js `app/server/…` never `app/api/…`, and likewise no Nuxt `server/api/`, SvelteKit `src/routes/api/` or Astro `src/pages/api/`.

  • Map rendering → framework: **`ssr` → Next.js**, **`ssg` → Astro** — unless the brief/prompt explicitly

names another supported framework, in which case use that.

Supported frameworks are the ones in deploy's *Build configurations* table (`../08-deploy/SKILL.md`).

Confirm the framework with the user in one line only if the brief left it open. Record the choice in `state.json`:

{ "frontend": { "framework": "nextjs", "rendering": "ssr" } }

If the brief is silent, default to **Next.js SSR**.

Step 2 — Implement `design.md` (don't re-design)

The look was already chosen and written by the design step. **Read `~/.hostinger/<domain>/design.md` and implement it faithfully** — tokens (colour, type, spacing), components, per-page composition, imagery and accessibility — plus the logo files in `brand/`. Don't re-run design questions or invent a new direction here.

  • Treat `design.md` as the contract: the built pages should match its tokens, type scale, components and

per-page composition, and the 8-point grid / WCAG 2.2 AA rules it carries.

  • Build the **logo** and favicon exactly as `design.md` → **Logo** → *Use* says; never recolour or redraw

what is in `brand/`.

  • If `design.md` is **missing** (e.g. a resumed older build), fall back to `brief.md → Design direction`

(reference site, colours, brand, adjectives) and a tasteful, accessible default — but prefer `design.md` whenever it exists.

  • **Don't gate on approval here** — the result is shown at **validate** (Step 7).

**Only ask about the code, and only if it matters** (design decisions belong in the design step):

  • Where the **source should live** — default `~/.hostinger/<domain>/src/`; ask only if they want a

specific folder or an existing repo.

  • **Git** — initialise / connect / push (default: a local project, no remote).
  • A specific **component library** or technical must-have, if they implied one.

Step 3 — Build against the backend

Two phases around the instance barrier (see the top-level `SKILL.md`): scaffold + build the shell while provision settles, then wire live data once `provision.status == "completed"`.

Read the backend from `site.json`:

  • **WordPress** → `urls.rest_api` (`wp/v2`), public read. Content is in the posts/pages/categories/media

the content-model push created; nav/plan come from `content-model.md`. Map each item's **SEO** from its `yoast_head_json` into the page `<head>` (title, description, Open Graph, JSON-LD schema) — Yoast is installed by default at provision (`site.json → seo.enabled: true`). If `seo.enabled` is `false` (Yoast absent), fall back to generating per-page title/description/OG tags from each item's content.

  • **Decode WordPress text.** WordPress returns titles and names HTML-encoded (`Tea &#038; Cake`,

`don&#8217;t`). Add the `entities` package and, in the one data module, run every title, name and SEO field you render as pl

Read more
@hostinger
Ships withapi-mcp-server

Model Context Protocol (MCP) server for Hostinger API.

Stars on GitHub

Momentum

stars in total
173
Star history of hostinger/api-mcp-server on GitHub, a chart by star-history.com

Other skills on api-mcp-server.

audit-hosting

audit-hosting

Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…

audit-vps

audit-vps

Audit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU,…

connect-domain

connect-domain

Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…

deploy-to-vps

deploy-to-vps

Deploy an existing project to a Hostinger VPS (KVM plans): sets up SSH key access, applies a Hostinger firewall group, runs…

headless

headless

Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp8d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp7d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about 06-frontend.

Which coding agents can use 06-frontend?
06-frontend installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.