home / skills / pluginagentmarketplace / custom-plugin-typescript / frontend

frontend skill

/skills/frontend

This skill helps you master modern frontend technologies and implement best practices across HTML, CSS, JavaScript, frameworks, and responsive UI.

npx playbooks add skill pluginagentmarketplace/custom-plugin-typescript --skill frontend

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
2.3 KB
---
name: frontend-technologies
description: Master modern web development with HTML, CSS, JavaScript, React, Vue, Angular, Next.js, TypeScript, and responsive design. Use when building web applications, optimizing UI performance, or learning frontend frameworks.
sasmp_version: "1.3.0"
bonded_agent: 01-typescript-fundamentals
bond_type: PRIMARY_BOND
---

# Frontend Technologies Skill

## Quick Start - React with TypeScript

```typescript
import React, { useState, useEffect } from 'react';

interface Props {
  title: string;
}

export function Example({ title }: Props) {
  const [count, setCount] = useState(0);

  useEffect(() => {
    document.title = `${title}: ${count}`;
  }, [count, title]);

  return (
    <div>
      <h1>{title}</h1>
      <p>Count: {count}</p>
      <button onClick={() => setCount(c => c + 1)}>
        Increment
      </button>
    </div>
  );
}
```

## Core Technologies

### Foundation
- HTML5 semantic markup
- CSS3 (Flexbox, Grid, animations)
- JavaScript ES2020+
- TypeScript for type safety

### Frameworks
- **React** 18+ with hooks
- **Vue.js** 3+ composition API
- **Angular** 16+ with RxJS
- **Svelte** for compiler-based approach

### Meta-Frameworks
- **Next.js** - React with SSR, SSG, API routes
- **Nuxt** - Vue with full-stack capabilities
- **SvelteKit** - Svelte framework
- **Remix** - Focus on web fundamentals

### State Management
- React Context API
- Redux Toolkit
- Zustand, Jotai, Recoil
- Vue Composition API / Pinia
- MobX, Akita

### Styling
- Tailwind CSS
- CSS Modules & BEM
- Styled Components / Emotion
- SASS/SCSS

### Build Tools
- Vite (fast development)
- Webpack (powerful bundling)
- Turbopack (next-gen)
- esbuild (transpilation)

### Testing
- Jest unit testing
- React Testing Library
- Cypress / Playwright E2E
- Vitest for Vite projects

## Best Practices

1. **Semantic HTML** - Use correct elements for accessibility
2. **Responsive Design** - Mobile-first approach
3. **Performance** - Optimize Core Web Vitals
4. **Accessibility** - WCAG 2.1 AA compliance
5. **Type Safety** - Use TypeScript
6. **Code Quality** - ESLint + Prettier
7. **Testing** - Aim for 80%+ coverage
8. **Documentation** - Storybook for components

## Resources

- [MDN Web Docs](https://developer.mozilla.org/)
- [React Documentation](https://react.dev/)
- [Web.dev Learning](https://web.dev/learn/)

Overview

This skill helps developers master modern frontend development across HTML, CSS, JavaScript, TypeScript, and popular frameworks like React, Vue, Angular, Next.js, and Svelte. It focuses on building responsive, accessible, and high-performance web applications. Use it to accelerate feature development, enforce best practices, and modernize UI stacks.

How this skill works

The skill inspects project needs and offers concrete guidance: starter patterns, TypeScript-typed component examples, framework-specific recommendations, and build/test tool choices. It highlights architecture decisions for state management, styling, and meta-framework selection, and provides actionable steps to improve performance, accessibility, and developer ergonomics.

When to use it

  • Starting a new web app or migrating to TypeScript and modern bundlers
  • Choosing a framework or meta-framework (React/Next.js, Vue/Nuxt, Svelte/SvelteKit)
  • Improving UI performance and Core Web Vitals
  • Standardizing component libraries, styling, and state management
  • Setting up testing, CI, and developer tooling for frontend projects

Best practices

  • Use semantic HTML and a mobile-first responsive approach
  • Adopt TypeScript for type safety and clearer contracts
  • Prefer small, composable components with hooks or composition API
  • Optimize build output with Vite/esbuild and code-splitting for faster loads
  • Enforce code quality: ESLint, Prettier, and automated tests (unit + E2E)
  • Design for accessibility (WCAG) and measure Core Web Vitals regularly

Example use cases

  • Create a React + TypeScript component library with Storybook and unit tests
  • Migrate an SPA to Next.js for SSR/SSG to improve SEO and first-load performance
  • Set up Vite + Vitest for fast dev feedback and reliable testing
  • Standardize state management using Redux Toolkit or lightweight stores (Zustand)
  • Implement responsive layouts using CSS Grid/Flexbox and Tailwind for utility-first styling

FAQ

Which framework should I pick for a new project?

Choose based on team expertise and goals: React/Next.js for ecosystem and SSR, Vue/Nuxt for developer ergonomics, Svelte/SvelteKit for runtime performance and simplicity.

How do I balance type safety and developer speed?

Adopt TypeScript incrementally: enable strict types for core modules, use inferred types for UI code, and add stricter checks over time to reduce friction while improving safety.