mcpField
T
toss-frontend-fundamentals

toss-frontend-fundamentals

github.com/leekenseiTesting & quality152 installsUpdated 39w ago
Repository

About toss-frontend-fundamentals

Toss Frontend Fundamentals is a skill for frontend code review, implementation, and refactoring, organized around readability, predictability, cohesion, and coupling. Its rule lists and usage guidance support concrete review feedback and code improvement examples.

Key features

  1. 01Assess frontend code against four criteria
  2. 02Apply a catalog of readability rules
  3. 03Check behavior for predictability
  4. 04Guide code organization and cohesion
  5. 05Offer guidance for reducing coupling

Use cases

  1. 01Review existing frontend code
  2. 02Write a new component or function
  3. 03Refactor code to improve quality

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/leekensei/agent-skills --skill toss-frontend-fundamentals

After installing, type/toss-frontend-fundamentalsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
TRADEOFFS.md
rules/
_sections.md
cohesion-colocate-modified-files.md
cohesion-eliminate-magic-numbers.md
cohesion-form-structure.md
coupling-allow-duplication.md
coupling-eliminate-props-drilling.md
coupling-single-responsibility.md
predictability-consistent-return-types.md
predictability-expose-hidden-logic.md
predictability-unique-names.md
readability-context-abstract-implementation.md
readability-context-separate-code-paths.md
readability-context-split-by-logic-type.md
readability-flow-left-to-right.md
readability-flow-reduce-time-travel.md
readability-flow-simplify-ternary.md
readability-naming-complex-conditions.md
readability-naming-magic-numbers.md

Details

From the project README

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가지 기준을 모두 만족하기 어려울 때는 트레이드오프 가이드 참조.

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

참고

Comments

Markdown supported