Agent skill Frontend
Good CSS
Build or refine reusable components for a web interface.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add vojtaholik/good-css --skill good-css --agent claude-code --yesCheck this file in your project.claude/skills/good-css/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add vojtaholik/good-css --skill good-cssSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the project’s current CSS system and a runnable article or landing preview. Read the layout reference’s browser support notes. This grid workflow needs no additional package.
View operation manualWhat this skill helps with
- Build or refine reusable components for a web interface.
Good for
- Component implementation
- Skill name
- good-css
- Scenario
- Build a content grid with wider figures and full-bleed sections
- Deliverable
- An editorial section with readable content width, a breakout figure and a full-width band.
- Skill name
good-css- Repository
vojtaholik/good-css
Define a component task with an observable result
A request with an unclear outcome
Pull the figure out with global negative margins.
The breakout depends on implicit wrapper spacing and can introduce horizontal overflow on narrow screens.
A workflow with observable results
- Identify the three width roles
- Implement named grid tracks
- Measure the three tracks
Good CSS operation manual
Replace one section’s width wrappers with named CSS Grid tracks and inspect both widths.
Replace the bracketed details with your own project and target.
Identify the three width roles
Read the bundled breakouts entry.
Prompt · Step 1Use `good-css` on [article section]. Read the Content grid with breakouts entry in references/layout.md. Identify the existing content max-width and gutter, the chosen wide figure, and the section band that needs full bleed. List the intended width for each direct child.Implement named grid tracks
Use content, breakout and full-width line pairs.
Prompt · Step 2Use `good-css` to update [approved section]. Set --gutter, --content and --breakout on the grid. Assign direct children to the content track by default, then assign the figure and band to breakout and full-width. Keep semantic section, figure and caption elements. Show the named column declarations and any wrapper that can be removed safely.Measure the three tracks
Check the same section at two viewport widths.
- On wider screens the full-width band spans more than the figure and body.
- Direct children have explicit columns and the page does not scroll horizontally.
Prompt · Step 3Use `good-css` to verify [local section] at narrow and wide viewport widths. Record the rendered widths of content, breakout figure and full-bleed band. Check that the figure respects the narrow gutter, wider tracks separate on a large screen, and neither view causes horizontal page overflow.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
A grid child appears in the gutterReference
- Command or reference
references/layout.md · Content grid with breakouts- Examples
- Set grid-column for every direct child, using content as the default.
Good CSS troubleshooting
Can the figure and content have the same width on mobile?
Yes. The breakout tracks can collapse on narrow screens while the content gutter and full-width band are preserved.