srizdebnath/tigergraphskills/algo-custom-udf

Claude Code and agent skill by srizdebnath/tigergraphskills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create and compile custom C++ User Defined Functions (UDFs) for TigerGraph queries. Use when adding complex math or string parsing routines.

Install

npx vskill@latest install srizdebnath/tigergraphskills/algo-custom-udf

SKILL.md

The same SKILL.md was published earlier as srizdebnath/tigergraphskills/algo-custom-udf.

Compiling Custom C++ UDFs

When to use this

Use when GSQL built-in functions are insufficient for custom cryptographic hash routines, coordinate distance logic, or high-performance math operations.

Prerequisites

Admin access to the TigerGraph host machine (self-managed). Links:

Steps

  1. Locate the file ExprFunctions.hpp on the TigerGraph host (typically under ~/.tigergraph/gstore/gstore/udf/).
  2. Add your custom C++ function definition inside the namespace code block:

``cpp inline double custom_distance(double x1, double y1, double x2, double y2) { return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); } ``

  1. Compile and publish the changes to the engine:

``bash gadmin config apply -y gadmin restart gse -y ``

  1. Call the function directly in GSQL queries: double dist = custom_distance(s.x, s.y, t.x, t.y);.

Common mistakes

  • Storing stateful, non-thread-safe C++ functions in UDFs. Because GSQL query loops execute in highly parallel threads, UDFs must be stateless and thread-safe.
  • Uploading incorrect C++ syntax that fails compilation, which blocks all queries from running or compiling until the file is fixed.

Sources

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/srizdebnath/tigergraphskills/algo-custom-udf/badge)](https://verified-skill.com/skills/srizdebnath/tigergraphskills/algo-custom-udf)

Something wrong with this skill or its page? Tell us.