.memstack/skills/anti-corruption-v2/SKILL.md
Advanced anti-corruption investigation system for analyzing chat logs and communications to detect suspicious patterns, corruption indicators, and relationship networks. Version 2 adds enhanced person relationship analysis capabilities including multi-hop relationship detection, relationship evolution tracking, power structure analysis, collusion ring detection, timeline analysis, and money flow tracing.
npx skillsauth add s1366560/agi-demos anti-corruption-v2Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This enhanced version of the anti-corruption investigation tool provides comprehensive analysis of chat logs and communications to detect corruption patterns and build detailed relationship networks.
Find indirect connections between persons through 2-3 hops, revealing hidden relationships that are not directly visible.
Track how relationships develop over time, identifying escalation patterns and changes in communication intensity.
Identify hierarchy and power centers within the network, mapping official-business relationships and influence patterns.
Find closed groups (triangles) of colluding individuals with high mutual suspicious activity.
Analyze temporal patterns of suspicious activities, identifying peak activity periods and suspicious time patterns.
Track financial transaction patterns mentioned in communications, identifying key money handlers and transaction flows.
Include network metrics:
# Basic corruption pattern analysis
python anti_corruption_v2.py analyze data.jsonl report.json
# Enhanced social network analysis
python anti_corruption_v2.py social-network data.jsonl social_network.json --text-report report.txt
# Timeline analysis
python anti_corruption_v2.py timeline data.jsonl timeline.json --text-report timeline_report.txt
# Money flow analysis
python anti_corruption_v2.py money-flow data.jsonl money_flows.json --text-report money_report.txt
# Full comprehensive analysis
python anti_corruption_v2.py full data.jsonl output/
from anti_corruption_v2 import EnhancedSocialNetworkAnalyzer, TimelineAnalyzer, MoneyFlowAnalyzer
# Load messages
messages = [...] # List of message dictionaries
# Social network analysis
analyzer = EnhancedSocialNetworkAnalyzer(messages)
results = analyzer.analyze()
# Access results
profiles = results['person_profiles']
intermediaries = results['intermediaries']
communities = results['communities']
collusion_rings = results['collusion_rings']
money_flows = results['money_flows']
{"timestamp": "2024-01-15 14:30:00", "sender": "张三", "receiver": "李四", "content": "那笔钱已经准备好了"}
{"timestamp": "2024-01-15 14:32:00", "sender": "李四", "receiver": "张三", "content": "好的,老地方见"}
[2024-01-15 14:30:00] 张三 -> 李四: 那笔钱已经准备好了
[2024-01-15 14:32:00] 李四 -> 张三: 好的,老地方见
{
"person_profiles": {
"张三": {
"name": "张三",
"message_count": 150,
"contact_count": 8,
"risk_score": 7.5,
"risk_level": "🔴 高风险",
"influence_score": 8.2,
"centrality_score": 0.75,
"betweenness_score": 0.45,
"primary_role": "official",
"corruption_patterns": {
"financial_corruption": 12,
"power_abuse": 8
}
}
},
"network_statistics": {
"total_persons": 25,
"total_relationships": 68,
"network_density": 0.23,
"risk_distribution": {"high": 5, "medium": 8, "low": 12}
},
"intermediaries": [...],
"communities": [...],
"influence_ranking": [...],
"multi_hop_relationships": [...],
"relationship_evolution": [...],
"power_structure": {...},
"collusion_rings": [...],
"timeline_events": [...],
"money_flows": [...]
}
# 1. Run full analysis
python anti_corruption_v2.py full example_data.jsonl ./output/
# 2. Check generated reports
cat output/social_network_report.txt
cat output/timeline_report.txt
cat output/money_flow_report.txt
# 3. Analyze specific aspects
python anti_corruption_v2.py social-network example_data.jsonl network.json --text-report network.txt
anti_corruption_v2.py - Main analysis toolSKILL.md - This documentationexample_data.jsonl - Sample data for testingtools
Sandbox MCP Server 是一个隔离的代码执行环境,提供完整的文件系统操作、命令执行、 代码分析、测试运行和远程桌面能力。当你需要执行代码、操作文件、运行测试、 分析代码结构、或需要图形界面操作时使用此技能。支持 Python、Node.js、Java 等多语言环境。
tools
Replace with description of the skill and when Claude should use it.
development
Generate high-quality images using ModelScope's Z-Image API. Use this skill when the user wants to generate images using the specific Z-Image model or ModelScope API they provided. Trigger words: 'Zimage', 'ModelScope', 'generate zimage'.
tools
No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity ...