← Back to list

analyze-relations
by tennashi
⭐ 0🍴 0📅 Jan 13, 2026
SKILL.md
name: analyze-relations description: Analyze domain models and infer entity relationships from naming conventions. Language-agnostic. Use when understanding data models, designing database schemas, or before generating API code.
Relationship Analyzer
Overview
Analyzes domain model definitions and infers entity relationships from field naming conventions. Works with any programming language.
Workflow
- Read domain model files
- Parse type/class/struct definitions
- Infer relationships from field names
- Output structured relationship information
Inference Rules
| Pattern (normalized) | Inference |
|---|---|
{entity}_id / {entity}Id / {Entity}ID | belongs to Entity |
{entity}_ids / {entity}Ids / {Entity}IDs | has many Entities |
Role-based User References
| Pattern | Relationship |
|---|---|
author, creator, created_by | → User (as author/creator) |
owner | → User (as owner) |
assignee, assigned_to | → User (as assignee) |
members, participants | → []User (as members) |
reviewer, approver | → User (as reviewer/approver) |
Output Format
## Entity Relationships
### {EntityName}
- belongs to {OtherEntity} via {fieldName}
- has many {OtherEntity} via {fieldName}
- belongs to User as {role} via {fieldName}
Score
Total Score
45/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon