← スキル一覧に戻る

soql-database-introspector-class-diagram-builder
by bispo
SOQL Database Introspector
⭐ 0🍴 0📅 2026年1月7日
SKILL.md
name: SOQL Database Introspector & Class Diagram Builder description: A skill to introspect Salesforce databases using SOQL, understand schema structure, discover relationships, and build class diagrams for data modeling.
SOQL Database Introspector & Class Diagram Builder
🎯 Primary Mission
This skill specializes in:
- Database Introspection - Deep dive into Salesforce schema using SOQL metadata queries
- Relationship Discovery - Identify and map object relationships (lookups, master-detail, hierarchies)
- Class Diagram Generation - Build Mermaid diagrams showing entity relationships
- Schema Documentation - Help users understand their database structure
� Documentation
This skill is organized into focused documentation:
-
reference.md - Complete technical reference
- Tool options and commands
- SOQL introspection queries (5-step guide)
- Diagram notation reference
- Mermaid templates
- Best practices
-
examples.md - Practical workflows and examples
- Class diagram builder workflow
- Complete introspection examples
- Common patterns
- Step-by-step tutorials
- Pro tips
-
soql-README.md - Tool usage guide
- Basic usage and examples
- Configuration options
- Troubleshooting
🚀 Quick Start
# Make executable (first time)
chmod +x soql.sh
# Execute simple query
./soql.sh "SELECT Id, Name FROM Account LIMIT 10"
🔧 Tool Options
| Option | Description |
|---|---|
-h, --help | Display help message |
-f, --force-login | Force new OAuth2 authentication |
-r, --raw | Return raw JSON without formatting |
-c, --count | Return only record count |
-l, --limit N | Automatically add LIMIT N to query |
-v, --verbose | Verbose mode (debug) |
🔍 Common Workflows
Introspect an Object
# Get all fields
./soql.sh "SELECT QualifiedApiName, DataType, Label
FROM FieldDefinition
WHERE EntityDefinition.QualifiedApiName = 'Account'
LIMIT 200"
# Get relationships
./soql.sh "SELECT QualifiedApiName, ReferenceTargetField, RelationshipName
FROM FieldDefinition
WHERE EntityDefinition.QualifiedApiName = 'Account'
AND ReferenceTargetField != null"
Build Class Diagram
- Identify objects you want to diagram
- Introspect fields for each object (see examples.md)
- Extract relationships using SOQL queries
- Build Mermaid diagram using discovered information
See examples.md for complete workflows.
📋 Prerequisites
curl- For HTTP requestsjq- For JSON formatting (optional but recommended)
# Ubuntu/Debian
sudo apt-get install curl jq
# MacOS
brew install curl jq
📖 Learn More
- New to this tool? Start with soql-README.md
- Need query syntax? Check reference.md
- Want examples? See examples.md
- Building diagrams? Follow workflows in examples.md
🔄 Quick Reference
# List custom objects
./soql.sh "SELECT QualifiedApiName, Label FROM EntityDefinition WHERE QualifiedApiName LIKE '%__c'"
# Count records
./soql.sh --count "SELECT COUNT() FROM Account"
# Sample data
./soql.sh "SELECT FIELDS(ALL) FROM Account LIMIT 1"
For complete query reference, see reference.md.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です