| name | Hugo Legal |
| description | This skill should be used when the user asks to "create legal pages", "generate impressum", "privacy policy", "datenschutz", "blog legal requirements", "GDPR pages", "cookie policy", or wants to generate EU-required legal pages for a Hugo blog. |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Bash"] |
EU Legal Page Generation
Generate legally required pages for a German-based blog: Impressum (TMG/DDG), Datenschutzerklaerung (GDPR/DSGVO), and Creative Commons license page. Generates Hugo-compatible Markdown with appropriate frontmatter.
Configuration
Read from .claude/blog.local.md:
author: Full name
location: Country (default: Germany)
license: License type (default: CC BY 4.0)
analytics_provider: plausible / none / other
- If missing fields, prompt the user
Additional information needed (prompt if not available):
- Email address or contact form URL
- City/state (for Impressum, required by German law)
Pages to Generate
1. Impressum (content/impressum.md)
Required under German DDG (Digitale-Dienste-Gesetz, which replaced TMG in 2024). Must contain:
- Full name of the website operator
- Postal address (city and country minimum for personal blogs)
- Contact information (email)
- V.i.S.d.P. (Verantwortlich im Sinne des Presserechts): same as operator for personal blogs
- Note: No VAT ID needed for personal, non-commercial blogs
Generate as Hugo page with appropriate frontmatter.
2. Datenschutzerklaerung (content/datenschutz.md)
Required under GDPR/DSGVO. Sections based on actual services used:
- Hosting: GitHub Pages (Microsoft/GitHub as processor, US-based, EU-US Data Privacy Framework)
- Analytics: Based on config
- If Plausible: no cookies, no personal data, GDPR-compliant by design
- If none: state that no analytics are used
- Comments: Giscus (GitHub Discussions-based, requires GitHub login)
- Social media links: LinkedIn, Bluesky, Mastodon (outbound links only, no tracking)
- Cookies: State whether cookies are used (Plausible = no cookies, Giscus = GitHub session cookies)
- Rights: Data subject rights (access, rectification, erasure, portability, objection)
- Contact: How to reach the data controller
Generate in German (legal requirement for German-facing sites).
3. License Page (content/license.md)
- CC BY 4.0 summary
- Link to full license text: https://creativecommons.org/licenses/by/4.0/
- Attribution requirements
- What the license covers (blog content) and what it does not (code snippets, which may have separate licenses)
Hugo Navigation
After generating pages, verify they appear in Hugo's menu configuration. Add to config/_default/menus.yaml if not present:
footer:
- name: Impressum
pageRef: impressum
weight: 10
- name: Datenschutz
pageRef: datenschutz
weight: 20
- name: License
pageRef: license
weight: 30
No Cookie Banner Needed
If using only Plausible (no cookies) and Giscus (GitHub's own cookies, not set by the blog), no cookie consent banner is required. State this clearly in the Datenschutzerklaerung.