Prompt file imported from https-shubhamsahu/crypt.ml (
.github/prompts/design-graph.prompt.md). Fill in{{feature}}before use. Copyright stays with the author.
You are designing the Graph Intelligence layer for crypt.ml.
Feature request: {{feature}}
Your job is to produce a structured architectural design.
Output must include:
-
Objective
- What problem this graph feature solves
-
Node Model
- Node types (Account, Transaction, Device, etc.)
- Required attributes per node
-
Edge Model
- Edge direction
- Edge attributes (amount, timestamp, frequency)
-
Required Graph Metrics
- Shortest Path
- Community Detection
- Centrality (Eigenvector / PageRank)
- Any additional structural metrics
-
Risk Contribution
- How each metric affects final risk score
- Suggested weighting logic
-
Computational Considerations
- Time complexity
- Memory constraints
- Batch vs real-time computation
-
Edge Cases
- No-path scenario
- New account cold-start problem
- Large dense clusters
Do NOT write code. Focus strictly on system design. Use clean numbered sections.