srizdebnath/tigergraphskills/gsql-control-flow
Claude Code and agent skill by srizdebnath/tigergraphskills
- community
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-flowSKILL.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
- Write conditional blocks inside your query body:
``gsql IF target_user == "" THEN PRINT "Invalid user"; END; ``
- Implement iterative loops using the
WHILEstatement (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; ``
- Iterate over collection structures using
FOREACH.
Common mistakes
- Running infinite loops. Always include a safety
LIMITclause in yourWHILEloops (e.g.,LIMIT 100) to prevent runaway queries. - Changing vertex sets inside a
FOREACHiteration 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
- SKILL.md in the repositoryCheckingskills/gsql-control-flow/SKILL.md
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
[](https://verified-skill.com/skills/srizdebnath/tigergraphskills/gsql-control-flow)