본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)310k · #105

prototype

하는 일

사용자가 어떤 것이 어떻게 작동하거나 보여야 하는지에 대한 질문 하나에 답하도록 일회용 코드를 만듭니다. 실제로 만들기 전에 아이디어를 시험해 보려는 제품 담당자와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓논리나 상태 모델이 자연스러운지 확인하고 싶을 때.
  • ✓여러 가지 아주 다른 화면 버전을 비교하고 싶을 때.
  • ✓무언가가 어떻게 작동해야 할지 확신이 없어서 먼저 시험하고 싶을 때.

스킬 링크

https://github.com/mattpocock/skills/blob/main/skills/engineering/prototype/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mattpocock/skills/blob/main/skills/engineering/prototype/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“결제 페이지의 레이아웃 세 가지를 볼 수 있도록 빠른 일회용 프로토타입이 필요합니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 질문에 따라 두 경로 중 하나를 고릅니다. 논리를 테스트할 공유 가능한 페이지나, 디자인을 보기 위해 전환 가능한 화면 여러 개입니다. 코드가 프로토타입임을 분명히 표시합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Prototype

A prototype is throwaway code that answers a question. The question decides the shape.

Pick a branch

Identify which question is being answered, using the user's prompt, the surrounding code, or by asking if the user is around:

  • "Does this logic / state model feel right?" → LOGIC.md. Build a single shareable HTML file (free-play buttons plus tabbed guided walkthroughs) that pushes the state machine through cases that are hard to reason about on paper, and that a non-developer can drive.
  • "What should this look like?" → UI.md. Generate several radically different UI variations on a single route, switchable via a URL search param and a floating bottom bar.

The two branches produce very different artifacts, so getting this wrong wastes the whole prototype. If the question is genuinely ambiguous and the user isn't reachable, default to whichever branch better matches the surrounding code (a backend module → logic; a page or component → UI) and state the assumption at the top of the prototype.

Rules that apply to both

  1. Throwaway from day one, and clearly marked as such. Locate the prototype code close to where it will actually be used (next to the module or page it's prototyping for) so context is obvious, but name it so a casual reader can see it's a prototype, not production. For throwaway UI routes, obey whatever routing convention the project already uses; don't invent a new top-level structure.
  2. Trivial to run. A UI prototype starts from one command in the project's task runner: pnpm <name>, python <path>, bun <path>, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it.
  3. No persistence by default. State lives in memory. Persistence is the thing the prototype is checking, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE, wipe me" name.
  4. Skip the polish. No tests, no error handling beyond what makes the prototype runnable, no abstractions. The point is to learn something fast.
  5. Surface the state. After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed.
  6. Capture it when done. Fold any validated decision into the real code, then capture the prototype itself as a primary source: commit it to a throwaway branch, out of main, and leave a context pointer to that branch on the implementation issue. Capture the answer too (the verdict and the question it settled) in the issue or a commit. The main branch keeps only the validated decision.
자주 묻는 질문

프로토타입은 남기기 위한 것인가요?

아닙니다. 일회용 코드이며, 운영 코드로 오해되지 않도록 분명히 표시합니다.

두 경로는 어떻게 다른가요?

하나는 논리가 어떻게 동작하는지 한 파일에서 공유 가능하게 테스트하고, 다른 하나는 한 페이지에서 여러 인터페이스 버전을 보여 줍니다.

어느 경로를 골라야 할지 모르면 어떻게 하나요?

주변 코드를 기준으로 고르며, 그 가정을 프로토타입 맨 위에 적습니다.

상세 정보

작성자의 원본 설명

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

repo: mattpocock/skills

인기도

GitHub 스타
310k
순위
#105
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬