Skip to content

Instantly share code, notes, and snippets.

@mpalpha
mpalpha / plan-critic-pattern.md
Created August 26, 2026 17:30
Portable adversarial plan reviewer -- pre-write Verifier + post-phase completeness critic + dimension registry
name plan-critic-pattern
description Portable adversarial plan reviewer -- pre-write Verifier + post-phase completeness critic + dimension registry
type reference
status active
confidence high
project global
created 2026-08-26
tldr Independent critic checks a plan before anyone sees it -- receipts, not confidence scores
@mpalpha
mpalpha / self-maintenance-pattern.md
Last active August 27, 2026 10:18
Portable self-maintaining agent knowledge store — file-based memory + throttled promote/prune/re-validate loop spec
name self-maintenance-pattern
description Portable self-maintaining agent knowledge store -- file-based memory + throttled promote/prune/re-validate loop
type reference
status active
confidence high
project global
created 2026-08-26
tldr File-based memory that cleans itself -- scheduler classifies, agent decides
@mpalpha
mpalpha / README.md
Last active August 22, 2026 02:01
Agent governance workflow - portable spec + deployment package (operative set, decision maps, CommonMark-compatible)

Agent Governance Workflow - Portable Spec & Adaptation Package

Version 1.3 (2026-08-21). A COMPACT, markdown-compatible package: the normative specs + the adaptation playbook that directs an agent to RESEARCH, ANALYZE, and ADAPT the target machine's current workflow so it functions with the features of the spec. Pure ASCII, PII-free, Mermaid diagrams render in CommonMark markdown. No user-identifying paths or credentials anywhere in this package.

What this package is

@mpalpha
mpalpha / Resale-evaluator.md
Created August 6, 2026 16:04
Resale evaluation ai assistant.

HOW TO CREATE A USED-ITEM DEAL AND RESALE EVALUATOR IN CHATGPT

PURPOSE

This custom GPT analyzes used items offered through Facebook Marketplace, eBay, Craigslist, OfferUp, estate sales, garage sales, thrift stores, pawn shops, auctions, liquidation sales, private sellers, and other secondhand sources.

It can:

  • Identify an item from photographs or listing screenshots.
  • Research the exact model, version, or variant.
@mpalpha
mpalpha / setup_claude_governance.md
Last active June 26, 2026 18:38
A prompt to set up governance for your Claude Code installation

User Mandated Claude Code Governance: Bootstrap Prompt

Copy and paste the block below into a fresh Claude Code session.


Set up governance on this Claude Code installation. Follow this order: backup → detect → analyze → adapt → apply → report. Never modify a file without backing it up first.

Phase 1: Backup

@mpalpha
mpalpha / global implementation_reminder.md
Created April 29, 2026 11:30
adds a global implementation steps reminder for the agent.

Add two rules to my global Claude Code instructions.

Open ~/.claude/CLAUDE.md (create it if it doesn't exist). Append the following two sections exactly as written. Do not modify existing content — only append. If either section heading already exists, skip that section rather than duplicating it.


After Every Implementation Task

After completing any code change, a

@mpalpha
mpalpha / claude-workflow-pattern-learning-setup.md
Created April 20, 2026 17:07
Claude Code setup prompt for reusable workflow pattern learning, safe CLAUDE.md merging, and intelligent promotion of patterns into skills and subagents without clutter.

You are setting up a lightweight reusable workflow system for Claude Code. Follow these steps exactly.

Goal

Implement a simple, maintainable system that:

  • Routes large non-domain tasks through general-purpose
  • Tracks reusable task patterns
  • Promotes stable patterns into skills or subagents
  • Avoids file clutter and duplication
@mpalpha
mpalpha / install-pre-compact-hook.md
Last active April 9, 2026 18:18
Install a Node.js CJS hook that Claude Code runs before compacting the conversation context. The hook writes a session checkpoint to the project's MEMORY.md so the next session can resume without re-investigation.

Install PreCompact Checkpoint Hook

Goal

Install a Node.js CJS hook that Claude Code runs before compacting the conversation context. The hook writes a session checkpoint to the project's MEMORY.md so the next session can resume without re-investigation.


Requirements

@mpalpha
mpalpha / peer-review-subagent-installer.md
Last active March 6, 2026 22:07
Discovers the project's rules/docs first, then generates the guide and subagent from what it finds.

You are a one-time standards review installer for Claude Code.

Your purpose in this session is to inspect this repository, discover its coding standards, conventions, rules, and documentation, then create:

  1. A Standards Review Guide (reference-based, not content-duplicating)
  2. A Peer Review subagent that uses that guide for PR reviews

You must assume:

  • A new project with no prior knowledge
  • No existing standards review guide or peer review agent unless discovered
@mpalpha
mpalpha / install-guides-to-subagents.prompt.md
Last active March 24, 2026 19:51
Bootstraps Claude Code by converting repository guides into minimal, well-structured project subagents with backups, audit logging, and strong automatic delegation.

You are a one-time installer and conversion agent for Claude Code.

Your purpose in this session is to inspect this repository, discover existing guide documents that describe reusable workflows, and convert the appropriate guides into properly installed Claude Code project subagents.

You must install them in a way that:

  • keeps always-loaded context minimal
  • preserves all existing guides and rules
  • backs up anything you modify
  • maintains a permanent installation record