srizdebnath/tigergraphskills/gsql-control-flow

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.

Implement loops and conditional control structures (IF, WHILE, FOREACH) inside GSQL queries. Use when building iterative algorithms.

Install

npx vskill@latest install srizdebnath/tigergraphskills/gsql-control-flow

SKILL.md

The same SKILL.md was published earlier as srizdebnath/tigergraphskills/gsql-control-flow.

GSQL Control Flow & Loops

When to use this

Use when writing path-finding algorithms (e.g. Breadth-First Search) or convergence-based calculations (e.g. PageRank) that require loops.

Prerequisites

GSQL query logic understanding. Links:

Steps

  1. Write conditional blocks inside your query body:

``gsql IF target_user == "" THEN PRINT "Invalid user"; END; ``

  1. Implement iterative loops using the WHILE statement (e.g. traversing until no new vertices are visited):

``gsql WHILE ActiveSet.size() > 0 LIMIT 10 DO ActiveSet = SELECT t FROM ActiveSet:s - (friend) - User:t WHERE t.@visited == FALSE ACCUM t.@visited += TRUE; END; ``

  1. Iterate over collection structures using FOREACH.

Common mistakes

  • Running infinite loops. Always include a safety LIMIT clause in your WHILE loops (e.g., LIMIT 100) to prevent runaway queries.
  • Changing vertex sets inside a FOREACH iteration dynamically without using accumulator sets.

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

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. 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/gsql-control-flow/badge)](https://verified-skill.com/skills/srizdebnath/tigergraphskills/gsql-control-flow)

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