Skip to content

Instantly share code, notes, and snippets.

View MisreadableMind's full-sized avatar
✍️
Hacking around

Vitalii Ratyshnyi MisreadableMind

✍️
Hacking around
View GitHub Profile
@MisreadableMind
MisreadableMind / style-guide.md
Created February 23, 2026 20:14
Style Guide Command for Claude Code, just place it under .claude/commands and run like/style-guide "additional hints/instructions"
description allowed-tools argument-hint
Analyze the project's existing styles and generate a comprehensive style guide
Read, Write, Edit, Glob, Grep, Bash
<output-file-path (e.g. style-guide.html)>

Analyze the current project's codebase to extract its design system, then generate a standalone style guide HTML page documenting it. Write the output to: $ARGUMENTS (default to style-guide.html in the current working directory if no argument given).


"""
Schema-Guided Reasoning (SGR) Demo with OpenAI
This Python code demonstrates Schema-Guided Reasoning (SGR) with OpenAI. It:
- Implements a business agent capable of planning and reasoning
- Implements tool calling using only SGR and simple dispatch
- Uses a simple (inexpensive) non-reasoning model for that
To give this agent something to work with, we ask it to help with running
a small business - selling courses to help achieve AGI faster.
function drawNestedSetsTree(data, node) {
let map = new Map();
data.sort((a, b) => {
return a.left - b.left;
});
data.forEach((item) => {
map.set(item.left, item);
});
let resultData = {
children: []