Agent Systems· Technical Case Study

Why I Built 8 Focused Web Development Skills for AI Coding Agents Instead of Installing 80

How progressive disclosure, opinionated design variance dials, and token-efficient separation of concerns give coding agents superior frontend craftsmanship, technical SEO, and production release verification.

The Gap Between Code Generation and Production Craftsmanship

Modern AI coding agents—such as Claude Code, OpenAI Codex, Cursor, and Google Antigravity—can scaffold full-stack applications in seconds. They generate React components, configure routers, write SQL queries, and stub out API endpoints with remarkable speed.

Yet, every developer who has used AI agents on real production websites knows the recurring disappointment of unguided generation:

  • The "AI Slop" Aesthetic: Generic dark-mode layouts with glowing purple orbs, violet gradients, centered-everything typography, and nested colored <div> rectangles pretending to be software screenshots.
  • Janky, Un-Accelerated Animations: Animating CSS height, top, or margin, forcing CPU layout recalculations and 15fps frame drops instead of 60fps GPU-composited transform and opacity.
  • Inaccessible Component Markup: Buttons built from un-focusable <div> tags with no ARIA roles, no keyboard focus rings, missing label associations, and failing WCAG contrast ratios.
  • Superficial Testing: Agents claiming "All tests passed!" after generating a shallow test file that mocks out the entire application without verifying actual DOM rendering in a real browser.
  • Broken SEO & Search Readiness: Missing canonical tags, unconfigured Open Graph images, invalid Schema.org JSON-LD, and no structured discoverability for AI search engines.
  • To solve this, developers often make a critical architectural mistake: they install dozens of uncoordinated, overlapping prompt snippets and micro-skills.


    The Context Window Myth: Why 80 Micro-Skills Degrade Agent Performance

    The natural instinct is to give the agent more instructions: one skill for forms, one for modals, one for tailwind buttons, one for fonts, and so on.

    However, in LLM-based agent systems, more instructions do not equal better decisions. Overloading an agent's context window creates severe operational bottlenecks:

    code
    8 High-Leverage Specialist Skills  >  80 Overlapping Micro-Skills
    

    1. Context Window Pollution: If every skill dumps 2,000 lines of prompt text into the agent's active memory, the context window fills with static boilerplate rather than the user's actual codebase and task diffs. 2. Conflicting Decision Gates: Micro-skills written in isolation frequently contradict one another (e.g., one rule advocating pure utility classes while another prescribes CSS Modules or inline objects). 3. Routing Degradation: When 80 skills compete for activation, the agent's semantic router suffers from classification entropy, frequently picking the wrong tool or falling back to generic model behavior.

    This is why I built WebDev Pro Skills around a strict engineering philosophy: a compact, token-efficient suite of 8 specialist disciplines built on a two-tier progressive disclosure model.


    The Architecture: Two-Tier Progressive Disclosure

    Rather than dumping encyclopedic documentation into every turn, each skill in webdev-pro-skills strictly separates high-density rules from on-demand reference material:

    code
    Agent Context Window
     ├── Tier 1: Core SKILL.md (Always loaded upon activation — ~100-150 lines)
     │    ├── Trigger boundaries (When to use / When NOT to use)
     │    ├── Core decision gates & execution order
     │    ├── Opinionated defaults & hard anti-patterns
     │    └── Routing map to references
     │
     └── Tier 2: Modular References (Loaded on-demand only when required)
          ├── decision-framework.md
          ├── springs-and-easing.md
          ├── ui-animation-recipes.md
          └── verification-checklist.md
    

  • Tier 1 (SKILL.md): Under 150 lines (< 1,500 estimated tokens). Contains concise decision gates, negative constraints (what never to do), and routing pointers.
  • Tier 2 (references/): Deep implementation manuals, spring physics bezier tables, Schema.org templates, and Playwright fixtures loaded only when the agent reaches that specific implementation phase.
  • Our automated token budget audits confirm the efficiency:

    text
    TOTAL CORE SKILLS (Tier 1):  808 lines  (~10,288 tokens across all 8 skills)
    TOTAL REFERENCES  (Tier 2): 1,407 lines (~13,012 tokens across 33 modular guides)
    

    An agent working on motion design only consumes ~1,450 tokens for the core skill, pulling in easing tables only if calculating custom spring physics.


    The 8 Specialist Disciplines

    code
                              ┌───────────────────────┐
                              │   Agent User Prompt   │
                              └───────────┬───────────┘
                                          │
                ┌─────────────────────────┴─────────────────────────┐
                ▼                                                   ▼
    ┌───────────────────────┐                           ┌───────────────────────┐
    │ Brand & Marketing UI  │                           │  Product & App Logic  │
    │ design-taste-frontend │                           │      ui-ux-pro        │
    └───────────┬───────────┘                           └───────────┬───────────┘
                │                                                   │
                ├─────────────────► motion-design ◄────────────────┤
                │                  (Interactions)                   │
                │                                                   │
                ├───────────────► web-accessibility ◄──────────────┤
                │                    (WCAG AA)                      │
                │                                                   │
                ├─────────────► frontend-performance ◄──────────────┤
                │                   (Vitals/Speed)                  │
                │                                                   │
                ├────────────────► seo-mastery ◄────────────────────┤
                │                  (Search/GEO)                     │
                │                                                   │
                ├─────────────────► web-testing ◄───────────────────┤
                │               (Vitest/Playwright)                 │
                │                                                   │
                └───────────────► final-web-audit ◄─────────────────┘
                                    (Pre-Launch)
    


    1. design-taste-frontend: Anti-Slop Frontend Craft

    Before generating markup, the agent executes a mandatory "Read the Room" brief inference, declaring the page type, target audience, and aesthetic language.

    It then tunes The Three Design Dials (1–10):

  • DESIGN_VARIANCE: Balances symmetrical minimal grids vs. bold editorial layouts.
  • MOTION_INTENSITY: Tunes from subtle hover states to coordinated scroll scrubbing.
  • VISUAL_DENSITY: Adjusts from spacious editorial whitespace to compact data rhythms.
  • Hard Negative Constraints:

  • ❌ No AI purple/violet gradients or floating blur orbs.
  • ❌ No centering every headline, paragraph, and CTA.
  • ❌ No repetitive 3-card feature rows—use asymmetric splits and bento layouts.
  • ❌ No fake div-drawn screenshots—use real interactive components or authentic media.
  • ❌ Sans-first display typography default (Geist, Satoshi, Inter Display), using serifs only when brand guidelines explicitly mandate.

  • 2. ui-ux-pro: Product & Application UI Intelligence

    Marketing sites require emotional resonance; applications require information density and state predictability.

    ui-ux-pro ensures the agent models all 4 application states for every interactive component: 1. Loading State: Skeleton loaders matching exact content dimensions to prevent CLS. 2. Empty State: Clear contextual guidance, illustrations, and primary creation CTAs. 3. Populated State: Compact data tables with sticky headers, numeric column right-alignment, and inline actions. 4. Error State: Actionable recovery buttons with error reason explanations rather than generic toasts.


    3. motion-design: 60fps Web Physics & Purposeful Motion

    Animations should provide spatial orientation, not visual clutter.

    motion-design enforces strict hardware-acceleration rules:

  • GPU-Composited Properties Only: Never animate width, height, margin, top, or padding. All layout transitions must use transform (translate3d, scale) and opacity.
  • The Interaction Timing Budget:
  • * Micro-interactions (hover/tap): 100ms – 150ms * Modals & Drawers: 200ms – 280ms * Page transitions: < 350ms
  • Spring Physics: Critical damping ($zeta = 1.0$) for tools and dashboards; slight underdamping ($zeta = 0.82$) for consumer delight.
  • Full Reduced-Motion Support: Automatic fallback to instant cuts or subtle crossfades when prefers-reduced-motion: reduce is enabled.

  • 4. seo-mastery: Technical SEO, Structured Data & AI Search

    SEO is not about keyword stuffing; it is about crawlability, canonical integrity, and structured entity graphs.

  • Self-Referencing Canonicals: Prevents duplicate content penalties across query parameters and trailing slashes.
  • Valid JSON-LD Schema.org: Generates complete SoftwareApplication, BlogPosting, Person, and BreadcrumbList structured data matching visible DOM content.
  • AI Search & GEO Optimization: Formats content with clear entity definitions, markdown context indices (llms.txt), and semantic heading hierarchies.

  • 5. frontend-performance: Core Web Vitals Optimization

    A slow website degrades conversion rates and search rankings.

  • Largest Contentful Paint (LCP < 2.5s): Preloading hero images, using modern image formats (AVIF / WebP), and avoiding client-side layout chains.
  • Interaction to Next Paint (INP < 200ms): Deferring heavy background work using scheduler.postTask or requestIdleCallback, and optimizing React re-renders.
  • Cumulative Layout Shift (CLS < 0.1): Explicit aspect-ratio on all visual media, fallback font override metrics, and reserved ad/banner containers.

  • 6. web-accessibility: WCAG 2.2 AA Compliance

    Accessibility is fundamental to software quality.

  • Semantic HTML First: The first rule of ARIA is: Do not use ARIA if native HTML elements exist. Use real <button>, <dialog>, <nav>, and <form> elements.
  • Focus Management: Explicit 2px visible focus rings with minimum 3:1 contrast against adjacent backgrounds.
  • Keyboard Trapping: Modals and drawers must trap Tab key focus and close cleanly on Escape.
  • Touch Targets: Minimum 44×44px interactive tap targets for mobile viewports.

  • 7. web-testing: Full-Stack Testing & Browser Verification

    An agent that edits code without verifying execution is unsafe.

  • Unit Testing with Vitest: Deterministic assertions for pure logic, state transformers, and data normalization.
  • API Integration Tests: Testing route handlers with real request/response payloads.
  • Playwright Real-Browser Verification: Automating full user flows (login, form submission, responsive viewport resizing) and capturing DOM snapshots before declaring a task complete.

  • 8. final-web-audit: The 8-Point Production Release Gate

    Before deployment, final-web-audit executes a rigorous checklist across all 8 disciplines:

    | Audit Point | Verification Criteria | |---|---| | 1. Functionality | Zero console errors, valid API responses, working forms and state flows. | | 2. UI & Typography | No text clipping, responsive layout collapse at 375px/768px/1280px, no generic AI-slop accents. | | 3. Motion | 60fps GPU-only properties, < 300ms interaction timing, reduced-motion compliance. | | 4. Testing | Passing unit, integration, and E2E test suites with zero skipped critical paths. | | 5. SEO | Unique title/description, self-referencing canonicals, valid XML sitemap and Schema.org markup. | | 6. Performance | Zero CLS, optimized image dimensions, passing Core Web Vitals thresholds. | | 7. Accessibility | Full keyboard navigation, visible focus indicators, WCAG AA contrast (4.5:1 min). | | 8. Security | No exposed API secrets in client bundles, CSRF protection, secure auth session storage. |


    Installation & Getting Started

    Install the complete pack into your coding agent environment with a single command:

    bash
    npx skills add pokhrelboss/webdev-pro-skills
    

    Or install specific specialist skills individually:

    bash
    # Install only anti-slop frontend design
    npx skills add pokhrelboss/webdev-pro-skills --skill design-taste-frontend

    Install only motion design engineering

    npx skills add pokhrelboss/webdev-pro-skills --skill motion-design

    Install only technical SEO

    npx skills add pokhrelboss/webdev-pro-skills --skill seo-mastery

    Verified Compatibility

  • Claude Code: Native support via the standard SKILL.md directory protocol.
  • OpenAI Codex: Supported via CLI and direct repository integration.
  • Cursor: Importable into .cursor/rules or agent skills directory.
  • Antigravity: Native support in skills configuration.

  • Open Source & Community

    webdev-pro-skills is 100% free, open source, and licensed under the MIT License.

  • GitHub Repository: github.com/pokhrelboss/webdev-pro-skills
  • Project Page: pokhrel.tech/projects/webdev-pro-skills
  • Contribute: Pull requests for new verified code recipes, standard updates, and routing tests are warmly welcomed.
  • By giving coding agents structured, opinionated, and token-efficient guidelines, we transform AI from a generator of generic boilerplate into an authentic engineering partner.

    Indexed Topics:AI AgentsClaude CodeOpenAI CodexCursorAntigravityFrontendTestingOpen Source