update-docs
Audit and update all rampa project documentation after code changes. Use when adding features, changing defaults, modifying APIs, or before a release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit and update all rampa project documentation after code changes. Use when adding features, changing defaults, modifying APIs, or before a release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | update-docs |
| description | Audit and update all rampa project documentation after code changes. Use when adding features, changing defaults, modifying APIs, or before a release. |
| metadata | {"author":"ismael.fyi","version":"1.0.0"} |
Audit and update all project documentation to reflect current code.
| File | Purpose |
|---|---|
sdk/README.md | SDK user-facing docs — transforms, palette API, value ranges, type exports |
cli/README.md | CLI user-facing docs — all subcommand flag tables, examples, defaults |
cli/src/palette.ts | CLI palette showHelp() function and parseArgs() defaults |
cli/src/index.ts | Main rampa --help text — subcommand list, IMAGE PALETTE section |
cli/src/color.ts | CLI color subcommand help text and transform flags |
AGENTS.md | Architecture guide — build commands, file map, conventions |
| File | What to check |
|---|---|
sdk/src/index.ts | All SDK exports — types and classes |
sdk/src/palette.ts | PaletteResult API surface, options interfaces, defaults |
sdk/src/types.ts | All public type definitions |
sdk/src/color-result.ts | Color transform methods, value ranges |
src/engine/PaletteEngine.ts | Engine defaults — sampleSize, tolerance, bucket counts |
cli/src/palette.ts | CLI palette parseArgs() defaults, flag list |
cli/src/color.ts | CLI color transform flags |
parseArgs() defaults in the same fileThese change occasionally and must be consistent across all docs:
| Setting | Source of truth | Also appears in |
|---|---|---|
| Sample size | PaletteEngine.ts samplePixels default | sdk/palette.ts, cli/palette.ts parseArgs, SDK README, CLI README, CLI help |
| K-means tolerance | PaletteEngine.ts kMeansClustering default | sdk/palette.ts DominantOptions JSDoc, cli/palette.ts parseArgs, SDK README, CLI README, CLI help |
| Raw tolerance | PaletteEngine.ts buildRawPalette default | cli/palette.ts parseArgs, CLI README, CLI help |
| Dominant count | cli/palette.ts parseArgs default | CLI README, CLI help |
| ANSI count | PaletteEngine.ts buildAnsiPalette default | SDK README |
| L bucket count | PaletteEngine.ts DEFAULT_L_BUCKETS array length | cli/palette.ts parseArgs lBuckets, CLI README, CLI help |
| C bucket count | PaletteEngine.ts DEFAULT_C_BUCKETS array length | cli/palette.ts parseArgs cBuckets, CLI README, CLI help |
| H bucket count | PaletteEngine.ts DEFAULT_H_BUCKETS array length | cli/palette.ts parseArgs hBuckets, CLI README, CLI help |
| Contrast mode | sdk/src/contrast.ts default mode | SDK README, CLI README |
sdk/src/index.ts should be mentioned)rampa color flags table (transform flags: --lighten, --darken, etc.)rampa palette flags table (all flags with correct defaults)rampa palette usage examplesrampa lint flagsrampa colorspace flagssite/ if SDK API changes break existing demos.showHelp() defaults must exactly match parseArgs() defaults in the same file.Generate mathematically accurate color palettes using OKLCH color space. Use when creating design systems, color ramps, accessible palettes, CSS variables for themes, or when user asks about color generation.
Create cohesive color themes for code editors, terminals, and IDEs. Generates semantic token systems from a brand color with reusable palette variables for rapid iteration.
Generate color ramps designed for WCAG-compliant contrast pairing. Creates 11-step scales with predictable foreground/background combinations.
Expand a single brand color into a complete multi-hue color system using harmonies. Creates primary, analogous, complementary, and split-complementary ramps.
Generate distinct, accessible colors for charts, graphs, and data visualizations. Uses color harmonies for maximum perceptual distinction.
Generate success, warning, danger, and info status colors that harmonize with your brand using square harmony. All colors mathematically derived from one input.