Communitygithub.com

aiagentwithdhruv/skills

在本機執行 Claude 協調器,並透過 Cloudflare 隧道提供外部存取。當使用者要求本機執行、啟動本機伺服器或測試本機 Webhook 時使用。

skills 是什麼?

此技能允許開發者在本地端執行 Claude 協調器,並透過 Cloudflare 隧道安全地將本機伺服器暴露到外部網路,方便測試 webhook 功能。它基於 FastAPI 啟動一個本機伺服器(預設連接埠 8000),並提供與 Modal 部署完全相同的 API 端點,包括執行指令、列出 webhook 以及一般代理任務。與 Modal 部署相比,本機執行能實現更快的迭代迴圈,提供完整的本機檔案與憑證存取權限,並能利用 print 陳述式進行即時除錯。此技能特別適合在開發階段快速驗證變更、測試外部服務的 webhook 回調,以及進行深入的除錯工作。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiagentwithdhruv/skills/tree/HEAD/local-server

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

本機伺服器執行

目標

在本機執行 Claude 協調器,並透過 Cloudflare 隧道提供外部 webhook 存取。

啟動伺服器

python3 execution/local_server.py

啟動 FastAPI 伺服器於連接埠 8000。

Cloudflare 隧道

若需外部存取(例如 webhook),請使用 Cloudflare 隧道:

cloudflared tunnel --url http://localhost:8000

端點

與 Modal 部署相同:

  • /directive?slug={slug} - 執行指令
  • /list-webhooks - 列出 webhook
  • /general-agent - 一般代理任務

開發用途

  • 比 Modal 部署更快的迭代速度
  • 完整存取本機檔案與憑證
  • 透過 print 陳述式進行即時除錯

環境

直接使用本機的 .env 檔案(不同於 Modal 使用 secrets)。


結構

輸入

名稱型別必填說明
portinteger否伺服器連接埠(預設:8000)

輸出

名稱型別說明
server_urlstring本機伺服器 URL(http://localhost:8000)
tunnel_urlstringCloudflare 隧道 URL(若啟用)

可組合技能

與此技能搭配良好的技能:add-webhook

成本

免費(本機執行)

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

aiagentwithdhruv/skills

Add new Modal webhooks for event-driven execution. Use when user asks to create a webhook, add an endpoint, or set up event triggers.

aiagentwithdhruv/skills

Answer Euron Gen AI Bootcamp doubts instantly. Covers Euri API setup across all frameworks (Python, LangChain, OpenAI SDK, TypeScript, n8n, curl), MCP server setup, common errors, model recommendations, and token limits. Use when someone in the bootcamp asks a question.

aiagentwithdhruv/skills

Manage emails across multiple Gmail accounts with unified tooling. Use when user asks to check email, read inbox, label emails, archive messages, or manage Gmail across accounts.

aiagentwithdhruv/skills

Auto-label Gmail emails into Action Required, Waiting On, and Reference categories. Use when user asks to label emails, triage inbox, categorize emails, or organize Gmail.

aiagentwithdhruv/skills

Scrape Google Maps for B2B leads with deep website enrichment and contact extraction. Use when user asks to find local businesses, scrape Google Maps, generate contractor lists, or build local service business databases.

aiagentwithdhruv/skills

MCP server for AI-powered macOS control — apps, display, audio, files, screenshots, clipboard

aiagentwithdhruv/skills

Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.

aiagentwithdhruv/skills

Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

aiagentwithdhruv/skills

Query Skool community content using RAG pipeline with vector search. Use when user asks to search Skool knowledge, find community answers, or query Skool content.

aiagentwithdhruv/skills

Scrape Upwork jobs and generate personalized proposals with cover letters. Use when user asks to find Upwork jobs, create Upwork proposals, or apply to Upwork listings.

相關技能