Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile
# Hello, World!
This is a test file.
@thimslugga
thimslugga / gist-references-recipes.md
Created April 26, 2026 14:13 — forked from spboyer/gist-references-recipes.md
Agent Skills: References, Recipes & Token Loading Behavior - Best practices documentation

Agent Skills: References, Recipes & Token Loading Behavior

Overview

This document captures learnings about how Agent Skills handle references/, recipes/, and services/ folders, including token budget implications and best practices based on the AgentSkills.io specification and GitHub Copilot implementation behavior.

Progressive Disclosure Model

Agent Skills use a three-tier loading model to efficiently manage LLM context windows:

@thimslugga
thimslugga / llm-wiki.md
Created April 25, 2026 20:11 — 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.

@thimslugga
thimslugga / claude-code-tools.md
Created April 24, 2026 12:19 — forked from wong2/claude-code-tools.md
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@thimslugga
thimslugga / claude-code-config.md
Last active April 20, 2026 14:37
Claude Code Configuration

Claude Code Configuration

Overview

  1. .claude/ at the project root (per-repo, team config)
  2. ~/.claude/ in your home directory (global, personal config)

There is also a separate file ~/.claude.json (not a directory) that Claude Code writes to for app state and OAuth tokens. Think of it like .git/ vs .gitconfig: one is a per-project directory, one is global.

Note: There is no .claude-code directory, Claude Code uses .claude/.

@thimslugga
thimslugga / add_vim_to_path.ps1
Created April 15, 2026 17:48 — forked from eggbean/add_vim_to_path.ps1
PowerShell script to make a persistent symlink to Vim for Windows and add it to $PATH
# Jason Gomez - June 2024
# Problem 1: When installing Vim for Windows using winget it's not added
# to $PATH so it cannot easily be used from the command line.
# Problem 2: The path to the Vim executables keeps changing as the
# version number is part of the path.
# Solution: This script makes a persistent symlink to the latest installed
# version of Vim for Windows and adds it to $PATH. Re-run the
# script when a new version of Vim is installed.
# Get all Vim directories and sort them by version number
@thimslugga
thimslugga / linux_setup.md
Created April 13, 2026 15:49 — forked from gbingersoll/linux_setup.md
Linux Setup
@thimslugga
thimslugga / BootstrapUtils.psm1
Created April 13, 2026 15:47 — forked from jacobbrugh/BootstrapUtils.psm1
@jacobpbrugh's dotfiles bootstrap script
#Requires -Version 5.1
<#
.SYNOPSIS
BootstrapUtils - Reusable PowerShell utilities for Windows bootstrap and configuration
.DESCRIPTION
This module provides common utilities for:
- Logging with consistent formatting
- Admin privilege management
- Scoop package manager operations
@thimslugga
thimslugga / macos_bootstrap.sh
Created April 13, 2026 15:47 — forked from fuzzbuster/macos_bootstrap.sh
bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
#!/usr/bin/env bash
#
# bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
# 包含:Ghostty + zellij + yazi + lazygit + fastfetch + Neovim/LazyVim + 現代工具 + oh-my-zsh
# 語言環境:Python(uv/pipx)、Go、Rust(rustup)、Java(Liberica 20 Full+JavaFX)、Node(pnpm+bun)、Ruby
#
# 用法:curl -fsSL https://gist.githubusercontent.com/fuzzbuster/a117689823ba87c27437a44129253dcb/raw/1b2e930ad152a7ceb9fbb7df581b304e2d1685a0/macos_bootstrap.sh | bash
# 或 bash bootstrap.sh
#
# 可重複執行,不會重複安裝或破壞既有配置
#!/usr/bin/env bash
##
# Bootstrap
##
# export HOMEBREW_CASK_OPTS="--appdir=${HOME}/Applications"
# XCode Select
sudo xcode-select --install