polywise: Skill for OpenCode

.opencode/skills/css/SKILL.md

css is a skill for OpenCode from MatrixAges/polywise. It costs 28 tokens per session (1,348 once invoked), scanned A, original, MIT.

A guide to styling interfaces with Tailwind CSS, a utility-based CSS system, and CSS Modules, which keep component styles in locally scoped files.

In plain words
What is it for?
Use it when implementing layouts, spacing, colors, typography, component states, animations, nested styles, or dark-mode behavior.
Why use it?
It helps choose between short utility classes and separate style files while keeping layout, states, animations, and dark-mode rules organized.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is MatrixAges/polywise's own configuration. It tells OpenCode how to work on polywise itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything polywise configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is @reference '../../../styles/index.css'; /* For importing Tailwind base */.

Reuse

Borrowing it

Nothing to install: this file belongs to MatrixAges/polywise. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MatrixAges/polywise/master/.opencode/skills/css/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MatrixAges/polywise

Made for: OpenCode.

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 css

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/matrixages/polywise/css"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/css.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,348 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00028 $0.01348
Opus 5.5 $0.00011 $0.00539
Sonnet 5.5 $0.00006 $0.00270
Haiku 4.5 $0.00003 $0.00135

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

Security

Grade A, and why

css 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 2mo 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.

.opencode/skills/css/SKILL.md · 231 lines

How it starts

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

CSS Styling Guide

This skill provides mandatory specifications for combining TailwindCSS + CSS Modules for styling implementation in this project.

1. Architecture Overview

This project adopts a hybrid styling strategy:

  • TailwindCSS: For simple, utility-first styles and layouts.
  • CSS Modules: For complex state management, component-specific styles, and high maintainability needs.
  • Rsbuild + Lightning CSS: Provides modern CSS processing with PostCSS support.

2. Styling Strategy Decision Tree

When to Use TailwindCSS

// ✅ Use TailwindCSS:
// - Simple layouts (flex, grid, positioning)
// - Basic spacing (margin, padding)
// - Basic colors and typography
// - One-off styles
// - Rapid prototyping

<div className='flex items-center gap-3 p-4'>
  <span className='text-std-600'>Content</span>
</div>

When to Use CSS Modules

// ✅ Use CSS Modules:
// - Complex state transitions (hover, active, focus state combinations)
// - Component-specific animations
// - Nested selector patterns
// - Repeated complex styles
// - Dark mode switching logic
// - Style combinations that would make TailwindCSS class strings too long

import styles from './index.module.css'

<div className={`w_100 border_box relative${styles._local}`}>
  <button className='btn_copy'></button>
</div>

3. TailwindCSS Patterns

3.1 Multi-line Class Naming

// ✅ Recommended: multi-line for readability
<div
	className='
		flex
		items-center justify-center
		w-18 h-screen
		is_drag
	'
>
	<Icon size={20}></Icon>
</div>

// ❌ Avoid: still writing on single line when styles are complex
<div className='flex items-center justify-center w-18 h-screen is_drag'>

3.2 Conditional Styles with Template Strings

// ✅ Use template strings for conditional class names
const Index = ({ fold }: { fold: boolean }) => {
	return (
		<nav
			className={`
				relative
				flex flex-col
				h-full
				${fold ? 'w-18 items-center justify-center' : 'border-std-900/8 w-60 border-r py-2'}
			`}
		>
		</nav>
	)
}

Read the full file on GitHub · 231 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. 2mo ago First seen · 231 lines · 28 tokens per session scan A c2289352a278

Subscribe to this mod's changes

css is a skill published in the GitHub repository MatrixAges/polywise (654 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 1,348 once invoked, about $0.0001 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-09-04.

Related

css compared with skills from other repositories

css next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cssMatrixAges/polywiseSkill6544mo agoMITA28OpenCode
web-designPrism-Shadow/penguin-harnessSkill3.2kyesterdayApache-2.0A51Claude Code, Codex
tailwind-design-systemcalesthio/OpenMontageSkill77k3d agoAGPL-3.0A42Claude Code, Codex
gsap-scrolltriggercalesthio/OpenMontageSkill77k3d agoAGPL-3.0A68Claude Code, Codex
gsap-performancecalesthio/OpenMontageSkill77k3d agoAGPL-3.0A52Claude Code, Codex
gsap-timelinecalesthio/OpenMontageSkill77k3d agoAGPL-3.0A61Claude Code, Codex
svg-character-animationcalesthio/OpenMontageSkill77k3d agoAGPL-3.0A27Claude Code, Codex