← Back to list

reference-educational-template
by djankies
⭐ 0🍴 0📅 Nov 25, 2025
SKILL.md
name: reference-educational-template description: [REPLACE] Teach concepts and demonstrate patterns with examples. Use when [REPLACE with specific triggers]. allowed-tools: Read, TodoWrite
Reference-Educational Template
Purpose
This template demonstrates educational content delivery with concept explanation, examples, and anti-patterns.
Use this template when:
- Teaching concepts or design patterns
- Explaining language features
- Demonstrating best practices
- Showing common mistakes to avoid
Workflow
Phase 1: Explain Concept
Phase 2: Show Examples
Phase 3: Demonstrate Patterns
Phase 4: Highlight Pitfalls
Progressive Disclosure
Core content (this file):
- Concept explanation
- Basic examples
- When to use guidance
Detailed examples (references/):
- @references/type-guard-examples.md - Complete pattern demonstrations
- Advanced techniques and edge cases
Example Usage
<explain>
Type guards are TypeScript constructs that narrow types within conditional blocks.
They allow the compiler to understand type refinement based on runtime checks.
Why: TypeScript needs runtime evidence to narrow union types safely.
When: Use when working with union types or unknown data.
</explain>
<examples>
Basic typeof guard:
```typescript
function process(value: string | number) {
if (typeof value === "string") {
return value.toUpperCase();
}
return value.toFixed(2);
}
See Also
- @references/type-guard-examples.md - Comprehensive type guard patterns
Score
Total Score
60/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon