AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
fix(brands): enforce truthful portable presets
hugohe366daa049c25d
diff --git a/skills/ppt-master/scripts/register_template.py b/skills/ppt-master/scripts/register_template.pyindex 98c3caa6..68cf929e 100644--- a/skills/ppt-master/scripts/register_template.py+++ b/skills/ppt-master/scripts/register_template.py@@ -80,6 +80,24 @@ KIND_CONFIG = {},}+_BRAND_REQUIRED_SECTIONS = (+ "Brand Overview",+ "Color Scheme",+ "Typography",+ "Logo",+ "Voice & Tone",+ "Icon Style",+)+_BRAND_FORBIDDEN_SECTIONS = (+ "Page Roster",+ "Signature Design Elements",+)+_BRAND_PROVENANCE_VALUES = {"fact", "approx", "user"}+_BRAND_ASSET_REF_RE = re.compile(+ r"`((?:\.\./)+(?:images|icons)/[^`]+)`"+)+_HEX_COLOR_RE = re.compile(r"#[0-9A-Fa-f]{6}")+# ---------------------------------------------------------------------------# design_spec.md parsing@@ -200,6 +218,130 @@ def _derive_page_types(pages: list[str]) -> list[str]:return types+def _numbered_section(body: str, title: str) -> str | None:+ match = re.search(+ rf"^##\s+[IVX]+\.\s+{re.escape(title)}\s*$.*?(?=^##\s+|\Z)",+ body,+ re.MULTILINE | re.DOTALL,+ )+ return match.group(0) if match else None+++def _validate_brand_spec(+ template_id: str,+ template_root: Path,+ template_dir: Path,+ frontmatter: dict,+ body: str,+ pages: list[str],+) -> None:+ """Reject brand workspaces that cannot be locked as portable identity truth.++ Args:+ template_id: Directory name used as the registry key.+ template_root: Brand workspace root containing assets and templates.+ template_dir: Directory containing ``design_spec.md`` and any page SVGs.+ frontmatter: Parsed design-spec frontmatter.+ body: Markdown content after the frontmatter block.+ pages: SVG page stems discovered beside the design spec.+ """+ errors: list[str] = []++ declared_id = str(frontmatter.get("brand_id") or "").strip()+ if declared_id != template_id:+ errors.append(+ f"frontmatter brand_id must match directory {template_id!r}, "+ f"got {declared_id!r}"+ )++ declared_kind = str(frontmatter.get("kind") or "").strip()+ if declared_kind != "brand":+ errors.append(+ "frontmatter kind must be 'brand', "+ f"got {declared_kind!r}"+ )++ if pages:+ errors.append(+ "brand workspaces must not contain page SVGs under templates/: "+ + ", ".join(f"{page}.svg" for page in pages)+ )++ for title in _BRAND_REQUIRED_SECTIONS:+ if _numbered_section(body, title) is None:+ errors.append(f"missing required section: {title}")++ for title in _BRAND_FORBIDDEN_SECTIONS:+ if re.search(+ rf"^##\s+(?:[IVX]+\.\s+)?{re.escape(title)}\s*$",+ body,+ re.MULTILINE,+ ):+ errors.append(f"brand scope must not declare section: {title}")++ declared_primary = str(frontmatter.get("primary_color") or "").strip()+ if _HEX_COLOR_RE.fullmatch(declared_primary) is None:+ errors.append(+ "frontmatter primary_color must use #RRGGBB, "+ f"got {declared_primary!r}"+ )++ color_section = _numbered_section(body, "Color Scheme") or ""+ primary_rows: list[str] = []+ for line in color_section.splitlines():+ if not line.lstrip().startswith("|"):+ continue+ cells = [cell.strip() for cell in line.strip().strip("|").split("|")]+ if len(cells) < 3:+ continue+ role = cells[0].strip("` ")+ raw_color = cells[1].strip("` ")+ if role.lower() == "role" or re.fullmatch(r":?-+:?", role):+ continue+ if _HEX_COLOR_RE.fullmatch(raw_color) is None:+ errors.append(+ f"color row {role!r} must use #RRGGBB, "+ f"got {raw_color!r}"+ )+ continue+ if role.lower() == "primary":+ primary_rows.append(raw_color.upper())+ provenance = cells[2].strip("` ").lower()+ if provenance not in _BRAND_PROVENANCE_VALUES:+ errors.append(+ f"color {raw_color} must declare provenance as "+ "fact, approx, or user"+ )++ if not primary_rows:+ errors.append("Color Scheme must declare one primary color row")+ elif len(primary_rows) > 1:+ errors.append("Color Scheme must declare only one primary color row")+ elif (+ _HEX_COLOR_RE.fullmatch(declared_primary)+ and primary_rows[0] != declared_primary.upper()+ ):+ errors.append(+ "Color Scheme primary must match frontmatter primary_color: "+ f"{primary_rows[0]} != {declared_primary.upper()}"+ )++ root = template_root.resolve()+ for raw_ref in sorted(set(_BRAND_ASSET_REF_RE.findall(body))):+ asset = (template_dir / raw_ref).resolve()+ try:+ asset.relative_to(root)+ except ValueError:+ errors.append(f"asset reference escapes brand workspace: {raw_ref}")+ continue+ if not asset.is_file():+ errors.append(f"referenced brand asset does not exist: {raw_ref}")++ if errors:+ details = "\n".join(f" - {error}" for error in errors)+ raise SpecParseError(f"invalid brand specification:\n{details}")++# ---------------------------------------------------------------------------# Per-kind extraction# ---------------------------------------------------------------------------@@ -233,6 +375,14 @@ def _extract_entry(kind: str, template_id: str, template_dir: Path) -> dict:primary_color = fm.get("primary_color") or _extract_primary_color(body) or ""if kind == "brand":+ _validate_brand_spec(+ template_id,+ template_root,+ template_dir,+ fm,+ body,+ pages,+ )entry = OrderedDict(summary=summary,primary_color=str(primary_color),diff --git a/skills/ppt-master/templates/brands/README.md b/skills/ppt-master/templates/brands/README.mdindex ec696647..e79f6aee 100644--- a/skills/ppt-master/templates/brands/README.md+++ b/skills/ppt-master/templates/brands/README.md@@ -50,6 +50,6 @@ Logo filenames are descriptive, not contractual — `templates/design_spec.md`## Discovery index-[brands_index.json](./brands_index.json) is a slim machine-readable map (`brand_id → { summary, primary_color }`). It is refreshed by `register_template.py --kind brand <brand_id>` after a brand is created or edited.+[brands_index.json](./brands_index.json) is a slim machine-readable map (`brand_id → { summary, primary_color }`). Refresh it with `register_template.py --kind brand <brand_id>` after a brand is created or edited. Registration rejects incomplete frontmatter, mismatched IDs, page SVGs, missing required identity sections, invalid or inconsistent colors/provenance, and broken workspace-local asset references.Listing the index does not trigger any pipeline action — Step 3 triggers only on an explicit directory path supplied by the user, regardless of whether the brand appears in the index.diff --git a/skills/ppt-master/templates/brands/anthropic/templates/design_spec.md b/skills/ppt-master/templates/brands/anthropic/templates/design_spec.mdindex 46378345..062f1bae 100644--- a/skills/ppt-master/templates/brands/anthropic/templates/design_spec.md+++ b/skills/ppt-master/templates/brands/anthropic/templates/design_spec.md@@ -1,11 +1,11 @@---brand_id: anthropickind: brand-summary: Anthropic brand identity — AI/LLM tech talks, developer conferences, technical training, product launches+summary: Anthropic / Claude brand family — AI research, product talks, developer conferences, technical training, and launchesprimary_color: "#D97757"----# Anthropic Brand Specification+# Anthropic / Claude Brand Family Specification> Identity-only preset. No SVG page roster — pages are composed freely under these constraints.@@ -13,25 +13,23 @@ primary_color: "#D97757"| Property | Value ||---|---|-| Brand Name | Anthropic |-| Use Cases | AI / LLM tech talks, developer conferences, technical training, product launches, research updates |+| Brand Name | Anthropic / Claude |+| Use Cases | AI / LLM research updates, Claude product talks, developer conferences, technical training, product launches || Tone | Tech-forward, professional, modern, conclusion-first, restrained |+| Sources | Bundled Claude SVG assets for literal logo colors; Anthropic public materials reviewed 2026-07-13 |## II. Color Scheme| Role | HEX | Provenance | Notes ||---|---|---|---|-| primary | `#D97757` | fact | Anthropic Orange — extracted from `anthropic_mark.svg` (matches the mark fill on claude.com header) |-| neutral-dark | `#191919` | fact | Anthropic near-black — body text, dark surfaces, chart base |-| bg | `#FFFFFF` | fact | Pure white page background |-| accent (info) | `#4A90D9` | approx | Tech blue — flow / process, links, interactive elements |-| accent (positive) | `#10B981` | approx | Mint green — recommended options, success states |-| accent (alert) | `#EF4444` | approx | Coral red — risks, cautions, warnings |+| primary | `#D97757` | fact | Claude coral — literal fill in the bundled Claude star mark |+| neutral-dark | `#191919` | fact | Literal fill in the bundled Claude wordmark |+| bg | `#FFFFFF` | approx | Default light presentation background || surface | `#F8FAFC` | approx | Off-white — card background || border | `#E2E8F0` | approx | Light gray — card borders, dividers || muted-text | `#64748B` | approx | Slate gray — secondary text, chart labels |-The first three rows are the official triad; the accent / surface / border / muted rows are presentation conventions on top of the official identity, derived to match Anthropic's restrained product UI tone. The accent triple (info / positive / alert) differentiates content types (blue = process, green = recommended, red = risk). Strategist may rotate dominance per page.+The first two rows are literal Claude asset facts. Background and neutral rows are presentation conventions, not official company tokens. Choose semantic chart/status colors per deck; do not lock an invented info/success/alert trio as Anthropic identity.## III. Typography@@ -40,19 +38,20 @@ The first three rows are the official triad; the accent / surface / border / mut| title | `"Styrene A", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif` | 600–700 || body | `"Anthropic Sans", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif` | 400 |-> Anthropic's official typefaces are `Styrene A` (titles) and `Anthropic Sans` (body) — both proprietary and unlikely to be installed on viewer machines. Decks should either embed the fonts into the PPTX or accept the `Helvetica Neue` → `Arial` / `Microsoft YaHei` fallback chain. When locking, Strategist notes "official Anthropic typefaces require install or PPTX embed".+> `Styrene A` and `Anthropic Sans` are proprietary and unlikely to be installed on viewer machines. PPT Master does not bundle or automatically embed them; use the declared fallback chain unless the user supplies an installed/approved font workflow.## IV. Logo-Anthropic uses a six-petal star **mark** that is most commonly seen locked up with a product wordmark. The bundled lockup pairs the mark with the **Claude** wordmark, since that is the live lockup on claude.com. Pick by context, never combine on the same page.+This preset intentionally combines Anthropic company voice with Claude product visuals. The bundled star and wordmark belong to Claude; they are not relabeled as an Anthropic corporate mark. Pick one Claude asset by context and never combine several lockups on the same page.| File | Form | Usage ||---|---|---|-| `../images/anthropic_claude_lockup.svg` | Mark + "Claude" wordmark (112×24) | Cover hero, ending sign-off, any moment when the brand needs to read as Claude-the-product at a glance |-| `../images/anthropic_mark.svg` | Square orange six-petal mark (24×24) | Header / footer corners, page-number neighbors, tight badges, any small-size moment where the lockup would become illegible — also the recommended choice when the deck is about Anthropic the company rather than Claude the product |+| `../images/anthropic_claude_lockup.svg` | Claude star + "Claude" wordmark (112×24) | Cover hero, ending sign-off, and Claude product moments |+| `../images/anthropic_mark.svg` | Claude square star mark (24×24; historical filename retained) | Header/footer corners, page-number neighbors, and compact Claude product badges || `../images/claude_wordmark.svg` | "Claude" wordmark alone (82×24) | When the visual context already establishes the brand and only the product name needs to be reinforced |-- Cover: prefer the lockup when the deck is Claude-facing; prefer the mark alone when the deck is Anthropic-company-facing+- Claude-facing cover: prefer the complete Claude lockup+- Anthropic-company-facing cover: use editable `Anthropic` text unless an approved corporate lockup is supplied; do not substitute the Claude wordmark- Per-page: optional — only when one of these genuinely fits the layout; do not stamp every page- Clearspace: leave at least 0.5× mark height of empty space on all sides; never overlap text or photographic backgrounds- Mark color is fixed at `#D97757`; wordmark inherits the page text color (default `#191919` on light bg, `#FFFFFF` on dark)@@ -68,4 +67,4 @@ Anthropic uses a six-petal star **mark** that is most commonly seen locked up wi- Preference: stroke-> Outline / stroke icons read as "research / engineering" and align with Anthropic's restrained product UI aesthetic. When the deck uses `templates/icons/`, prefer `tabler` or `lucide` stroke families over filled libraries.+> This is a presentation convention, not an official brand token. Prefer `tabler` or `lucide` stroke families when they fit the deck; keep one icon family consistent.diff --git a/skills/ppt-master/templates/brands/brands_index.json b/skills/ppt-master/templates/brands/brands_index.jsonindex 39955707..25def00c 100644--- a/skills/ppt-master/templates/brands/brands_index.json+++ b/skills/ppt-master/templates/brands/brands_index.json@@ -1,15 +1,19 @@{"anthropic": {- "summary": "Anthropic brand identity — AI/LLM tech talks, developer conferences, technical training, product launches",+ "summary": "Anthropic / Claude brand family — AI research, product talks, developer conferences, technical training, and launches","primary_color": "#D97757"},"google": {"summary": "Google brand identity — multi-product corporate decks, developer events (Google I/O style), education and training in the Google ecosystem","primary_color": "#4285F4"},+ "中国电信": {+ "summary": "China Telecom brand identity for digital infrastructure, government-enterprise solutions, transformation planning, and corporate reporting",+ "primary_color": "#004EA2"+ },"中国电建": {"summary": "POWERCHINA brand identity for engineering project reports, technical proposals, business negotiations, and corporate promotion",- "primary_color": "#00418D"+ "primary_color": "#004EA1"},"中汽研": {"summary": "CATARC brand identity for product certification, evaluation reports, automotive technology promotion, and business visits",diff --git a/skills/ppt-master/templates/brands/google/templates/design_spec.md b/skills/ppt-master/templates/brands/google/templates/design_spec.mdindex bc6a36bb..450f1bcd 100644--- a/skills/ppt-master/templates/brands/google/templates/design_spec.md+++ b/skills/ppt-master/templates/brands/google/templates/design_spec.md@@ -16,6 +16,7 @@ primary_color: "#4285F4"| Brand Name | Google || Use Cases | Product launches, developer events (Google I/O style), corporate updates, multi-product decks, ecosystem education / training || Tone | Modern, friendly, optimistic, clear, multi-color expressive |+| Sources | Bundled Google SVG assets; [Google Brand Resource Center](https://about.google/brand-resource-center/guidance/), reviewed 2026-07-13 |## II. Color Scheme@@ -26,7 +27,7 @@ primary_color: "#4285F4"| accent (warm) | `#FBBC05` | fact | Google Yellow || accent (alert) | `#EA4335` | fact | Google Red || text | `#202124` | approx | Standard Material / Google product UI text |-| bg | `#FFFFFF` | fact | |+| bg | `#FFFFFF` | approx | Default light presentation background |The four primary brand colors (Blue / Green / Yellow / Red) carry equal weight in Google brand usage; the `primary` / `secondary` / `accent` role split above is a slide-layout presentation hierarchy convention, not a brand prominence statement. Strategist may rotate any of the four into the dominant role per page rhythm.@@ -37,7 +38,7 @@ The four primary brand colors (Blue / Green / Yellow / Red) carry equal weight i| title | `Google Sans, Roboto, "Microsoft YaHei", sans-serif` | 500–700 || body | `Roboto, "Microsoft YaHei", sans-serif` | 400 |-> `Google Sans` is a proprietary brand font; decks rendering on machines without it installed should either embed it into the PPTX or accept the `Roboto` / `Microsoft YaHei` fallback. When locking, Strategist notes "requires install or PPTX embed".+> `Google Sans` is proprietary. PPT Master does not bundle or automatically embed it; use the `Roboto` / `Microsoft YaHei` fallback unless the user supplies an installed/approved font workflow.## IV. Logo@@ -50,7 +51,8 @@ Google uses a dual-lockup brand system — pick by context, never combine on the- Cover: prefer wordmark- Per-page: optional — only when wordmark or G mark genuinely fits the layout; do not stamp every page-- Clearspace: leave at least 0.5× logo height of empty space on all sides; never overlap text or photographic backgrounds+- Use only unmodified approved artwork and follow the official guidance for the actual context; never imply affiliation, sponsorship, or endorsement+- Clearspace: follow the applicable official asset guidance; never crowd the logo or place it on a busy background## V. Voice & Tone@@ -61,6 +63,6 @@ Google uses a dual-lockup brand system — pick by context, never combine on the## VI. Icon Style-- Preference: filled+- Preference: one consistent Material-aligned family; filled or stroke according to the deck context-> Aligns with Material Icons' default filled style. When the deck uses `templates/icons/`, prefer `tabler-filled` or `chunk-filled`; avoid stroke-only libraries to stay consistent with Google's product UI aesthetic.+> This is a presentation convention, not permission to imitate Google's visual identity. When the deck uses `templates/icons/`, choose one compatible family and keep weight/fill treatment consistent.diff --git "a/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\344\277\241/images/logo.png" "b/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\344\277\241/images/logo.png"new file mode 100644index 00000000..2cf3f7e1Binary files /dev/null and "b/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\344\277\241/images/logo.png" differdiff --git "a/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md" "b/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md"new file mode 100644index 00000000..3ea00f20--- /dev/null+++ "b/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md"@@ -0,0 +1,72 @@+---+brand_id: 中国电信+kind: brand+summary: China Telecom brand identity for digital infrastructure, government-enterprise solutions, transformation planning, and corporate reporting+primary_color: "#004EA2"+---++# China Telecom (中国电信) Brand Specification++> Identity-only preset. No SVG page roster; pages are composed freely under these brand constraints.++## I. Brand Overview++| Property | Value |+|---|---|+| Brand Name | China Telecom / 中国电信 |+| Use Cases | Digital infrastructure reports, government-enterprise solutions, transformation planning, corporate reporting, and service presentations |+| Tone | Formal, trusted, service-oriented, technically credible |+| Sources | Bundled China Telecom logo for literal color evidence; [China Telecom official website](https://www.chinatelecom.com.cn/), reviewed 2026-07-13 |++## II. Color Scheme++| Role | HEX | Provenance | Notes |+|---|---|---|---|+| primary | `#004EA2` | approx | Dominant blue sampled from the bundled raster China Telecom logo |+| text | `#1F2937` | approx | Primary body text on light backgrounds |+| muted-text | `#6B7280` | approx | Secondary descriptions and annotations |+| bg | `#FFFFFF` | approx | Standard light presentation background |+| surface | `#F8FAFC` | approx | Light card and module surfaces |+| border | `#E5E7EB` | approx | Dividers, table borders, and restrained technical grids |++The primary blue is an exact pixel sample from the bundled raster logo, but remains `approx` because no authoritative token value is bundled. The neutrals are presentation conventions. Red accents found in individual retained decks are deck-specific and must not be promoted to a default China Telecom brand color without stronger evidence.++## III. Typography++| Role | Family | Weight |+|---|---|---|+| title | `"Microsoft YaHei", "微软雅黑", "SimHei", Arial, sans-serif` | 700 |+| body | `"Microsoft YaHei", "微软雅黑", Arial, sans-serif` | 400 |+| data | `Arial, "Microsoft YaHei", sans-serif` | 600-700 |++Use PowerPoint-safe CJK fonts by default. Keep English technical labels, network standards, and data labels in Arial where that improves scanning. This preset does not bundle or automatically embed proprietary fonts.++## IV. Logo++The bundled asset is the default China Telecom corporate lockup. Use it unmodified and keep product, campaign, and event identities out of the base brand preset.++| File | Form | Usage |+|---|---|---|+| `../images/logo.png` | China Telecom corporate lockup (252x69) | Cover, ending, and restrained page-header branding |++- Cover / ending: use the full lockup at a readable size.+- Content pages: use the lockup only when the title area has sufficient space; avoid repeating it as oversized decoration.+- Keep clearspace around the lockup and avoid busy image backgrounds.+- On dark backgrounds, use an owner-approved reverse asset when supplied; otherwise place this logo on a clean white backing plate.+- Do not substitute 5G, campaign, slogan, or event assets for the corporate lockup unless the presentation scope explicitly calls for that identity.+- External publication must follow the owner's trademark and asset permissions; packaging the logo does not grant usage rights.++## V. Voice & Tone++- Formality: formal-neutral+- Person: organization-first, "we / 我们" only when speaking as China Telecom+- Emoji: avoid+- Abbreviations: spell out organization and service names on first use; retain standard network terms such as 5G when context is clear+- Style: emphasize service reliability, secure infrastructure, customer value, public responsibility, and measurable digital outcomes++## VI. Icon Style++- Preference: clean stroke or solid geometric icons+- Recommended libraries: `tabler-outline`, `lucide`, or one consistent filled family when higher visual weight is needed+- Prefer network, cloud, security, service, data, infrastructure, and industry-solution metaphors. Avoid decorative telecom waves that could be mistaken for an official mark.+- This icon guidance is a presentation convention, not an official China Telecom icon token set.diff --git "a/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\345\273\272/templates/design_spec.md" "b/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\345\273\272/templates/design_spec.md"index 0e21fd32..19c80cc3 100644--- "a/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\345\273\272/templates/design_spec.md"+++ "b/skills/ppt-master/templates/brands/\344\270\255\345\233\275\347\224\265\345\273\272/templates/design_spec.md"@@ -2,7 +2,7 @@brand_id: 中国电建kind: brandsummary: POWERCHINA brand identity for engineering project reports, technical proposals, business negotiations, and corporate promotion-primary_color: "#00418D"+primary_color: "#004EA1"---# POWERCHINA (中国电建) Brand Specification@@ -16,22 +16,21 @@ primary_color: "#00418D"| Brand Name | POWERCHINA / 中国电建 || Use Cases | Engineering project reports, technical proposal presentations, business negotiations, corporate promotion, annual summaries || Tone | Professional, composed, international, state-owned enterprise style |+| Sources | Bundled logo assets for literal colors; [POWERCHINA Brand and Visual Identity Manual (2025) release page](https://11j.powerchina.cn/col/col16780/art/2025/art_daed13ac0e294a56a31033ced7689708.html), reviewed 2026-07-13 |## II. Color Scheme| Role | HEX | Provenance | Notes ||---|---|---|---|-| primary | `#00418D` | approx | POWERCHINA Blue, inherited from the existing POWERCHINA deck templates |-| secondary | `#002B5C` | approx | Deep blue for chapter pages, dark headers, and gradient bases |-| accent (blue) | `#0066CC` | approx | Bright blue for charts, links, and secondary emphasis |-| accent (light) | `#4A90D9` | approx | Sky blue for tertiary highlights and decorative rules |-| accent (red) | `#C41E3A` | approx | China red for milestones, key data, and national-strength emphasis |-| accent (gold) | `#C9A227` | approx | Honors, achievements, and award moments |+| primary | `#004EA1` | approx | Dominant blue sampled from the bundled raster POWERCHINA group symbol |+| secondary | `#C90A4F` | approx | Dominant magenta-red sampled from the bundled raster POWERCHINA group symbol || text | `#1A1A1A` | approx | Primary body text on light backgrounds || muted-text | `#4A5568` | approx | Secondary descriptions and annotations || bg | `#FFFFFF` | approx | Standard light presentation background || surface | `#F4F6F8` | approx | Light gray card and module surfaces |+The two symbol colors are exact pixel samples from the bundled raster asset, but remain `approx` because no authoritative token values are bundled. The neutral presentation colors are also practical approximations, not claims about official POWERCHINA design tokens.+## III. Typography| Role | Family | Weight |@@ -44,19 +43,22 @@ Use PowerPoint-safe CJK fonts by default. Keep English technical labels in Arial## IV. Logo-POWERCHINA templates may use the group brand logo or subsidiary logos depending on the presenting entity. Pick one primary logo per deck and avoid mixing several logos on every page.+This preset defaults to the POWERCHINA group as the presenting entity. Subsidiary marks are explicit alternates only when that subsidiary owns the presentation; pick one presenting entity per deck.| File | Form | Usage ||---|---|---|-| `../images/电建logo.png` | POWERCHINA symbol / primary mark (234x236) | Cover, ending, and compact brand moments where the group identity is required |+| `../images/电建logo.png` | POWERCHINA group symbol / primary mark (234x236) | Cover, ending, and compact brand moments where the group identity is required || `../images/中国水务logo.png` | China Water logo lockup (1108x190) | Subsidiary-led water-business reports; cover or ending lockup || `../images/华东院logo.png` | East China Institute logo lockup (1438x300) | Institute-led technical reports and engineering proposals || `../images/水电三局logo.png` | Sinohydro Bureau 3 logo lockup (629x75) | Bureau-led project reports and construction updates |- Cover / ending: use the selected primary logo at readable size.- Per-page header: optional; use a compact logo only when it does not crowd the title bar.+- Do not mix the group mark and several subsidiary marks as routine page chrome. Use co-branding only when the presentation brief explicitly requires it.+- If a subsidiary needs materially different colors, typography, or recurring identity rules, create a separate brand workspace for that entity.- Dark backgrounds: prefer white/inverted treatment when available; otherwise place the logo on a white backing plate.- Clearspace: leave at least 0.5x logo height around the mark or lockup.+- External publication must follow the owner-provided trademark and visual-identity permissions; packaging these assets does not grant usage rights.## V. Voice & Tone@@ -71,3 +73,4 @@ POWERCHINA templates may use the group brand logo or subsidiary logos depending- Preference: filled or sturdy stroke icons- Recommended libraries: `tabler-filled`, `chunk-filled`, or `tabler-outline` with heavier stroke- Avoid thin decorative icons for engineering / construction content; prefer solid symbols, process arrows, infrastructure metaphors, and chart-friendly pictograms.+- This icon guidance is a presentation convention, not an official POWERCHINA icon token set.diff --git "a/skills/ppt-master/templates/brands/\344\270\255\346\261\275\347\240\224/templates/design_spec.md" "b/skills/ppt-master/templates/brands/\344\270\255\346\261\275\347\240\224/templates/design_spec.md"index fc051b03..f1c545a7 100644--- "a/skills/ppt-master/templates/brands/\344\270\255\346\261\275\347\240\224/templates/design_spec.md"+++ "b/skills/ppt-master/templates/brands/\344\270\255\346\261\275\347\240\224/templates/design_spec.md"@@ -16,23 +16,22 @@ primary_color: "#004098"| Brand Name | CATARC / 中汽研 || Use Cases | Product certification display, evaluation presentations, automotive technology promotion, business visits, high-end technical reporting || Tone | Professional, authoritative, trustworthy, technical-consulting style |+| Sources | Bundled CATARC logo assets and the validated CATARC deck identity, reviewed 2026-07-13 |## II. Color Scheme| Role | HEX | Provenance | Notes ||---|---|---|---|-| primary | `#004098` | approx | CATARC deep blue, inherited from the standard CATARC deck template |-| secondary | `#003366` | approx | Dark business blue for covers, chapter pages, and formal section headers |-| accent (blue) | `#0050B3` | approx | Bright blue for technology emphasis and gradients |-| accent (tech) | `#1890FF` | approx | Modern tech blue for forward-looking automotive topics |-| accent (cyan) | `#00E5FF` | approx | High-energy data / future-tech highlights; use sparingly |-| accent (red) | `#CC0000` | approx | Certification warnings, failed checks, and key risk emphasis |+| primary | `#004098` | approx | Working primary blue aligned with the validated CATARC deck template |+| secondary | `#003B82` | approx | Dark blue for chapter pages, headers, and restrained depth || text | `#333333` | approx | Primary body text on light backgrounds || muted-text | `#666666` | approx | Secondary descriptions and notes || bg | `#FFFFFF` | approx | Standard light presentation background |-| surface | `#F5F5F5` | approx | Secondary content blocks and cards |+| surface | `#F8FAFC` | approx | Secondary content blocks and cards || border | `#E0E0E0` | approx | Dividers, table borders, and technical grids |+This compact palette intentionally matches the retained CATARC deck identity. It is an internal presentation approximation, not a claim about official CATARC design tokens. Derive success, warning, and error colors from the content context rather than treating them as brand colors.+## III. Typography| Role | Family | Weight |@@ -70,3 +69,4 @@ CATARC uses separate large and header lockups. Choose the large logo for brand m- Preference: filled or clean stroke icons- Recommended libraries: `tabler-filled`, `chunk-filled`, or `tabler-outline`- Prefer automotive, certification, testing, dashboard, data, process, and compliance metaphors. Avoid playful or consumer-app icon styling.+- This icon guidance is a presentation convention, not an official CATARC icon token set.diff --git a/skills/ppt-master/workflows/create-brand.md b/skills/ppt-master/workflows/create-brand.mdindex 7e92864d..cf05b9a6 100644--- a/skills/ppt-master/workflows/create-brand.md+++ b/skills/ppt-master/workflows/create-brand.md@@ -52,6 +52,8 @@ Identify which of (colors / typography / logo / voice / icon style) the asset di- `[approx]` — visual estimate (PNG/JPG color picking)- `[user]` — supplied via chat fill-in in Step 3+**Hard rule — brand truth boundary**: Use `fact` only for a literal value extracted from an official asset/manual. Use `user` for values dictated in chat. Values inferred from an existing deck, website appearance, raster sampling, or presentation convention remain `approx`. Keep approximate presentation neutrals minimal; do not invent a semantic info/success/alert palette and lock it as brand identity.+---## Step 2B: Verbal spec capture@@ -66,7 +68,7 @@ Whatever the user gives is `[user]`-labelled. Skip Step 3 unless the user explic## Step 2C: Empty skeleton-Write `templates/brands/<brand_id>/templates/design_spec.md` with the full schema, every value as a TODO comment. Tell the user where the file is. No further prompting — the user owns it from here.+Write `templates/brands/<brand_id>/templates/design_spec.md` with the full schema, every value as a TODO comment. Tell the user where the file is. Do not register the incomplete skeleton; registration requires concrete identity values. No further prompting — the user owns it from here.---@@ -80,6 +82,7 @@ For fields not covered by the asset, ask the user in a single bundled message. S| text / bg HEX | only if dark-mode or inverted scheme mentioned || title / body font | when the asset gave no font reference || logo usage | when a logo file was provided |+| brand scope | when assets mix a company, product, subsidiary, or campaign identity || voice & tone | when audience or formality was mentioned || icon style preference | when icon consistency was mentioned |@@ -100,7 +103,6 @@ mkdir -p "skills/ppt-master/templates/brands/<brand_id>/templates"brand_id: <slug>kind: brandsummary: <one-line use case, e.g. "ACME Corp marketing decks">-keywords: [<3-5 short tags>]primary_color: "#XXXXXX"---@@ -114,15 +116,16 @@ primary_color: "#XXXXXX"| Brand Name | <display name> || Use Cases | <summary> || Tone | <one-line tone summary> |+| Sources | <official URL or bundled asset paths; include retrieval/version date when known> |## II. Color Scheme| Role | HEX | Provenance ||---|---|---|| primary | #XXXXXX | fact \| approx \| user |-| secondary | #XXXXXX | |-| accent | #XXXXXX | |-| text | #XXXXXX | optional, default `#1A1A1A` |-| bg | #XXXXXX | optional, default `#FFFFFF` |+| secondary | #XXXXXX | fact \| approx \| user |+| accent | #XXXXXX | fact \| approx \| user |+| text | #XXXXXX | fact \| approx \| user; optional, default `#1A1A1A` |+| bg | #XXXXXX | fact \| approx \| user; optional, default `#FFFFFF` |## III. Typography| Role | Family | Weight |@@ -154,6 +157,9 @@ primary_color: "#XXXXXX"- HEX must be `#RRGGBB`- Font names are free strings; not validated against locally installed fonts- §VII is fully optional — list only directories that actually exist+- A company/product family may share one preset when the user explicitly wants that scope. Name the combined scope in §I and identify the owner of every logo/lockup in §IV; never relabel a product mark as the company mark.+- One preset has one default presenting entity. Subsidiary/campaign assets may remain as explicit alternates, but they never silently replace the default identity; create a separate brand workspace when their colors, typography, or voice differ.+- Record official usage or trademark restrictions next to the affected asset. Do not turn an observed public logo into permission to imply affiliation, sponsorship, or endorsement.### Optional: logo file@@ -169,18 +175,18 @@ No SVG page roster, canvas spec, signature design elements, or preview PPTX. Do----## Step 5: Register and hand off+## Step 5: Validate, register, and hand off++Run the registrar in dry-run mode first. It validates the mandatory frontmatter, brand ID, required sections, roster-free scope, `#RRGGBB` colors and primary-color consistency, color provenance, and every referenced `images/` / `icons/` asset:++```bash+python3 skills/ppt-master/scripts/register_template.py --kind brand <brand_id> --dry-run+```-Update `templates/brands/brands_index.json` with the new entry (create the file if missing):+Fix every reported error, then register the same workspace:-```json-{- "<brand_id>": {- "summary": "<from design_spec.md frontmatter>",- "keywords": [...],- "primary_color": "#XXXXXX"- }-}+```bash+python3 skills/ppt-master/scripts/register_template.py --kind brand <brand_id>```Emit the confirmation card: