cf-design

cf-design is a skill for Claude Code from dinhanhthi/coding-friend. It costs 76 tokens per session (2,254 once invoked), scanned A, original, MIT.

A UI design workflow that can inspect existing interface patterns, create a new interface, or modify one while following the project's visual style.

In plain words
What is it for?
Use it to scan a design system, build a UI from a description, redesign a page or component, change styling, or add a dark mode.
Why use it?
It helps keep new or changed screens consistent with the rest of the product instead of designing each part in isolation.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to scan a design system, build a UI from a description, redesign a page or component, change styling, or add a dark mode.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dinhanhthi/coding-friend/cf-design
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.

Any agent
npx skills add dinhanhthi/coding-friend --skill cf-design
Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cf-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-design/github.svg)](https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-design)
Your own site
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-design"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cf-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-design"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00076 $0.02254
Opus 5.5 $0.00030 $0.00902
Sonnet 5.5 $0.00015 $0.00451
Haiku 4.5 $0.00008 $0.00225

Measured 1mo ago against content hash 41177a70e15d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cf-design 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/load-design-context.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugin-antigravity/skills/cf-design/SKILL.md · 204 lines

How it starts

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

/cf-design

Design UI with intent and consistency: $ARGUMENTS

Modes

Three modes, triggered by the first word of $ARGUMENTS:

Invocation Mode Purpose
/cf-design scan [path] Scan Read existing UI files → extract design patterns → save to docs/DESIGN.md
/cf-design [description] Design Implement new UI from the user's description, using existing patterns as a base
/cf-design modify [what] -- [how] Modify Change a specific UI element, enforcing consistency with existing patterns

If $ARGUMENTS is empty, ask the user which mode they want and what their goal is.


Step 0: Custom Guide

bash "<plugin-root>/lib/load-custom-guide.sh" cf-design

If the block above printed anything, apply only the ## Before, ## Rules, and ## After sections; if it shows the raw command instead of output, re-run that exact load-custom-guide.sh fence now.

Step 0.5: Load Existing Design Context

Run: bash "<plugin-root>/skills/cf-design/scripts/load-design-context.sh"

  • If DESIGN.md exists: read it now and keep it in working memory for all subsequent steps. This is the project's source of truth for visual style.
  • If not found: note that patterns are unknown and will either be extracted (scan mode) or defined fresh.

Step 1: Determine Mode

Parse $ARGUMENTS:

  • Empty → ask the user: "What would you like to do? (a) scan existing UI patterns, (b) design something new, or (c) modify a specific element?"
  • First word is scan (case-insensitive) → Scan mode (Step 2)
  • First word is modify (case-insensitive) → Modify mode (Step 4)
  • Anything else → Design mode (Step 3)

Step 2: Scan Mode

Goal: understand the project's visual DNA and write it down so every future design decision can be consistent.

Read the full file on GitHub · 204 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -4 lines 41177a70e15d
  2. 1mo ago First seen · 208 lines · 76 tokens per session scan A 89479665285d

Subscribe to this mod's changes

cf-design is a skill published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 2,254 once invoked, about $0.0003 per session on Opus 5.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.

Related

Other skills, from other repositories

web-design-engineer

Build or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations. Use for visual front-end creation, design-system exploration, design critique, or explicit browser acceptance / QA of a web artifact.…

ConardLi/garden-skills · 96 tokens

yida-data-manage-ui

A method for improving the appearance and usability of Yida data-management pages, while keeping their data, permissions, queries, and business actions unchanged. Yida is a platform for building business applications.

openyida/openyida · 100 tokens

webflow-mcp:interactions

Create, update, list, and delete Webflow IX3 interactions (GSAP animations) through Webflow MCP. Use when the user wants click/hover/load/scroll/mouse-move animations, interaction timelines, or datainteractionstool / createinteraction payloads.

webflow/webflow-skills · 63 tokens

webflow-mcp:flowkit-naming

Apply Flowkit CSS naming system in Webflow. Use when creating classes, auditing existing naming, or building new components following Flowkit conventions. Flowkit is Webflow's official CSS framework with utility-first approach. Runs headlessly against a page ID — no Designer connection required, except for the…

webflow/webflow-skills · 81 tokens

hz-metavrx-ui-set

Builds app UI for Meta VR and Horizon OS with the MetaVrx UI Set, a Jetpack Compose component library and design system. Covers UiSetTheme, buttons, cards, controls, dialogs, dropdowns, inputs, side navigation, sliders, tooltips, the Icons.Regular library, Gradle setup, and migration from the Spatial SDK UI Set. Build…

meta-quest/agentic-tools · 98 tokens

frontend-blueprint

AI frontend specialist and design consultant that guides users through a structured discovery process before generating any code. Collects visual references, design tokens, typography, icons, layout preferences, and brand guidelines to ensure the final output matches the user's vision with high fidelity. Use when the…

tech-leads-club/agent-skills · 170 tokens