OpenClaw, Claude Code , AI Agent 등을 이용하여 AI 비서 자동화 모임 정보 공유 카페입니다.
서울시 금천구
IT/모바일
7 Claude Skills for Better Vibe Coding-01 | 당근 카페
Ritz
인증 10회 · 3일 전
7 Claude Skills for Better Vibe Coding-01
7 Claude Skills You Need to Master for Better Vibe Coding-01
처음으로 바이브 코딩을 시도하는 거의 모든 개발자는 동일한 아크를 통과합니다. 처음에는 믿을 수 없다고 느낍니다. 짧은 프롬프트, 인스턴트 코드, 지붕을 통한 생산성. 그런 다음 며칠 후 좌절감이 나타나기 시작합니다. Claude는 갑자기 프로젝트 컨텍스트를 "잊어 버리거나"이전과 일치하지 않는 코드를 생성하거나 스택에 특정한 것이 필요할 때 너무 일반적인 것으로 응답합니다.
대부분의 개발자들이 깨닫지 못하는 것은 이것이다: 문제는 클로드가 아니다. 그것이 우리가 그것과 소통하는 방법입니다.
Claude는 매우 정밀하게 지침에 응답하도록 훈련 받았습니다. 즉, 출력의 품질은 귀하가 제공하는 입력의 품질에 직접적으로 비례합니다. 신속한 엔지니어링에 대한 연구에 따르면 XML 구조화된 프롬프트만 사용하면 대화 프롬프트에 비해 코드 품질과 정확도가 30~40% 향상될 수 있습니다. 그리고 그것은 우리가 다룰 7 가지 기술 중 단지 하나의 기술입니다.
이 기사는 "속임수"또는 일시적인 해킹에 관한 것이 아닙니다. 그것은 당신이 내면화되면 7 가지 기술에 관한 것입니다 ...
1. XML Structured Prompting — How Claude Thinks Best
이것은 가장 기본적인 기술이며 가장 즉각적인 영향을 미치는 기술입니다.
Claude는 고도로 구조화 된 데이터에 대해 교육을 받았으며 대화 형 데이터보다 XML 태그를 사용하는 프롬프트에 훨씬 더 잘 응답합니다. 명확하게 정의된 태그에 지침, 컨텍스트 및 요구 사항을 래핑할 때 Claude는 어떤 부분이 어떤 부분인지 추측할 필요가 없습니다. 모든 것이 이미 명시되어 있습니다.
당신이 그들을 나란히 놓을 때 그 차이는 명백해진다 :
❌ BEFORE — Conversational prompt
"Build a login function for a React app using TypeScript and Firebase,
use async/await, include error handling, and return a user object on
success or an error message on failure."
✅ AFTER — XML Structured Prompt
<instructions>
Build a login authentication function for this application
</instructions>
<context>
React 18 + TypeScript, authentication uses Firebase Auth
Follow the patterns established in the existing AuthUtils.ts file
</context>
<requirements>
- Use async/await (not .then/.catch)
- Comprehensive error handling for all Firebase error codes
- Return type: Promise<{ user: User } | { error: string }>
- Do not import any libraries beyond what's already in package.json
</requirements>
<constraints>
- No console.log statements in production code
- Follow existing naming conventions (camelCase, "use" prefix for hooks)
</constraints>
The output is noticeably more precise and requires far fewer revision rounds. Here are the tags that come up most often:
<requirements> — specific requirements that must be met
<constraints> — hard limits that can't be crossed (bundle size, no new deps, etc.)
<example> — a sample of the expected output format
<relevant_files> — files that are relevant to this specific task
You don’t need all of them every time. For small tasks, two or three tags are enough. What matters is being consistent — so Claude always has a clear structure to work from.
2. Role Assignment — Activating Claude’s “Expert Mode”
Claude는 다양한 도메인에 대한 깊은 지식을 가지고 있습니다. 그러나 컨텍스트가 없으면 일반적이고 안전한 응답에 기본값이 지정됩니다. 프롬프트가 시작될 때 역할을 할당하면 특정 지식 패턴을 효과적으로 활성화하고 실제 문제와 더 선명하고 관련성이 높은 응답을 얻습니다.
이것은 기믹이 아닙니다. 언어 모델이 작동하는 방식에 대한 문서화 된 행동입니다. 역할 할당은 Claude가 올바른 톤, 적절한 수준의 기술적 깊이 및 올바른 우선 순위를 선택하는 데 도움이됩니다.
❌ BEFORE — No role
"Review this database query and suggest optimizations."
✅ AFTER — Specific role
"You are a senior database engineer specializing in PostgreSQL
and query optimization for applications handling millions of rows.
Review this query and identify bottlenecks that are likely to
surface when this hits production-scale data."
Roles that consistently work well across common vibe coding scenarios:
// Security-focused code review
"You are a security-focused full-stack developer who always
considers the OWASP Top 10 in every code review."
// System architecture
"You are an experienced software architect who designs systems
for startups planning to scale from 0 to 1 million users
within 18 months."
// Debugging production issues
"You are a senior engineer who specializes in debugging
Node.js memory leaks and performance bottlenecks
in production environments."
// Frontend performance
"You are a React performance expert who specializes in
eliminating unnecessary re-renders and reducing bundle size."
한 가지 명심해야 할 점은 너무 길고 과부하가 걸린 역할이 실제로 역효과를냅니다. 1개에서 2개의 구체적이고 관련된 문장은 모든 것을 다루려는 단락을 능가합니다.
3. CLAUDE.md — The Persistent Memory That Changes Everything
이것은 Claude Code에서 가장 과소 평가 된 기능 중 하나이며, 일단 제대로 사용하기 시작하면 전체 바이바이 코딩 워크 플로우가 이동합니다.
CLAUDE.md는 모든 세션이 시작될 때 Claude Code가 자동으로 읽는 특별한 파일입니다. 바이브 코딩의 가장 큰 구조적 문제에 대한 직접적인 솔루션입니다. AI는 세션 사이에 메모리가 없습니다. CLAUDE.md를 사용하면 매번 수동으로 아무것도 붙여 넣지 않고 프로젝트 컨텍스트, 코딩 표준 및 규칙을 일관되게 따르는 Claude에게 지속적인 메모리를 제공합니다.
프로젝트 디렉터리 내에서 이 명령으로 시작 파일 생성:
/init
Then build it out and shape it to your project:
<!-- CLAUDE.md — Read automatically by Claude at the start of every session -->
# TaskFlow - Project Context
## Tech Stack
- Backend: Node.js 20 + Express 5, PostgreSQL 16
- Frontend: React 18 + TypeScript 5, Tailwind CSS 3
- Auth: JWT (jsonwebtoken), passwords hashed with bcrypt (12 rounds)
- Queue: BullMQ + Redis
- Testing: Vitest + Supertest
- Deploy: Docker (local), cloud provider (production)
## Architecture Rules
- Folder structure: /routes → /services → /models (no DB calls in services)
- All API responses follow: `{ data, error, meta }` shape
- Never use SELECT * - always name columns explicitly
- All async functions must have try/catch
- Error handling uses the custom AppError class in /lib/errors.ts
## Code Style
- camelCase for variables and functions
- PascalCase for classes and React components
- "use" prefix for all custom hooks
- Files max 300 lines - if longer, split into modules
## What NOT to Do
- Never hardcode secrets - always use process.env.*
- No console.log in production code - use logger.ts
- Do not install new dependencies without confirming first
- Do not modify files unrelated to the current task
공식 Claude Code 문서에 따르면 CLAUDE.md는 모든 세션에 일관되게 적용하려는 Bash 명령, 코드 스타일 환경 설정 및 워크플로 규칙을 포함하여 코드만으로는 추론할 수 없는 Claude에게 지속적인 컨텍스트를 제공하는 가장 좋은 방법입니다.
견고한 CLAUDE.md에 한 시간 투자하면 프로젝트의 수명 동안 수백 시간의 수정과 불일치를 절약 할 수 있습니다.