소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill frontend-patterns명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | frontend-patterns |
| description | Frontend patterns — debounce, double-submit prevention, error boundaries. |
Apply debounce whenever user input triggers expensive side effects (API calls, heavy computation). Without it, every keystroke fires a request — degrading both UX and server load.
When to use: search/autocomplete inputs, address or tag lookup, form field validation against an API, resize/scroll event handlers.
Framework-agnostic pattern (adapt to the project's stack):
// Reusable debounce utility — use lodash.debounce, use-debounce, or VueUse's useDebounceFn
function debounce<T extends (...args: unknown[]) => void>(fn: T, delay: number): T {
let timer: ReturnType<typeof setTimeout>
return ((...args) => { clearTimeout(timer); timer = setTimeout(() => fn(...args), delay) }) as T
}
// Autocomplete example
const searchUsers = debounce(async (query: string) => {
if (query.length < 2) return
results.value = await api.users.search(query)
}, 300)
Rules:
AbortController)Every form submit or action button must be guarded against duplicate submissions. Two clicks = two POST requests = corrupted data, duplicate payments, or duplicate records.
Rules:
isSubmitting state; set it true on submission start, false on completion (success or error)isSubmitting is true — never just rely on UX// Framework-agnostic guard
async function handleSubmit() {
if (isSubmitting) return // ← guard: bail on double-click
isSubmitting = true
try {
await api.createOrder(payload)
} finally {
isSubmitting = false // ← always release, even on error
}
}
finally (or equivalent) — releasing the lock only on success is a common bug that permanently disables the form after an errorA runtime error in one component must not crash the entire UI. Wrap every route/page-level component in an error boundary that shows a user-facing fallback.
componentDidCatch, or react-error-boundary (<ErrorBoundary FallbackComponent={...}>)onErrorCaptured in a wrapper component, or app.config.errorHandler for global handlingErrorHandler and provide it at the root level ({ provide: ErrorHandler, useClass: AppErrorHandler })<svelte:boundary> (Svelte 5) or a wrapper component with onerrorRules:
window.addEventListener('unhandledrejection', ...) to catch uncaught promise rejections and forward them to the project's error tracking service (Sentry, Datadog, etc.)