一键导入
example-frontend-patterns
TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compressed-prose response style for the orchestrator (opt-in via behavior.caveman_mode). Drops articles, fillers, and transitional prose; preserves code, paths, JSON/TOML, and quoted text verbatim.
Maestro project patterns — Rust CLI with ratatui TUI, tokio async, Claude CLI process management, and stream-json parsing.
TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.)
Defensive patterns for GitHub (gh) and Azure DevOps (az) CLI interactions — error handling, idempotency, rate limits, missing resources.
API contract validation patterns for ensuring client-side models match backend JSON responses. Prevents decoding failures from schema mismatches. Tech-stack agnostic.
TEMPLATE - Mobile development patterns. Copy and customize for your mobile framework (React Native, Flutter, Swift, Kotlin, etc.)
| name | example-frontend-patterns |
| version | 1.0.0 |
| description | TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.) |
| allowed-tools | Read, Grep, Glob, WebSearch |
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.
| 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 |
Replace this section with your framework-specific requirements:
// 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>
}
<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>
// 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
}
}
<script lang="ts">
import { onMount } from 'svelte'
let data: DataType = initialValue
$: computedValue = data * 2
onMount(() => {
// lifecycle
})
</script>
<div>{data}</div>
| 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] |
[Your framework's component structure example]
[Your state management pattern example]
[Your routing pattern example]
[Your form handling pattern example]
[Your API integration pattern example]
When you need specific implementation details, read:
Add framework-specific anti-patterns here:
{
"your-framework": "Core framework",
"your-state-library": "State management",
"your-router": "Routing",
"your-form-library": "Form handling",
"your-testing-framework": "Testing"
}
| 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 |
frontend-react-patterns)drafts/skills/