toss-frontend-fundamentals

토스 Frontend Fundamentals 기반 코드 품질 가이드. 코드 리뷰, 새 코드 작성, 리팩토링 시 4가지 기준(가독성, 예측 가능성, 응집도, 결합도)으로 피드백 제공. 프론트엔드 코드 품질, 클린 코드, 코드 개선 요청 시 활성화.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "toss-frontend-fundamentals" with this command: npx skills add leekensei/agent-skills/leekensei-agent-skills-toss-frontend-fundamentals

Toss Frontend Fundamentals

"좋은 프론트엔드 코드는 변경하기 쉬운 코드다"

언제 이 스킬을 사용하는가

  • 프론트엔드 코드 리뷰 요청 시
  • 새로운 컴포넌트/함수 작성 시
  • 기존 코드 리팩토링 시
  • "코드 품질", "클린 코드", "개선" 관련 요청 시

4가지 핵심 기준

기준설명영향도
가독성코드를 얼마나 빠르게 이해할 수 있는가CRITICAL
예측 가능성함수/컴포넌트가 예상대로 동작하는가HIGH
응집도함께 수정될 코드가 함께 있는가HIGH
결합도코드 수정 시 영향 범위가 적절한가MEDIUM

규칙 목록

가독성 (Readability) - 8개 규칙

맥락 줄이기

규칙 ID규칙상세
readability-context-separate-code-paths같이 실행되지 않는 코드 분리하기상세
readability-context-abstract-implementation구현 상세 추상화하기상세
readability-context-split-by-logic-type로직 종류에 따라 함수 쪼개기상세

이름 붙이기

규칙 ID규칙상세
readability-naming-complex-conditions복잡한 조건에 이름 붙이기상세
readability-naming-magic-numbers매직 넘버에 이름 붙이기상세

위에서 아래로 읽히게 하기

규칙 ID규칙상세
readability-flow-reduce-time-travel시점 이동 줄이기상세
readability-flow-simplify-ternary삼항 연산자 단순하게 하기상세
readability-flow-left-to-right왼쪽에서 오른쪽으로 읽히게 하기상세

예측 가능성 (Predictability) - 3개 규칙

규칙 ID규칙상세
predictability-unique-names이름 겹치지 않게 관리하기상세
predictability-consistent-return-types같은 종류의 함수는 반환 타입 통일하기상세
predictability-expose-hidden-logic숨은 로직 드러내기상세

응집도 (Cohesion) - 3개 규칙

규칙 ID규칙상세
cohesion-colocate-modified-files함께 수정되는 파일을 같은 디렉토리에 두기상세
cohesion-eliminate-magic-numbers매직 넘버 없애기상세
cohesion-form-structure폼의 응집도 생각하기상세

결합도 (Coupling) - 3개 규칙

규칙 ID규칙상세
coupling-single-responsibility책임을 하나씩 관리하기상세
coupling-allow-duplication중복 코드 허용하기상세
coupling-eliminate-props-drillingProps Drilling 지우기상세

사용 방법

코드 리뷰 시

  1. 위 4가지 기준 순서대로 검토
  2. 위반 사항 발견 시 해당 규칙 파일 참조하여 구체적 피드백 제공
  3. 개선 코드 예시 함께 제시

새 코드 작성 시

  1. 가독성 우선: 맥락 최소화, 명확한 이름
  2. 예측 가능하게: 일관된 패턴 사용
  3. 응집도 고려: 관련 코드 함께 배치
  4. 결합도 낮추기: 책임 분리

트레이드오프

4가지 기준을 모두 만족하기 어려울 때는 트레이드오프 가이드 참조.

일반적인 우선순위: 가독성 > 예측 가능성 > 응집도 > 결합도

참고

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

Repository Source
86.3K23Kvercel
Automation

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

Repository Source
60.6K23Kvercel
Automation

supabase-postgres-best-practices

Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

Repository Source
35.3K1.6Ksupabase
Automation

sleek-design-mobile-apps

Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests ("design an app that does X") and specific ones ("list my projects", "create a new project", "screenshot that screen").

Repository Source