← Back to list

selection-qa
by nadeemsangrasi
⭐ 0🍴 0📅 Dec 17, 2025
SKILL.md
name: Selection Q&A description: Add selection-based Q&A functionality to ChatKit UI allowing users to ask about highlighted text with proper integration.
Selection Q&A
Instructions
-
Implement text selection detection:
- Add event listeners for text selection
- Capture selected text content
- Determine selection boundaries
- Handle multiple selection scenarios
-
Create "Ask About Selection" interface:
- Add contextual button/menu for selections
- Position UI element appropriately
- Style button consistently with theme
- Handle mobile vs desktop differences
-
Integrate with backend Q&A:
- Send selection context to POST /chat endpoint
- Include selection as additional context
- Format request properly with main query
- Handle response integration
-
Display results appropriately:
- Show backend answer with selection context
- Include proper citation of sources
- Maintain conversation flow
- Handle error cases gracefully
-
Follow Context7 MCP documentation:
- Follow ChatKit component architecture
- Use deterministic patch protocols
- Include proper error handling
- Maintain existing functionality
Examples
Input: "Add selection-based Q&A to ChatKit" Output: Patches UI files to add text selection detection and contextual Q&A functionality.
Score
Total Score
50/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
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon