Skip to content

Instantly share code, notes, and snippets.

@farzaa
farzaa / wiki-gen-skill.md
Last active May 8, 2026 09:36
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.

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.

@smcllns
smcllns / curly.js
Last active May 30, 2025 04:08
Replaces straight quotes with curly quotes (smart quotes) within text on a html page. I'm using this script to just update the html page when rendered, since Prettier doesn't support and VS Code solutions weren't great.
// Replace straight quotes with curly quotes
// Add to a html page inside a <script> tag
(() => {
const curly = (s) =>
s
.replace(/(^|[\s([{])"(?=\S)/g, "$1\u201C") // opening double
.replace(/(?<!\d)"/g, "\u201D") // closing double
.replace(/(^|[\s([{])'(?=\S)/g, "$1\u2018") // opening single
.replace(/(?<!\d)'/g, "\u2019"); // closing single
@CodingDoug
CodingDoug / README.md
Last active August 8, 2025 20:09
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
@mjackson
mjackson / color-conversion-algorithms.js
Last active January 4, 2026 08:45
RGB, HSV, and HSL color conversion algorithms in JavaScript
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation