본문으로 건너뛰기
cccskills
무료GitHub에 공개

cxc-remote

Use for Telegram/Discord bridge setup. Triggers: remote, messenger, pairing, tokens, webhooks, 텔레그램 연결, 디스코드 연결, 메신저 연결, 봇 연결, 원격, 페어링.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구DiscordTelegram
설치 방법 보기

포함된 파일(5)

  • SKILL.md5.0 KB
  • agents/openai.yaml252 B
  • references/discord.md4.8 KB
  • references/telegram.md6.3 KB
  • references/troubleshooting.md5.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

remote — Messenger Bridge Setup Ladder

Use this skill when the user wants codexclaw reachable from Telegram or Discord ("텔레그램 연결해줘", "connect discord", "set up remote"). The agent runs every step below itself and verifies each one; the user is only needed for the two steps a bot platform requires a human for (creating the bot and tapping the pairing trigger).

All API calls target the local bridge at http://127.0.0.1:7717. Every mutating request MUST send BOTH headers, or the server answers 403:

-H 'content-type: application/json' -H 'x-codexclaw-local: 1'

Ladder (both platforms)

  1. Preflight — is the bridge up? curl -s http://127.0.0.1:7717/api/health -> {"ok":true,...}. Not running? Foreground: cxc serve --port 7717 --cwd <project>. Daemon (macOS launchd): cd <project> FIRST (install binds the current working directory as --cwd), then cxc service install --port 7717. Check with cxc service status; logs at ~/.codexclaw/serve.{out,err}.log. There is no serve status subcommand. On Linux, use systemd user units. On Windows, use Task Scheduler. See platform-specific sections in references/telegram.md and references/discord.md.
  2. Token (human step). Walk the user through bot creation — exact steps in references/telegram.md / references/discord.md. Never echo the token into logs, commit it, or paste it back in chat responses.
  3. Create the named agent (validates the token). GET /api/agents to see existing ones. New: POST /api/agents with {"name":"...","kind":"telegram"|"discord","token":"..."} — the server validates via TG getMe / DC users/@me and answers 400 on a bad token (stop and re-ask), 200 with username/botId on success. Existing agent: POST /api/agents/update with {"id":<n>,"token":"..."} (same validation). Then POST /api/agents/enable with {"id":<n>,"enabled":true}.
  4. Pair the chat (human tap). Snapshot the baseline first: GET /api/agents/handshake/status?id=<n> -> note allowlistCount.
    • TG preferred — one-tap deep link: POST /api/agents/pairing-link with {"id":<n>,"seconds":600} (default 600, cap 3600) returns {"ok":true,"url":"https://t.me/<bot>?start=<code>","code":..., "expiresAt":...}. Send the url to the user; tapping it makes Telegram send /start <code> — the code is single-use and TTL-bounded, no open window needed. Never paste the code anywhere else.
    • Window fallback (and the only DC path): POST /api/agents/handshake/open with {"id":<n>,"seconds":120} (default 120, cap 600); the user sends /start (TG) or types !cxc start in a channel the bot can read (DC — pairing is a text trigger; slash commands reject unpaired channels). Either way, poll the status endpoint: pairing succeeded when allowlistCount grows past the baseline; on expiry mint a fresh link or reopen the window.
  5. Smoke test. POST /api/agents/test-send with {"id":<n>} messages the newest paired chat (an explicit "chatId" must already be paired; 400 otherwise). Then have the user send /status (TG) or !cxc status (DC) — the first gateway command creates the binding row, and only THEN does GET /api/bindings show it.
  6. Anything wrong -> references/troubleshooting.md (symptom -> cause -> fix, all distilled from real incidents).

Platform references

Human-facing overview: the bridge README (served at http://127.0.0.1:7717/readme while the bridge runs).

  • references/telegram.md — BotFather steps, TG command surface, forum-topic sessions, optional webhook mode (HTTPS /webhook/telegram/<secret>, auto-fallback to long-poll).
  • references/discord.md — Developer Portal steps, Message Content intent, invite URL (scope=bot&permissions=3072), slash vs text command split, thread mode (slash: /mode value:thread|plain; text: !cxc mode thread|plain).

Scope guard

  • The GUI at http://127.0.0.1:7717 can do this visually: the Agents page is the named-agent setup flow (same /api/agents/* surface); the Channels page is the legacy single-channel shim. Offer the Agents page when the user prefers clicking over chat.
  • /api/connect/* is the legacy single-channel shim (its validate even stores the token as a side effect); teach and use the /api/agents/* surface.
  • This skill configures the bridge only. Bridge behavior changes (commands, adapters, gates) are cxc-dev territory, not setup.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use for AST search and codemods. Triggers: ast-grep, sg, function/call/class/import, empty catch, missing await, YAML rules.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lidge-jun/codexclaw472026년 10월 9일 업데이트

cxc-dev

무료

Use for coding, PR delivery, scaffolding and QA. Triggers: develop, fix, refactor, test, review, docs, browse, stacked PR, 개발, 수정, 검토, 스택 PR.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lidge-jun/codexclaw472026년 10월 9일 업데이트

Use for module boundaries and dependencies. Triggers: circular import, coupling, barrel, re-export, validation placement, 모듈 경계, 순환 참조.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lidge-jun/codexclaw472026년 10월 9일 업데이트

Use for APIs, servers and app databases. Triggers: REST, GraphQL, migration, query optimization, middleware, caching, queues, 백엔드, API 작업, 마이그레이션, 쿼리 최적화.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lidge-jun/codexclaw472026년 10월 9일 업데이트

Use for code/PR/diff review and refactor audits. Triggers: review this, before merge, antipattern, 리뷰, 코드 리뷰, 머지 전에 확인.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lidge-jun/codexclaw472026년 10월 9일 업데이트

Use for analytics and data pipelines. Triggers: ETL, ELT, data quality, SQL optimization, schema drift, backfill, 데이터 파이프라인, 데이터 품질, 백필.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

lidge-jun/codexclaw472026년 10월 9일 업데이트

lidge-jun의 스킬 모두 보기

이 스킬의 문제 신고