Skip to content

Instantly share code, notes, and snippets.

View agladky's full-sized avatar

Anatolii Gladkii agladky

View GitHub Profile
@umputun
umputun / plan-annotate.py
Created February 15, 2026 18:27
plan-annotate.py - Claude Code hook for interactive plan review via kitty overlay editor
#!/usr/bin/env python3
"""plan-annotate.py - PreToolUse hook for ExitPlanMode.
interactive plan review hook that lets you annotate Claude's plans directly
in your editor before approving them. when Claude calls ExitPlanMode, this
hook intercepts the call, opens the plan in $EDITOR via a kitty terminal
overlay, and waits for you to review/edit. if you make changes, the hook
computes a unified diff and sends it back to Claude as a denial reason,
forcing Claude to revise the plan based on your annotations. if you make
no changes, the normal approval dialog appears.
@umputun
umputun / skill-activation-hook.md
Last active September 13, 2026 13:51
Mandatory Skill Activation Hook for Claude Code

Mandatory Skill Activation Hook for Claude Code

Forces Claude to evaluate and activate relevant skills before implementation. By default, Claude Code often ignores available skills entirely and proceeds with generic responses instead of leveraging specialized skill knowledge.

Problem Solved

Claude Code frequently skips skill evaluation and jumps straight to implementation, missing out on specialized context and workflows that skills provide. This hook injects a system reminder on every prompt submission that enforces a three-step sequence: evaluate → activate → implement.

Files Required

@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 31, 2026 18:26
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@amarao
amarao / blame-praise.py
Last active May 29, 2026 14:21
Example of argparse with subparsers for python
#!/usr/bin/env python
import argparse
def main(command_line=None):
parser = argparse.ArgumentParser('Blame Praise app')
parser.add_argument(
'--debug',
action='store_true',
help='Print debug info'