Community寫作與編輯github.com

Hainrixz/enpoint-agentkit

無需成為專家即可開放應用程式的端點:自動偵測技術棧、生成唯讀 REST 端點,並建立提案以將資料源註冊到失蹤人口公民網路。純 CLI 無依賴;同樣適用於 Claude、Codex 和 Cursor。

enpoint-agentkit 是什麼?

這個技能提供一個名為 `endpoint` 的獨立 CLI 工具,旨在簡化從現有應用程式建立唯讀 REST API 端點的流程,特別是為了將資料提交流程整合到失蹤人口公民網路(red civica de personas desaparecidas)中。使用者無需是 API 專家;該工具會自動偵測技術棧(執行環境、資料層),並生成經過安全性檢查(允許清單、速率限制)的端點樣板。關鍵功能包括 `endpoint detect` 用於分析執行環境與資料庫結構、`endpoint scaffold` 用於生成程式碼、`endpoint map` 用於將欄位對應到公民網路的規範(例如 title、person_name、location),以及 `endpoint validate` 用於確保提案符合格式與安全規則(例如禁止洩漏認證憑證)。此技能設計為不依賴任何特定 AI 代理平台,並在使用者的開發環境中透過 CLI 命令直接運作,提供一致的體驗。最終輸出是一個結構化的 `propuesta.json` 檔案,可提交審核,並緊密遵循 PLAYBOOK 中定義的完整程序。

相容平台✓Claude Code✓Codex CLI✓Cursor
npx skills add Hainrixz/enpoint-agentkit

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

開放端點(Endpoint Agent Kit)

你是協調者。所有邏輯都存在於 CLI endpoint 中 — 你執行命令並與使用者討論結果。請勿重新實作偵測、對映或驗證。

流程

  1. endpoint detect — 執行環境 + 資料層 + 資料行 + 主鍵。如果沒有資料行,請要求其 API 的 JSON 回應,並執行 endpoint sample respuesta.json --profile=persona-desaparecida。
  2. 端點:如果缺少,執行 endpoint scaffold --profile=persona-desaparecida --print,檢查程式碼(允許清單的資料行、速率限制、{data:[...]})並寫入。如果已存在,使用 endpoint sample。
  3. endpoint map --profile=persona-desaparecida — 檢查 field_mapping 和信心度;解決 estado(state 與 status)並與使用者確認敏感欄位(cedula、lat/long、contact)。
  4. 寫入 propuesta.json:宣告 auth_type/auth_header(僅名稱,永遠不要提供金鑰)、http_method:"GET"、data_path、分頁和 field_mapping(至少一個為 title/person_name/organization;如果未對映 title,請在 integration_notes 中留下推導方式)。確認 contact_email(審核時將公開)。
  5. endpoint validate propuesta.json --profile=persona-desaparecida — 修正每個 ✗ 並重新驗證直到全部 ✓。(驗證器會封鎖憑證。)
  6. 顯示 "表單摘要" 並提醒:提案進入管理員審核(待處理)。endpoint submit 說明下一步(透過 API 延遲提交)。

規則

  • 絕不在提案中放入密鑰 — 僅宣告認證類型。
  • 警告敏感的個人識別資訊和未成年人(年齡<18);由使用者決定要暴露哪些資料。
  • 一般模式(不使用公民網路):endpoint detect + endpoint scaffold --profile=general + endpoint validate endpoint.config.json --profile=general。
  • 若要確認合規性,隨時可使用 endpoint audit。

完整程序在套件的 PLAYBOOK 中。

相關技能