| name | analyze-network |
| description | Map the gift-flow network around a charity to find connected organizations and clusters |
| argument-hint | ["charity name or BN"] |
| disable-model-invocation | true |
Map the gift-flow network around: $ARGUMENTS
-
Run the network lookup:
npm run lookup -- --name "$ARGUMENTS" --hops 5
Or by BN: npm run lookup -- --bn <BN> --hops 5
-
Read the results from data/reports/lookup-<BN>.json:
- Total outgoing and incoming gift amounts
- Number of reciprocal partners
- Network size (unique connected charities)
- Any funding loops detected (3-5 hops)
-
Identify the largest flows:
node -e "const r=JSON.parse(require('fs').readFileSync('data/reports/lookup-<BN>.json','utf8')); console.log('Top recipients:'); r.outgoingGifts.slice(0,10).forEach(g=>console.log(' \$'+g.amount.toLocaleString()+' → '+g.name)); console.log('Top donors:'); r.incomingGifts.slice(0,10).forEach(g=>console.log(' \$'+g.amount.toLocaleString()+' ← '+g.name));"
-
Check for cluster patterns: hub-and-spoke, ring structures, daisy chains.
-
Cross-reference shared directors from the report.
-
For suspicious clusters, suggest profiling connected charities:
/profile-charity <partner name>