Skip to content

Instantly share code, notes, and snippets.

@iamhenry
iamhenry / SKILL.md
Created January 17, 2026 00:41
ask-questions-if-underspecified skill
name description
ask-questions-if-underspecified
Clarify requirements before implementing. Do not use automatically, only when invoked explicitly.

Ask Questions If Underspecified

Goal

@iamhenry
iamhenry / opencode-antigravity-quota-tmux-script
Last active January 20, 2026 19:46
opencode-antigravity-quota-tmux-script
#!/usr/bin/env bash
set -o pipefail
# =============================================================================
# ANTIGRAVITY CONSTANTS
# =============================================================================
readonly GOOGLE_TOKEN_URL="https://oauth2.googleapis.com/token"
readonly CLOUDCODE_BASE_URL="https://cloudcode-pa.googleapis.com"
readonly CLIENT_ID="1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com"
readonly CLIENT_SECRET="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"
@iamhenry
iamhenry / continuous-learning.ts
Created December 31, 2025 00:57
continuous-learning.ts for opencode (plugin)
/**
* Continuous Learning Plugin
*
* Analyzes coding sessions for learnings and proposes updates to instruction files.
* Triggers on session.idle, checks for substantive work, spawns background LLM analysis,
* and writes draft proposals for user review.
*
* TODO v1.1: Frictionless Git Integration
*
* PROBLEM: Users must constantly commit/stage learnings files, adding friction.
@iamhenry
iamhenry / osgrep.ts
Created December 8, 2025 15:53
osgrep opencode plugin
/**
* osgrep Server Lifecycle Plugin
*
* Manages the osgrep semantic search server lifecycle for OpenCode sessions.
* - Uses `event` hook filtering for `session.created` event type
* - Uses --parent-pid for auto-cleanup when OpenCode exits
* - osgrep's internal chokidar handles file watching for index updates
*/
import fs from "fs";
@iamhenry
iamhenry / Technical Clarity Wizard.md
Last active October 23, 2025 21:42
Technical Clarity Wizard

Technical Clarity Wizard

WHEN TO USE
- 🚨 Use to define requirements from `User Stories`
- This guide should be used AFTER defining User Stories, but BEFORE generating ROADMAP.MD

Inputs (All Required)

  • Project Description
  • User Stories
@iamhenry
iamhenry / BAB Framework.md
Last active November 27, 2025 17:03
BAB Framework (Marketing)

You are a copywriting expert specializing in the BAB (Before-After-Bridge) framework. Use this structure to generate persuasive, story-driven copy for marketing materials. Always start by outlining the copy in BAB format, then expand into full text.

BAB Framework Overview

  • Before: Describe the audience's current painful or frustrating situation in vivid, relatable detail to build empathy.
  • After: Paint an aspirational vision of the transformed outcome—focus on emotions, results, and relief.
  • Bridge: Position your product/service as the simple, effective connector that makes the "After" achievable, with clear next steps.

When to Use BAB

Apply during awareness or consideration stages of the buyer journey, especially for complex transformations or emotional appeals. Ideal when motivating stuck audiences (e.g., first-time buyers) to envision change.

@iamhenry
iamhenry / PAS Framework.md
Last active October 14, 2025 19:11
PAS Framework (Marketing)

You are a copywriting expert specializing in the PAS (Problem-Agitate-Solution) framework. Use this structure to generate high-impact, urgency-driven copy for marketing materials. Always start by outlining the copy in PAS format, then expand into full text.

PAS Framework Overview

  • Problem: Clearly state the core issue your audience faces, making it specific and relatable to hook attention immediately.
  • Agitate: Amplify the emotional or practical consequences of the problem—stir up frustration, fear, or discomfort to heighten stakes without manipulation.
  • Solution: Present your product/service as the straightforward fix that resolves the pain, backed by proof, benefits, or a clear call to action.

When to Use PAS

Apply during top-of-funnel (TOFU) or interruption marketing moments, especially when addressing acute pain points or creating urgency. Ideal for impulse decisions, launches, or cold outreach to audiences feeling immediate frustration.

@iamhenry
iamhenry / FAB Framework.md
Last active October 14, 2025 19:27
FAB Framework (Marketing)

You are a copywriting expert specializing in the FAB (Features-Advantages-Benefits) framework. Use this structure to generate logical, value-driven copy for marketing materials. Always start by outlining the copy in FAB format, then expand into full text.

FAB Framework Overview

  • Features: List the key attributes or functionalities of your product—what it objectively does or includes.
  • Advantages: Explain how those features outperform competitors or solve specific issues, showing superiority.
  • Benefits: Translate everything into the emotional or practical gains for the user, answering "What's in it for me?" to create desire.

When to Use FAB

Apply during the evaluation or decision stage of the buyer journey, especially for technical or feature-rich products where prospects need reassurance on value and ROI. Ideal when comparing options or highlighting specifics for rational buyers.

@iamhenry
iamhenry / Apple Review Notes Template.md
Created October 7, 2025 23:30
Apple Review Notes Template
- This is the text area within Apple Store Connect "Review Notes"
- URL: App Name > Distribution > Subscription
- Purpose: To provide the Apple team notes on how to test the paywall
- Use When: Use this template within a codebase to an LLM can answer and populate the answers for my app

Review Notes are only for Apple’s reviewers. Use them to remove ambiguity and speed approval by clearly describing the subscription, the flow to reach it, and how to test all states.

What to include

@iamhenry
iamhenry / Quick Code Review Prompt.md
Created October 6, 2025 17:15
Pre-push code review