AgentSkillsCN

content-hub

基于浏览器的资产库,用于高效管理营销资产。采用可视化网格布局,配备筛选与搜索功能、品牌背景侧边栏,以及预览、编辑、生成等操作按钮。内置 R2 就绪清单,便于未来云端同步。当浏览资产、管理内容库,或结合品牌语境生成全新资产时,可使用此工具。

SKILL.md
--- frontmatter
name: content-hub
description: Browser-based asset gallery for managing marketing assets. Visual grid with filter/search, brand context sidebar, and actions (preview, edit, generate). R2-ready manifest for future cloud sync. Use when browsing assets, managing content library, or generating new assets with brand context.
license: MIT
allowed-tools:
  - Bash
  - Read

Content Hub

Visual asset gallery for ClaudeKit Marketing.

Quick Start

bash
# Open gallery
node .claude/skills/content-hub/scripts/server.cjs --open

# Rescan assets
node .claude/skills/content-hub/scripts/server.cjs --scan

# Stop server
node .claude/skills/content-hub/scripts/server.cjs --stop

Or use command: /write:hub

Features

  • Gallery Grid: Thumbnails of assets/ folder
  • Filter/Search: By type (banners, designs, etc.) and keywords
  • Brand Sidebar: Displays user's colors and voice from docs/brand-guidelines.md
  • Actions: Preview, Edit in Claude, Copy path, Generate new
  • R2 Ready: Manifest schema supports Cloudflare R2 sync (UI disabled)

API Routes

RoutePurpose
/hubGallery HTML
/api/assetsAsset list JSON
/api/brandBrand context JSON
/api/scanTrigger rescan
/file/*Serve local files

Manifest Schema

Assets stored in .assets/manifest.json with R2 fields:

json
{
  "id": "abc123",
  "path": "banners/hero.png",
  "category": "banner",
  "r2": {
    "status": "local",  // local|pending|synced|error
    "bucket": null,
    "url": null
  }
}

Scripts

ScriptPurpose
scripts/server.cjsHTTP server entry
scripts/lib/scanner.cjsScan assets directory
scripts/lib/router.cjsHTTP routing
scripts/lib/brand-context.cjsExtract brand guidelines

Integration

Command: /write:hub

Related Skills: brand-guidelines, ai-multimodal, design

Agents: content-creator, ui-ux-designer