CRUD for public mini-sites and reports — static HTML with templates
CRUD for static mini-sites and reports served from a public/ directory.
Before using: Read your config from wiki/skills/public.md.
This skill reads parameters from wiki/skills/public.md:
---
base_url: https://public.example.com
public_dir: public
template_dir: public/template
---
/public list List all published sites
/public create <slug> <title> Create new mini-site from template
/public update <slug> Update existing site
/public delete <slug> Delete a site
/public rebuild-index Regenerate the index page
{template_dir}/ for available templates before creating.index.html. Always.Templates live in {template_dir}/. Each is a self-contained HTML file with placeholder blocks.
When creating a new site:
ls {template_dir}/*.html{public_dir}/{slug}/index.html{base_url}/{slug}/| Block | CSS Class | Use for |
|---|---|---|
| Key numbers | .stat-grid | Metrics, KPIs |
| Text | .text-block | Paragraphs |
| Highlight | .highlight-box | Conclusions, recommendations |
| Status list | .status-list | Activities with badges |
| Data table | .data-table | Structured rows |
| Key-value | .kv-card | Reference pairs |
| Links | .link-list | Clickable links |
After creating/updating:
✅ Published: {base_url}/{slug}/
Template: {template_name}
Files: index.html [+ assets]