MR
Mayur Rathi
@sickn33
⭐ 47.3k GitHub stars

connection-auth-rules

connection-auth-rules is an code AI skill with a core value of Build a Connection Auth Rules for a Monte Carlo connection type. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

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

Last verified on: 2026-10-06

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 47.3k
Last Verified 2026-10-06
Risk Level Low
mkdir -p ./skills/connection-auth-rules && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/connection-auth-rules/SKILL.md -o ./skills/connection-auth-rules/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

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:


bash
find -L ~/.claude . -name fetch_schema.py -path "*/connection-auth-rules/*" 2>/dev/null | head -1

Then run it:


bash
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:


bash
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:


bash
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.usernam

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply connection-auth-rules to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is connection-auth-rules compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for connection-auth-rules?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install connection-auth-rules?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/connection-auth-rules/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills