@gurupanguji

Snippet Posts Implementation Plan

Objective

Create a Python script and a new Gemini skill to migrate Obsidian snippets to Jekyll posts.

Proposed Solution

Implementation Steps

  1. Script Development:
    • Define the SnippetMigrator class to handle the logic.
    • Implement fetch_snippets(date) using obsidian files.
    • Implement parse_snippet(content) to extract front matter and body.
    • Implement transform_to_jekyll(snippet) to generate the target front matter and filename.
    • Implement write_post(jekyll_post) to save to _posts/.
  2. Testing:
    • Create tests/test_migrate_snippets.py.
    • Mock obsidian CLI responses.
    • Verify front matter transformation (title prefix, date format, slug generation).
    • Verify content preservation.
  3. Skill Creation:
    • Use skill-creator to define the snippet-posts skill.
    • The skill should wrap the execution of the migration script and provide helpful feedback.
  4. Validation:
    • Dry run for 2026-04-06.
    • Confirm the generated files in _posts/ match the expected format.

Verification