← スキル一覧に戻る

user-profile-reader
by memorysaver
Universal agentic workflow CLI — compose AI agents and skills for any task.
⭐ 10🍴 0📅 2026年1月22日
SKILL.md
name: user-profile-reader description: | Read user profile from workspace and calculate content relevance. Use to personalize output based on user interests. tools: Read
User Profile Reader Skill
Read and interpret user preferences for content personalization.
What This Skill Does
- Reads
user-profile.jsonfrom workspace root - Provides user context to other processing
- Calculates relevance scores for content
User Profile Location
~/.looplia/user-profile.json
User Profile Schema
{
"userId": "string",
"topics": [
{ "topic": "string", "interestLevel": 1-5 }
],
"style": {
"tone": "beginner" | "intermediate" | "expert" | "mixed",
"targetWordCount": 100-10000,
"voice": "first-person" | "third-person" | "instructional"
}
}
Relevance Scoring Algorithm
Calculate score.relevanceToUser (0-1):
1. For each user topic:
- weight = interestLevel / 5
- matched = content tags/themes contain topic (case-insensitive)
2. Calculate score:
- matchedWeight = sum of weights for matched topics
- totalWeight = sum of all topic weights
- score = matchedWeight / totalWeight
3. If no user topics defined:
- score = 0.5 (neutral)
Example Calculation
User profile:
{
"topics": [
{ "topic": "AI", "interestLevel": 5 },
{ "topic": "productivity", "interestLevel": 3 },
{ "topic": "cooking", "interestLevel": 2 }
]
}
Content tags: ["AI", "safety", "alignment"]
Calculation:
- AI: matched, weight = 5/5 = 1.0 (contributes to matchedWeight)
- productivity: not matched, weight = 3/5 = 0.6 (contributes to totalWeight only)
- cooking: not matched, weight = 2/5 = 0.4 (contributes to totalWeight only)
- matchedWeight = 1.0
- totalWeight = 1.0 + 0.6 + 0.4 = 2.0
- score = 1.0 / 2.0 = 0.5
Usage in Other Skills
When content-documenter needs relevance score:
- Read user-profile.json
- Compare content tags/themes to user topics
- Apply algorithm above
- Return score in
score.relevanceToUserfield
Handling Edge Cases
- No user profile file: Use score = 0.5
- Empty topics array: Use score = 0.5
- Invalid JSON: Use score = 0.5, log warning
- All topics matched: score = 1.0
- No topics matched: score = 0.0
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です