[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMQ3A9466MS6NCG2T0S869":3,"skill-same:01M7EMQ3A9466MS6NCG2T0S869":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7EMQ3A9466MS6NCG2T0S869","ams-css-pro",null,"TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-css-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: css-pro\ndescription: Professional CSS: cascade mastery, modern layout, custom properties, and maintainable architecture. Use when writing, reviewing, or debugging CSS.\ncategory: development\n---\n\n# CSS Pro\n\n## Overview\n\nModern CSS — **cascade layers, container queries, `:has()`, subgrid, custom properties, and\nlogical properties** — has retired most of the hacks and half the frameworks. Professional CSS\nmeans understanding the cascade instead of fighting it with specificity wars, choosing layout tools\ndeliberately (grid vs flex vs flow), architecting with layers and tokens, and writing CSS that\nsurvives the next developer.\n\nThe through-line: the cascade is a feature — architect for it, don't carpet-bomb it with `!important`.\n\n## When to use\n\n- Writing or reviewing CSS for idiom and maintainability.\n- Debugging specificity, layout, or cascade issues.\n- Architecting stylesheets (layers, tokens, naming).\n- Choosing layout approaches (Grid, Flexbox, multicol).\n- Building responsive, accessible, themeable interfaces.\n\n## Core concepts\n\n- **The cascade, controlled.** Specificity (inline > ID > class > element), source order, and now\n  **cascade layers** (`@layer base, components, utilities`) — layers let you declare precedence\n  explicitly instead of winning specificity arms races. Put resets in low layers, utilities high.\n- **Custom properties as the design API.** `--color-primary`, `--space-4`, `--radius-lg` —\n  theming (dark mode = redefining tokens), runtime changes via JS, and scoped overrides. Properties\n  inherit and cascade; use that instead of preprocessor variables for anything dynamic.\n- **Layout: the right tool.** Grid for two-dimensional layout (page structure, cards, dashboards);\n  Flexbox for one-dimensional distribution (nav bars, button rows, centering); normal flow for\n  documents. `subgrid` for aligning nested grids; container queries (`@container`) for components\n  that respond to their *container*, not the viewport.\n- **Modern selectors.** `:has()` (parent-aware styling), `:is()`\u002F`:where()` (`:where()` has zero\n  specificity — perfect for resets), logical properties (`margin-inline-start` for RTL correctness),\n  `clamp()`\u002F`min()`\u002F`max()` for fluid type and spacing without breakpoints.\n- **Architecture that scales.** Layers + a naming convention (BEM-ish or utility-hybrid) + tokens;\n  colocate component styles or centralize deliberately — but one system per codebase. CSS Modules\n  or scoped styles for component isolation where the stack supports it.\n- **Accessibility is styling too.** `prefers-reduced-motion` (disable non-essential animation),\n  `prefers-color-scheme`, focus-visible styles (never remove outlines without replacing them),\n  sufficient contrast as a token-level concern, not a per-component hope.\n\n## Practical workflow\n\n1. **Set up the foundation.** Reset (modern: `*, *::before, *::after { box-sizing: border-box;\n   margin: 0 }` + sensible defaults), `@layer` order declared, tokens defined on `:root`.\n2. **Define tokens first.** Colors (semantic: `--surface`, `--text`, `--accent`), spacing scale,\n   type scale, radii, shadows, motion durations. Components consume tokens, never raw values.\n3. **Write layout top-down.** Page grid → section layout → component internals. Choose grid\u002Fflex\n   per axis deliberately; verify at 320px and 200% zoom, not just your monitor.\n4. **Style states accessibly.** `:hover`, `:focus-visible`, `:disabled`, `[aria-*]` — every\n   interactive element has visible focus and disabled states; motion respects reduced-motion.\n5. **Debug systematically.** DevTools: which rule won and why (the cascade panel shows it);\n   reduce to a minimal case; check inheritance vs specificity vs layer order before adding weight.\n6. **Review CSS for:** specificity creep, raw values instead of tokens, magic numbers, `!important`\n   (each needs justification), untested responsive behavior, and missing reduced-motion handling.\n\nModern CSS sketch:\n\n```css\n@layer reset, tokens, base, components, utilities;\n\n@layer tokens {\n  :root {\n    --color-surface: #ffffff;\n    --color-text: #1a1a1a;\n    --space-4: 1rem;\n    --radius-lg: 0.75rem;\n  }\n  @media (prefers-color-scheme: dark) {\n    :root { --color-surface: #161616; --color-text: #f0f0f0; }\n  }\n}\n\n@layer components {\n  .card {\n    background: var(--color-surface);\n    border-radius: var(--radius-lg);\n    padding: var(--space-4);\n    \u002F* container-aware: adapts to its wrapper, not the viewport *\u002F\n    container-type: inline-size;\n  }\n  @container (min-width: 40rem) {\n    .card { display: grid; grid-template-columns: 1fr 2fr; }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }\n}\n```\n\n## Common pitfalls\n\n- **Specificity wars.** `#app .container div.item span` to override a library — then the library\n  updates and everything breaks. Layers, `:where()`, and lower-specificity source order instead.\n- **`!important` as a habit.** Occasionally justified (utility overrides, reduced-motion reset);\n  systemically it's a sign the layering\u002Farchitecture failed.\n- **Pixel-perfect at one viewport.** Fixed widths and magic breakpoints that shatter on real\n  devices. Fluid type\u002Fspacing (`clamp()`), container queries, and testing at extremes.\n- **Removing focus outlines.** `outline: none` without a replacement — keyboard users are now\n  lost. `:focus-visible` with a strong, on-brand indicator.\n- **Animating layout properties.** `width`\u002F`top`\u002F`margin` animations jank (layout thrash).\n  Animate `transform` and `opacity` (compositor-friendly); use the Web Animations API or CSS\n  transitions deliberately.\n- **Global namespace collisions.** Generic class names (`.title`, `.container`) colliding across\n  features. Scoping (modules, layers, naming convention) per the project's system.\n- **Ignoring logical properties.** `margin-left` in an RTL language breaks layout. Use\n  `margin-inline-start`\u002F`padding-block` for direction-aware styling from the start.\n","# CSS Pro\n\n## Overview\n\nModern CSS — **cascade layers, container queries, `:has()`, subgrid, custom properties, and\nlogical properties** — has retired most of the hacks and half the frameworks. Professional CSS\nmeans understanding the cascade instead of fighting it with specificity wars, choosing layout tools\ndeliberately (grid vs flex vs flow), architecting with layers and tokens, and writing CSS that\nsurvives the next developer.\n\nThe through-line: the cascade is a feature — architect for it, don't carpet-bomb it with `!important`.\n\n## When to use\n\n- Writing or reviewing CSS for idiom and maintainability.\n- Debugging specificity, layout, or cascade issues.\n- Architecting stylesheets (layers, tokens, naming).\n- Choosing layout approaches (Grid, Flexbox, multicol).\n- Building responsive, accessible, themeable interfaces.\n\n## Core concepts\n\n- **The cascade, controlled.** Specificity (inline > ID > class > element), source order, and now\n  **cascade layers** (`@layer base, components, utilities`) — layers let you declare precedence\n  explicitly instead of winning specificity arms races. Put resets in low layers, utilities high.\n- **Custom properties as the design API.** `--color-primary`, `--space-4`, `--radius-lg` —\n  theming (dark mode = redefining tokens), runtime changes via JS, and scoped overrides. Properties\n  inherit and cascade; use that instead of preprocessor variables for anything dynamic.\n- **Layout: the right tool.** Grid for two-dimensional layout (page structure, cards, dashboards);\n  Flexbox for one-dimensional distribution (nav bars, button rows, centering); normal flow for\n  documents. `subgrid` for aligning nested grids; container queries (`@container`) for components\n  that respond to their *container*, not the viewport.\n- **Modern selectors.** `:has()` (parent-aware styling), `:is()`\u002F`:where()` (`:where()` has zero\n  specificity — perfect for resets), logical properties (`margin-inline-start` for RTL correctness),\n  `clamp()`\u002F`min()`\u002F`max()` for fluid type and spacing without breakpoints.\n- **Architecture that scales.** Layers + a naming convention (BEM-ish or utility-hybrid) + tokens;\n  colocate component styles or centralize deliberately — but one system per codebase. CSS Modules\n  or scoped styles for component isolation where the stack supports it.\n- **Accessibility is styling too.** `prefers-reduced-motion` (disable non-essential animation),\n  `prefers-color-scheme`, focus-visible styles (never remove outlines without replacing them),\n  sufficient contrast as a token-level concern, not a per-component hope.\n\n## Practical workflow\n\n1. **Set up the foundation.** Reset (modern: `*, *::before, *::after { box-sizing: border-box;\n   margin: 0 }` + sensible defaults), `@layer` order declared, tokens defined on `:root`.\n2. **Define tokens first.** Colors (semantic: `--surface`, `--text`, `--accent`), spacing scale,\n   type scale, radii, shadows, motion durations. Components consume tokens, never raw values.\n3. **Write layout top-down.** Page grid → section layout → component internals. Choose grid\u002Fflex\n   per axis deliberately; verify at 320px and 200% zoom, not just your monitor.\n4. **Style states accessibly.** `:hover`, `:focus-visible`, `:disabled`, `[aria-*]` — every\n   interactive element has visible focus and disabled states; motion respects reduced-motion.\n5. **Debug systematically.** DevTools: which rule won and why (the cascade panel shows it);\n   reduce to a minimal case; check inheritance vs specificity vs layer order before adding weight.\n6. **Review CSS for:** specificity creep, raw values instead of tokens, magic numbers, `!important`\n   (each needs justification), untested responsive behavior, and missing reduced-motion handling.\n\nModern CSS sketch:\n\n```css\n@layer reset, tokens, base, components, utilities;\n\n@layer tokens {\n  :root {\n    --color-surface: #ffffff;\n    --color-text: #1a1a1a;\n    --space-4: 1rem;\n    --radius-lg: 0.75rem;\n  }\n  @media (prefers-color-scheme: dark) {\n    :root { --color-surface: #161616; --color-text: #f0f0f0; }\n  }\n}\n\n@layer components {\n  .card {\n    background: var(--color-surface);\n    border-radius: var(--radius-lg);\n    padding: var(--space-4);\n    \u002F* container-aware: adapts to its wrapper, not the viewport *\u002F\n    container-type: inline-size;\n  }\n  @container (min-width: 40rem) {\n    .card { display: grid; grid-template-columns: 1fr 2fr; }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }\n}\n```\n\n## Common pitfalls\n\n- **Specificity wars.** `#app .container div.item span` to override a library — then the library\n  updates and everything breaks. Layers, `:where()`, and lower-specificity source order instead.\n- **`!important` as a habit.** Occasionally justified (utility overrides, reduced-motion reset);\n  systemically it's a sign the layering\u002Farchitecture failed.\n- **Pixel-perfect at one viewport.** Fixed widths and magic breakpoints that shatter on real\n  devices. Fluid type\u002Fspacing (`clamp()`), container queries, and testing at extremes.\n- **Removing focus outlines.** `outline: none` without a replacement — keyboard users are now\n  lost. `:focus-visible` with a strong, on-brand indicator.\n- **Animating layout properties.** `width`\u002F`top`\u002F`margin` animations jank (layout thrash).\n  Animate `transform` and `opacity` (compositor-friendly); use the Web Animations API or CSS\n  transitions deliberately.\n- **Global namespace collisions.** Generic class names (`.title`, `.container`) colliding across\n  features. Scoping (modules, layers, naming convention) per the project's system.\n- **Ignoring logical properties.** `margin-left` in an RTL language breaks layout. Use\n  `margin-inline-start`\u002F`padding-block` for direction-aware styling from the start.\n",{},"main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-css-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill ams-css-pro",{"tool":37,"command":38},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill ams-css-pro",{"tool":40,"command":41},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill ams-css-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-css-pro\u002FSKILL.md",true,[],[46,53,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]