brand-pipeline
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/brand-pipeline
/brand-pipeline
Full brand system setup in one command.
一条命令完成完整品牌系统搭建。
What This Does
功能说明
Orchestrates the complete brand-as-code pipeline:
- Create (if missing)
brand.yaml - Compile to CSS/Tailwind/TypeScript tokens
- Generate visual assets (OG cards, social images)
编排完整的品牌代码化流水线:
- 若不存在则创建文件
brand.yaml - 编译为CSS/Tailwind/TypeScript令牌
- 生成视觉资产(OG卡片、社交平台图片)
Process
执行流程
Step 1: Brand Identity
步骤1:品牌标识
Check for existing brand files:
- exists → skip to Step 2
brand.yaml - exists → offer migration via
brand-profile.yamlbrand-kit migrate - Neither exists → run interactively
/brand-init
检查现有品牌文件:
- 若已存在 → 跳至步骤2
brand.yaml - 若已存在 → 提供
brand-profile.yaml迁移选项brand-kit migrate - 两者都不存在 → 交互式运行
/brand-init
Step 2: Compile Tokens
步骤2:编译令牌
bash
node ~/Development/brand-kit/dist/src/cli.js compile --out ./src/stylesVerify output:
- — CSS custom properties
tokens.css - — Tailwind 4 @theme
theme.css - — TypeScript export
tokens.ts
bash
node ~/Development/brand-kit/dist/src/cli.js compile --out ./src/styles验证输出文件:
- — CSS自定义属性
tokens.css - — Tailwind 4 @theme样式
theme.css - — TypeScript导出文件
tokens.ts
Step 3: Integrate
步骤3:集成配置
Check project setup and wire tokens:
- If Tailwind project: verify in CSS entry
@import "./theme.css" - If TypeScript: verify tokens.ts is importable
- Run typecheck: or
pnpm typechecknpx tsc --noEmit
检查项目配置并关联令牌:
- 若是Tailwind项目:验证CSS入口文件中是否已
@import "./theme.css" - 若是TypeScript项目:验证是否可导入tokens.ts
- 运行类型检查:或
pnpm typechecknpx tsc --noEmit
Step 4: Generate Assets
步骤4:生成资产
Determine needed assets from project context:
- Always:
og-default - If blog exists: +
og-blogblog-header - If launching: +
launch-herosocial-announce - If changelog:
og-changelog
bash
node ~/Development/brand-kit/dist/src/cli.js render og-default \
--title "[Brand Name]" --subtitle "[Tagline]" --out ./public/og.png根据项目上下文确定所需资产:
- 必选:
og-default - 若存在博客:+
og-blogblog-header - 若为启动项目:+
launch-herosocial-announce - 若存在更新日志:
og-changelog
bash
node ~/Development/brand-kit/dist/src/cli.js render og-default \
--title "[Brand Name]" --subtitle "[Tagline]" --out ./public/og.pngStep 5: Summary
步骤5:执行总结
Report what was created:
- brand.yaml location
- Token output files
- Generated assets
- Integration status
报告已创建的内容:
- brand.yaml文件位置
- 令牌输出文件
- 生成的资产
- 集成状态
Flags
可用参数
- — Skip brand-init, require existing brand.yaml
--skip-init - — Only compile tokens, skip asset generation
--skip-assets - — Override token output directory
--out <dir>
- — 跳过brand-init步骤,要求已存在brand.yaml
--skip-init - — 仅编译令牌,跳过资产生成
--skip-assets - — 覆盖令牌输出目录
--out <dir>
Related Skills
相关技能
- — Interactive brand discovery
/brand-init - — Token compilation
/brand-compile - — Asset generation
/brand-assets - — Full launch package (uses brand-pipeline internally)
/launch-assets
- — 交互式品牌信息配置
/brand-init - — 令牌编译
/brand-compile - — 资产生成
/brand-assets - — 完整启动资源包(内部调用brand-pipeline)
/launch-assets