Modern Web Guidance(모던 웹 가이던스) 설정 방법, Claude Code 채팅창 한글 Enter 버그까지 찾아 준 Chrome 공식 스킬

요약
- Modern Web Guidance는 Chrome 팀이 만든 코딩 에이전트용 스킬이에요. 에이전트가 옛날 자바스크립트 우회책 대신 최신 HTML·CSS·웹 API를 쓰도록 안내해요.
- search·retrieve로 가이드를 찾고, legacy-scan으로 채팅 입력창의 한글(IME) Enter 버그를 찾아 고쳤어요. Claude Code 플러그인 설치까지 했어요.
- 순서: search로 맛보기 → legacy-scan → Claude Code 플러그인 설치 → 사용 기록 끄기
- 버전: modern-web-guidance 1.0.3, Claude Code 2.1.336, Node v22.23.5
- 가격: 무료, API 키 없음. 단 사용 기록(텔레메트리)이 기본으로 켜져 있어요.
2026년 12월 4일, 리눅스 컨테이너(Docker)에서 modern-web-guidance 1.0.3으로 직접 해 본 내용이에요.
Claude Code에 Modern Web Guidance를 설치하려면 claude plugin marketplace add GoogleChrome/modern-web-guidance와 claude plugin install modern-web-guidance@googlechrome 두 줄이면 돼요. 설치 전에 npx modern-web-guidance@latest legacy-scan으로 내 코드의 옛날 패턴부터 찾아볼 수 있어요.
Modern Web Guidance란?
Chrome 팀이 만든 에이전트 스킬 묶음이에요. 공식 문서는 "웹 플랫폼 전문 지식, 권장사항, 브라우저 호환성 데이터를 코딩 에이전트에 넣는 기술 모음"이라고 소개해요.
AI 코딩 에이전트는 최신 CSS·HTML로 풀 수 있는 문제도 예전 자바스크립트 방식으로 짜는 경우가 많아요. 이 스킬은 코드를 쓰기 전에 "브라우저가 이미 이걸 할 수 있나?"를 먼저 찾아보게 해요.
1.0 안정판은 2026년 11월 10일 Chrome 블로그에 발표됐어요. 이번 주 GitHub에서 소스 저장소(modern-web-guidance-src)가 별 1,420개를 더 받았어요.
준비물·버전 확인
- Node.js와 npm: 제 환경은 Node v22.23.5, npm 10.9.9였어요.
- Claude Code: 2.1.336으로 했어요. Codex, Gemini CLI, Copilot CLI 등도 공식 문서에 설치법이 있어요.
npx -y modern-web-guidance@latest --version
1.0.3
1. 설치 전에 search로 맛보기
공식 문서 예제처럼 영어로 물어봤어요. 사용 기록을 끄려고 DISABLE_TELEMETRY=1을 먼저 켰어요(5번에서 설명해요).
export DISABLE_TELEMETRY=1
npx -y modern-web-guidance@latest search "animate a dialog modal backdrop"
실제 결과의 앞부분이에요. 10개가 나왔어요.
[{"id":"light-dismiss-a-dialog","description":"Create a modal dialog that can be closed via light dismiss (i.e. clicking or tapping outside of the dialog)"},
{"id":"animate-to-from-top-layer","description":"Animate elements such as dialogs, popovers, and tooltips as they're entering/exiting the top layer."},
{"id":"prevent-page-scroll-under-modal-dialog","description":"Prevent the underlying page from scrolling while a modal dialog is open."},
공식 문서 예시에는 similarity 같은 숫자도 나오는데, 1.0.3에서 제가 받은 결과엔 id와 description만 있었어요.
2. retrieve로 가이드 원문 보기
마음에 드는 id를 골라 가이드를 꺼내요.
npx -y modern-web-guidance@latest retrieve "animate-to-from-top-layer"
Output (11.3 KB, 263 lines) saved to /tmp/mwg-guide-110-1796340086655.md to prevent CLI stdout truncation.
긴 가이드는 터미널에 다 찍지 않고 임시 파일로 저장해요. 에이전트가 그 파일을 읽는 방식이에요.
3. 내 코드의 옛날 패턴 찾기: legacy-scan
1.0에서 새로 생긴 명령이에요. 프로젝트 폴더에서 돌리면 고칠 만한 곳을 알려 줘요.
처음엔 폴리필을 잔뜩 넣은 예제(body-scroll-lock, focus-trap, dialog-polyfill 등)로 돌렸는데 0건이 나왔어요.
0 findings from 38 qualified guides.
Note: legacy-scan covers legacy patterns for 38 guides (~20% of the guidance corpus). Use 'modern-web-guidance search <topic>' for general UI/platform guidance.
규칙 목록을 원문에서 보니 ime-safe-enter-submit이 있었어요. 한국 개발자라면 한 번쯤 겪는 "한글 입력 중 Enter 치면 메시지가 이상하게 가는" 문제예요. 흔한 채팅 입력창 코드로 다시 돌렸어요.
// src/chat-input.js
const form = document.querySelector('#chat-form');
const textarea = document.querySelector('#message');
textarea.addEventListener('keydown', (event) => {
if (event.key === 'Enter' && !event.shiftKey) {
event.preventDefault();
form.requestSubmit();
}
});
npx -y modern-web-guidance@latest legacy-scan
Modern Web Guidance legacy-scan — .
Found 1 modernization opportunity across 1 guide (scanned 38 guides with deterministic rules; ~20% of the guidance corpus):
Note: Static analysis results are provisional — verify against the Keep/Drop criteria below.
* ime-safe-enter-submit (1 finding)
Flag keydown event listeners on inputs or textareas intercepting Enter (event.key or event.code "Enter") to submit forms, send messages, or trigger actions without checking event.isComposing or event.keyCode === 229, breaking IME input in CJK languages.
- src/chat-input.js:5
if (event.key === 'Enter' && !event.shiftKey) {
찾았어요. 가이드를 꺼내 보면 이유가 나와요.
npx -y modern-web-guidance@latest retrieve ime-safe-enter-submit
가이드 요지는 이래요. 한국어·일본어·중국어처럼 입력기(IME)로 글자를 조합할 때 Enter는 "조합 확정"에 쓰여요. 그런데 keydown에서 Enter를 바로 전송으로 처리하면, 글자를 아직 조합하는 중에 메시지가 가 버려요. 그래서 event.isComposing을 먼저 확인하라고 해요.
규칙의 테스트 코드에 나온 방식대로 한 줄을 넣었어요.
textarea.addEventListener('keydown', (event) => {
if (event.key === 'Enter' && !event.shiftKey) {
if (event.isComposing || event.keyCode === 229) return;
event.preventDefault();
form.requestSubmit();
}
});
다시 돌리니 0건이 됐어요.
Modern Web Guidance legacy-scan — .
0 findings from 38 qualified guides.
에이전트에게 넘기려면 --json을 붙이면 돼요. 결과에 retrieveCommand와 "남길 때·버릴 때" 기준(keepWhen, dropWhen)이 같이 나와요.
4. Claude Code에 설치하려면?
방법 1. Claude Code 플러그인 (제가 쓴 방법)
claude plugin marketplace add GoogleChrome/modern-web-guidance
claude plugin install modern-web-guidance@googlechrome
claude plugin list
Adding marketplace…SSH not configured, cloning via HTTPS: https://github.com/GoogleChrome/modern-web-guidance.git
Clone complete, validating marketplace…
✔ Successfully added marketplace: googlechrome (declared in user settings)
Installing plugin "modern-web-guidance@googlechrome"...✔ Successfully installed plugin: modern-web-guidance@googlechrome (scope: user)
Installed plugins:
❯ modern-web-guidance@googlechrome
Version: 1.0.3
Scope: user
Status: ✔ enabled
scope: user라서 내 컴퓨터의 모든 프로젝트에서 켜져요.
방법 2. 공식 CLI의 install
공식 문서가 권하는 방법이에요. 실행하면 Vercel의 skills 도구가 떠서 설치 범위를 물어봐요.
npx modern-web-guidance@latest install
● Installing to: Claude Code
◆ Installation scope
│ ● Project (Install in current directory (committed with your project))
│ ○ Global
│ ↑/↓ to navigate • Enter: confirm
화살표로 고르고 Enter를 누르면 돼요. 저는 컨테이너라 이 화면에서 멈췄어요. 같은 내용을 질문 없이 설치하는 skills add -y로 끝까지 해 봤어요.
npx -y skills add GoogleChrome/modern-web-guidance --skill modern-web-guidance -y
◇ Installed 1 skill
│ ✓ ./.agents/skills/modern-web-guidance
│ universal: Amp, Cline, Codex, Cursor, Deep Agents +15 more
│ symlinked: Claude Code
└ Done! Review skills before use; they run with full agent permissions.
프로젝트 안에 .agents/skills/modern-web-guidance가 생기고, .claude/skills에는 링크가 걸려요. skills-lock.json 파일도 생겨요.
| 칸 | 플러그인 | install / skills add |
|---|---|---|
| 설치 범위 | 사용자 전체(user) | 이 프로젝트(Project) 또는 전체(Global) |
| 생기는 것 | Claude Code 플러그인 | .agents/skills, .claude/skills 링크, skills-lock.json |
| 다른 에이전트 | Claude Code만 | Codex·Cursor 등 함께 |
5. 사용 기록(텔레메트리) 끄는 법
원문 코드(clearcut-logger.ts)를 보니 사용 기록이 기본으로 켜져 있어요. search에 넣은 검색어, 꺼낸 가이드 ID, OS, 버전, 에이전트 이름 등을 Google로 보내요. 에이전트가 만든 검색어에 프로젝트 내용이 섞일 수 있으니 꺼 두는 걸 권해요.
제가 쓴 방법은 셸 설정(~/.zshrc 등)에 환경변수를 넣는 거예요. 에이전트가 실행하는 명령에도 그대로 적용돼요.
export DISABLE_TELEMETRY=1
원문 코드 기준으로 --telemetry=false를 붙이거나 .mwgrc 파일에 "telemetry": false를 넣어도 꺼져요. 이 두 방법은 이번엔 안 해 봤어요.
하나 더 알아 둘 점이 있어요. 스킬은 에이전트에게 매번 npx -y modern-web-guidance@latest …를 실행하게 해요. 그래서 쓸 때마다 npm의 최신판이 돌아가요.
직접 해 보고 느낀 점
- 한글 입력 버그를 잡아 준 게 제일 쓸모 있었어요. 채팅·검색창이 있는 서비스라면 legacy-scan 한 번은 돌려 볼 만해요.
- legacy-scan은 아직 일부만 봐요. 전체 가이드의 약 20%인 38개 규칙만 검사해요. 0건이라고 다 최신이라는 뜻은 아니에요.
- 설치 방법이 많아서 헷갈려요. Claude Code만 쓰면 플러그인, 여러 에이전트를 같이 쓰면 install 쪽이 편해요.
- 사용 기록은 먼저 끄고 쓰세요. 기본값이 켜짐이에요.
자주 묻는 질문
Q. Modern Web Guidance는 무료인가요? API 키가 필요한가요?
무료이고 키도 필요 없어요. 저는 키 없이 search, retrieve, legacy-scan, 설치까지 다 했어요.
Q. Codex나 Cursor에서도 쓸 수 있나요?
공식 문서에 Codex(codex plugin marketplace add GoogleChrome/modern-web-guidance), Gemini CLI, Copilot CLI 설치법이 있어요. skills add로 설치하면 Cursor 등에도 함께 들어가요.
Q. legacy-scan 결과가 0건이에요. 문제없는 건가요?
꼭 그렇진 않아요. 1.0.3은 38개 가이드 규칙만 검사해요. 나머지는 search로 주제를 찾아보세요.
Q. 한글 입력 중 Enter를 치면 메시지가 두 번 가거나 잘려서 가요.
keydown에서 Enter를 처리할 때 event.isComposing(또는 event.keyCode === 229)을 먼저 확인하세요. 3번의 고친 코드처럼 하면 legacy-scan도 0건이 돼요.
Q. 검색어가 Google로 전송되나요?
기본 설정에서는 그래요. DISABLE_TELEMETRY=1을 셸 설정에 넣으면 꺼져요.
출처
- Modern Web Guidance 시작하기(공식 문서): https://developer.chrome.com/docs/modern-web-guidance/get-started
- Modern Web Guidance 1.0 발표(Chrome 블로그): https://developer.chrome.com/blog/modern-web-guidance-v1
- 스킬 저장소: https://github.com/GoogleChrome/modern-web-guidance
- 소스 저장소: https://github.com/GoogleChrome/modern-web-guidance-src
- IME Enter 규칙 테스트 코드: https://github.com/GoogleChrome/modern-web-guidance-src/blob/main/src/legacy-scan/rules/ime-safe-enter-submit.test.ts
- 사용 기록 코드: https://github.com/GoogleChrome/modern-web-guidance-src/blob/main/src/cli/telemetry/clearcut-logger.ts



