set

A command that creates a VS Code color scheme from one starting color. VS Code is the code editor, and the command changes only the current project's editor settings.

In plain words
What is it for?
Use it to create project-specific editor colors from a hex value, RGB or HSL color, or a named color.
Why use it?
It removes the need to choose matching editor colors by hand. It also keeps personal VS Code settings unchanged.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/dork-labs/dorkos/set
Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos

Made for: Claude Code.

Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.03167
Opus 5 $0.00005 $0.01584
Sonnet 5 $0.00002 $0.00633
Haiku 4.5 $0.00001 $0.00317

Measured 2d ago against content hash a6a62013d6da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

set scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/cc/ide/set.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Set VS Code IDE Color Scheme

Generate a cohesive, professional VS Code color scheme from a single seed color.

Scope

IMPORTANT: This command ONLY modifies project-level settings.

Setting Path Modified?
Project settings .vscode/settings.json YES
User settings ~/.config/Code/User/settings.json NEVER
User settings (macOS) ~/Library/Application Support/Code/User/settings.json NEVER

NEVER read, write, or modify any file outside the project's .vscode/ directory.

Input

The user provides: $ARGUMENTS - A color in any format:

  • Hex: #3b82f6, #85bb65
  • RGB: rgb(59, 130, 246)
  • HSL: hsl(217, 91%, 60%)
  • Color name: forest green, ocean blue, coral, purple, gold

Execution Steps

Step 1: Generate the Color Scheme

Write this script to the project's temp directory and execute it:

// Save to .temp/vscode-theme-gen.js and run: node .temp/vscode-theme-gen.js "<color>"

const COLOR_NAMES = {
  red: 0,
  crimson: 348,
  coral: 16,
  salmon: 6,
  orange: 30,
  amber: 45,
  gold: 51,
  yellow: 60,
  lime: 75,
  chartreuse: 90,
  green: 120,
  'forest green': 130,
  emerald: 140,
  teal: 170,
  cyan: 180,
  sky: 195,
  blue: 210,
  'ocean blue': 215,
  azure: 210,
  cobalt: 215,
  indigo: 240,
  violet: 270,
  purple: 280,
  magenta: 300,
  pink: 330,
  rose: 340,
  slate: 215,
  gray: 0,
  grey: 0,
};

function parseColor(input) {
  const str = input.trim().toLowerCase();
  for (const [name, hue] of Object.entries(COLOR_NAMES)) {
    if (str === name || str.replace(/[-_]/g, ' ') === name) {
      return { h: hue, s: 50, l: 50 };
    }
  }
  const hexMatch = str.match(/^#?([0-9a-f]{3,8})$/i);
  if (hexMatch) {
    let hex = hexMatch[1];
    if (hex.length === 3) hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
    const r = parseInt(hex.slice(0, 2), 16) / 255;
    const g = parseInt(hex.slice(2, 4), 16) / 255;
    const b = parseInt(hex.slice(4, 6), 16) / 255;
    return rgbToHsl(r, g, b);
  }
  const rgbMatch = str.match(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);
  if (rgbMatch) {
    return rgbToHsl(
      parseInt(rgbMatch[1]) / 255,
      parseInt(rgbMatch[2]) / 255,
      parseInt(rgbMatch[3]) / 255
    );
  }
  const hslMatch = str.match(/hsl\s*\(\s*(\d+)\s*,\s*(\d+)%?\s*,\s*(\d+)%?\s*\)/);
  if (hslMatch) {
    return { h: parseInt(hslMatch[1]), s: parseInt(hslMatch[2]), l: parseInt(hslMatch[3]) };
  }
  console.error('Warning: Could not parse color, defaulting to blue');
  return { h: 210, s: 50, l: 50 };
}

function rgbToHsl(r, g, b) {
  const max = Math.max(r, g, b),
    min = Math.min(r, g, b);
  let h,
    s,
    l = (max + min) / 2;
  if (max === min) {
    h = s = 0;
  } else {
    const d = max - min;
    s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
    switch (max) {
      case r:
        h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
        break;
      case g:
        h = ((b - r) / d + 2) / 6;
        break;
      case b:
        h = ((r - g) / d + 4) / 6;
        break;
    }
  }
  return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) };
}

function hslToHex(h, s, l) {
  s /= 100;
  l /= 100;
  const a = s * Math.min(l, 1 - l);
  const f = (n) => {
    const k = (n + h / 30) % 12;
    const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
    return Math.round(255 * color)
      .toString(16)
      .padStart(2, '0');
  };
  return `#${f(0)}${f(8)}${f(4)}`;
}

function generatePalette(seedHue) {
  const steps = [
    { name: '50', n: 0.03, lightness: 97, saturation: 5 },
    { name: '100', n: 0.12, lightness: 88, saturation: 15 },
    { name: '200', n: 0.25, lightness: 75, saturation: 25 },
    { name: '300', n: 0.38, lightness: 62, saturation: 35 },
    { name: '400', n: 0.5, lightness: 50, saturation: 45 },
    { name: '500', n: 0.62, lightness: 38, saturation: 40 },
    { name: '600', n: 0.75, lightness: 25, saturation: 30 },
    { name: '700', n: 0.85, lightness: 15, saturation: 20 },
    { name: '750', n: 0.9, lightness: 12, saturation: 15 },
    { name: '800', n: 0.94, lightness: 8, saturation: 10 },
    { name: '900', n: 1.0, lightness: 4, saturation: 5 },
  ];
  const palette = {};
  for (const step of steps) {
    const hueShift = 5 * (1 - step.n);
    palette[step.name] = hslToHex((seedHue + hueShift) % 360, step.saturation, step.lightness);
  }
  return palette;
}

function withOpacity(hex, opacity) {
  return (
    hex +
    Math.round(opacity * 255)
      .toString(16)
      .padStart(2, '0')
  );
}

function generateTheme(seedColor) {
  const hsl = parseColor(seedColor);
  const p = generatePalette(hsl.h);
  return {
    seedColor,
    seedHue: hsl.h,
    palette: p,
    colorCustomizations: {
      'editor.background': p['800'],
      'editor.foreground': p['100'],
      'editor.lineHighlightBackground': p['700'],
      'editor.selectionBackground': withOpacity(p['500'], 0.5),
      'editorCursor.foreground': p['400'],
      'editorLineNumber.foreground': p['600'],
      'editorLineNumber.activeForeground': p['400'],
      'editorGutter.background': p['800'],
      'editorGroup.border': p['600'],
      'editorGroupHeader.tabsBackground': p['750'],
      'activityBar.background': p['700'],
      'activityBar.foreground': p['400'],
      'activityBar.inactiveForeground': p['500'],
      'activityBar.border': p['600'],
      'activityBarBadge.background': p['400'],
      'activityBarBadge.foreground': p['800'],
      'sideBar.background': p['750'],
      'sideBar.foreground': p['200'],
      'sideBar.border': p['600'],
      'sideBarTitle.foreground': p['400'],
      'sideBarSectionHeader.background': p['700'],
      'sideBarSectionHeader.foreground': p['400'],
      'tab.activeBackground': p['700'],
      'tab.activeForeground': p['400'],
      'tab.inactiveBackground': p['750'],
      'tab.inactiveForeground': p['500'],
      'tab.border': p['600'],
      'tab.activeBorderTop': p['400'],
      'titleBar.activeBackground': p['700'],
      'titleBar.activeForeground': p['400'],
      'titleBar.inactiveBackground': p['750'],
      'titleBar.inactiveForeground': p['500'],
      'titleBar.border': p['600'],
      'statusBar.background': p['700'],
      'statusBar.foreground': p['400'],
      'statusBar.border': p['600'],
      'statusBar.debuggingBackground': p['500'],
      'statusBar.noFolderBackground': p['600'],
      'panel.background': p['750'],
      'panel.border': p['600'],
      'panelTitle.activeBorder': p['400'],
      'panelTitle.activeForeground': p['400'],
      'panelTitle.inactiveForeground': p['500'],
      'terminal.background': p['800'],
      'terminal.foreground': p['100'],
      'terminalCursor.foreground': p['400'],
      'input.background': p['700'],
      'input.foreground': p['100'],
      'input.border': p['600'],
      'input.placeholderForeground': p['500'],
      'inputOption.activeBorder': p['400'],
      'dropdown.background': p['700'],
      'dropdown.border': p['600'],
      'dropdown.foreground': p['100'],
      'button.background': p['500'],
      'button.foreground': p['100'],
      'button.hoverBackground': p['400'],
      'list.activeSelectionBackground': p['500'],
      'list.activeSelectionForeground': p['100'],
      'list.hoverBackground': p['700'],
      'list.focusBackground': p['600'],
      'scrollbarSlider.background': withOpacity(p['600'], 0.5),
      'scrollbarSlider.hoverBackground': withOpacity(p['500'], 0.5),
      'scrollbarSlider.activeBackground': withOpacity(p['400'], 0.5),
      'badge.background': p['400'],
      'badge.foreground': p['800'],
      'progressBar.background': p['400'],
      focusBorder: p['400'],
      'selection.background': withOpacity(p['500'], 0.5),
    },
  };
}

const input = process.argv.slice(2).join(' ') || 'blue';
const theme = generateTheme(input);
console.log(
  JSON.stringify(
    {
      seedColor: theme.seedColor,
      seedHue: theme.seedHue,
      palette: theme.palette,
      colorCustomizations: theme.colorCustomizations,
    },
    null,
    2
  )
);

Read the full file on GitHub · 325 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 325 lines · 9 tokens per session scan A a6a62013d6da

Subscribe to this mod's changes

set is a command published in the GitHub repository dork-labs/dorkos (9 stars, last pushed 2d ago), licensed MIT. It adds 9 tokens to every session and 3,167 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.