본문으로 건너뛰기
Skillpedia
이메일 및 메시지7.4k · #13254

twilio-sms

하는 일

이 스킬은 Twilio 전화번호와 문자 메시지를 관리합니다. 번호 목록 조회, 수신 또는 발신 문자 확인을 포함합니다. Twilio로 문자를 보내고 받는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓Twilio로 문자 메시지를 보내고 싶을 때.
  • ✓최근 수신 또는 발신 메시지를 확인하고 싶을 때.
  • ✓내가 가진 Twilio 전화번호 목록을 보거나 관리하고 싶을 때.

스킬 링크

https://github.com/steipete/agent-scripts/blob/main/skills/twilio-sms/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“팀에게 회의가 오후 3시로 바뀌었다는 문자를 보내고, 전달됐는지 확인해 주세요.”

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

작동 방식

에이전트는 Twilio 도구와 자격 증명이 있는지 출력하지 않고 확인하고, 접근 권한을 검증한 뒤 메시지를 보내거나 읽습니다. 요청하지 않는 한 메시지 내용은 보여 주지 않습니다.

기술 내용 (원본 SKILL.md)

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

Twilio SMS

Use for Twilio phone-number and SMS work: create/buy numbers, list owned numbers, keep/label numbers, send texts, and check inbound/outbound messages.

Safety

  • Never print Account SIDs, auth tokens, API secrets, TOTP codes, or full 1Password item JSON.
  • Do not store real phone numbers, SIDs, names, or account-specific item IDs in this skill.
  • Use $one-password for secret reads. op stays tmux-only.
  • If desktop 1Password access is needed, unset service-account auth for those commands: env -u OP_SERVICE_ACCOUNT_TOKEN op ....
  • Print credential shape only: field present, length, prefix class if useful.
  • Public writes or logs: avoid leaking message bodies unless the user asked to read/check SMS.

Credential Route

  1. Check Twilio CLI/profile:
    • twilio --version or npx -y twilio-cli --version
    • twilio profiles:list or npx -y twilio-cli profiles:list
  2. Check exact env presence only:
    • TWILIO_ACCOUNT_SID
    • TWILIO_AUTH_TOKEN
    • optional API key/secret vars
  3. If only partial env exists, search 1Password metadata first.
  4. Prefer an item with fields matching:
    • TWILIO_ACCOUNT_SID
    • TWILIO_AUTH_TOKEN
    • optional TWILIO_FROM_NUMBER
  5. If op only sees a restricted vault, retry desktop-backed reads with env -u OP_SERVICE_ACCOUNT_TOKEN.
  6. Verify auth before any purchase/send:
curl -sS -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID.json"

CLI Setup

Twilio CLI profile creation requires account auth token, not just API key creds:

npx -y twilio-cli profiles:create "$TWILIO_ACCOUNT_SID" \
  --auth-token "$TWILIO_AUTH_TOKEN" \
  --profile default --force --silent
npx -y twilio-cli profiles:use default

Use npx -y twilio-cli when twilio is not installed.

Numbers

List owned:

npx -y twilio-cli api:core:incoming-phone-numbers:list \
  --properties phoneNumber,friendlyName,capabilities

Search US local SMS-capable inventory:

npx -y twilio-cli api:core:available-phone-numbers:local:list \
  --country-code US --sms-enabled --voice-enabled --limit 5

If the CLI shape is awkward or missing flags, use REST:

curl -sS -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/AvailablePhoneNumbers/US/Local.json?SmsEnabled=true&VoiceEnabled=true&PageSize=5"

Buy one candidate:

curl -sS -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
  -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/IncomingPhoneNumbers.json" \
  --data-urlencode "PhoneNumber=$PHONE_NUMBER"

Verify ownership/capabilities after purchase. Twilio JSON uses lowercase keys:

capabilities.sms
capabilities.mms
capabilities.voice

Mark numbers the user wants to keep:

npx -y twilio-cli api:core:incoming-phone-numbers:update \
  --sid "$PHONE_NUMBER_SID" \
  --friendly-name "KEEP - <purpose>"

Retention rule: a number is kept while it remains in the Twilio account and billing is healthy. Do not release/delete unless explicitly asked.

SMS

Send:

npx -y twilio-cli api:core:messages:create \
  --from "$FROM_NUMBER" \
  --to "$TO_NUMBER" \
  --body "$BODY" \
  -o json

Fetch status:

npx -y twilio-cli api:core:messages:fetch --sid "$MESSAGE_SID" -o json

Check inbound to a number:

npx -y twilio-cli api:core:messages:list \
  --to "$NUMBER" --limit 20 -o json

Check outbound from a number:

npx -y twilio-cli api:core:messages:list \
  --from "$NUMBER" --limit 20 -o json

Twilio CLI JSON can return an array for single-resource commands. Parse defensively:

jq 'if type=="array" then .[0] else . end'

Notes

  • International SMS may show an alphanumeric or carrier sender instead of the purchased US number.
  • US SMS can be compliance-gated. If sending to US recipients fails, check A2P/10DLC registration state before retrying blindly.
  • Trial accounts may restrict recipients.
자주 묻는 질문

Twilio 비밀 정보가 출력에 보이나요?

아닙니다. 스킬은 계정 ID, 토큰, 비밀 정보를 절대 출력하지 않도록 설명합니다.

묻지 않고 번호를 구입하나요?

아닙니다. 구입이나 발송 전에 접근 권한을 확인하며, 요청했을 때만 실행합니다.

자격 증명은 어디에서 가져오나요?

환경 설정이나 비밀번호 관리자에서 가져오며, 비밀 정보 읽기는 전용 도우미 스킬을 통해 처리합니다.

상세 정보

작성자의 원본 설명

Twilio SMS CLI: buy/list/keep numbers, send/check messages, credential routing.

repo: steipete/agent-scripts

인기도

GitHub 스타
7.4k
순위
#13254
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬