Skip to content

Instantly share code, notes, and snippets.

View itissid's full-sized avatar

Sid itissid

  • New York
View GitHub Profile
---
description: Implement technical plans from thoughts/shared/plans with verification
---
# Implement Plan
You are tasked with implementing an approved technical plan from `thoughts/shared/plans/`. These plans contain phases with specific changes and success criteria.
## Getting Started
---
description: Create detailed implementation plans through interactive research and iteration
model: opus
---
# Implementation Plan
You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work collaboratively with the user to produce high-quality technical specifications.
## Initial Response
---
name: web-search-researcher
description: Do you find yourself desiring information that you don't quite feel well-trained (confident) on? Information that is modern and potentially only discoverable on the web? Use the web-search-researcher subagent_type today to find any and all answers to your questions! It will research deeply to figure out and attempt to answer your questions! If you aren't immediately satisfied you can get your money back! (Not really - but you can re-run web-search-researcher with an altered prompt in the event you're not satisfied the first time)
tools: WebSearch, WebFetch, TodoWrite, Read, Grep, Glob, LS
color: yellow
model: sonnet
---
You are an expert web research specialist focused on finding accurate, relevant information from web sources. Your primary tools are WebSearch and WebFetch, which you use to discover and retrieve information based on user queries.
---
description: Document codebase as-is with thoughts directory for historical context
model: opus
---
# Research Codebase
You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesizing their findings.
## CRITICAL: YOUR ONLY JOB IS TO DOCUMENT AND EXPLAIN THE CODEBASE AS IT EXISTS TODAY
@itissid
itissid / global-create-worktree
Created November 27, 2025 17:44
Worktree detection for slash command
# Global Worktree Script Access Implementation Plan
## Overview
Enable the `/create_worktree` slash command to work in any project by:
1. Fixing the hardcoded `--directory humanlayer` in the bash script
2. Making the script globally accessible via symlink
3. Leveraging the existing `humanlayer claude init` command for slash command portability
## Current State Analysis
--------------------------------------------------------------------------------
-- HYPER KEYS + GLOBAL VARIABLES
--------------------------------------------------------------------------------
local hyper = { "ctrl", "alt", "cmd" }
-- We'll store the 'targetScreen' the user picks.
local targetScreen = nil
-- Which application do we want to open/move?
-- You can change this to any bundle ID or app name you like (e.g., "Safari").
CREATE TABLE tweets (
... user text,
... time timestamp,
... tweet text,
... lat float,
... long float,
... PRIMARY KEY (user, time)
... );
@itissid
itissid / TrieFromScratch.py
Last active August 3, 2018 16:02
A trie from scratch.
import string
class TrieNode(object):
"""
Context: Implementation of the trie using a dictionary is trivial:
https://gist.github.com/itissid/6a5bec95424b5630908e877c02d957d5
But if one was to implement the Trie node as a DS then one needs to think about implementation a bit more.
So what I did was keep the API code for search, insert, search_prefix the same as the gist; i.e.
to pretend we are still using a dictionary, but I implemented some magic methods for the trie in the TrieNode (
@itissid
itissid / Trie.py
Created July 26, 2018 17:12
A simple Trie implementation
class Trie:
def __init__(self):
"""
Initialize your data structure here.
"""
self.root_dict = {}
def insert(self, word):
"""
@itissid
itissid / fun_orm.py
Created June 21, 2018 11:16 — forked from dmitric/fun_orm.py
A simple read-only ORM like functionality using python's __getattr__. Example uses tornado's torndb Connection and query
class Backend(object):
"""Allows access to backend and removes logic from handlers"""
def __init__(self):
"""Inititalize with the variables you need"""
self.__users_data = None
self.db = Connection(
options.db_host,
options.db,
user=options.db_user,