Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions graphify/skill-aider.md
Original file line number Diff line number Diff line change
Expand Up @@ -822,13 +822,13 @@ $(cat graphify-out/.graphify_python) -c "
import sys, json
from graphify.build import build_from_json
from graphify.export import to_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

# Load existing graph
existing_data = json.loads(Path('graphify-out/graph.json').read_text())
G_existing = json_graph.node_link_graph(existing_data, edges='links')
G_existing = load_node_link_graph(existing_data)

# Load new extraction
new_extraction = json.loads(Path('.graphify_extract.json').read_text())
Expand All @@ -849,7 +849,7 @@ $(cat graphify-out/.graphify_python) -c "
import json
from graphify.analyze import graph_diff
from graphify.build import build_from_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

Expand All @@ -859,7 +859,7 @@ new_extract = json.loads(Path('.graphify_extract.json').read_text())
G_new = build_from_json(new_extract, directed=IS_DIRECTED)

if old_data:
G_old = json_graph.node_link_graph(old_data, edges='links')
G_old = load_node_link_graph(old_data)
diff = graph_diff(G_old, G_new)
print(diff['summary'])
if diff['new_nodes']:
Expand All @@ -885,12 +885,12 @@ from graphify.cluster import cluster, score_all
from graphify.analyze import god_nodes, surprising_connections
from graphify.report import generate
from graphify.export import to_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

detection = {'total_files': 0, 'total_words': 99999, 'needs_graph': True, 'warning': None,
'files': {'code': [], 'document': [], 'paper': []}}
Expand Down Expand Up @@ -954,12 +954,12 @@ Load `graphify-out/graph.json`, then:
```bash
$(cat graphify-out/.graphify_python) -c "
import sys, json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

question = 'QUESTION'
mode = 'MODE' # 'bfs' or 'dfs'
Expand Down Expand Up @@ -1069,11 +1069,11 @@ If it fails, stop and tell the user to run `/graphify <path>` first.
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

a_term = 'NODE_A'
b_term = 'NODE_B'
Expand Down Expand Up @@ -1142,11 +1142,11 @@ If it fails, stop and tell the user to run `/graphify <path>` first.
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

term = 'NODE_NAME'
term_lower = term.lower()
Expand Down
24 changes: 12 additions & 12 deletions graphify/skill-devin.md
Original file line number Diff line number Diff line change
Expand Up @@ -959,13 +959,13 @@ $(cat graphify-out/.graphify_python) -c "
import sys, json
from graphify.build import build_from_json
from graphify.export import to_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

# Load existing graph
existing_data = json.loads(Path('graphify-out/graph.json').read_text())
G_existing = json_graph.node_link_graph(existing_data, edges='links')
G_existing = load_node_link_graph(existing_data)

# Load new extraction
new_extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
Expand All @@ -986,7 +986,7 @@ $(cat graphify-out/.graphify_python) -c "
import json
from graphify.analyze import graph_diff
from graphify.build import build_from_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

Expand All @@ -995,7 +995,7 @@ new_extract = json.loads(Path('graphify-out/.graphify_extract.json').read_text()
G_new = build_from_json(new_extract, directed=IS_DIRECTED)

if old_data:
G_old = json_graph.node_link_graph(old_data, edges='links')
G_old = load_node_link_graph(old_data)
diff = graph_diff(G_old, G_new)
print(diff['summary'])
if diff['new_nodes']:
Expand All @@ -1021,12 +1021,12 @@ from graphify.cluster import cluster, score_all
from graphify.analyze import god_nodes, surprising_connections
from graphify.report import generate
from graphify.export import to_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

detection = {'total_files': 0, 'total_words': 99999, 'needs_graph': True, 'warning': None,
'files': {'code': [], 'document': [], 'paper': []}}
Expand Down Expand Up @@ -1090,12 +1090,12 @@ Load `graphify-out/graph.json`, then:
```bash
$(cat graphify-out/.graphify_python) -c "
import sys, json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

question = 'QUESTION'
mode = 'MODE' # 'bfs' or 'dfs'
Expand Down Expand Up @@ -1202,11 +1202,11 @@ if not Path('graphify-out/graph.json').exists():
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

a_term = 'NODE_A'
b_term = 'NODE_B'
Expand Down Expand Up @@ -1274,11 +1274,11 @@ if not Path('graphify-out/graph.json').exists():
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text())
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

term = 'NODE_NAME'
term_lower = term.lower()
Expand Down
12 changes: 6 additions & 6 deletions graphify/skills/agents/references/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ If the CLI is unavailable, load `graphify-out/graph.json` and run the traversal
```bash
$(cat graphify-out/.graphify_python) -c "
import sys, json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

question = 'QUESTION'
mode = 'MODE' # 'bfs' or 'dfs'
Expand Down Expand Up @@ -197,11 +197,11 @@ If the CLI is unavailable, run it inline:
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

a_term = 'NODE_A'
b_term = 'NODE_B'
Expand Down Expand Up @@ -265,11 +265,11 @@ If the CLI is unavailable, run it inline:
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

term = 'NODE_NAME'
term_lower = term.lower()
Expand Down
4 changes: 2 additions & 2 deletions graphify/skills/agents/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $(cat graphify-out/.graphify_python) -c "
import json
from graphify.analyze import graph_diff
from graphify.build import build_from_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

Expand All @@ -184,7 +184,7 @@ new_extract = json.loads(Path('graphify-out/.graphify_extract.json').read_text(e
G_new = build_from_json(new_extract, directed=IS_DIRECTED)

if old_data:
G_old = json_graph.node_link_graph(old_data, edges='links')
G_old = load_node_link_graph(old_data)
diff = graph_diff(G_old, G_new)
print(diff['summary'])
if diff['new_nodes']:
Expand Down
12 changes: 6 additions & 6 deletions graphify/skills/amp/references/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ If the CLI is unavailable, load `graphify-out/graph.json` and run the traversal
```bash
$(cat graphify-out/.graphify_python) -c "
import sys, json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

question = 'QUESTION'
mode = 'MODE' # 'bfs' or 'dfs'
Expand Down Expand Up @@ -197,11 +197,11 @@ If the CLI is unavailable, run it inline:
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

a_term = 'NODE_A'
b_term = 'NODE_B'
Expand Down Expand Up @@ -265,11 +265,11 @@ If the CLI is unavailable, run it inline:
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

term = 'NODE_NAME'
term_lower = term.lower()
Expand Down
4 changes: 2 additions & 2 deletions graphify/skills/amp/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $(cat graphify-out/.graphify_python) -c "
import json
from graphify.analyze import graph_diff
from graphify.build import build_from_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

Expand All @@ -184,7 +184,7 @@ new_extract = json.loads(Path('graphify-out/.graphify_extract.json').read_text(e
G_new = build_from_json(new_extract, directed=IS_DIRECTED)

if old_data:
G_old = json_graph.node_link_graph(old_data, edges='links')
G_old = load_node_link_graph(old_data)
diff = graph_diff(G_old, G_new)
print(diff['summary'])
if diff['new_nodes']:
Expand Down
12 changes: 6 additions & 6 deletions graphify/skills/claude/references/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ If the CLI is unavailable, load `graphify-out/graph.json` and run the traversal
```bash
$(cat graphify-out/.graphify_python) -c "
import sys, json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

question = 'QUESTION'
mode = 'MODE' # 'bfs' or 'dfs'
Expand Down Expand Up @@ -197,11 +197,11 @@ If the CLI is unavailable, run it inline:
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

a_term = 'NODE_A'
b_term = 'NODE_B'
Expand Down Expand Up @@ -265,11 +265,11 @@ If the CLI is unavailable, run it inline:
$(cat graphify-out/.graphify_python) -c "
import json, sys
import networkx as nx
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
from pathlib import Path

data = json.loads(Path('graphify-out/graph.json').read_text(encoding='utf-8'))
G = json_graph.node_link_graph(data, edges='links')
G = load_node_link_graph(data)

term = 'NODE_NAME'
term_lower = term.lower()
Expand Down
4 changes: 2 additions & 2 deletions graphify/skills/claude/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $(cat graphify-out/.graphify_python) -c "
import json
from graphify.analyze import graph_diff
from graphify.build import build_from_json
from networkx.readwrite import json_graph
from graphify.paths import load_node_link_graph
import networkx as nx
from pathlib import Path

Expand All @@ -184,7 +184,7 @@ new_extract = json.loads(Path('graphify-out/.graphify_extract.json').read_text(e
G_new = build_from_json(new_extract, directed=IS_DIRECTED)

if old_data:
G_old = json_graph.node_link_graph(old_data, edges='links')
G_old = load_node_link_graph(old_data)
diff = graph_diff(G_old, G_new)
print(diff['summary'])
if diff['new_nodes']:
Expand Down
Loading