/alex-agent-skills:html-to-scss-boilerplatefrom alex-agent-skills
Generate blank SCSS scaffold from HTML structure. Keywords: scss boilerplate, scss blocks, scss structure, scaffold scss, style this, set up scss, generate scss, css skeleton.
Ships in alex-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read the HTML and output a blank SCSS scaffold — nested selectors mirroring the HTML hierarchy, empty bodies ready to fill in. No styles, just the skeleton.
Accept HTML from any of:
An element gets a SCSS block only if it has a semantic selector or it is an interactive element (a, button, input, textarea, select). If not, skip the block but still recurse into its children — they bubble up to the nearest semantic ancestor.
Pick the selector in this priority order:
#id — if the element has an IDClasses like active, open, disabled, collapsed, show describe meaningful UI states that need styling. When an element's primary selector is already a semantic class, generate &.state child blocks for any state classes also present on that element.
.dropdown-menu {
&.show {
}
}
Do not generate a block for an element whose only selector would be a state class — they only make sense as modifiers on an already-identified semantic block.
Use your knowledge of common CSS frameworks to identify utility classes. These include — but are not limited to — utility classes from:
m-*, p-*), layout (d-*, col-*, row, flex-*), color (text-*, bg-*), sizing, display helpers, and generic component base classes (btn, navbar, nav-link, fa, etc.)flex, mt-4, text-sm, rounded-lg, hover:bg-blue-500, etc.)fa, fas, far, fa-*)For interactive elements, scaffold the relevant pseudo-classes as empty &:pseudo blocks inside the selector:
| Element | Pseudo-classes to scaffold |
|---|---|
<a> | &:hover, &:active, &:focus, &:visited |
<button> | &:hover, &:active, &:focus, &:disabled |
<input>, <textarea>, <select> | &:focus, &:disabled, &:placeholder |
Only apply based on the HTML tag, not the class name — a <div class="btn-custom"> does not get pseudo-class blocks unless the tag itself is interactive.
Example:
.app-sidebar-toggle {
&:hover {
}
&:active {
}
&:focus {
}
&:disabled {
}
}
Mirror the HTML nesting depth. Cap at 5 levels — if deeper, flatten remaining descendants at level 5 with a // ... comment.
Skip elements that have no semantic selector and no semantic descendants (e.g., a lone <i> icon, <br>, <hr>).
.parent {
.child {
.grandchild {
}
}
#some-id {
}
}
Input:
<nav class="navbar navbar-expand navbar-light topbar static-top">
<button
id="sidebarToggleTop"
class="btn btn-link app-sidebar-toggle d-md-none rounded-circle mr-3"
>
<i class="fa fa-bars"></i>
</button>
<div class="container-fluid">
<h1 class="text-black-10 header-index">Title</h1>
<span class="header-date">Monday</span>
</div>
<ul class="navbar-nav">
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle column-gap-8" href="#">Link</a>
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in">
<a class="dropdown-item" href="#">Item</a>
</div>
</li>
</ul>
</nav>
Output:
.topbar {
#sidebarToggleTop {
&:hover {
}
&:active {
}
&:focus {
}
&:disabled {
}
}
.header-index {
}
.header-date {
}
.navbar-nav {
.nav-item {
a {
&:hover {
}
&:active {
}
&:focus {
}
&:visited {
}
}
.dropdown-menu {
.dropdown-item {
&:hover {
}
&:focus {
}
}
}
}
}
}
Output the SCSS in a fenced code block. Then offer to write it to a .scss file — suggest a filename based on the HTML partial name (e.g., _topbar.php → _topbar.scss).
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/basecampInteract with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards,
messages, files, schedule, check-ins, timeline, recordings, templates, webhooks,
subscriptions, lineup, and campfire. Use for ANY Basecamp question or action.
/cert-tutorAct as a personal tutor for professional certification exams (AWS, Azure, GCP, Kubernetes, security, PMP, and similar). Use whenever the user is studying for a cert - explaining an exam topic or service, quizzing with exam-style scenario questions, reviewing missed questions, running a timed mock exam, or asking "which service for X" or "is this the right answer". Trigger even for a single question, and even if the user never says "teach me", e.g. "difference between Kendra and OpenSearch", "quiz me on IAM", "why is B wrong here"./Other plugins' skills for the same job
npx claudepluginhub duyphaphach/agent-skills --plugin alex-agent-skills