style-guardian

style-guardian is a skill for Claude Code, Codex from CallMeMing/claude-skills-ming. It costs 53 tokens per session (1,592 once invoked), scanned A, original, MIT.

A style-change assistant that reviews design rules, assesses likely effects, and changes code only after confirmation.

In plain words
What is it for?
Use it to find hardcoded style values, suggest design tokens, review the impact of changes, and approve edits before they are made.
Why use it?
It helps prevent accidental visual changes and highlights possible effects on nearby components or dark mode.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find hardcoded style values, suggest design tokens, review the impact of changes, and approve edits before they are made.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/callmeming/claude-skills-ming/style-guardian
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 CallMeMing/claude-skills-ming --skill style-guardian
Clone the repo
git clone --depth 1 https://github.com/CallMeMing/claude-skills-ming

Made for: Claude Code, Codex.

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 style-guardian

README.md
[![agentmods](https://agentmods.dev/badge/skills/callmeming/claude-skills-ming/style-guardian/github.svg)](https://agentmods.dev/skills/callmeming/claude-skills-ming/style-guardian)
Your own site
<a href="https://agentmods.dev/skills/callmeming/claude-skills-ming/style-guardian"><img src="https://agentmods.dev/badge/skills/callmeming/claude-skills-ming/style-guardian/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 style-guardian

Your own site · 80×15
<a href="https://agentmods.dev/skills/callmeming/claude-skills-ming/style-guardian"><img src="https://agentmods.dev/badge/skills/callmeming/claude-skills-ming/style-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,592 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.00053 $0.01592
Opus 5 $0.00026 $0.00796
Sonnet 5 $0.00011 $0.00318
Haiku 4.5 $0.00005 $0.00159

Measured 11d ago against content hash 9eadf8c06d87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

style-guardian 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 11d 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.

style-guardian/SKILL.md · 164 lines

How it starts

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


🌐 Language Policy (i18n)

Language Detection: Detect the language of the user's input.

Response Consistency: Always respond in the same language as the user's input (e.g., if the user asks in English, output the report and suggestions in English; if in Chinese, use Chinese).

Core Logic: The internal rules and design specs (like spacing, colors) remain the same regardless of the language.

For English Users: When evaluating style changes, explain clearly:

  • What违规 pattern was detected: Explain what hardcoded value was found and why it doesn't match the design system
  • What建议值 is recommended: Show the semantic token or te-* class that should replace it
  • What风险: Explain if the change might affect adjacent components

style-guardian(样式守护者)

非破坏性样式调整助手。在修改前先走查设计规范,评估影响,确认后再执行。

技能概述

当你需要对组件样式进行调整时,style-guardian 会在修改前先扫描设计规范,评估影响范围,并等待你确认后再执行代码更改。它遵循"先分析、再评估、后执行"的三阶段确认锁机制,确保每次样式调整都是安全的、可控的。

核心功能

  1. 规范走查 - 读取 tokens.css 和 globals.css,自动识别硬编码数值
  2. 影响评估 - 分析修改对相邻组件的影响,以表格形式呈现
  3. 确认执行 - 强制停顿等待用户确认,确认后才会修改代码
  4. 暗色模式检查 - 自动检测颜色修改是否需要同步暗色模式

设计系统上下文

基于以下设计系统规范:

技术栈

  • React + TypeScript + Tailwind CSS v4
  • Tailwind v4 无配置特性:所有自定义 Token 均通过 CSS 变量在 globals.css 中定义
  • 设计系统:基于 CSS 变量的自定义设计令牌系统

三阶段确认锁

Phase 1:感知与分析(Scan & Analyze)

目标:定位问题 + 找出所有与规范不符的硬编码数值

步骤

  1. 读取规范文档:
    • src/app/tokens.css — 原始 Token 定义(色值、间距、圆角、阴影)
    • src/app/globals.css — @theme inline 块(Tailwind 工具类映射)
  2. 扫描目标文件(限制范围:src/components/ui/
  3. 调用 design-linter skill 作为检测引擎
  4. 根据检测到的违规类型自动匹配规范映射

输出:违规清单


Phase 2:影响评估(Impact Report)

目标:告诉你修改 A 处是否会挤压到旁边的 B 组件

分析方法

  • 检查修改点的父容器和相邻元素
  • 评估 margin/padding/gap 修改对周边布局的影响
  • 仅提示"可能影响相邻组件",不做精确的 AST 影响链分析

输出表格

修改点 文件 当前值 建议值 风险等级 影响说明 暗色模式

风险等级判定

  • 🟢 低风险:使用项目已定义 Token 替换硬编码值(语义一致性修复)
  • 🟡 中风险:涉及 margin/padding/gap 可能影响周边元素
  • 🔴 高风险:修改会改变组件尺寸或交互行为(如 width、height、position)

Read the full file on GitHub · 164 lines

Files

What ships with it

1 file 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. 11d ago First seen · 164 lines · 53 tokens per session scan A 9eadf8c06d87

Subscribe to this mod's changes

style-guardian is a skill published in the GitHub repository CallMeMing/claude-skills-ming (1 stars, last pushed 4mo ago), licensed MIT. It adds 53 tokens to every session and 1,592 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

baoyu-diagram

Create professional, dark-themed SVG diagrams of any type — architecture diagrams, flowcharts, sequence diagrams, structural diagrams, mind maps, timelines, illustrative/conceptual diagrams, and more. Use this skill whenever the user asks for any kind of technical or conceptual diagram, visualization of a system…

JimLiu/baoyu-skills · 146 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

understand-figma

Analyze a Figma file via the Figma REST API and generate an interactive design knowledge graph (pages, screens, components, component sets, instances, design tokens) with a kind:"design" dashboard.

Egonex-AI/Understand-Anything · 47 tokens

sxo

Search Experience Optimization (SXO) — the bridge between SEO and UX/CRO. Audits the full journey from the SERP click to the on-page goal: SERP click-through factors (title/meta/rich results that win the click), then post-click experience signals that keep users and drive conversions — above-the-fold relevance and…

nowork-studio/notfair-plugin · 235 tokens

create-workflow-diagram

Create FigJam/Miro-style workflow diagrams as high-quality PNG images from plain-text workflow descriptions. Renders beautiful HTML diagrams with connected nodes, arrows, and labels, then screenshots them for sharing.

gooseworks-ai/goose-skills · 45 tokens

create-chatgpt-mockup

Render pixel-accurate ChatGPT mobile (iOS) screen mockups in light mode from a thread JSON. Supports user text bubbles, user image attachments, assistant markdown prose, citation chips, the OpenAI spiral logo, the Apps-SDK GPT chip in the composer, and three header styles (model-tag, plain title, "Get Plus"). Fixed…

gooseworks-ai/goose-skills · 90 tokens