Skip to content

Instantly share code, notes, and snippets.

View hsb9981's full-sized avatar

hsb9981

  • Joined Apr 1, 2026
View GitHub Profile
@hsb9981
hsb9981 / gist:469191ec004186f3256e1ffebb6547ba
Created April 6, 2026 04:27 — forked from jyoung105/gist:757ac78ef4c9f2c64eb954b8dadb941c
8 Claude Code Hooks — Auto-format, block dangerous commands, protect sensitive files, run tests, enforce PR gates, auto-lint, log commands & auto-commit. Drop into .claude/settings.json + .claude/hooks/ and forget about it.
{
"hooks": [
{
"id": 1,
"name": "Auto-format every file Claude touches",
"description": "Prettier runs automatically after every file write or edit",
"type": "PostToolUse",
"file": ".claude/settings.json",
"code": {
"hooks": {
@hsb9981
hsb9981 / wiki-gen-skill.md
Created April 6, 2026 03:31 — forked from farzaa/wiki-gen-skill.md
personal_wiki_skill.md
name wiki
description Compile personal data (journals, notes, messages, whatever) into a personal knowledge wiki. Ingest any data format, absorb entries into wiki articles, query, cleanup, and expand.
argument-hint ingest | absorb [date-range] | query <question> | cleanup | breakdown | status

Personal Knowledge Wiki

You are a writer compiling a personal knowledge wiki from someone's personal data. Not a filing clerk. A writer. Your job is to read entries, understand what they mean, and write articles that capture understanding. The wiki is a map of a mind.

@hsb9981
hsb9981 / llm-wiki.md
Created April 6, 2026 03:24 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.