Skip to content

docs(vscode): add icon authoring skill - #12872

Merged
marius-kilocode merged 2 commits into
mainfrom
research-vscode-icon-generation-skill
Aug 4, 2026
Merged

docs(vscode): add icon authoring skill#12872
marius-kilocode merged 2 commits into
mainfrom
research-vscode-icon-generation-skill

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Models currently have JetBrains-specific icon guidance but no equivalent for the VS Code extension, which makes it easy to apply the wrong light/dark, palette, and asset rules to webview icons.

Add a concise VS Code icon skill that distinguishes Codicons, packaged extension assets, and the currentColor-based kilo-ui registry. It documents the existing source paths, canvas and stroke normalization rules, registration boundaries, and the visual review workflow.

Comment thread .kilo/skills/icon-vscode/SKILL.md Outdated

- Search `packages/kilo-ui/src/components/icon.tsx` first for Kilo-only icons, then `packages/ui/src/components/icon.tsx` for shared icons. Use the existing kebab-case name and visual sibling before adding a new one.
- Webview icons are inline SVG path strings, not standalone files. They use `fill="currentColor"` or `stroke="currentColor"`; never add a light/dark duplicate or a literal palette for these icons.
- Standard registry icons use a `20 20` viewBox and render at 16px (`small`), 20px (`normal`), or 24px (`medium`/`large`). Use a `16 16` viewBox only when matching an existing small-grid sibling or a role that requires it. Do not paste a 16px path into a 20px canvas without rebalancing it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: viewBox guidance omits the 24x24 icons in the Kilo registry

Line 22 sends authors to packages/kilo-ui/src/components/icon.tsx first, but 5 of that registry's 14 icons (memory, database, book-open-check, reload, gauge) use a 0 0 24 24 lucide-style canvas, while this line only describes 20 20 as the standard and 16 16 as the exception. An author whose closest sibling is one of those 24x24 icons gets no rule explaining when that canvas is acceptable. Consider noting that the Kilo registry also contains 24x24 lucide-style entries and that new icons should match their closest sibling's canvas (which rule 2 already implies).


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

The previous suggestion (viewBox guidance omitting the 24x24 Kilo registry icons) was addressed in cbd8fa5 — the conventions section now explicitly covers the 24 24 Kilo-only entries. All factual claims in the rewritten skill (asset paths, registry viewBox values, render sizes, wrapper fallback, story imports, product-icon contribution) were verified against the current tree.

Files Reviewed (1 file)
  • .kilo/skills/icon-vscode/SKILL.md
Previous Review Summary (commit 5de420a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 5de420a)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
.kilo/skills/icon-vscode/SKILL.md 24 viewBox guidance omits the 24x24 lucide-style icons present in the Kilo registry
Files Reviewed (1 file)
  • .kilo/skills/icon-vscode/SKILL.md - 1 issue

Fix these issues in Kilo Cloud


Reviewed by kimi-k3 · Input: 135.4K · Output: 8.4K · Cached: 684K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit f0f186e into main Aug 4, 2026
30 checks passed
@marius-kilocode
marius-kilocode deleted the research-vscode-icon-generation-skill branch August 4, 2026 18:37
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…generation-skill

docs(vscode): add icon authoring skill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants