AGENT SKILL

OneCLI 网关凭证代理

onecli-gateway

OneCLI 网关:一种透明的 HTTPS 代理,可将存储的凭证注入到对外调用中。当用户要求读取电子邮件、查看日历、访问 GitHub 仓库、创建 issue、检查 Stripe 付款,或与任何外部服务或 API 交互时,你必须使用本技能。不要使用浏览器扩展或 OAuth CLI 工具。直接发起 HTTP 请求;网关会自动注入凭证。

License 许可
MIT
最近更新
2026-10-30
Stars
★ 5
Forks
2

01 前言 Front Matter

name
onecli-gateway
metadata
{ "author": "onecli", "version": "0.5.0" }
description
OneCLI Gateway: transparent HTTPS proxy that injects stored credentials into outbound calls. You MUST use this skill when the user asks you to read emails, check calendar, access GitHub repos, create issues, check Stripe payments, or interact with ANY external service or API. Do NOT use browser extensions or OAuth CLI tools. Make HTTP requests directly; the gateway injects credentials automatically.
compatibility
Requires HTTPS_PROXY set in environment (automatic when launched via `onecli run`)

02 资源文件 1

03 SKILL.md 正文

OneCLI Gateway

Your outbound HTTPS traffic is transparently proxied through the OneCLI gateway, which injects stored credentials at the proxy boundary. You never see or handle credential values directly.

How to Access External Services

You have direct HTTP access to external APIs. OAuth apps (Gmail, GitHub, Google Calendar, Google Drive, etc.) and API key services are all available through the gateway. Just make the request directly; the gateway injects credentials if the app is connected. If not, it returns an error with a connect URL you can present to the user.

Making Requests

Call the real API URL. The gateway intercepts the request and injects credentials automatically.

curl -s "https://gmail.googleapis.com/gmail/v1/users/me/messages?maxResults=5"
curl -s "https://api.github.com/user/repos?per_page=10"
curl -s "https://api.stripe.com/v1/charges?limit=5"

Standard HTTP clients (curl, fetch, requests, axios, Go net/http, git) all honor the HTTPS_PROXY environment variable automatically. You do not need to set any auth headers.

Credential Stubs for MCP Servers

Some MCP servers need local credential files to start. Stubs for connected apps are pre-written automatically. Files containing "onecli-managed" values are managed by OneCLI — do NOT modify or delete them.

If an MCP server won't start due to missing credentials, create stubs before starting it. Use "onecli-managed" as the placeholder for all secret values, with file permissions 0600. See the guide at: https://www.onecli.sh/docs/guides/credential-stubs/general-app

When a Request Fails

If you get a 401, 403, or a gateway error (e.g., app_not_connected):

Step 1 — Show the user a connect link. Use the connect_url from the error response:

To connect [service], open this link: [connect_url from the error response]

If there is no connect_url in the error, tell the user to open the OneCLI dashboard and connect the service there.

Step 2 — Retry after the user connects. Let the user know you will retry once they have connected. When they confirm, retry the original request. If the retry still fails, ask if they need help with the setup.

Rules

  • Never say "I don't have access to X" without first making the HTTP request through the proxy.
  • Never use browser extensions, gcloud, or manual auth flows. The gateway handles credentials for you.
  • Never ask the user for API keys or tokens directly. Direct them to connect the service in the OneCLI dashboard.
  • Never suggest the user open Gmail/Calendar/GitHub in their browser when they ask you to read or interact with those services. You have API access. Use it.
  • If the gateway returns a policy error (403 with a JSON body), respect the block. Do not retry or circumvent it.

04 同仓库更多 Skills

microsoft
microsoft/amplifier-app-nanoclaw

WhatsApp 消息格式化

whatsapp-formatting

为 WhatsApp 格式化消息,包括可渲染为真实 WhatsApp 标签的提及(mention)。在 WhatsApp 对话中回复时使用(platform_id / chatJid 以 @s.whatsapp.net 或 @g.us 结尾)。

普通用户即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

新频道欢迎引导

welcome

向新连接的频道介绍自己。当频道首次接入时自动触发。发送友好的问候和简要的功能概述。

内部沟通专员即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

Vercel 应用部署

vercel-cli

将应用部署到 Vercel。当用户要求部署、发布 Web 应用,或管理 Vercel 项目、域名和环境变量时使用。

软件开发工程师部署与发布管理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

Slack 消息格式化

slack-formatting

使用 mrkdwn 语法为 Slack 格式化消息。当回复 Slack 频道时使用(文件夹以“slack_”开头,或 JID 包含 slack 标识符)。

内部沟通专员即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

智能体自我定制

self-customize

定制你自己的智能体——添加能力、安装包、添加 MCP 服务器、编辑代码或 CLAUDE.md。当用户要求你添加功能、安装工具或修改工作方式时使用。对于非平凡的代码改动,请通过 create_agent 委派给构建智能体处理。

AI 工程师智能体开发
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

前端工程开发与验证

frontend-engineer

专业的前端工程规范。对每个 Web 项目强制执行构建—测试—验证工作流。在站点完成构建、测试、响应式适配、无障碍访问并在真实浏览器中进行视觉验证之前,绝不宣布完成。可与 vercel-cli 配合使用,实现生产级质量的部署。

软件开发工程师前端开发与界面实现
★ 5