theme-manager
Research, compare, sample, select, persist, adapt, rotate, and archive reusable visual themes and design templates
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- theme-manager
- script
- { "cwd": "project-root", "runtime": "node", "entrypoint": "scripts/theme-manager.mjs" }
- triggers
- [ "pick a visual theme", "create five hero directions", "manage design templates", "stop repeating the same aesthetic", "choose a theme for this campaign", "adapt this theme across channels", "audit recent themes for repetition" ]
- namespace
- aiwg
- platforms
- [ "all" ]
- commandHint
- { "category": "design-operations", "argumentHint": "<project> [--flow choose-theme|theme-from-brand|template-from-theme|refresh-existing-theme|campaign-visual-direction|web-hero|landing-page-visual-system|social-asset-family|presentation-theme|report-publication-theme|design-review|theme-rotation|archive-theme] [--candidates 5] [--interactive]", "orchestration": true }
- description
- Research, compare, sample, select, persist, adapt, rotate, and archive reusable visual themes and design templates
02 资源文件 3
- 脚本scripts/theme-manager.mjs10.7 KB
- 参考文档sections/preamble.md21.9 KB
- 其他SKILL.md.tmpl7.5 KB
03 SKILL.md 正文
Theme Manager
Manage the full lifecycle of visual themes and structural templates without requiring a design editor or image-generation provider.
Natural-language routing
Use this skill for requests such as:
- “pick a visual theme”
- “create five hero directions”
- “manage design templates”
- “stop repeating the same aesthetic”
- “adapt this theme for social and presentations”
Theme versus template
| Theme | Template |
|---|---|
| Visual idea, mood, palette, imagery, texture, typography and motion direction, metaphor, constraints, prohibited motifs | Content slots, hierarchy, responsive layout, safe zones, dimensions, component mapping, exports and channel variants |
Validated by schemas/theme.schema.json |
Validated by schemas/design-template.schema.json |
Default workflow: choose-theme
- Create or inspect
.aiwg/design/and link any applicable.aiwg/marketing/campaign. - Capture brand, audience, season, channel, content, accessibility, licensing, production, and “do not repeat” constraints in a theme brief.
- Read the registry and audit the most recent six uses. Call
auditThemeRotationfromscripts/theme-manager.mjsfor every candidate. - Research timely and evergreen visual evidence. Every research item records URL, publication date when known, access date, evidence type, and license status. Clearly label subjective recommendations.
- Produce five meaningfully different candidates by default. Keep source copy, content density, dimensions, and sample fidelity constant.
- Score brand fit, audience fit, channel fit, accessibility, production feasibility, and distinctiveness. Explain trade-offs; do not select solely by numeric rank.
- Detect provider capability:
- image tool available: create one comparable sample per candidate plus generation metadata;
- unavailable: create one production-grade prompt and layout specification per candidate.
- Present the comparison and pause for human selection or revision. Never infer approval from silence.
- Persist the chosen theme as JSON plus Markdown, selection decision, sources, accessibility notes, usage boundaries, and registry history.
- Hand the selected theme to
template-from-themeorasset-production, then run brand, accessibility, licensing, and technical QA.
Detailed state transitions and gates are in flows/choose-theme.md.
Candidate contract
Each candidate must contain:
- stable ID and distinct name;
- visual language and metaphor;
- palette and typography direction;
- imagery, texture, graphic, and motion direction;
- prohibited motifs and usage boundaries;
- applicability and trade-offs;
- research citations with dates;
- comparable sample specification;
- weighted scores and theme-rotation audit.
Provider fallback
Call selectSampleMode({ imageGeneration: <capability> }) from the bundled script. Specification-only mode is a complete supported outcome, not an error. Both modes must produce a visual sample specification. Generated samples must disclose that production readiness still requires brand, accessibility, licensing, and technical QA.
Persistence
Initialize the workspace:
aiwg run skill theme-manager -- init .
Record an approved selection:
aiwg run skill theme-manager -- record selected-theme.json .
Record a structural template separately:
aiwg run skill theme-manager -- record-template design-template.json .
Audit a candidate against recent history:
aiwg run skill theme-manager -- audit candidate.json .
Registry updates are append-only for usage history. Theme IDs are stable; revisions increment semantic versions.
Web and graphic-production gates
Web deliverables must state breakpoints/reflow, text safe areas, focal-point behavior, 4.5:1 normal-text contrast unless a stricter target applies, non-text contrast, reduced motion, responsive image formats, and performance budgets.
Graphic and print deliverables must state physical/pixel dimensions, RGB/CMYK, resolution, bleed, safe zones, export formats, source format, and naming convention when applicable.
Flow routing
See flows/design-operations.md for all supported flows and explicit mappings to existing roles and asset-production.
Required templates
Use templates/design-operations/ for the brief, candidate card, comparison matrix, visual sample specification, selected theme card, template specification, cross-channel matrix, QA checklist, and registry/history view.
Completion
- [ ] Five comparable candidates produced unless the operator changed the count
- [ ] Research claims cited and dated
- [ ] Rotation audit completed
- [ ] Human selection recorded
- [ ] Theme and template persisted separately
- [ ] Provider mode disclosed
- [ ] Brand, accessibility, licensing, and technical QA recorded
- [ ] Usage history updated
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.