connection-auth-rules
它能做什么
这个工具可以帮你创建一套规则,让名为 Apollo agent 的系统知道如何把你的凭据(比如用户名和密码)转换成正确的格式,从而连接到另一个系统(比如数据库)。
适用场景
- ✓当你需要配置凭据如何用于连接某项服务时。
- ✓当你要为某个特定连接创建或修改认证规则时。
- ✓当你需要了解建立连接需要哪些信息时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/connection-auth-rules/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建连接 PostgreSQL 数据库所需的认证规则。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先列出可用的连接类型。然后针对你选择的类型,获取所需信息和转换步骤。最后,它会帮你定义凭据在连接时应该如何转换。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
Connection Auth Rules Builder
Use this skill when the user wants to build a Connection Auth Rules (stored as ctp_config) for a Monte Carlo connection. The config is stored on the Connection object in the monolith and tells the Apollo agent how to transform flat credentials into the driver-specific connect_args format.
When to activate this skill
Activate when the user:
- Asks to create, build, or generate a Connection Auth Rules
- Asks what fields are needed for a connection type's Connection Auth Rules
- Wants to customize credential transformation for a connection
- Asks about
MapperConfig,TransformStep, orCtpConfig - Says things like "help me write Connection Auth Rules for X", "what's the connection auth rules format for X"
When NOT to activate this skill
Do not activate when the user is:
- Creating monitors (use the monitor-creation skill)
- Investigating data incidents (use the analyze-root-cause skill)
- Setting up a connection in the UI (this skill builds the JSON config, not UI flows)
Step 1 — List available connection types
Locate the companion script with Bash:
find -L ~/.claude . -name fetch_schema.py -path "*/connection-auth-rules/*" 2>/dev/null | head -1
Then run it:
python3 <script_path> --list
The script outputs JSON. Parse result.connectors — each entry has a name field. Present the names to the user and ask which connection type they want to build a config for.
If the script fails: Show the error output and offer to retry. Do not proceed until you have the connector list.
Step 2 — Fetch the connector schema
Once the user selects a connection type, run the script with that connector name:
python3 <script_path> --connector <name>
The script outputs JSON. Parse result.schema:
output_keys— the driver-levelconnect_argskeys the mapper must produce (from the connector'sTypedDict)default_field_map— the existing default mapping (credential field → Jinja2 template)default_steps— any default transform steps already configured
Present a summary to the user:
- The output keys
- The default mapper field_map entries
- Any existing steps with their types
Step 3 — Optionally fetch available transform steps
If the connector's default config (from Step 2) already includes steps, or if the user indicates they need custom transform steps, run:
python3 <script_path> --connector <name> --transforms
Parse result.transforms — each entry has:
name— the step type string used in"type"step_input— fields the step reads from the pipeline statestep_output— derived fields the step writes, referenceable as{{ derived.<key> }}in the mapperstep_field_map— typical mapper entry to wire the step's output intoconnect_args
Present the available steps with their full contracts (input, output, and field_map hint).
If the script fails: Tell the user and offer to retry. You can continue without step data — just describe steps as unknown and ask the user to specify them manually.
Step 4 — Build the mapper
Walk the user through each output key in the TypedDict:
- Show the default template from the connector's
MapperConfig(if one exists). - Ask if they want to keep the default or customize it.
- For custom values, help the user write a Jinja2 template expression.
Jinja2 template help
The template context has two namespaces:
raw— the flat credential dict as received. Use{{ raw.field_name }}to reference a credential field directly. Example:{{ raw.client_id }}derived— fields added by transform steps. Use{{ derived.field_name }}to reference a step's output. Example:{{ derived.private_key_pem }}
Common patterns:
- Simple field reference:
"{{ raw.username }}" - Conditional/default:
"{{ raw.port | default('1433') }}" - Concatenation:
"{{ raw.host }}:{{ raw.port }}"
When the user doesn't know their credential field names, remind them these come from the Data Collector's credential dict — the keys are whatever the DC sends for that connection type.
Step 5 — Configure transform steps (optional)
…
常见问题
什么是 Connection Auth Rules(连接认证规则)?
它们是一组指令,告诉系统如何使用你的凭据(比如 API 密钥、密码等)安全、正确地连接到其他服务。
什么是 Apollo agent?
它是一个系统,会依据认证规则处理你的凭据,并与其他服务建立连接。
什么是“转换步骤”(transform steps)?
它们是在使用凭据建立连接之前可能需要的中间处理步骤,比如解码证书或组合多项信息。
详情
作者的原始描述
Build a Connection Auth Rules for a Monte Carlo connection type. Fetches live connector schemas and transform steps from the apollo-agent repo.
热度
- GitHub 星标
- 48k
- 排名
- #4238
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。