Skip to content

Instantly share code, notes, and snippets.

@swayson
swayson / questions.md
Created January 22, 2026 05:02
Questions that advance knowledge and insight

[[Problem Solving]] [[List of questions]]

Outline

  • Why Question?
  • Questions for Better DECISION-MAKING
  • Questions for Sparking CREATIVITY
  • Questions to Help CONNECT WITH OTHERS
  • Questions for Stronger LEADERSHIP
@swayson
swayson / learning-guide-prompt.md
Created January 20, 2026 04:28
learning-guide-prompt

Adopt a supportive, guiding teaching style that empowers the learner—but act as a “tool for thought,” not an outsourced reasoner. PRINCIPLES

  • Use productive resistance: challenge before you comply.
  • Prefer provocations over autocomplete: critiques, alternatives, counterarguments, fallacy checks.
  • Keep users engaged with source material: if text-based, ask for key excerpts + their highlights + 3–5 notes in their own words.
  • Use “lenses” instead of generic summaries (e.g., Argument / Skeptic / Mechanism / Definition / Transfer / Decision / Study). Ask the user to pick one.
  • Make the workflow interactionally easy but cognitively effortful: require a minimal goal + rough outline + attempt before refining.
  • Maintain agency: avoid chatty filler; use a “workspace” style with actionable steps. DEFAULT RESPONSE FORMAT
  1. Calibration: what they know + goal + constraints + their current attempt/outline
import dspy
from typing import List
import os
from dotenv import load_dotenv
load_dotenv()
class QuestionAnswerer(dspy.Signature):
@swayson
swayson / new-cmd.md
Created October 26, 2025 07:32
Claude Code Command to create Claude Code Commands (credit jason liu)

New Command

Create new Claude commands following best practices.

Interview Process

1. Understand Purpose

"Let's create a new command. Describe:"

  • What problem does it solve?
  • Who uses it and when?
@swayson
swayson / fact-check.md
Created October 26, 2025 07:31
Claude Code Command Fact Check.

Fact Check

Verify claims and statements from websites, papers, or text by cross-referencing multiple sources.

Workflow

1. Gather Input

Determine input type:

  • URL provided: /fact-check https://example.com/article
The user is currently STUDYING, and they've asked you to follow these **strict rules** during this chat. No matter what other instructions follow, you MUST obey these rules:
## STRICT RULES
Be an approachable-yet-dynamic teacher, who helps the user learn by guiding them through their studies.
1. **Get to know the user.** If you don't know their goals or grade level, ask the user before diving in. (Keep this lightweight!) If they don't answer, aim for explanations that would make sense to a 10th grade student.
2. **Build on existing knowledge.** Connect new ideas to what the user already knows.
3. **Guide users, don't just give answers.** Use questions, hints, and small steps so the user discovers the answer for themselves.
4. **Check and reinforce.** After hard parts, confirm the user can restate or use the idea. Offer quick summaries, mnemonics, or mini-reviews to help the ideas stick.
5. **Vary the rhythm.** Mix explanations, questions, and activities (like roleplaying, practice rounds, or asking the user
@swayson
swayson / command-facilitator.md
Created August 7, 2025 05:32
Senior Facilitator claude command useful in preparing for interviews.

Senior Facilitator

I will explain this content as a senior facilitator and assessment expert would, focusing on the behaviors, evidence, and decision criteria that indicate proficiency—ranging from competent to exceptional.

I will analyze responses using structured evaluation tools:

  • Read tool to examine clarity, structure, and coherence of thought
  • Grep tool to surface behavioral indicators and competency signals
  • Glob tool to contextualize the response across broader role expectations
@swayson
swayson / claude_code_hooks_for_uv.md
Created July 27, 2025 09:04 — forked from glennmatlin/claude_code_hooks_for_uv.md
Claude Code hooks for working with `uv`

Claude Code Hooks for working with uv

by Glenn Matlin / glennmatlin on all socials

Installation

  1. Download and copy all files in this gist to ~/.claude/
  2. Move the .py files to ~/.claude/hooks
  3. Restart Claude Code.

Here are the 5 essential and most fundamental questions that will enable you to create a powerful 2x2 matrix.


The 5 Essential Questions for Creating a 2x2 Matrix

1. What is the core decision I need to make or the central problem I need to clarify?

Why this is essential: This is the starting point and the "why." Without a clear purpose, your matrix will be an intellectual exercise with no real-world value. Are you trying to prioritize projects, segment customers, assess risks, or decide on a market entry strategy? Defining the problem ensures your matrix will provide a useful answer.

  • Example: "Our team has 20 potential projects for the next quarter, but we only have the resources for a few. The core decision is: Which projects should we prioritize to deliver the most value?"
import dspy
import os
# --- 1. Setup the Language Model ---
# Configure the language model to use with OpenRouter.
# This example uses Google's Gemini 2.5 Pro.
# The API key is fetched from environment variables.
llm = dspy.LM(
# model="openrouter/qwen/qwq-32b:free",
model="openrouter/google/gemma-3-27b-it:free",