agentleFS
mxslrmxslr/mlcraft/skills/domain-graph/SKILL.md

domain-graph

Skill8 starsChanged 4 months agoMITView on GitHub

Use for graph machine learning: node classification, link prediction, graph classification or regression, recommendation on graphs, molecule or network analysis, community detection, and graph anomaly detection with graph neural networks. Picks the GNN by task, enforces transductive vs inductive splits (a common leakage source), and uses graph metrics. Triggers on 'graph neural network', 'GNN', 'node classification', 'link prediction', 'knowledge graph', 'molecule', 'social network', 'GCN', 'GraphSAGE', 'GAT'.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use PyTorch Geometric (PyG) or DGL.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Graph ML - Method Selection

Use PyTorch Geometric (PyG) or DGL. GNNs need node features, so add structural features (degree, node2vec) when raw features are weak.

Decision table

TaskRecommendedNotes
Node classification, static graphGCN (simple, strong baseline), then GATtransductive; GCN is a remarkably strong baseline.
Large or industrial, or unseen nodesGraphSAGE (inductive, neighbor sampling)generalizes to nodes and graphs not seen in training.
Graph classification or regressionGIN (maximally expressive) with global poolingmolecules, program graphs.
Link prediction or graph recommendationGraphSAGE or LightGCN with negative samplingmetrics are AUC or AP, and Hits@K or MRR.
Weak or missing featuresadd structural or node2vec featuresGNNs underperform without informative features.

Cross-cutting practice

  • Leakage (critical): be explicit about transductive (mask nodes within one graph) versus inductive (held-out nodes or graphs) evaluation. For link prediction, remove the test edges from the message-passing graph during training, otherwise the model sees the answer. For graph classification, split by graph.
  • Metrics: node and graph classification use accuracy or macro F1 (macro when imbalanced); link prediction uses AUC or AP, Hits@K, MRR.
  • Explainability: GNNExplainer or integrated gradients (which nodes and edges mattered), and attention weights for GAT.
  • Recent options (2022-2024): Graph Transformers (Graphormer, GraphGPS, Exphormer). A 2024 reassessment shows well-tuned classic GNNs (GCN, GAT, GraphSAGE) match or beat them on most benchmarks, so tune the simple baseline before reaching for a transformer.
  • Improve accuracy: use accuracy-improvement-loop; evaluate with rigorous-evaluation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.