一键导入
core-architecture
Use when navigating the core codebase, understanding component structure, theme definitions, color utilities, or the type system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when navigating the core codebase, understanding component structure, theme definitions, color utilities, or the type system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Monitor app conventions — routing, queries, components, core/monitor boundary. Load when working in monitor/.
Use when creating a new adapter for a platform to support Black Atom themes. Covers research, token mapping, template creation, and verification.
Use when creating a new theme in an existing collection. Covers collaborative design, palette extraction, core definition, adapter configs, and generation.
Use when renaming a theme across all repositories. Handles core type updates, adapter configs, file renames, generation, and coordinated commits.
Use when developing new theme concepts, researching color inspiration, or refining existing themes. Covers color research, palette development, and collection fit assessment.
Use when linking generated Black Atom themes to Nik's dotfiles via theme-link.sh, or after adding a new adapter that needs dotfile integration.
| name | core-architecture |
| description | Use when navigating the core codebase, understanding component structure, theme definitions, color utilities, or the type system. |
cli.ts)help: Display help information for commandsgenerate: Process templates and create theme filesgenerate --watch: Watches for changes and regenerates themessrc/tasks/)adapters:gen: Generate all repositories without committingadapters:watch: Watch for theme changes and auto-regenerateadapters:status: Show status overview of all repositoriesadapters:commit: Generate and commit all repositories with confirmationadapters:push: Push repositories to remote (aborts if uncommitted changes)adapters:reset: Reset repositories to their remote state (with confirmation)Task system files in src/tasks/adapters/:
generate.ts: Processing all repositorieswatch.ts: Intelligent file watchingpush-all.ts: Pushing changes to remotereset.ts: Resetting repositories to remote statestatus.ts: Status overviewutils.ts: Shared utilities (forEachAdapter(), runCommand(), getUserConfirmation())src/themes/)src/utils/color.tssrc/utils/color.ts)oklch(l, c, h): Converts OKLCH values to hex color
l (lightness): 0-1, where 0 is black and 1 is whitec (chroma): typically 0-0.4, represents color intensityh (hue): 0-360 degrees, color angle on the color wheelblend({fg, bg, alpha}): Blends two colors togethertint({color, with, amount}): Tints a base color with another colorblack-atom-adapter.json from adapter repositoriessrc/commands/adapt.ts and src/commands/adapt-all.tssrc/types/)All themes use OKLCH color space. The oklchToHex() function converts OKLCH values to hex at build time.
import { oklchToHex } from "../../utils/color.ts";
interface Theme {
meta: { name: string; description: string; author: string };
appearance: "dark" | "light";
primaries: {
d10: HexColor;
d20: HexColor;
d30: HexColor;
d40: HexColor; // Dark range
m10: HexColor;
m20: HexColor;
m30: HexColor;
m40: HexColor; // Middle range
l10: HexColor;
l20: HexColor;
l30: HexColor;
l40: HexColor; // Light range
};
palette: {/* 16-color terminal palette */};
ui: UITheme;
syntax: SyntaxTheme;
}
const primaries: Theme.Primaries = {
d10: oklchToHex(0.199, 0.015, 196.04), // L: lightness, C: chroma, H: hue
d20: oklchToHex(0.225, 0.016, 196.09),
// ...
};
mkdir -p src/themes/new-collectionui_dark.ts, ui_light.ts, syntax_dark.ts, syntax_light.tsCollectionKey type in types/theme.tsconfig.ts — add to themeMap and themeKeysdeno task check, deno task lint, deno task format, deno task schema