srizdebnath/tigergraphskills/algo-custom-udf
Claude Code and agent skill by srizdebnath/tigergraphskills
- community
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-udfSKILL.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
- Locate the file
ExprFunctions.hppon the TigerGraph host (typically under~/.tigergraph/gstore/gstore/udf/). - 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)); } ``
- Compile and publish the changes to the engine:
``bash gadmin config apply -y gadmin restart gse -y ``
- 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
- SKILL.md in the repositoryCheckingskills/algo-custom-udf/SKILL.md
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
[](https://verified-skill.com/skills/srizdebnath/tigergraphskills/algo-custom-udf)