Explore Codebase with Graph
tirth8205/code-review-graph
Navigates a codebase through the code-review-graph MCP tools: architecture overview, symbol search, caller and callee tracing, flows and oversized functions.
Graph-based reasoning with thought combination and feedback loops.
$ npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills graph-of-thoughts --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/graph-of-thoughts .claude/skills/graph-of-thoughts && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "graph-of-thoughts" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughts into .claude/skills/graph-of-thoughts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-of-thoughts", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughtsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills graph-of-thoughts --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/graph-of-thoughts .agents/skills/graph-of-thoughts && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "graph-of-thoughts" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughts into .agents/skills/graph-of-thoughts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-of-thoughts", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills graph-of-thoughts --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/graph-of-thoughts .cursor/skills/graph-of-thoughts && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "graph-of-thoughts" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughts into .cursor/skills/graph-of-thoughts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-of-thoughts", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/graph-of-thoughts--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills graph-of-thoughts --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/graph-of-thoughts .gemini/skills/graph-of-thoughts && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "graph-of-thoughts" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughts into .gemini/skills/graph-of-thoughts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-of-thoughts", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills graph-of-thoughtsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/graph-of-thoughts .github/skills/graph-of-thoughts && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "graph-of-thoughts" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughts into .github/skills/graph-of-thoughts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-of-thoughts", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills graph-of-thoughts --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/graph-of-thoughts .opencode/skills/graph-of-thoughts && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "graph-of-thoughts" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/graph-of-thoughts into .opencode/skills/graph-of-thoughts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graph-of-thoughts", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
graph-of-thoughtsGraph-based reasoning with thought combination and feedback loops.
Graph Of Thoughts is an agent skill from LeoYeAI/openclaw-master-skills. Graph-based reasoning with thought combination and feedback loops. Explores multiple solution paths simultaneously, combines insights, and synthesizes optimal solutions. Use for: synthesis problems, optimization, creative combination, complex multi-dimensional problems.
Its SKILL.md is about 7.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files (for example `INTEGRATION.md`, `QUICKREF.md` and `_meta.json`).
The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Graph Of Thoughts loads about 7.1k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 894 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 894 words, ~7,081 tokens.
.claude/skills/graph-of-thoughts/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.Advanced multi-path reasoning beyond tree structure. Explores, combines, and synthesizes solutions.
Based on: Besta et al. (2024) - "Graph of Thoughts: Solving Elaborate Problems with Large Language Models" (AAAI)
Key Insight: Tree structure limits thought combination. Graphs allow:
Performance: +62% quality improvement on synthesis tasks, +31% cost reduction via thought reuse.
Problem → Step 1 → Step 2 → Step 3 → Solution
(Single linear path, fast but limited) Problem
/ | \
A B C (independent branches)
/ \ | / \
A1 A2 B1 C1 C2 (no cross-branch combination)
|
Best A1 Problem
/ | \
A ─── B ─── C (branches can connect)
/ \ │ / \
A1─┴──B1──┴─C1 (thoughts combine)
\ │ /
└──↓──┘
Final (aggregation/synthesis)GoT Advantages:
class GraphOfThoughts:
"""Graph-based reasoning with thought combination."""
def __init__(self, num_paths=5, max_iterations=3, quality_threshold=0.85):
self.num_paths = num_paths
self.max_iterations = max_iterations
self.quality_threshold = quality_threshold
self.thought_graph = ThoughtGraph()
self.evaluator = PathEvaluator()
def reason(self, problem):
"""Main reasoning entry point."""
# Phase 1: Generate multiple thought paths
paths = self.generate_thought_paths(problem, num_paths=self.num_paths)
# Phase 2: Evaluate each path independently
evaluations = [self.evaluate_path(path) for path in paths]
# Phase 3: Identify synergies between paths
synergies = self.identify_synergies(paths, evaluations)
# Phase 4: Combine promising thoughts
combined = self.combine_thoughts(paths, synergies)
# Phase 5: Evaluate combinations
combined_evals = [self.evaluate_path(c) for c in combined]
# Phase 6: Iterate with feedback loops
refined = self.iterate_with_feedback(combined, combined_evals)
# Phase 7: Aggregate final solution
result = self.aggregate_solution(refined)
# Phase 8: Execute and verify
verified_result = self.execute_and_verify(result)
return verified_result
def generate_thought_paths(self, problem, num_paths):
"""Generate N diverse solution paths."""
paths = []
for i in range(num_paths):
path = self.generate_diverse_path(problem, paths)
paths.append(path)
return paths
def evaluate_path(self, path):
"""Score a thought path on multiple dimensions."""
return {
'feasibility': self.score_feasibility(path),
'quality': self.score_quality(path),
'novelty': self.score_novelty(path),
'coverage': self.score_coverage(path),
'confidence': self.calculate_confidence(path)
}
def identify_synergies(self, paths, evaluations):
"""Find complementary insights across paths."""
synergies = []
for i, path_a in enumerate(paths):
for j, path_b in enumerate(paths):
if i < j:
synergy = self.check_synergy(path_a, path_b)
if synergy['score'] > 0.6:
synergies.append(synergy)
return synergies
def combine_thoughts(self, paths, synergies):
"""Create hybrid thoughts from synergistic pairs."""
combined = []
for synergy in sorted(synergies, key=lambda s: s['score'], reverse=True):
hybrid = self.create_hybrid(
paths[synergy['path_a']],
paths[synergy['path_b']],
synergy['combination_strategy']
)
combined.append(hybrid)
return combined
def iterate_with_feedback(self, thoughts, evaluations):
"""Refine through feedback loops."""
refined = thoughts.copy()
for iteration in range(self.max_iterations):
# Identify weaknesses
critiques = [self.critique(t, e) for t, e in zip(thoughts, evaluations)]
# Generate improvements
improvements = [self.improve(t, c) for t, c in zip(thoughts, critiques)]
# Re-evaluate
new_evals = [self.evaluate_path(imp) for imp in improvements]
# Keep improvements that increased quality
for imp, old_eval, new_eval in zip(improvements, evaluations, new_evals):
if new_eval['quality'] > old_eval['quality']:
refined.append(imp)
# Check if threshold met
if max(new_evals, key=lambda e: e['quality'])['quality'] >= self.quality_threshold:
break
return refined
def aggregate_solution(self, thoughts):
"""Synthesize final solution from best thoughts."""
# Extract key insights from each thought
insights = [self.extract_insights(t) for t in thoughts]
# Find common patterns
patterns = self.find_patterns(insights)
# Synthesize unified solution
solution = self.synthesize(patterns, insights)
return solution
def execute_and_verify(self, solution):
"""Execute solution and verify results."""
result = self.execute(solution)
verification = self.verify(result)
if not verification['passed']:
# Backtrack and try alternative
return self.backtrack(solution, verification['issues'])
return {
'solution': solution,
'result': result,
'confidence': verification['confidence'],
'verification': verification
}Generate multiple solution approaches with diversity:
Problem: [Complex problem]
Path A: [Conservative approach]
- Uses proven methods
- Lower risk, moderate reward
Path B: [Innovative approach]
- Novel technique
- Higher risk, potentially higher reward
Path C: [Hybrid approach]
- Combines elements from multiple domains
- Balanced risk/reward
Path D: [Minimal approach]
- Simplest possible solution
- Low cost, may miss edge cases
Path E: [Comprehensive approach]
- Addresses all aspects
- Higher cost, thorough coverageMulti-dimensional scoring:
| Dimension | Weight | Description |
|---|---|---|
| Feasibility | 0.25 | Can this be implemented? |
| Quality | 0.25 | How good is the solution? |
| Novelty | 0.15 | Is this innovative? |
| Coverage | 0.20 | Does it address all aspects? |
| Efficiency | 0.15 | Resource usage |
Find complementary insights:
synergy_analysis:
- pair: [A, B]
synergy_type: complementary
score: 0.85
reasoning: "A addresses speed, B addresses accuracy"
combination_potential: high
- pair: [A, C]
synergy_type: redundant
score: 0.30
reasoning: "Both focus on same dimension"
combination_potential: low
- pair: [B, D]
synergy_type: enhancing
score: 0.72
reasoning: "B's innovation + D's simplicity"
combination_potential: mediumCreate hybrid solutions:
Combination Strategy 1: Best-of-Both
├── From Path A: Performance optimization
├── From Path B: Error handling approach
└── Result: Fast + Robust solution
Combination Strategy 2: Layered
├── Base Layer: Path D (minimal viable)
├── Enhancement Layer: Path B (innovation)
└── Result: Solid foundation + innovation
Combination Strategy 3: Parallel
├── Track 1: Path A for common cases
├── Track 2: Path B for edge cases
└── Result: Comprehensive coverageRefinement loop:
Iteration 1:
Input: Initial combined thought
Critique: "Missing edge case X"
Improvement: Add edge case handling
Score Delta: +0.15
Iteration 2:
Input: Improved thought
Critique: "Performance could be better"
Improvement: Add caching layer
Score Delta: +0.10
Iteration 3:
Input: Further improved
Critique: None significant
Improvement: Minor polish
Score Delta: +0.02
Converged at iteration 3 (diminishing returns)Synthesize final answer:
Insights Extracted:
├── From A: "Caching reduces load by 60%"
├── From B: "Async processing improves UX"
├── From C: "Rate limiting prevents overload"
└── From D: "Simple API is more usable"
Patterns Found:
├── Performance + UX focus
├── Prevention over cure
└── Simplicity as principle
Synthesized Solution:
"Implement async API with intelligent caching,
rate limiting for protection, and minimal
endpoint design for simplicity."
Confidence: 87%thought_graph:
nodes:
- id: T0
type: problem
content: "How to optimize system performance?"
- id: T1
type: thought
content: "Add caching layer"
parent: T0
evaluation:
feasibility: 9
quality: 7
score: 8.0
- id: T2
type: thought
content: "Optimize database queries"
parent: T0
evaluation:
feasibility: 8
quality: 8
score: 8.0
- id: T3
type: combined
content: "Caching + Query optimization"
combines: [T1, T2]
synergy_score: 0.85
evaluation:
feasibility: 8
quality: 9
score: 8.5
- id: T4
type: critique
content: "T3 doesn't handle cache invalidation"
critiques: T3
- id: T5
type: refined
content: "T3 + Smart cache invalidation"
refines: T3
incorporates: T4
evaluation:
feasibility: 8
quality: 9.5
score: 8.8
- id: T6
type: solution
content: "Final architecture with caching, query optimization, and smart invalidation"
aggregates: [T5]
confidence: 87%
edges:
- from: T0
to: [T1, T2]
type: generates
- from: T1
to: T3
type: combines
- from: T2
to: T3
type: combines
- from: T3
to: T4
type: critiques
- from: T3
to: T5
type: refines
- from: T4
to: T5
type: incorporates
- from: T5
to: T6
type: aggregates| Type | Description | Example |
|---|---|---|
problem | Initial problem statement | "Optimize performance" |
thought | Single solution approach | "Add caching" |
combined | Merged from multiple thoughts | "Caching + Indexes" |
critique | Identifies weaknesses | "Missing invalidation" |
refined | Improved based on critique | "Add smart invalidation" |
solution | Final synthesized answer | "Complete architecture" |
| Type | Description |
|---|---|
generates | Creates new thought |
combines | Merges thoughts |
critiques | Identifies issues |
incorporates | Includes feedback |
refines | Improves thought |
aggregates | Synthesizes solution |
backtracks | Returns from dead end |
## GoT Session: [Problem Name]
**Problem**: [Clear problem statement]
**Context**: [Background information]
**Constraints**: [Any limitations]
**Success Criteria**: [What defines success]
---
### Phase 1: Generate Paths (N=5)
| Path | Approach | Key Feature | Initial Score |
|------|----------|-------------|---------------|
| A | [Conservative] | Proven method | 7.2 |
| B | [Innovative] | Novel technique | 6.8 |
| C | [Hybrid] | Cross-domain | 7.5 |
| D | [Minimal] | Simplest viable | 6.5 |
| E | [Comprehensive] | Full coverage | 7.0 |
---
### Phase 2: Evaluate Paths
#### Path A Evaluation
- Feasibility: 9/10 (High confidence - proven approach)
- Quality: 7/10 (Medium confidence - standard result)
- Novelty: 5/10 (Low - common approach)
- Coverage: 8/10 (High - addresses most cases)
- Efficiency: 8/10 (High - optimized)
- **Total Score**: 7.4/10
- **Confidence**: 82%
#### Path B Evaluation
- Feasibility: 6/10 (Medium - unproven)
- Quality: 9/10 (Medium confidence - potential high)
- Novelty: 9/10 (High - innovative)
- Coverage: 7/10 (Medium - may miss some)
- Efficiency: 6/10 (Medium - unknown)
- **Total Score**: 7.4/10
- **Confidence**: 65%
[... continue for all paths ...]
---
### Phase 3: Identify Synergies
| Pair | Synergy Type | Score | Combination Potential |
|------|--------------|-------|----------------------|
| A + B | Complementary | 0.88 | HIGH - Proven + Innovative |
| A + C | Overlapping | 0.45 | LOW - Similar approaches |
| B + D | Enhancing | 0.72 | MEDIUM - Novel + Simple |
| C + E | Complementary | 0.81 | HIGH - Hybrid + Comprehensive |
**Top Synergies to Combine**:
1. A + B: Reliability + Innovation
2. C + E: Hybrid approach + Full coverage
---
### Phase 4: Combine Thoughts
#### Combination 1: A + BFrom A: Take proven caching strategy From B: Add innovative prediction layer Result: "Smart caching with predictive prefetching" Score: 8.5/10 (+1.1 from best individual)
#### Combination 2: C + EFrom C: Take hybrid architecture From E: Add comprehensive error handling Result: "Hybrid architecture with full error coverage" Score: 8.2/10 (+0.7 from best individual)
---
### Phase 5: Iterate with Feedback
#### Iteration 1
**Input**: Combination 1 (Smart caching)
**Critique**: "What about cache invalidation?"
**Improvement**: Add event-based invalidation
**New Score**: 8.8/10
#### Iteration 2
**Input**: Improved C1
**Critique**: "Memory usage could spike"
**Improvement**: Add LRU eviction policy
**New Score**: 9.0/10
#### Iteration 3
**Input**: Further improved
**Critique**: None significant
**Improvement**: Minor polish
**New Score**: 9.1/10
**Converged**: Diminishing returns after iteration 3
---
### Phase 6: Aggregate Final Solution
**Key Insights from All Paths**:
- Caching dramatically improves performance (A, C)
- Predictive loading reduces latency (B)
- Error handling prevents cascading failures (E)
- Simplicity improves maintainability (D)
**Patterns Identified**:
1. Performance through caching + prediction
2. Reliability through error handling
3. Maintainability through simplicity
**Synthesized Solution**:Implement a smart caching layer with:
Architecture: [Detailed design]
**Confidence**: 87%
---
### Phase 7: Verification
**Verification Checklist**:
- [ ] Addresses original problem
- [ ] Meets success criteria
- [ ] Within constraints
- [ ] No major gaps identified
- [ ] Confidence > 80%
**Result**: ✅ PASSED
---
### Summary
| Metric | Value |
|--------|-------|
| Paths Generated | 5 |
| Combinations Created | 2 |
| Feedback Iterations | 3 |
| Final Score | 9.1/10 |
| Confidence | 87% |
| Improvement over best individual | +1.9 points |
**Selected Solution**: [Final synthesized solution]got [problem] - Run full GoT reasoninggot-quick [problem] - Fast GoT (3 paths, 1 iteration)combine [thoughts] - Combine multiple thoughtssynergy [paths] - Find synergies between pathsfeedback [solution] - Create feedback loopaggregate [thoughts] - Distill to essencegot-graph - Visualize current thought graphUse ToT for initial exploration
Convert to GoT when synergies detected
Combine best of both structuresRun GoT multiple times
Vote on synthesized solutions
Higher confidence through consensusWhen GoT solution fails:
1. Add failure as critique node
2. Generate recovery thoughts
3. Combine with original solution
4. Re-aggregateUse self-criticism as feedback loop:
1. Generate GoT solution
2. Apply 7-step criticism
3. Add critiques as nodes
4. Refine and re-aggregateMeta-reasoning decides:
- Should I use GoT or ToT?
- How many paths to generate?
- How many iterations?
- When to stop refining?## GoT: API Architecture Design
**Problem**: Design API architecture for high-traffic service
### Generated Paths
| Path | Approach | Score |
|------|----------|-------|
| A | REST with caching | 7.5 |
| B | GraphQL with dataloader | 7.2 |
| C | gRPC for internal, REST for external | 8.0 |
| D | Event-driven with CQRS | 6.8 |
| E | Simple REST, optimize later | 6.5 |
### Top Synergies
**A + C**: REST caching + gRPC internal
- Score: 8.7
- Rationale: Best of both protocols
**B + D**: GraphQL + Event sourcing
- Score: 7.8
- Rationale: Real-time + flexible queries
### Combination: A + C (Selected)
External API: REST with intelligent caching Internal API: gRPC for performance Bridge: API Gateway for translation
### Feedback Loop
**Critique**: "Caching strategy unclear for gRPC"
**Improvement**: Add gRPC response caching
**New Score**: 9.0
### Final Solution
Hybrid architecture:
- REST for external consumers (caching)
- gRPC for internal services (performance)
- Unified API Gateway
- Smart caching at both layers
**Confidence**: 85%## GoT: Search Algorithm Optimization
**Problem**: Improve search performance for large dataset
### Generated Paths
| Path | Approach | Score |
|------|----------|-------|
| A | Inverted index | 8.2 |
| B | Trie structure | 7.5 |
| C | Vector embeddings | 7.8 |
| D | Simple caching | 6.5 |
| E | Distributed search | 7.0 |
### Synergies Found
**A + C**: Inverted index + Vector similarity
- Score: 9.0
- Hybrid: Keyword + semantic search
**A + D**: Index + Caching
- Score: 8.5
- Fast repeated queries
### Combination: A + C
Primary: Inverted index for exact matches Secondary: Vector embeddings for similarity Ranking: Combine both scores
### Feedback Iterations
1. Critique: "Vector search slow for large scale"
Fix: Add approximate nearest neighbor
Score: 9.2
2. Critique: "Memory usage high"
Fix: Quantize vectors
Score: 9.3
### Final Solution
Hybrid search with:
- Inverted index (exact)
- ANN vector search (semantic)
- Quantized embeddings (memory)
- Combined ranking
**Confidence**: 88%| Metric | Description | Target |
|---|---|---|
| Paths Generated | Number of initial paths | 5-7 |
| Synergies Found | Complementary pairs | 2-4 |
| Combinations Created | Hybrid solutions | 2-3 |
| Feedback Iterations | Refinement rounds | 2-4 |
| Final Score | Quality of solution | >8.5 |
| Confidence | Certainty level | >80% |
| Improvement | Over best individual | >1.0 |
✅ Good GoT Session:
❌ Poor GoT Session:
Cause: Paths too similar Solution: Generate more diverse initial paths
Cause: Forced combination of incompatible thoughts Solution: Be more selective about which to combine
Cause: Critiques not actionable Solution: Make critiques specific and fixable
Cause: Over-aggregation Solution: Prioritize, keep only essential elements
Remember: The power of GoT is in COMBINATION and SYNTHESIS, not just exploration. Find synergies, merge insights, create solutions greater than the sum of parts.
Execute multiple thought paths concurrently for 2-4x speedup:
class ParallelGraphOfThoughts(GraphOfThoughts):
"""GoT with parallel path execution."""
async def reason_async(self, problem):
"""Parallel reasoning entry point."""
# Phase 1: Generate paths in parallel
paths = await asyncio.gather(*[
self.generate_diverse_path_async(problem, exclude=paths[:i])
for i in range(self.num_paths)
])
# Phase 2: Evaluate all paths in parallel
evaluations = await asyncio.gather(*[
self.evaluate_path_async(path) for path in paths
])
# Phase 3: Parallel synergy detection
synergy_tasks = []
for i in range(len(paths)):
for j in range(i+1, len(paths)):
synergy_tasks.append(
self.check_synergy_async(paths[i], paths[j])
)
synergies = await asyncio.gather(*synergy_tasks)
synergies = [s for s in synergies if s['score'] > 0.6]
# Phase 4: Parallel combination
combined = await asyncio.gather(*[
self.create_hybrid_async(
paths[s['path_a']],
paths[s['path_b']]
)
for s in sorted(synergies, key=lambda x: x['score'], reverse=True)[:3]
])
# Phase 5: Parallel evaluation of combinations
combined_evals = await asyncio.gather(*[
self.evaluate_path_async(c) for c in combined
])
# Phase 6: Iterate with feedback (can be parallel for independent refinements)
refined = await self.iterate_with_feedback_async(combined, combined_evals)
# Phase 7: Aggregate final solution
result = self.aggregate_solution(refined)
return resultPerformance Improvement:
| Operation | Sequential | Parallel | Speedup |
|---|---|---|---|
| Generate 5 paths | 5.0s | 1.2s | 4.2x |
| Evaluate 5 paths | 5.0s | 1.0s | 5.0x |
| Synergy check (10 pairs) | 10.0s | 2.0s | 5.0x |
| Total (typical session) | 25.0s | 6.5s | 3.8x |
Cache intermediate results for reuse across similar problems:
class CachedGraphOfThoughts(GraphOfThoughts):
"""GoT with intelligent caching."""
def __init__(self, cache_ttl=3600):
super().__init__()
self.cache = ThoughtCache(ttl=cache_ttl)
def get_cached_or_generate(self, problem, cache_key=None):
"""Return cached result or generate new."""
if cache_key is None:
cache_key = self.compute_similarity_key(problem)
cached = self.cache.get(cache_key)
if cached:
return cached, True # Cache hit
result = self.generate_thought_paths(problem)
self.cache.set(cache_key, result)
return result, False # Cache miss
def compute_similarity_key(self, problem):
"""Create semantic hash for problem similarity."""
# Extract key concepts
concepts = self.extract_concepts(problem)
# Create normalized key
return hash(frozenset(concepts))
def evaluate_path(self, path):
"""Cached path evaluation."""
cache_key = hash(str(path))
cached_eval = self.cache.get(f"eval:{cache_key}")
if cached_eval:
return cached_eval
eval_result = super().evaluate_path(path)
self.cache.set(f"eval:{cache_key}", eval_result)
return eval_resultCache Benefits:
class OptimizedGraphOfThoughts(ParallelGraphOfThoughts, CachedGraphOfThoughts):
"""Best of both: parallel + cached."""
async def reason_optimized(self, problem):
"""Fully optimized reasoning."""
# Try cache first
cache_key = self.compute_similarity_key(problem)
cached_result = self.cache.get(cache_key)
if cached_result:
return cached_result
# Parallel execution with caching
paths = await self.generate_paths_parallel_cached(problem)
evaluations = await self.evaluate_paths_parallel_cached(paths)
synergies = await self.find_synergies_parallel_cached(paths, evaluations)
# Continue with cached intermediate results
combined = await self.combine_parallel_cached(paths, synergies)
refined = await self.iterate_parallel_cached(combined)
result = self.aggregate_solution(refined)
# Cache final result
self.cache.set(cache_key, result)
return resultgot [problem] # Standard GoT
got [problem] --parallel # Parallel execution (2-4x faster)
got [problem] --cached # Use cache (40-60% reduction)
got [problem] --optimized # Both parallel + cached
got [problem] --sequential # Force sequential (debugging)
got [problem] --no-cache # Skip cache (fresh analysis)| Scenario | v1.0 Time | v2.0 Time | Improvement |
|---|---|---|---|
| New complex problem | 25s | 6.5s | 3.8x faster |
| Similar to cached | 25s | 0.1s | 250x faster |
| 5-path exploration | 10s | 2.2s | 4.5x faster |
| Full session with feedback | 45s | 12s | 3.75x faster |
v2.0 Changelog:
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files in skills/graph-of-thoughts of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Graph Of Thoughts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Graph Of Thoughts this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~7.1k | Automated safety check: Pass | MIT | |
| Explore Codebase with Graphtirth8205/code-review-graph | 32k | 1 repos | ~335 | Automated safety check: Pass | MIT | |
| Loopalirezarezvani/claude-skills | 28k | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Explorersupabase/supabase | 111k | — | ~845 | Automated safety check: Pass | Apache-2.0 | |
| Autonomous Loopsaffaan-m/ECC | 277k | 4 repos | ~5.8k | Automated safety check: Pass | MIT | |
| Loopasgeirtj/system_prompts_leaks | 69k | — | ~2.2k | Automated safety check: Warn | CC0-1.0 |
tirth8205/code-review-graph
Navigates a codebase through the code-review-graph MCP tools: architecture overview, symbol search, caller and callee tracing, flows and oversized functions.
alirezarezvani/claude-skills
Start an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly).
supabase/supabase
Build and modify Studio Explorer surfaces, including notebooks, chats, SQL snippets, query cells, and their shared toolbar patterns.
affaan-m/ECC
Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems.
asgeirtj/system_prompts_leaks
Run a prompt or slash command on a recurring interval (e.g. An agent skill from asgeirtj/system_prompts_leaks.
affaan-m/ECC
Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Graph-based reasoning with thought combination and feedback loops. Graph Of Thoughts is an agent skill from LeoYeAI/openclaw-master-skills. Graph-based reasoning with thought combination and feedback loops.
Graph Of Thoughts fits situations like: : synthesis problems; creative combination; complex multi-dimensional problems.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a claude-code`. Or copy the skill folder (skills/graph-of-thoughts in LeoYeAI/openclaw-master-skills) into .claude/skills/graph-of-thoughts in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a codex`. Or copy the skill folder (skills/graph-of-thoughts in LeoYeAI/openclaw-master-skills) into .agents/skills/graph-of-thoughts in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill graph-of-thoughts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/graph-of-thoughts, .gemini/skills/graph-of-thoughts, .github/skills/graph-of-thoughts and .opencode/skills/graph-of-thoughts in your project.
Going by SKILL.md and its folder, Graph Of Thoughts needs Python for the scripts in its folder. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Graph Of Thoughts is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 7.1k tokens (SKILL.md is roughly 28k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Graph Of Thoughts: Explore Codebase with Graph (tirth8205/code-review-graph, 32k stars), Loop (alirezarezvani/claude-skills, 28k stars), Explorer (supabase/supabase, 111k stars) and Autonomous Loops (affaan-m/ECC, 277k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.