Skip to content

Instantly share code, notes, and snippets.

View robertDouglass's full-sized avatar

Robert Douglass robertDouglass

View GitHub Profile
@robertDouglass
robertDouglass / run_cli_with_backoff.sh
Created February 26, 2026 17:25
spec-kitty-cli-orchestration run_cli_with_backoff script
#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -lt 1 ]; then
echo "Usage: $0 '<command>' [max_attempts] [base_sleep_seconds]"
exit 2
fi
CMD="$1"
MAX_ATTEMPTS="${2:-4}"
@robertDouglass
robertDouglass / SKILL.md
Created February 26, 2026 17:24
spec-kitty-cli-orchestration skill
name description
spec-kitty-cli-orchestration
Orchestrate SpecKitty workflows across Claude CLI, OpenCode, and Codex with slash-command-first execution, reviewer-only feedback loops, retry/backoff handling, and deterministic phase gates (specify→plan→tasks→implement→review→accept→merge).

Spec Kitty CLI Orchestration

Overview

Use this skill when you need to drive SpecKitty through external CLIs (Claude/OpenCode) while keeping Codex in reviewer-control mode. The goal is predictable throughput: slash commands first, clear gates, no direct implementer edits by the orchestrator.

@robertDouglass
robertDouglass / claude-tree.js
Created February 20, 2026 18:28 — forked from stackdumper/claude-tree.js
A script that produces a more compact project file tree for CLAUDE.m.
import { readdirSync, statSync } from 'fs'
import { join, basename } from 'path'
// Patterns to ignore (can be extended via args if needed)
const IGNORE_PATTERNS = ['.git', '.claude', 'node_modules', 'dist', '.DS_Store', 'pnpm-lock.yaml']
// File extensions to ignore
const IGNORE_EXTENSIONS = ['.png', '.csv']
type TreeNode = {
@robertDouglass
robertDouglass / pair-programming-two-dev-one-llm.md
Last active February 15, 2026 09:34
Spec Kitty user journey: two developers pair programming with one LLM

User Journey: Mission Collaboration with N Developers and One or More LLM Contexts

Status: DRAFT
Date: 2026-02-15
Primary Contexts: Execution & Review, Collaboration Session & Identity
Supporting Contexts: Mission Orchestration Core, Source-of-Truth Integration, Organization Policy
Related Domain Spec: ../mission-collaboration-platform-ddd/spec.md

Scenario

@robertDouglass
robertDouglass / SKILL.md
Last active February 9, 2026 13:49
Claude Code skill: /codex-review — Delegate spec-kitty WP reviews to OpenAI Codex CLI
name description argument-hint
codex-review
Delegate work package review to OpenAI Codex CLI. Use when a WP is in for_review and you want an external AI reviewer. Codex reads the full spec-kitty review prompt, examines the git diff, evaluates against acceptance criteria, and runs the move-task command to approve or request changes.
[WP_ID]

/codex-review — Delegate WP Review to Codex CLI

Sends a spec-kitty work package review to codex exec --full-auto so that OpenAI Codex acts as the reviewer. Codex receives the full review prompt (subtask criteria, review guidance, git context), inspects the implementation diff, and executes the appropriate spec-kitty agent tasks move-task command.

@robertDouglass
robertDouglass / SKILL.md
Created February 9, 2026 10:04
Claude Code skill: /codex-review — Delegate spec-kitty WP reviews to OpenAI Codex CLI
name description argument-hint
codex-review
Delegate work package review to OpenAI Codex CLI. Use when a WP is in for_review and you want an external AI reviewer. Codex reads the full spec-kitty review prompt, examines the git diff, evaluates against acceptance criteria, and runs the move-task command to approve or request changes.
[WP_ID]

/codex-review — Delegate WP Review to Codex CLI

Sends a spec-kitty work package review to codex exec --full-auto so that OpenAI Codex acts as the reviewer. Codex receives the full review prompt (subtask criteria, review guidance, git context), inspects the implementation diff, and executes the appropriate spec-kitty agent tasks move-task command.