一键导入
material-for-mkdocs
Author and maintain Material for MkDocs sites — .pages nav, assets, frontmatter, Mermaid, admonitions, and Diátaxis structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Author and maintain Material for MkDocs sites — .pages nav, assets, frontmatter, Mermaid, admonitions, and Diátaxis structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply senior UI/UX judgment to interfaces, user flows, interaction details, and product usability decisions.
Build, review, and extend Astro static sites — config, integrations, SEO, deployment to GitHub Pages.
Design system, visual language, tone, and UI conventions for comtechconsulting.dk — reference before adding any new UI, copy, or page to the site.
Apply senior-level engineering judgment to code review, implementation, debugging, refactoring, and delivery planning.
Advise on Confluence Cloud AI — Atlassian Intelligence, Rovo Chat, Rovo Chat macro, plan tier detection, and space-level AI scoping.
Configure and surface Rovo AI features in Confluence Cloud — Chat, custom Agents, Space Agent assignment, and space homepage CTA patterns.
| name | material-for-mkdocs |
| description | Author and maintain Material for MkDocs sites — .pages nav, assets, frontmatter, Mermaid, admonitions, and Diátaxis structure. |
| version | 1.0.1 |
| tags | ["mkdocs","material","documentation","static-site","diátaxis"] |
| tool_agnostic | true |
| authors | ["Anders Hybertz"] |
Use when creating, reviewing, or extending pages in a Material for MkDocs site. Covers the full authoring cycle: frontmatter, content structure, .pages nav registration, and assets.
mkdocs.yml.mkdocs serve (activate venv first).mkdocs build..github/workflows/deploy.yml.hooks.py — do not remove or rename.```mermaid ``` blocks.--8<-- "includes/legend-glossary.md" — include near top of every page, before the first heading./humanizer on any prose before it lands in docs/..pages (see nav registration below).assets/ folder (see assets pattern).---
title: <Short descriptive title>
description: <One sentence — what this page covers and why it matters.>
tags:
- <primary-domain>
- <secondary-tag>
- ...
---
Tags follow lowercase-hyphenated convention. Common domain tags: values, iam, jwt, api-gateway, authentication, security, microservices, isa-95, idmz, observability, keycloak.
--8<-- "includes/legend-glossary.md"
## Introduction
<2–3 paragraphs. What the pattern is, what problem it solves, what it is not.>
!!! note "Scope"
<One sentence: what this page covers and what it explicitly excludes.>
!!! info "Related document"
<Cross-link to the most relevant companion page.>
[optional: image — see assets pattern]
## High-level <flow/architecture/overview>
<Mermaid diagram>
---
## Core Values
### <Value 1>
### <Value 2>
...
---
## Trade-offs and Constraints
### <Trade-off 1>
...
---
## Architectural Guardrail
!!! success "Guardrail"
<Single bold statement of the non-negotiable.>
---
## Summary
<2–3 sentences. Restate the why, the condition that makes it hold, and the risk if violated.>
| Type | Use |
|---|---|
!!! note | Scope statements, neutral clarifications |
!!! info | Cross-links, supplementary context |
!!! success | Guardrails, confirmed recommendations |
!!! warning | Known risks, failure modes |
!!! danger | Hard constraints, production anti-patterns |
Use classDef blocks for consistent colour coding:
classDef actor fill:#f5f5f5,stroke:#6b7280,color:#1f1f1f;
classDef identity fill:#e8f1fb,stroke:#4f81bd,color:#1f1f1f;
classDef gateway fill:#fff2cc,stroke:#c9a227,color:#1f1f1f;
classDef service fill:#eef7ea,stroke:#6aa84f,color:#1f1f1f;
classDef risk fill:#fce8e6,stroke:#cc0000,color:#1f1f1f;
Keep diagrams to one level of abstraction per diagram. Split into multiple diagrams rather than adding a second conceptual layer.
Every new page must be added to the .pages file in its folder. Format:
nav:
- <Human-readable title>: <filename.md>
- <Human-readable title>: <filename.md>
Sequence by logical reading order — not alphabetical. Cross-referencing pages (e.g. Keycloak → JWT) should be adjacent in the nav.
Always add the new entry; never remove existing entries unless the file is deleted.
Images and other static assets go in a folder-local assets/ directory:
docs/explanation/values/
assets/
jwt-api-gateway-auth.jpeg
jwt-api-gateway-auth-values.md
keycloak-values.md
Reference in Markdown with a relative path:

Place the image between the scope/related-document admonitions and the first Mermaid diagram — it gives the reader the source reference before the abstracted architectural view.
Name image files to match the page slug (e.g. jwt-api-gateway-auth.jpeg for jwt-api-gateway-auth-values.md).
.pages as part of every new page task.title from frontmatter as the page heading. A # Title line in the document body produces a double heading. Do not include a top-level H1 in the body — start directly with --8<-- "includes/legend-glossary.md" then ## Introduction. All five values pages checked in session had this issue.assets/filename.ext, not /docs/explanation/values/assets/filename.ext.ai-context/architecture-context.md directly: it is regenerated by Repomix. Treat as read-only.site/, venv/, or __pycache__/: all are in .gitignore but easy to add accidentally via git add ..