From dvar-torah-plugin
Analyze previous divrei torah to discover patterns, avoid repetition, or extract a writing template. Use when reviewing writing history or basing a new piece on a previous one.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dvar-torah-plugin:previousThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
/dvar-torah:previous → scan all, show patterns + recommendations
/dvar-torah:previous --base → list files for selection, extract template
output/divrei-torah/ and returns pattern analysis, recommendations for new topics, underused thinkers, and style observations.--base: Lists previous divrei torah for selection, then extracts a writing template (structure, register, citation density) from the selected files.Pipeline usage from the compose orchestrator is unchanged.
מיומנות שמנתחת דברי תורה ופוסטים שנכתבו בעבר.
שני מצבים:
mode: "avoid" — זיהוי דפוסים, מניעת חזרות, המלצה על כיוונים חדשים (התנהגות קיימת)mode: "base_on" — חילוץ סגנון ומבנה מדברי תורה נבחרים, שימוש כתבנית לכתיבה חדשהFLAG = "$ARGUMENTS[0]" # --base | (none)
if FLAG == "--base":
mode = "base_on"
else:
mode = "avoid"
modemode: "avoid" # ברירת מחדל — זיהוי דפוסים + המלצות
mode: "base_on" # כתיבה על בסיס קבצים נבחרים
selected_files: # רק ב-base_on — רשימת נתיבים שנבחרו
- "output/divrei-torah/dvar-torah/2024-01-15-bereshit.md"
דברי תורה קודמים נשמרים ב:
output/divrei-torah/
├── dvar-torah/ ← דברי תורה מלאים
│ ├── YYYY-MM-DD-parsha-name.md
│ └── ...
├── posts/ ← פוסטים
│ ├── YYYY-MM-DD-topic.md
│ └── ...
└── shiurim/ ← שיעורים
├── YYYY-MM-DD-topic.md
└── ...
Glob("output/divrei-torah/**/*.md")
לכל דבר תורה קודם, חלץ:
metadata:
date: "2024-01-15"
format: "dvar-torah"
parsha: "בראשית"
topic: "צלם אלהים"
thinkers_used: ["רמב״ם", "רס״ג", "רלב״ג"]
length: "medium"
style:
structure: "dialectical" # dialectical / analytical / narrative / comparative
opening_pattern: "question" # question / quote / story / statement
closing_pattern: "practical" # practical / philosophical / open-ended
content:
main_argument: "..."
sources_count: 5
philosophical_depth: "deep" # surface / moderate / deep — see rubric below
Use these criteria when assigning philosophical_depth to each previous piece:
| Level | Criteria |
|---|---|
| deep | Engages primary sources directly; develops an original argument; creates multi-layered analysis with at least two thinkers in genuine dialogue; reaches a non-obvious synthesis |
| moderate | References key texts with correct attribution; standard analysis of a known debate; clear thesis with logical support; at least one primary source quoted accurately |
| surface | Mentions themes or thinkers without substantive source engagement; generic observations that don't advance an argument; no original synthesis; paraphrase without analysis |
Apply this rubric consistently so that pattern-detection across previous writings reflects real depth variation.
מתוך כל הקבצים, חלץ:
בהתבסס על הניתוח:
recommendations:
avoid_topics: ["צלם אלהים"] # כבר נכתב
suggested_topics: ["ידיעה ובחירה"] # עוד לא נכתב
underused_thinkers: ["קרשקש", "אלבו"] # שימוש נמוך
style_consistency:
keep: ["opening with question"] # שמור — עובד טוב
try: ["narrative opening"] # נסה — לגיוון
format_suggestion: "post" # אם כל הקודמים דברי תורה — נסה פוסט
כשיוצרים תוכן חדש, התאם לדפוסים שזוהו:
שמור את הדפוסים שזוהו ב-Memory MCP לשימוש עתידי:
mcp__memory__create_entity("writing_patterns", {
preferred_thinkers: [...],
covered_topics: [...],
dominant_style: "...",
format_distribution: { dvar_torah: 5, post: 2, shiur: 1 }
})
avoidanalysis:
total_previous: 8
format_distribution:
dvar_torah: 5
post: 2
shiur: 1
top_thinkers: ["רמב״ם (7)", "רלב״ג (4)", "רס״ג (3)"]
covered_topics: ["צלם אלהים", "בחירה חופשית", "טעמי המצוות"]
dominant_style: "dialectical"
recommendations:
avoid: ["צלם אלהים — נכתב ב-2024-01-15"]
suggest: ["ידיעה ובחירה", "נבואה", "השגחה"]
try_thinkers: ["קרשקש", "אלבו"]
try_format: "post — רוב הקודמים דברי תורה"
base_on — כתיבה על בסיס קבצים נבחריםselected_filesextracted:
opening_style: "שאלה פילוסופית" | "ציטוט" | "סיפור" | "טענה"
argument_structure: "dialectical" | "analytical" | "narrative" | "comparative"
thinker_usage: "רמב״ם ראשון, קרשקש משיג" | "שני הוגים במקביל" | ...
paragraph_length: "short" | "medium" | "long"
closing_style: "תובנה מעשית" | "שאלה פתוחה" | "סינתזה"
register: "אקדמי" | "שיחתי" | "דרשני"
avg_word_count: 1500
citation_density: "heavy" | "moderate" | "light"
template_guidance — הנחיות לסגנון ומבנהbase_onbase_on_analysis:
source_files:
- path: "output/divrei-torah/dvar-torah/2024-01-15-bereshit.md"
topic: "צלם אלהים"
thinkers: ["רמב״ם", "קרשקש"]
- path: "output/divrei-torah/dvar-torah/2024-02-10-noach.md"
topic: "בחירה חופשית"
thinkers: ["רמב״ם", "רלב״ג"]
template_guidance:
opening:
style: "שאלה פילוסופית חדה מהפסוק"
example_pattern: "מדוע [X]? האם [Y]?"
body:
structure: "dialectical — שני הוגים בדיאלוג, ניגוד ופתרון"
thinker_order: "הוגה א׳ מציע → הוגה ב׳ מקשה → סינתזה"
citation_style: "ציטוט עברי + תרגום"
paragraph_length: "medium — 3-4 משפטים לפסקה"
closing:
style: "תובנה מעשית — שאלה אישית לסיום"
register: "אקדמי-דרשני, עברית, מינוח פילוסופי"
avg_length: 1600
strict_instructions: |
כתוב את דבר התורה החדש לפי אותו מבנה ומבוסס על הדפוסים שחולצו:
1. פתח בשאלה פילוסופית חדה
2. הצג שני הוגים בדיאלוג (ניגוד → פתרון)
3. צטט בעברית עם תרגום
4. סגור עם תובנה מעשית ושאלה אישית
5. אורך: ~1500-1700 מילים
npx claudepluginhub yodem/dvar-torah-plugin --plugin dvar-torah-pluginDecomposes paragraphs into structural fingerprints (opening moves, sentence shapes, trope patterns) and aggregates them to surface repetition invisible to linear reading. For editorial review of long-form writing.
Analyzes user's Yuque documents to extract writing style profile—vocabulary habits, sentence patterns, tone—for consistent voice when generating new content. Useful for style analysis requests.
Provides the house style for learning-in-public essays: first-person, concrete-first, honest about understanding limits. Use when drafting vault-style posts from evergreen notes or as an editorial lens.