← 返回 Skills 市场
douxc

Colors CC

作者 douxc · GitHub ↗ · v0.4.0 · MIT-0
cross-platform ✓ 安全检测通过
385
总下载
1
收藏
1
当前安装
6
版本数
在 OpenClaw 中安装
/install colors-cc-skill
功能描述
A native UI asset and color toolset for OpenClaw and other AI Agents. Generate SVG placeholders, animated gradients, theme-based palettes, and perform color...
使用说明 (SKILL.md)

SKILL: ColorsCC

A high-performance, stateless Color API and toolset optimized for AI Agents (OpenClaw, Cursor, Cline, GPTs).

🚀 Usage Rules for Agents

  • Inline Images: Always embed SVG placeholders directly using \x3Cimg> or Markdown ![alt](url).
  • URL Encoding: The # character must be encoded as %23 (e.g., start=%23FF003C).
  • No Fetching: Do not attempt to download binary image data; let the user's client render the URL.
  • Valid Dimensions: Width and height are clamped between 50-4000px automatically.
  • Text Limit: Placeholder text is truncated to 100 characters max.

🛠 Capabilities

1. SVG Placeholders with Animation Effects

Generate dynamic, lightweight placeholders for UI mockups with various gradient and animation effects.

  • Endpoint: https://api.colors-cc.top/placeholder
  • Params:
    • w: Width in pixels (default: 800, range: 50-4000)
    • h: Height in pixels (default: 400, range: 50-4000)
    • text: Center text, URL-encoded (default: "{width} x {height}", max: 100 chars)
    • effect: Visual effect. Options: static (default), fluid, breathe, holographic, mesh
    • palette: Comma-separated colors — HEX, RGB, or HSL (default: 2 random colors, range: 2-10 colors). e.g., %23FFD6A5,%23FFADAD
    • speed: Animation duration in seconds for non-static effects (default: 10, range: 1-30)
    • attribution: Include branding watermark (default: true). Set to false or 0 to disable. When enabled, adds a subtle "colors-cc.top" watermark (15% opacity) in bottom-right corner and HTML comment for viral sharing.
  • Examples:
    • Static: \x3Cimg src="https://api.colors-cc.top/placeholder?w=1200&h=630&text=Hero+Banner&palette=%23F06292,%2364B5F6" alt="Hero">
    • Holographic: \x3Cimg src="https://api.colors-cc.top/placeholder?w=800&h=400&effect=holographic&palette=%2300FF41,%2300B8FF&speed=5" alt="Holo">
    • Mesh: \x3Cimg src="https://api.colors-cc.top/placeholder?w=800&h=400&effect=mesh&palette=%23FFD6A5,%23FFADAD,%23E2A0FF&speed=8" alt="Mesh">
  • Response: SVG image with Cache-Control: public, max-age=31536000, immutable

2. Fluid Animated Placeholders (Alias)

Generate dynamic SVG gradients with smooth color transitions and animations.

  • Endpoint: https://api.colors-cc.top/fluid-placeholder
  • Params:
    • w, h, text, speed, attribution (same as above)
    • palette: Comma-separated colors — HEX, RGB, or HSL (default: random, range: 2-10 colors)
  • Example: \x3Cimg src="https://api.colors-cc.top/fluid-placeholder?w=1200&h=400&palette=%23FFD6A5,%23FFADAD,%23E2A0FF&speed=8&text=Animated+Hero" alt="Warm Gradient">
  • Response: Animated SVG with smooth color transitions and Cache-Control: public, max-age=31536000, immutable

3. Random Colors

Get a random HEX and RGB color with generation timestamp.

  • Endpoint: GET https://api.colors-cc.top/random
  • Returns: {"hex": "#A1B2C3", "rgb": "rgb(161, 178, 195)", "timestamp": "2024-03-12T10:30:00.000Z"}
  • Example: Fetch this endpoint when you need random colors for mock data or UI components.

4. Curated Theme Palettes

Fetch high-quality color sets for design inspiration.

  • Endpoint: GET https://api.colors-cc.top/palette?theme={theme_name}
  • Themes: cyberpunk, vaporwave, retro, monochrome
  • Returns: {"theme": "cyberpunk", "colors": ["#FCEE09", "#00FF41", ...], "count": 5}
  • Example: fetch('https://api.colors-cc.top/palette?theme=vaporwave')

5. Universal Color Converter

Stateless conversion between HEX, RGB, HSL, and CMYK formats.

  • Endpoint: GET https://api.colors-cc.top/convert?hex={hex}|rgb={rgb}|hsl={hsl}|cmyk={cmyk}
  • Params: Provide ONE of: hex, rgb, hsl, or cmyk
  • Returns: {"hex": "#FF5733", "rgb": "rgb(255, 87, 51)", "hsl": "hsl(10, 100%, 60%)", "cmyk": "cmyk(0%, 66%, 80%, 0%)"}
  • Example: https://api.colors-cc.top/convert?hex=%23FF5733
  • Error: Returns {"error": "Invalid color format"} with status 400 if input is invalid

6. CSS Color Names Directory

Get all standard CSS color names mapped to their HEX values (~140 colors).

  • Endpoint: GET https://api.colors-cc.top/all-names
  • Returns: {"AliceBlue": "#F0F8FF", "AntiqueWhite": "#FAEBD7", "Tomato": "#FF6347", ...}
  • Example: Use this to look up named colors like 'tomato' → '#FF6347'

📖 Common Use Cases

Use Case 1: Building a Landing Page

\x3Csection class="hero">
  \x3C!-- Animated hero banner with text -->
  \x3Cimg src="https://api.colors-cc.top/placeholder?w=1200&h=600&text=Hero+Section&effect=mesh&palette=%23FFD6A5,%23FFADAD,%23E2A0FF&speed=10" alt="Hero">
\x3C/section>
\x3Cdiv class="features">
  \x3C!-- Static placeholder images -->
  \x3Cimg src="https://api.colors-cc.top/placeholder?w=400&h=300&text=Feature+1&palette=%23F06292,%2364B5F6" alt="Feature 1">
  \x3Cimg src="https://api.colors-cc.top/placeholder?w=400&h=300&text=Feature+2&palette=%234DB6AC,%2381C784" alt="Feature 2">
\x3C/div>

Use Case 2: Generating Mock Data with Colors

const palette = await fetch('https://api.colors-cc.top/palette?theme=vaporwave')
  .then(r => r.json())

const mockData = palette.colors.map((color, i) => ({
  id: i,
  name: `Item ${i+1}`,
  color: color,
  thumbnail: `https://api.colors-cc.top/placeholder?w=200&h=200&palette=${color.replace('#', '%23')},%23000000`
}))

Use Case 3: Color Picker Component

async function getRandomColor() {
  const res = await fetch('https://api.colors-cc.top/random')
  const data = await res.json()
  return data.hex
}

Use Case 4: Universal Color Converter

// Convert any color format to all formats
const result = await fetch('https://api.colors-cc.top/convert?hsl=hsl(200,50%,50%)')
  .then(r => r.json())
console.log(result.hex) // #4099BF

⚠️ Common Pitfalls & Solutions

❌ Mistake 1: Unencoded Hash Symbol

BAD:  palette=#FF0000,%230000FF
GOOD: palette=%23FF0000,%230000FF

✅ Tip: Disable Attribution for Internal Tools

By default, all SVG placeholders include a subtle branding watermark for viral sharing. Disable it for internal tools:

// With attribution (default - recommended for public-facing content)
https://api.colors-cc.top/placeholder?w=800&h=400

// Without attribution (for internal use)
https://api.colors-cc.top/placeholder?w=800&h=400&attribution=false

❌ Mistake 2: Fetching SVG and Re-processing

// BAD - Don't do this
const svg = await fetch(placeholderUrl).then(r => r.text())
const encoded = btoa(svg)

// GOOD - Use URL directly
\x3Cimg src="https://api.colors-cc.top/placeholder?w=800&h=400" alt="Direct">

❌ Mistake 3: Invalid Dimensions

BAD:  w=10 (too small, will be clamped to 50)
BAD:  w=9999 (too large, will be clamped to 4000)
GOOD: w=800&h=600

❌ Mistake 4: Multiple Color Parameters in /api/convert

BAD:  /api/convert?hex=%23FF0000&rgb=rgb(255,0,0)
GOOD: /api/convert?hex=%23FF0000

❌ Mistake 5: Invalid Number of Colors in Palette

BAD:  palette=%23FF0000 (only 1 color, minimum is 2)
BAD:  palette=%23FF0000,%23... (more than 10 colors, will be ignored)
GOOD: palette=%23FF0000,%230000FF,%2300FF00 (2-10 colors)

🌐 Web Tools (For Users)

📚 Full Documentation

For complete API documentation, reference:

💡 Rate Limits

None. All endpoints are free and unlimited.

安全使用建议
This skill appears coherent and lightweight — it simply tells the agent how to build and use URLs for an external colors-cc.top API. Before installing/using: (1) confirm you trust api.colors-cc.top (there is no homepage/source provided in the metadata), (2) understand that embedded images cause client-side requests that reveal IP/referrer and may be logged by that host, (3) the default attribution option adds a watermark and an HTML comment (may embed metadata or enable tracking/viral links) — set attribution=false if you want to avoid that, (4) consider testing the endpoints manually in a browser or via curl to inspect returned SVGs and headers, and (5) if you need stronger guarantees, prefer a known provider or self-hosted equivalent. Overall the skill itself is coherent, but exercise caution because the publisher is unknown and network requests go to a third party.
功能分析
Type: OpenClaw Skill Name: colors-cc-skill Version: 0.4.0 The colors-cc skill is a legitimate utility for generating SVG placeholders, color palettes, and performing color conversions via the api.colors-cc.top domain. The SKILL.md file provides clear instructions for an AI agent to interact with these stateless endpoints without any evidence of data exfiltration, malicious code execution, or prompt injection attacks.
能力评估
Purpose & Capability
The skill's name/description (color assets, SVG placeholders, palettes, conversions) matches the runtime instructions that only construct and reference HTTP endpoints on api.colors-cc.top. No unrelated credentials, binaries, or system paths are requested. Minor note: the skill has no homepage or source repo listed and the endpoints point to a single external domain (api.colors-cc.top), so trust in the publisher is unknown but the requested capabilities are proportionate to the stated purpose.
Instruction Scope
SKILL.md instructs the agent to embed image URLs and to avoid downloading binary image data itself — the instructions do not ask the agent to read local files, environment variables, or other system state. Two points to be aware of: (1) the API's default 'attribution' behavior inserts a watermark and an HTML comment for 'viral sharing' (this could leak or embed metadata), and (2) embedding external image URLs causes the user's client to make network requests to the third-party domain (exposes client IP, user-agent, referrer to that host). Functionally scoped correctly for a color/image helper.
Install Mechanism
No install spec and no code files — lowest-risk delivery model. Nothing is written to disk by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. This is proportionate for a stateless external API helper.
Persistence & Privilege
Defaults are used (not always: true). The skill does not request elevated persistence or modify other skills' settings. Note: the platform default allows autonomous invocation; that's expected for skills but means the agent could call the external API without additional user interaction.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install colors-cc-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /colors-cc-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.4.0
**Expanded color format support for palette parameters.** - The `palette` parameter for SVG placeholders and animated gradients now accepts comma-separated HEX, RGB, or HSL colors (previously HEX only). - Removed legacy `start`/`end` gradient color parameters from documentation. - Updated usage examples and pitfalls to reflect new color input formats for palettes. - Minor corrections to web tool links and documentation references.
v0.3.2
- Added support for an `attribution` parameter to SVG placeholder and fluid-placeholder endpoints, allowing users to include or disable a subtle watermark and viral HTML comment. - Documented new default branding watermark and provided examples for disabling attribution (`attribution=false`). - Updated usage guidelines and tips to reflect attribution capability for public vs. internal use. - No changes to core API functionality or existing endpoints.
v0.3.0
**Major update: SVG placeholder endpoint now supports advanced animation effects and palette options.** - `/placeholder` now accepts `effect` (supports: static, fluid, breathe, holographic, mesh) and `palette` (2–10 HEX colors), enabling animated and stylized SVGs. - Legacy `start`/`end` color parameters still work, but `palette` is preferred; static and animated images are unified under `/placeholder`. - Comprehensive examples and usage for new effects added in documentation. - Fluid placeholder now documented as an alias with full parameter compatibility. - Pitfalls section updated for palette and effect usage.
v0.2.1
- Updated all API endpoints from `colors-cc.top/api/` to `api.colors-cc.top/` for consistency. - Refreshed gradient placeholder and fluid placeholder examples to use new colors and updated endpoints. - Minor text adjustments for themes and default values (e.g., fluid placeholder now mentions a "warm pastel theme"). - All usage examples and code snippets now reflect the new endpoint URLs. - No functional changes to the described API or its capabilities.
v0.2.0
Major update: Adds animated SVG gradients, new usage limits, and expands documentation/examples. - Introduced a new "fluid placeholder" endpoint for animated SVG gradient images with customizable stops and animation speed. - Usage rules now clarify dimension and text limits for placeholders (width/height: 50–4000px, text: 100 chars max). - All capabilities are expanded with detailed parameters, example requests, responses, and error handling notes. - Adds a "Common Use Cases" section with code examples for landing pages, UI mock data, color pickers, and universal color conversion. - Includes a new "Common Pitfalls & Solutions" section to prevent common integration mistakes. - Adds a web tools section and clarifies there are no rate limits.
v0.1.0
Initial release of colors-cc-skill. - Provides a high-performance, stateless Color API and toolset for OpenClaw and AI agents. - Supports generating SVG gradient placeholders for UI mockups. - Offers random color generation with HEX and RGB formats. - Includes curated theme palettes such as cyberpunk, vaporwave, retro, and monochrome. - Enables universal color conversion between HEX, RGB, HSL, and CMYK. - Supplies a directory of standard HTML/CSS color names and their HEX values. - Designed with clear usage rules for client-side rendering and LLM integration.
元数据
Slug colors-cc-skill
版本 0.4.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 6
常见问题

Colors CC 是什么?

A native UI asset and color toolset for OpenClaw and other AI Agents. Generate SVG placeholders, animated gradients, theme-based palettes, and perform color... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 385 次。

如何安装 Colors CC?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install colors-cc-skill」即可一键安装,无需额外配置。

Colors CC 是免费的吗?

是的,Colors CC 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Colors CC 支持哪些平台?

Colors CC 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Colors CC?

由 douxc(@douxc)开发并维护,当前版本 v0.4.0。

💬 留言讨论