← ClaudeAtlas

configure-hugolisted

Install and configure llm-wiki-hugo-cms in a wiki repository so it renders as a static Hugo site. Requires Hugo extended ≥ 0.147.0.
geronimo-iia/llm-wiki-skills · ★ 1 · AI & Automation · score 68
Install: claude install-skill geronimo-iia/llm-wiki-skills
# configure-hugo Install `llm-wiki-hugo-cms` into an existing wiki repository and configure it to render the wiki as a static Hugo site. ## Prerequisites - Hugo extended ≥ 0.147.0 installed on the user's machine - An existing wiki managed by llm-wiki (must have `wiki.toml` and `wiki/`) ## Step 1 — Read the wiki identity and repo path Resolve the wiki name in order: 1. Read `wiki.toml` from the current working directory — extract the `name` field. 2. Validate it exists via `wiki_spaces_list(name: "<name>")`. 3. If `wiki.toml` is absent, unreadable, or the name is not found in `wiki_spaces_list`, ask the user: *"Which wiki should I configure Hugo for?"* ``` wiki_spaces_list(name: "<name>") → { name: "research", path: "/home/user/wikis/research", ... } ``` Collect the wiki `name` (needed for `hugo.toml` title) and `path` (the repo root — all subsequent file operations use `<path>/site/...`). Also read `wiki.toml` directly from `<path>/wiki.toml` and extract the `wiki_root` field (default: `"wiki"` if absent). Store it — needed in Step 4. ## Step 2 — Check for existing scaffold The scaffold lives at `<path>/site/hugo.toml`. Check whether that file exists directly on the filesystem. If it does, skip to Step 4. ## Step 3 — Install the scaffold Tell the user to run: ```bash cd <wiki-repo-path> git clone https://github.com/geronimo-iia/llm-wiki-hugo-cms _hugo_cms cp -r _hugo_cms/site . cp -r _hugo_cms/templates/.github . rm -rf _hugo_cms ``` Then confirm the files are