Langsung ke konten
Skillpedia
Database48k Β· #4238

connection-auth-rules

Fungsinya

Tool ini membantu membuat seperangkat aturan agar sistem (disebut Apollo agent) tahu cara mengubah kredensial Anda (seperti nama pengguna dan password) ke format yang benar untuk terhubung ke sistem lain (seperti database).

Kapan dipakai

  • βœ“Saat Anda perlu mengatur bagaimana kredensial Anda digunakan untuk terhubung ke sebuah layanan.
  • βœ“Saat membuat atau mengubah aturan autentikasi untuk koneksi tertentu.
  • βœ“Jika Anda perlu memahami informasi apa saja yang dibutuhkan untuk sebuah koneksi.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/connection-auth-rules/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/connection-auth-rules/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBantu saya membuat aturan autentikasi untuk terhubung ke database PostgreSQL.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini pertama-tama menampilkan daftar jenis koneksi yang tersedia. Setelah itu, untuk jenis yang dipilih, tool mengambil informasi yang diperlukan beserta langkah-langkah transformasinya. Terakhir, tool membantu Anda menentukan cara kredensial akan diubah untuk koneksi tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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, or CtpConfig
  • 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-level connect_args keys the mapper must produce (from the connector's TypedDict)
  • 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 state
  • step_output β€” derived fields the step writes, referenceable as {{ derived.<key> }} in the mapper
  • step_field_map β€” typical mapper entry to wire the step's output into connect_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:

  1. Show the default template from the connector's MapperConfig (if one exists).
  2. Ask if they want to keep the default or customize it.
  3. 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)

…

Pertanyaan umum

Apa itu 'Connection Auth Rules'?

Itu adalah serangkaian instruksi yang memberi tahu sistem cara menggunakan kredensial Anda (seperti API key, password, dan lainnya) untuk terhubung ke layanan lain dengan aman dan benar.

Apa itu 'Apollo agent'?

Itu adalah sistem yang menggunakan aturan autentikasi untuk memproses kredensial Anda dan membangun koneksi dengan layanan lain.

Apa itu 'transform steps'?

Itu adalah langkah-langkah perantara yang mungkin diperlukan untuk memproses kredensial Anda sebelum digunakan untuk koneksi, misalnya men-decode sertifikat atau menggabungkan informasi.

Detail

Deskripsi asli dari pembuat

Build a Connection Auth Rules for a Monte Carlo connection type. Fetches live connector schemas and transform steps from the apollo-agent repo.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4238
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa