Skip to content
kakaotalk-control logo

KakaoTalk Control Skill

kakaotalk-control

macOS 카카오톡 제어 skill. AppleScript GUI scripting으로 메시지 전송, 앱 활성화, 채팅방 검색 수행. 카카오톡 자동화, 메시지 보내기, 카톡 제어 관련 작업 시 사용.

SKILL.md

Full skill instructions

KakaoTalk Control Skill

macOS에서 AppleScript를 사용하여 카카오톡을 제어합니다.

사전 요구사항

접근성 권한 설정 (필수)

  1. System Preferences > Security & Privacy > Privacy > Accessibility
  2. Terminal (또는 사용 중인 터미널 앱) 추가
  3. Claude Code 사용 시 해당 앱도 추가

기본 명령어

1. 카카오톡 실행/활성화

osascript -e 'tell application "KakaoTalk" to activate'

2. 메시지 전송 (현재 열린 채팅창)

한글 깨짐 방지를 위해 클립보드 활용:

# 메시지를 클립보드에 복사 후 붙여넣기
echo -n "보낼 메시지" | pbcopy && osascript -e '
tell application "KakaoTalk" to activate
delay 0.5
tell application "System Events"
    keystroke "v" using command down
    delay 0.2
    key code 36 -- Enter
end tell
'

3. 채팅방 검색 후 열기

# 채팅방 검색
CHAT_NAME="채팅방이름"
echo -n "$CHAT_NAME" | pbcopy && osascript -e '
tell application "KakaoTalk" to activate
delay 0.5
tell application "System Events"
    keystroke "f" using command down
    delay 0.3
    keystroke "v" using command down
    delay 0.5
    key code 36 -- Enter
end tell
'

4. 특정 채팅방에 메시지 전송 (통합)

CHAT_NAME="채팅방이름"
MESSAGE="보낼 메시지"

# 1. 채팅방 검색 및 열기
echo -n "$CHAT_NAME" | pbcopy && osascript -e '
tell application "KakaoTalk" to activate
delay 0.5
tell application "System Events"
    keystroke "f" using command down
    delay 0.3
    keystroke "v" using command down
    delay 0.5
    key code 36
    delay 0.5
end tell
'

# 2. 메시지 전송
echo -n "$MESSAGE" | pbcopy && osascript -e '
tell application "System Events"
    keystroke "v" using command down
    delay 0.2
    key code 36
end tell
'

5. 카카오톡 창 닫기

osascript -e 'tell application "KakaoTalk" to quit'

유용한 키보드 단축키

단축키기능Key Code
Cmd+F채팅방 검색-
Cmd+N새 채팅-
Enter메시지 전송36
Escape취소/닫기53
Cmd+W현재 창 닫기-

주의사항

  1. 창 구분 불가: 여러 채팅창이 하나의 윈도우로 인식됨
  2. 화면 잠금: 노트북 잠금 상태에서 동작 안함
  3. 타이밍: delay 값은 시스템 속도에 따라 조정 필요
  4. 한글 입력: 반드시 클립보드(pbcopy) 방식 사용

디버깅

UI 요소 확인

osascript -e '
tell application "System Events"
    tell process "KakaoTalk"
        get entire contents of window 1
    end tell
end tell
'

현재 창 정보

osascript -e '
tell application "System Events"
    tell process "KakaoTalk"
        get properties of window 1
    end tell
end tell
'

기능 확장 가이드

이 skill에 새로운 기능이 필요하면 아래 절차를 따릅니다:

새 기능 추가 방법

  1. 이 파일(.claude/​skills/​kakaotalk-control/​SKILL.md)을 직접 수정
  2. "기본 명령어" 섹션에 새 기능 추가
  3. 필요시 bash 스크립트나 AppleScript 코드 포함

추가 가능한 기능 예시

  • 읽지 않은 메시지 확인
  • 특정 시간에 메시지 예약 전송
  • 여러 채팅방에 동시 메시지 전송
  • 채팅방 목록 가져오기

AppleScript 참고 문법

-- 클릭
click button "버튼이름" of window 1

-- 텍스트 필드 입력
set value of text field 1 of window 1 to "텍스트"

-- 메뉴 선택
click menu item "항목" of menu "메뉴" of menu bar 1

-- 조건부 실행
if exists button "확인" of window 1 then
    click button "확인" of window 1
end if

주의: 이 skill 수정 시

  • YAML frontmatter의 name과 description은 유지
  • 새 기능은 "기본 명령어" 섹션에 번호 순서대로 추가
  • 테스트 후 동작 확인된 코드만 포함

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View