principle-foundational-thinking
하는 일
로직을 쓰기 전에 데이터 형태와 작업 순서를 설계하는 규칙을 에이전트에 제공합니다. 튼튼한 기반을 원하고 재작성을 줄이려는 엔지니어를 위한 스킬입니다.
사용하는 경우
- ✓핵심 타입이나 데이터 구조를 고르려고 할 때.
- ✓설정 작업을 기능보다 먼저 해야 할지 정할 때.
- ✓시스템의 여러 부분이 같은 공유 데이터를 바꿀 수 있을 때.
스킬 링크
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-foundational-thinking/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“동기화 로직을 쓰기 전에 핵심 데이터 타입부터 올바르게 잡아 주세요. 그러면 나머지가 단순해질 겁니다.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 핵심 데이터 형태를 정의하고, 그 데이터가 어떻게 접근되는지 추적합니다. 테스트와 타입 같은 공유 설정을 기능보다 먼저 정리하며, 새 기반을 추가하기 전에 쓰이지 않는 코드를 제거합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Foundational Thinking
Structural decisions protect option value. Code-level decisions protect simplicity.
Data structures first. Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths.
At code level, DRY the structure, not every line. Types and data models should converge. Three similar statements still beat a premature abstraction. Prefer explicit over clever. Test behavior and edge cases, not line counts.
Concurrency corollary. Before sharing state between actors, ask "what happens if another actor modifies this concurrently?" If not "nothing", isolate.
Scaffold first. If something helps every later phase, do it first. Ask "does every subsequent phase benefit from this existing?" CI, linting, test infrastructure, and shared types are scaffold. Sequence for option value: setup before features, tests before fixes. Keep commits small and single-purpose.
Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.
Subtraction comes before scaffolding. Remove dead code first, then lay foundations.
자주 묻는 질문
데이터 구조를 먼저 맞춰야 하는 이유는?
데이터 형태가 주요 경로에 맞으면, 그 뒤의 코드는 자연스럽게 분명해지는 경우가 많습니다.
모든 것을 추상화한다는 뜻인가요?
아닙니다. 이 스킬은 명시적인 코드를 선호하고, 이른 추상화를 경계합니다.
공유 상태는 어떻게 하나요?
동시에 작동하는 주체들이 상태를 공유할 필요가 정말 있는지 먼저 묻고, 필요가 없다면 분리합니다.
상세 정보
작성자의 원본 설명
Apply before writing logic: choosing core types and data structures, sequencing scaffold-vs-feature work, asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.
repo: cursor/plugins
인기도
- GitHub 스타
- 15k
- 순위
- #10978
- 라이선스
- —
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
advisor
15k사용자가 켜 두면, 큰 결정 전이나 오류에 막혔을 때처럼 핵심 시점에 에이전트가 더 강력한 두 번째 모델에게 자문을 구하도록 합니다.
check-agent-compatibility
15kAI 코딩 에이전트가 저장소를 시작하고, 검증하고, 문서화할 수 있는지 전체 점검해, 하나의 호환성 점수와 주요 문제를 돌려줍니다.
cli-for-agents
15kAI 에이전트가 프롬프트 없이 실행할 수 있도록 명령줄 도구를 설계하거나 검토하며, 명확한 도움말과 예시를 담도록 에이전트를 가르칩니다.
continual-learning
15k과거 채팅을 검토하는 일을 전담 메모리 업데이터에게 맡겨서 AGENTS.md 메모를 최신 상태로 유지합니다.