一键导入
new-theme
Scaffold a new documentation theme following the project's theme registration pattern from CLAUDE.md
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new documentation theme following the project's theme registration pattern from CLAUDE.md
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | new-theme |
| description | Scaffold a new documentation theme following the project's theme registration pattern from CLAUDE.md |
The user provides a theme name (kebab-case, e.g. dark-mode).
Follow the "Adding a New Theme" steps from CLAUDE.md exactly:
Create templates_embed/templates/themes/<theme-name>/readme.tmpl.
Read the default template at templates_embed/templates/readme.tmpl and use it as a starting point.
Add two constants to appconstants/constants.go:
Theme<ThemeName> = "<theme-name>"
TemplatePath<ThemeName> = "templates/themes/<theme-name>/readme.tmpl"
Note: the path uses templates/ prefix (not templates_embed/templates/).
Add a case to internal/config.go:resolveThemeTemplate():
case appconstants.Theme<ThemeName>:
templatePath = appconstants.TemplatePath<ThemeName>
Update configThemesHandler() in main.go to include the new theme name in its output.
Run go build . — report success or any compilation errors.
Test: go run . gen testdata/example-action/ --theme <theme-name> --output /tmp/test-<theme-name>.md
Show the first 20 lines of the generated output.
Run test coverage check and report per-package breakdown highlighting packages below the 72% gate and 80% new-code target
Scaffold a new YAML test fixture and register its path constant in testutil/test_constants.go
Run gremlins mutation testing on a specified Go package, following the same pattern as make test-mutation
Run all project security scans (make security) and summarize findings by tool and severity