Command Palette

Search for a command to run...

Назад к скиллам
скилл № 19580

example-frontend-patterns

TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.)

БесплатноБез исполняемых скриптов
CarlosDanielDevот CarlosDanielDev★ 31 звезда на GitHub

Установить example-frontend-patterns в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Frontend Web Patterns (TEMPLATE)

This is a TEMPLATE skill. Copy this directory and customize it for your frontend framework.

Quick reference for frontend development patterns. For detailed examples, see linked guides.

Skill Usage

Aspect Details
Consumer subagent-frontend-architect
Purpose Code patterns and examples for frontend implementation
Invocation Subagents read this skill; NOT directly invocable by users
How to Customize Replace examples below with your framework's patterns

Step 1: Choose Your Framework

Replace this section with your framework-specific requirements:

Option A: React

// Example: React with hooks and TypeScript
import React, { useState, useEffect } from 'react'

interface Props {
  data: DataType
}

export const MyComponent: React.FC<Props> = ({ data }) => {
  const [state, setState] = useState<StateType>(initialState)

  useEffect(() => {
    // side effects
  }, [dependencies])

  return <div>{/* JSX */}</div>
}

Option B: Vue 3

<template>
  <div>{{ data }}</div>
</template>

<script setup lang="ts">
import { ref, computed, onMounted } from 'vue'

const data = ref<DataType>(initialValue)
const computedValue = computed(() => data.value * 2)

onMounted(() => {
  // lifecycle hook
})
</script>

Option C: Angular

// Example: Angular component with TypeScript
import { Component, OnInit } from '@angular/core'

@Component({
  selector: 'app-my-component',
  templateUrl: './my-component.component.html',
  styleUrls: ['./my-component.component.css']
})
export class MyComponent implements OnInit {
  data: DataType

  constructor(private service: MyService) {}

  ngOnInit(): void {
    // initialization
  }
}

Option D: Svelte

<script lang="ts">
  import { onMount } from 'svelte'

  let data: DataType = initialValue

  $: computedValue = data * 2

  onMount(() => {
    // lifecycle
  })
</script>

<div>{data}</div>

Critical Stack Requirements (CUSTOMIZE THIS)

Feature Your Pattern Not Allowed
State [Your state management] [What to avoid]
Routing [Your router library] [What to avoid]
Styling [Your styling approach] [What to avoid]
Testing [Your testing framework] [What to avoid]

Quick Patterns Reference (CUSTOMIZE THIS)

Component Structure

[Your framework's component structure example]

State Management

[Your state management pattern example]

Routing

[Your routing pattern example]

Forms

[Your form handling pattern example]

API Calls

[Your API integration pattern example]

Detailed Guides

When you need specific implementation details, read:


Common Anti-Patterns to Avoid (CUSTOMIZE THIS)

Add framework-specific anti-patterns here:

  1. ❌ [Anti-pattern 1 for your framework]
  2. ❌ [Anti-pattern 2 for your framework]
  3. ❌ [Anti-pattern 3 for your framework]
  4. ❌ Not code-splitting routes
  5. ❌ Inline anonymous functions in render
  6. ❌ Not memoizing expensive computations

Dependencies Reference (CUSTOMIZE THIS)

{
  "your-framework": "Core framework",
  "your-state-library": "State management",
  "your-router": "Routing",
  "your-form-library": "Form handling",
  "your-testing-framework": "Testing"
}

When to Consult This Skill

  • Designing component architecture
  • Implementing state management
  • Creating routing structures
  • Handling forms and validation
  • Optimizing bundle size and performance

Related Skills

Skill When to Consult
provider-resilience Any feature that calls GitHub/Azure DevOps APIs
security-patterns XSS, CSRF, input sanitization
api-contract-validation Frontend models vs backend JSON

Customization Instructions

  1. Copy this directory to a new skill (e.g., frontend-react-patterns)
  2. Update frontmatter with your skill name and description
  3. Replace all examples with your framework's patterns
  4. Create detailed guides in separate .md files
  5. Update the architect subagent to reference this skill
  6. Delete this template or move it to drafts/skills/
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Grep
  3. 03Glob
  4. 04WebSearch

FAQ

Что делает скилл example-frontend-patterns?

TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.)

Как установить скилл example-frontend-patterns?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл example-frontend-patterns запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить example-frontend-patterns с