Build a site from one prompt
1 Build a site from one prompt
You do not have to learn OINK before you have an OINK site. Open a coding agent such as Claude Code or Codex in an empty directory, point it at the OINK skill and at a published site that looks like the one you want, and tell it about your project. The agent starts from the Starter, reshapes it after the model, checks the result in a browser and reports what is left. This chapter gives four such prompts, each modeled on a production site, and the pattern for writing your own.
Before you start
The agent runs Git, Go and Hugo on your machine, so install them first; the supported versions are listed in Get started. Then make an empty directory for the site and start the agent inside it:
Every prompt below begins by sending the agent to
https://oink.pgsty.com/skill.md, the OINK skill: one Markdown file holding
the build process, the review standards of OINK’s own sites and the mistakes
earlier builds made. Reading it from the URL needs no installation. If you
build sites often, install it as a skill and start
your prompts with “Use the oink-site skill” instead.
Replace everything in <angle brackets> with your own facts before you send a
prompt. Keep the line about not copying the model site: the four sites below
are open source, but their articles, images and names belong to their
authors.
A personal blog like vonng.com
vonng.com is an engineering blog with more than a thousand essays in two languages. Each column is a top-level section with its own feed, column indexes are card grids, and articles open on a full-width image with the outline running beside the text. Model on it when you write regularly and want the site to read like a publication rather than a manual.
Expect one directory per column under content/, an author profile under
content/authors/, and hugo.yaml settings such as blog_index: cards,
featured_image: hero and toc_style: flow. Chapter 6
explains each of them. Open a column and press L to cycle its
index layouts, then open a post and check the hero image, the outline and the
author byline.
An open-source project site like silo.pgsty.com
silo.pgsty.com serves SILO, an S3-compatible object store: a bilingual manual of about four hundred pages per language, release notes in a blog, a download page, case studies, and a home page assembled from data files with metrics and project cards. Model on it when your project has users who install it, configure it and upgrade it.
Expect content/docs/ with an _index.md per section, content/blog/release/,
a home page in data/home/en.yaml and its translation, and data/download/
records feeding the download page. Chapter 3 covers how
the tree becomes the sidebar, and Chapter 8 the home page.
Switch languages from the navbar and press / to try search.
A command-line tool site like pig.pgsty.com
pig.pgsty.com documents PIG, a package manager for PostgreSQL extensions. Its manual is deliberately small, about twenty pages per language with one page per subcommand, while a blog of fifty posts carries release notes and longer explanations. Model on it when the reference is short and stable and the news needs room to grow.
Expect a page per subcommand, a {.fields} table of flags on each, and install
tabs built from adjacent code fences; Chapter 4 shows
both. The assistant links need one setting, which
Chapter 10 explains along with the other outputs written for
agents.
A book like ddia.vonng.com
ddia.vonng.com publishes Designing Data-Intensive Applications as a multilingual book: two dozen chapters per edition in Simplified and Traditional Chinese and English, more than 130 numbered figures, tables and examples, cross-references that survive chapters moving, a glossary, and the whole book as one printable document. Model on it for any long work read in order: a handbook, a course, a translated book.
The confirmation step matters for a book: an inventory before conversion
catches missing chapters and two files that turned out to be different
editions. Chapter 7 explains numbering, xref and the
generated indexes.
Write your own prompt
The four prompts share one shape, and so should yours. Leave a part out and the agent guesses it, usually from a site that is not yours:
- The skill sends the agent to these docs for syntax and gives it OINK’s review standards. Without it, agents tend to write Docsy or older OINK syntax from memory.
- The model is a URL plus its source repository, so the agent can read the real configuration instead of guessing from screenshots. List the features you want, because a production site carries many you do not need.
- Your material is what the agent writes from. A README,
--helpoutput, a changelog or an old site produces far better pages than an empty directory, and naming what is authoritative keeps commands and keys intact. - The facts are the things no agent can infer: the name, the domain that becomes
baseURL, and the languages. - The acceptance says when the work is done. The skill already asks for a browser check; say what you want reported, and add “do not push or deploy” if the directory is a real repository.
More model sites
Any site in the case library can be the model. These cover the other common kinds of site:
| You want to publish | Model site | What to borrow |
|---|---|---|
| A company or product landing site | pgsty.com | A bilingual home page built entirely from landing sections |
| An app with downloads | caps.pgsty.com | A centered hero, a download page and a compact manual |
| A catalogue generated from data | ext.pgsty.com | Thousands of entries rendered from data files, searchable locally |
| A course or tutorial book | pgexp.pgsql.cc | Lessons as Book chapters with runnable examples and downloads |
| A photo archive or exhibition | fzb.vonng.com | Expo albums beside long-form Book pages |
| An existing Docsy site, moved to OINK | hugegraph.apache.org | A brand hero on the Slate preset over migrated bilingual docs |
To move an existing Hugo or Docsy site instead of starting a new one, run the agent in that site’s repository and replace the first lines of Example 1-5 with “Read https://oink.pgsty.com/skill.md and follow it to move this Hugo site to OINK”; the skill covers the migration path described in Upgrade.
What the agent hands back
A finished run ends with a report: what it built, the address of the running preview, the checks it did, and what is still placeholder text. Open the address it gives, usually http://localhost:1313/, and keep the report. Chapter 2 turns it into your own review, so that the site stays yours after the agent’s session ends.



