[{"data":1,"prerenderedAt":1395},["ShallowReactive",2],{"content-\u002Fplugins\u002Faio-claude-toolkit\u002Faio-patch-claude":3,"children-\u002Fplugins\u002Faio-claude-toolkit\u002Faio-patch-claude":1394},{"id":4,"title":5,"author":6,"body":7,"budget_tier":6,"build_tags":6,"created":6,"description":1385,"document_type":1386,"extension":1387,"game":6,"install":36,"investment_tier":6,"league":6,"meta":1388,"navigation":1389,"patch":6,"path":1390,"plugin":24,"profit_per_hour":6,"ratings":6,"seo":1391,"skills_count":6,"status":6,"stem":1392,"strategy_tier":6,"tags":6,"updated":6,"version":6,"weight":6,"__hash__":1393},"content\u002Fplugins\u002Faio-claude-toolkit\u002Faio-patch-claude.md","aio-patch-claude",null,{"type":8,"value":9,"toc":1332},"minimark",[10,37,42,47,54,59,81,86,160,167,171,177,187,192,198,202,205,211,214,217,221,225,228,236,241,296,303,306,326,330,333,339,342,346,349,355,360,383,388,458,464,468,474,481,487,491,494,515,517,521,527,531,537,541,547,551,636,640,647,720,724,730,732,736,742,746,785,790,801,805,847,851,857,859,863,869,873,876,880,883,887,890,894,897,901,904,908,911,915,921,947,951,989,993,996,998,1002,1010,1015,1051,1053,1057,1061,1067,1070,1074,1106,1110,1116,1120,1126,1130,1136,1138,1142,1152,1156,1211,1215,1221,1245,1247,1251,1254,1292,1294,1298,1301,1322],[11,12,13],"blockquote",{},[14,15,16,17,25,26,25,30,33,34],"p",{},"From plugin ",[18,19,21],"a",{"href":20},"\u002Fplugins\u002Faio-claude-toolkit",[22,23,24],"strong",{},"aio-claude-toolkit"," · ",[27,28,29],"code",{},"v2.6.2",[22,31,32],{},"Install:"," ",[27,35,36],{},"\u002Fplugin install aio-claude-toolkit@aiocean-plugins",[38,39,41],"h1",{"id":40},"patch-claude-code-for-maximum-quality","Patch Claude Code for Maximum Quality",[43,44,46],"h2",{"id":45},"goal","Goal",[14,48,49,50,53],{},"Claude Code ships with system prompts that aggressively trade quality for token savings: word limits, \"one sentence\" rules, \"don't explain\", suppressed agent output. This skill patches ",[27,51,52],{},"cli.js"," to rebalance those prompts toward senior-engineer-level quality.",[14,55,56],{},[22,57,58],{},"Philosophy:",[60,61,62,66,69,72,75,78],"ul",{},[63,64,65],"li",{},"Completeness over brevity — don't suppress useful detail",[63,67,68],{},"Thoroughness over speed — agents investigate fully",[63,70,71],{},"Quality over token count — you're paying for intelligence, use it",[63,73,74],{},"Evidence over assertion — cite file:line or flag unverified",[63,76,77],{},"Verify before claiming done — \"fixed\" requires evidence",[63,79,80],{},"Delegate-first — agent teams for non-trivial work",[14,82,83],{},[22,84,85],{},"Two patch flows exist — don't confuse them:",[87,88,89,108],"table",{},[90,91,92],"thead",{},[93,94,95,99,102,105],"tr",{},[96,97,98],"th",{},"Flow",[96,100,101],{},"Scope",[96,103,104],{},"Tool",[96,106,107],{},"When to use",[109,110,111,134],"tbody",{},[93,112,113,123,126,131],{},[114,115,116,119,120,122],"td",{},[22,117,118],{},"This skill"," (",[27,121,5],{},")",[114,124,125],{},"Single local cli.js",[114,127,128],{},[27,129,130],{},"patch_local.py",[114,132,133],{},"Personal install quality upgrade",[93,135,136,145,148,157],{},[114,137,138,144],{},[22,139,140,143],{},[27,141,142],{},"update-claude"," skill"," (godClaude repo)",[114,146,147],{},"Fleet-wide patched binaries",[114,149,150,153,154],{},[27,151,152],{},"make claude-patch-build"," + ",[27,155,156],{},"make release-bundles",[114,158,159],{},"Ship to all godClaude wrapper users",[14,161,162,163,166],{},"Both read the same ",[27,164,165],{},"patches.json"," source of truth.",[43,168,170],{"id":169},"quick-start","Quick Start",[14,172,173,176],{},[22,174,175],{},"Detect your install type first"," — patching depends on whether you have a text cli.js (npm install) or a compiled binary (godClaude bundle \u002F Bun SFA):",[178,179,185],"pre",{"className":180,"code":182,"language":183,"meta":184},[181],"language-bash","CLI_JS=$(find ~\u002F.claude \u002Fopt\u002Fhomebrew\u002Flib\u002Fnode_modules \u002Fusr\u002Flocal\u002Flib\u002Fnode_modules \\\n  -path \"*\u002F@anthropic-ai\u002Fclaude-code\u002Fcli.js\" 2>\u002Fdev\u002Fnull | head -1)\n","bash","",[27,186,182],{"__ignoreMap":184},[188,189,191],"h3",{"id":190},"path-a-text-clijs-found-npm-install","Path A: Text cli.js found (npm install)",[178,193,196],{"className":194,"code":195,"language":183,"meta":184},[181],"# patches.json from godClaude repo ($GODCLAUDE_REPO defaults to ~\u002Fcompass\u002Fcodebase\u002Frnd\u002FgodClaude)\nPATCHES=${GODCLAUDE_REPO:-~\u002Fcompass\u002Fcodebase\u002Frnd\u002FgodClaude}\u002Fbundle\u002Fextract-recompile\u002Fpatches.json\n\npython3 \u003Cthis-skill-dir>\u002Fpatch_local.py \"$CLI_JS\" \"$PATCHES\"\nclaude --version   # green ✓ PATCHED banner should appear\n",[27,197,195],{"__ignoreMap":184},[188,199,201],{"id":200},"path-b-no-text-clijs-compiled-binary-godclaude-bundle","Path B: No text cli.js (compiled binary \u002F godClaude bundle)",[14,203,204],{},"Use the full build pipeline to produce a patched binary:",[178,206,209],{"className":207,"code":208,"language":183,"meta":184},[181],"cd ~\u002Fcompass\u002Fcodebase\u002Frnd\u002FgodClaude\nmake claude-patch-build CLAUDE_VERSION=\u003Cversion>   # build patched bundles\nmake release-bundles                                # ship to fleet (3-gate verify)\n",[27,210,208],{"__ignoreMap":184},[14,212,213],{},"Or for local-only: extract → patch → recompile (see \"Full Binary Build\" section below).",[215,216],"hr",{},[43,218,220],{"id":219},"automated-patching-primary-method","Automated Patching (Primary Method)",[188,222,224],{"id":223},"step-1-locate-clijs","Step 1: Locate cli.js",[14,226,227],{},"The canonical path suffix — every Claude Code install ends with:",[178,229,234],{"className":230,"code":232,"language":233},[231],"language-text","@anthropic-ai\u002Fclaude-code\u002Flib\u002Fnode_modules\u002F@anthropic-ai\u002Fclaude-code\u002Fcli.js\n","text",[27,235,232],{"__ignoreMap":184},[14,237,238],{},[22,239,240],{},"Discovery (do both, use whichever hits first):",[242,243,244,277],"ol",{},[63,245,246,249,250,256,259,260,263,264,263,267,263,270,263,273,276],{},[22,247,248],{},"Glob"," — match the suffix under common install roots:",[178,251,254],{"className":252,"code":253,"language":233},[231],"**\u002F@anthropic-ai\u002Fclaude-code\u002Flib\u002Fnode_modules\u002F@anthropic-ai\u002Fclaude-code\u002Fcli.js\n",[27,255,253],{"__ignoreMap":184},[257,258],"br",{},"Search: ",[27,261,262],{},"~",", ",[27,265,266],{},"\u002Fopt\u002Fhomebrew\u002Flib\u002Fnode_modules",[27,268,269],{},"\u002Fusr\u002Flocal\u002Flib\u002Fnode_modules",[27,271,272],{},"~\u002F.claude",[27,274,275],{},"~\u002F.npm",".",[63,278,279,282,283,286,287,293,295],{},[22,280,281],{},"Resolve from binary"," — follow the ",[27,284,285],{},"claude"," symlink:",[178,288,291],{"className":289,"code":290,"language":183,"meta":184},[181],"readlink -f \"$(which claude)\"\n",[27,292,290],{"__ignoreMap":184},[257,294],{},"Walk up to the install root, append the suffix.",[14,297,298,299,302],{},"Both methods must converge on the ",[22,300,301],{},"same absolute path",". If they diverge, stop — multiple installs exist.",[14,304,305],{},"Common install roots:",[60,307,308,314,320],{},[63,309,310,313],{},[27,311,312],{},"~\u002F.claude\u002Flocal\u002Fnode_modules\u002F"," (local install)",[63,315,316,319],{},[27,317,318],{},"\u002Fopt\u002Fhomebrew\u002Flib\u002Fnode_modules\u002F"," (Homebrew global, Apple Silicon)",[63,321,322,325],{},[27,323,324],{},"\u002Fusr\u002Flocal\u002Flib\u002Fnode_modules\u002F"," (npm global)",[188,327,329],{"id":328},"step-2-locate-patchesjson","Step 2: Locate patches.json",[14,331,332],{},"The patch table lives in the godClaude repo — single source of truth for both local and fleet patching:",[178,334,337],{"className":335,"code":336,"language":233},[231],"~\u002Fcompass\u002Fcodebase\u002Frnd\u002FgodClaude\u002Fbundle\u002Fextract-recompile\u002Fpatches.json\n",[27,338,336],{"__ignoreMap":184},[14,340,341],{},"If the godClaude repo isn't available, fall back to the Manual Method below.",[188,343,345],{"id":344},"step-3-run-patch_localpy","Step 3: Run patch_local.py",[14,347,348],{},"The automated patcher lives alongside this skill:",[178,350,353],{"className":351,"code":352,"language":183,"meta":184},[181],"python3 \u003Cthis-skill-dir>\u002Fpatch_local.py \u003Ccli.js> \u003Cpatches.json>\n",[27,354,352],{"__ignoreMap":184},[14,356,357],{},[22,358,359],{},"Flags:",[60,361,362,368,377],{},[63,363,364,367],{},[27,365,366],{},"--dry-run"," — report what would change, write nothing",[63,369,370,373,374],{},[27,371,372],{},"--no-backup"," — skip creating ",[27,375,376],{},"cli.js.backup",[63,378,379,382],{},[27,380,381],{},"--strict"," — exit non-zero if any patch is MISSING",[14,384,385],{},[22,386,387],{},"What it does:",[242,389,390,393,396,404,446,452,455],{},[63,391,392],{},"Reads cli.js as text",[63,394,395],{},"Reads patches.json",[63,397,398,399,401,402,122],{},"Creates ",[27,400,376],{}," (unless ",[27,403,372],{},[63,405,406,407],{},"Applies each patch:\n",[60,408,409,422,437],{},[63,410,411,414,415,418,419],{},[22,412,413],{},"Standard patches"," (A–G, K, P series): replace all occurrences of ",[27,416,417],{},"old"," with ",[27,420,421],{},"new",[63,423,424,119,427,430,431,433,434,436],{},[22,425,426],{},"Inject patches",[27,428,429],{},"INJECT@*","): insert ",[27,432,421],{}," content BEFORE each occurrence of ",[27,435,417],{}," (anchor preserved)",[63,438,439,119,442,445],{},[22,440,441],{},"Resolver patches",[27,443,444],{},"resolve: true","): skipped — these need the godClaude compile pipeline",[63,447,448,449,122],{},"Injects verification banner (",[27,450,451],{},"✓ PATCHED cli.js",[63,453,454],{},"Writes patched cli.js",[63,456,457],{},"Reports: APPLIED \u002F ALREADY PATCHED \u002F SKIPPED \u002F MISSING",[14,459,460,463],{},[22,461,462],{},"Idempotent:"," re-running on an already-patched file classifies patches as ALREADY PATCHED.",[188,465,467],{"id":466},"step-4-verify","Step 4: Verify",[178,469,472],{"className":470,"code":471,"language":183,"meta":184},[181],"# Banner check\nclaude --version\n# Expected: green \"✓ PATCHED cli.js (aio-patch-claude)\" before version output\n\n# Functional check (non-trivial question to trigger quality patches)\necho \"Explain how Go channels work\" | claude -p\n# Expected: thorough response with structure, not a 2-sentence summary\n",[27,473,471],{"__ignoreMap":184},[14,475,476,477,480],{},"If ",[27,478,479],{},"claude --version"," errors, restore immediately:",[178,482,485],{"className":483,"code":484,"language":183,"meta":184},[181],"cp \u003Ccli.js>.backup \u003Ccli.js>\n",[27,486,484],{"__ignoreMap":184},[188,488,490],{"id":489},"step-5-report","Step 5: Report",[14,492,493],{},"Report to the user:",[60,495,496,499,502,505,508],{},[63,497,498],{},"How many patches applied",[63,500,501],{},"How many already applied (from previous run)",[63,503,504],{},"How many skipped (resolver-driven, need compile pipeline)",[63,506,507],{},"How many MISSING (upstream reworded — investigate these)",[63,509,510,511,514],{},"Remind: ",[22,512,513],{},"patches are lost on Claude Code auto-update"," — re-run after upgrades",[215,516],{},[43,518,520],{"id":519},"full-binary-build-advanced-fleet-deployment","Full Binary Build (Advanced — Fleet Deployment)",[14,522,523,524,276],{},"When you need a recompiled binary (not just a patched text file), use the godClaude pipeline. This is for fleet deployment via ",[27,525,526],{},"godclaude.aiocean.dev",[188,528,530],{"id":529},"pipeline","Pipeline",[178,532,535],{"className":533,"code":534,"language":233},[231],"upstream npm binary (@anthropic-ai\u002Fclaude-code-\u003Cplatform>)\n        │\n        ▼\n┌──────────────────┐\n│ extract_cli.py   │  → cli.js (~14 MB) + meta.json\n└──────────────────┘\n        │\n        ▼\n┌────────────────────────────┐\n│ extract_native_modules.py  │  → *.node files (image-processor, audio-capture, url-handler)\n└────────────────────────────┘\n        │\n        ▼\n┌────────────────┐\n│ patch_cli.py   │  Strips Bun-cjs wrapper + applies patches.json\n│  (+ resolver)  │  + rewrites native requires → sibling lookup\n│                │  → cli-body.js (ready for bun build)\n└────────────────┘\n        │\n        ▼\n┌──────────────────────────────────────────────────────────┐\n│ bun build cli-body.js --compile --target=bun-\u003Cplatform>  │\n│   --external '\u002F$bunfs\u002F*' --external '*.node'             │\n└──────────────────────────────────────────────────────────┘\n        │\n        ▼\ntarball: claude binary + *.node siblings\n",[27,536,534],{"__ignoreMap":184},[188,538,540],{"id":539},"build-commands","Build Commands",[178,542,545],{"className":543,"code":544,"language":183,"meta":184},[181],"# Full release: build 4 platform bundles\nmake claude-patch-build CLAUDE_VERSION=2.1.133\n\n# Ship to server (3-gate atomic chain)\nmake release-bundles\n#   → verify-bundles-local → upload-bundles → verify-bundles-remote\n\n# Re-patch same upstream (e.g., patches.json edited)\nAIO_TAG=aio2 make claude-patch-build CLAUDE_VERSION=2.1.133\n",[27,546,544],{"__ignoreMap":184},[188,548,550],{"id":549},"key-differences-from-local-patching","Key Differences from Local Patching",[87,552,553,565],{},[90,554,555],{},[93,556,557,560,562],{},[96,558,559],{},"Aspect",[96,561,130],{},[96,563,564],{},"patch_cli.py (godClaude)",[109,566,567,578,589,604,614,625],{},[93,568,569,572,575],{},[114,570,571],{},"Input",[114,573,574],{},"npm-installed cli.js (text)",[114,576,577],{},"Extracted cli.js from Bun SFA binary",[93,579,580,583,586],{},[114,581,582],{},"Wrapper stripping",[114,584,585],{},"No (not needed)",[114,587,588],{},"Yes (87-byte Bun-cjs prefix + suffix)",[93,590,591,594,597],{},[114,592,593],{},"Native module rewrite",[114,595,596],{},"No",[114,598,599,600,603],{},"Yes (",[27,601,602],{},"\u002F$bunfs\u002Froot\u002FX.node"," → sibling path)",[93,605,606,608,611],{},[114,607,441],{},[114,609,610],{},"Skipped",[114,612,613],{},"Applied (via resolve_symbols.py)",[93,615,616,619,622],{},[114,617,618],{},"Output",[114,620,621],{},"Patched cli.js (in-place)",[114,623,624],{},"cli-body.js → bun build → compiled binary",[93,626,627,630,633],{},[114,628,629],{},"Platforms",[114,631,632],{},"Current machine only",[114,634,635],{},"darwin-arm64, darwin-amd64, linux-arm64, linux-amd64",[188,637,639],{"id":638},"scripts-reference","Scripts Reference",[14,641,642,643,646],{},"All scripts live in ",[27,644,645],{},"~\u002Fcompass\u002Fcodebase\u002Frnd\u002FgodClaude\u002Fbundle\u002Fextract-recompile\u002F",":",[87,648,649,659],{},[90,650,651],{},[93,652,653,656],{},[96,654,655],{},"Script",[96,657,658],{},"Purpose",[109,660,661,671,681,691,701,711],{},[93,662,663,668],{},[114,664,665],{},[27,666,667],{},"build.sh",[114,669,670],{},"Orchestrator — downloads upstream, runs extract\u002Fpatch\u002Fcompile for all platforms",[93,672,673,678],{},[114,674,675],{},[27,676,677],{},"extract_cli.py",[114,679,680],{},"Extracts cli.js bytes from Bun SFA binary (targets Bun 1.3.14+ layout)",[93,682,683,688],{},[114,684,685],{},[27,686,687],{},"extract_native_modules.py",[114,689,690],{},"Extracts .node files via string-anchor + magic-byte heuristic",[93,692,693,698],{},[114,694,695],{},[27,696,697],{},"patch_cli.py",[114,699,700],{},"Strips wrapper + applies patches + rewrites native requires",[93,702,703,708],{},[114,704,705],{},[27,706,707],{},"resolve_symbols.py",[114,709,710],{},"Resolves minified names from stable anchors (for resolver-driven patches)",[93,712,713,717],{},[114,714,715],{},[27,716,165],{},[114,718,719],{},"Source of truth — all patch definitions",[188,721,723],{"id":722},"single-platform-dev-build","Single-Platform Dev Build",[178,725,728],{"className":726,"code":727,"language":183,"meta":184},[181],"# Extract cli.js from a specific platform\nmake claude-extract CLAUDE_VERSION=2.1.133 NPM_PLATFORM=darwin-arm64\n\n# Inspect extracted cli.js\nless dist\u002Fclaude-extract\u002Fdarwin-arm64\u002Fcli.js\n\n# Dry-run patches\npython3 bundle\u002Fextract-recompile\u002Fpatch_cli.py \\\n  dist\u002Fclaude-extract\u002Fdarwin-arm64\u002Fcli.js \\\n  bundle\u002Fextract-recompile\u002Fpatches.json \\\n  \u002Ftmp\u002Fcli-body-dryrun.js\n\n# Full single-platform build\nmkdir -p \u002Ftmp\u002Fdev-build\npython3 bundle\u002Fextract-recompile\u002Fextract_cli.py upstream-claude \u002Ftmp\u002Fdev-build\u002Fcli.js \u002Ftmp\u002Fdev-build\u002Fmeta.json\npython3 bundle\u002Fextract-recompile\u002Fextract_native_modules.py --strict upstream-claude \u002Ftmp\u002Fdev-build\u002Fnative\u002F\npython3 bundle\u002Fextract-recompile\u002Fpatch_cli.py \u002Ftmp\u002Fdev-build\u002Fcli.js bundle\u002Fextract-recompile\u002Fpatches.json \u002Ftmp\u002Fdev-build\u002Fcli-body.js\ncd \u002Ftmp\u002Fdev-build && cp native\u002F*.node . && \\\n  bun build cli-body.js --compile --target=bun-darwin-arm64 \\\n    --external '\u002F$bunfs\u002F*' --external '*.node' --outfile claude\n.\u002Fclaude --version\n",[27,729,727],{"__ignoreMap":184},[215,731],{},[43,733,735],{"id":734},"manual-fallback","Manual Fallback",[14,737,738,739,741],{},"When ",[27,740,130],{}," and the godClaude repo are unavailable, patch cli.js by hand.",[188,743,745],{"id":744},"workflow-per-patch","Workflow (per patch)",[242,747,748,754,760,766,779],{},[63,749,750,753],{},[22,751,752],{},"Grep"," the search string in cli.js — record occurrence count",[63,755,756,759],{},[22,757,758],{},"Read"," ±5 lines at each match — confirm the prompt means what the patch table expects",[63,761,762,765],{},[22,763,764],{},"Decide"," — wording drift? Adapt replacement to match current phrasing while preserving intent",[63,767,768,418,771,774,775,778],{},[22,769,770],{},"Edit",[27,772,773],{},"replace_all: true"," — never ",[27,776,777],{},"false"," (Opus\u002FSonnet duplicates)",[63,780,781,784],{},[22,782,783],{},"Verify"," — Grep for a unique fragment of the replacement; confirm expected count",[14,786,787],{},[22,788,789],{},"Rules:",[60,791,792,795,798],{},[63,793,794],{},"Replace ALL instances (prompts appear 2x: Opus + Sonnet variants)",[63,796,797],{},"Content-based anchors ONLY — never minified function names (they change every release)",[63,799,800],{},"If search string not found: search for 3-5 word fragments, read nearby code, adapt",[188,802,804],{"id":803},"evidence-per-patch-non-negotiable","Evidence Per Patch (non-negotiable)",[60,806,807,820,826,838],{},[63,808,809,812,813,816,817],{},[22,810,811],{},"Pre-count",": ",[27,814,815],{},"Grep output_mode: \"count\""," → ",[27,818,819],{},"[A1] search: 2 matches",[63,821,822,825],{},[22,823,824],{},"Context proof",": Read ±5 lines, paste snippet",[63,827,828,812,831,834,835],{},[22,829,830],{},"Decision",[27,832,833],{},"→ wording matches, applying as-is"," or ",[27,836,837],{},"→ drifted, adapting to: \"...\"",[63,839,840,843,844],{},[22,841,842],{},"Post-verify",": search=0, replacement=pre-count → ",[27,845,846],{},"[A1] post: search=0, replacement=2 ✓",[188,848,850],{"id":849},"report-format","Report Format",[178,852,855],{"className":853,"code":854,"language":233},[231],"== \u003Cpath>\n  banner: added | already\n\n  APPLIED (N):\n    [A1x2] Your responses should be short and concise...\n           pre=2 → post search=0, replacement=2 ✓\n\n  ALREADY PATCHED (N):\n    [A2] replacement present x1\n\n  ADAPTED (N):\n    [B1] table: \"Don't add features, refactor code...\"\n         actual (line ~12345): \"Don't add unrelated features beyond...\"\n         applied: \"\u003Cadapted replacement>\"\n\n  MISSING (N):\n    [D5] fragments searched: \"fast agent that returns\" (0), \"meant to be a fast\" (0)\n",[27,856,854],{"__ignoreMap":184},[215,858],{},[43,860,862],{"id":861},"patch-categories","Patch Categories",[14,864,865,866,868],{},"All patches are defined in ",[27,867,165],{},". Here's what each category does:",[188,870,872],{"id":871},"a-output-quality-brevity-a1a7","A: Output Quality & Brevity (A1–A7)",[14,874,875],{},"Removes blanket brevity mandates: \"short and concise\", 1-sentence caps, 25\u002F100 word limits, \"shortest response\" default. Replaces with thoroughness-oriented guidelines.",[188,877,879],{"id":878},"b-code-quality-scope-b2b5","B: Code Quality & Scope (B2–B5)",[14,881,882],{},"Allows fixing related issues found during investigation. Replaces \"don't add error handling\" with \"add at real boundaries\". Permits reasonable abstractions when duplication causes maintenance risk.",[188,884,886],{"id":885},"c-comments-documentation-c1c3","C: Comments & Documentation (C1–C3)",[14,888,889],{},"Allows meaningful code comments that explain the WHY (hidden constraints, invariants, workarounds). Removes \"default to no comments\" mandate.",[188,891,893],{"id":892},"d-agent-subagent-quality-d1d8","D: Agent & Subagent Quality (D1–D8)",[14,895,896],{},"Raises agent quality bar to \"principal engineer would accept\". Drops \"fast agent\" speed bias. Allows detailed reports and code context sharing. Removes 2-3 sentence cap on recommendations.",[188,898,900],{"id":899},"e-plan-mode-e5e6","E: Plan Mode (E5–E6)",[14,902,903],{},"Preserves tradeoff discussion in plans. Replaces \"don't explore exhaustively\" with thorough exploration nudge. Adds aio-discover\u002Faio-map skill references.",[188,905,907],{"id":906},"g-skill-nudges-g1","G: Skill Nudges (G1)",[14,909,910],{},"Injects pointers to aio-discover, aio-map, aio-plan into plan mode steps where they naturally help.",[188,912,914],{"id":913},"hijk-injected-system-prompt-block-870-words","H\u002FI\u002FJ\u002FK: Injected System-Prompt Block (~870 words)",[14,916,917,918,646],{},"Single large injection before ",[27,919,920],{},"# Executing actions with care",[60,922,923,929,935,941],{},[63,924,925,928],{},[22,926,927],{},"H. Reasoning Discipline"," — falsification, 3-alternatives when stuck, evidence over confidence",[63,930,931,934],{},[22,932,933],{},"I. Engineering Mental Models"," — Chesterton's Fence, second-order thinking, inversion, pre-mortem, steelman, Hanlon's razor",[63,936,937,940],{},[22,938,939],{},"J. Engineering Convictions"," — push back, propose before executing, refuse unsound tasks, state confidence, root cause over symptoms",[63,942,943,946],{},[22,944,945],{},"K. Extreme Quality Mandate"," — evidence-first, never-done-without-verify, confidence labels, delegate-first, skills-first, parallel tools, anti-sycophancy",[188,948,950],{"id":949},"p-behavioral-patches-p1p6","P: Behavioral Patches (P1–P6)",[60,952,953,959,965,971,977,983],{},[63,954,955,958],{},[22,956,957],{},"P1",": Delegate by default for non-trivial work (inverts \"don't spawn agents\")",[63,960,961,964],{},[22,962,963],{},"P2",": Execute decisively with reasoning-first (inverts \"execute immediately\")",[63,966,967,970],{},[22,968,969],{},"P3",": Spawn subagents for parallel investigation (inverts \"do not spawn subagents\")",[63,972,973,976],{},[22,974,975],{},"P4",": Default toward thinking on non-trivial tasks (inverts \"avoid unnecessary thinking\")",[63,978,979,982],{},[22,980,981],{},"P5b",": Planning discipline injection (steelman, pre-mortem, cite evidence, Chesterton's Fence)",[63,984,985,988],{},[22,986,987],{},"P6",": Agent architect quality scaffolding (evidence, verify, confidence labels in generated agents)",[188,990,992],{"id":991},"resolver-driven-rate_limit_snapshot_emit","Resolver-Driven (rate_limit_snapshot_emit)",[14,994,995],{},"OTel emission after rate-limit header parsing. Only applied in the compile pipeline (needs minified-name resolution via resolve_symbols.py).",[215,997],{},[43,999,1001],{"id":1000},"patchesjson-schema","patches.json Schema",[178,1003,1008],{"className":1004,"code":1006,"language":1007,"meta":184},[1005],"language-json","{\n  \"_description\": \"...\",\n  \"_source\": \"...\",\n  \"_versioning\": \"AIO_TAG env var (aio1 → aio2 on re-patch)\",\n  \"_anchor_strategy\": \"Content-based anchors only. Never minified names.\",\n  \"patches\": [\n    {\n      \"_comment\": \"Human-readable description\",\n      \"id\": \"A1\",\n      \"old\": \"exact search string (may contain \\\\u2014 unicode escapes)\",\n      \"new\": \"exact replacement string\"\n    },\n    {\n      \"_comment\": \"Anchor injection — new content inserted BEFORE old (old preserved)\",\n      \"id\": \"INJECT@hijk-block\",\n      \"old\": \"# Executing actions with care\",\n      \"new\": \"# Reasoning Discipline\\n\\n...(injected content)...\\n\\n\"\n    },\n    {\n      \"_comment\": \"Resolver-driven — needs compile pipeline\",\n      \"id\": \"rate_limit_snapshot_emit\",\n      \"resolve\": true,\n      \"anchor_template\": \"{{buckets}}={{parser}}({{arg}});\",\n      \"replacement_template\": \"{{buckets}}={{parser}}({{arg}});try{...}catch(_e){}\"\n    }\n  ]\n}\n","json",[27,1009,1006],{"__ignoreMap":184},[14,1011,1012],{},[22,1013,1014],{},"Patch types:",[60,1016,1017,1027,1039],{},[63,1018,1019,812,1022,816,1024,1026],{},[22,1020,1021],{},"Standard",[27,1023,417],{},[27,1025,421],{}," (replace all occurrences)",[63,1028,1029,119,1032,430,1034,1036,1037,436],{},[22,1030,1031],{},"Inject",[27,1033,429],{},[27,1035,421],{}," before each ",[27,1038,417],{},[63,1040,1041,119,1044,1046,1047,1050],{},[22,1042,1043],{},"Resolver",[27,1045,444],{},"): ",[27,1048,1049],{},"{{placeholder}}"," → minified names at build time (compile pipeline only)",[215,1052],{},[43,1054,1056],{"id":1055},"adding-new-patches","Adding New Patches",[188,1058,1060],{"id":1059},"_1-find-the-upstream-string","1. Find the upstream string",[178,1062,1065],{"className":1063,"code":1064,"language":183,"meta":184},[181],"# Extract cli.js from current version (godClaude repo)\nmake claude-extract CLAUDE_VERSION=\u003Cv> NPM_PLATFORM=darwin-arm64\n\n# Search for the phrase you want to change\ngrep -F \"your search phrase\" dist\u002Fclaude-extract\u002Fdarwin-arm64\u002Fcli.js\n",[27,1066,1064],{"__ignoreMap":184},[14,1068,1069],{},"Or for a local install, just grep the installed cli.js.",[188,1071,1073],{"id":1072},"_2-choose-anchor-strategy","2. Choose anchor strategy",[60,1075,1076,1086,1100],{},[63,1077,1078,1081,1082,1085],{},[22,1079,1080],{},"Substitution",": pick a phrase unique enough that ",[27,1083,1084],{},"content.count(old)"," returns 1 or 2 (Opus + Sonnet)",[63,1087,1088,119,1091,1046,1094,1096,1097,1099],{},[22,1089,1090],{},"Injection",[27,1092,1093],{},"INJECT@\u003Cname>",[27,1095,417],{}," is the anchor (preserved); ",[27,1098,421],{}," is prepended",[63,1101,1102,1105],{},[22,1103,1104],{},"Never"," use minified function names — they change every release",[188,1107,1109],{"id":1108},"_3-add-to-patchesjson","3. Add to patches.json",[178,1111,1114],{"className":1112,"code":1113,"language":1007,"meta":184},[1005],"{\n  \"_comment\": \"\u003CID> — \u003Cwhat it changes>\",\n  \"id\": \"\u003CID>\",\n  \"old\": \"\u003Cexact search string>\",\n  \"new\": \"\u003Cexact replacement>\"\n}\n",[27,1115,1113],{"__ignoreMap":184},[188,1117,1119],{"id":1118},"_4-test","4. Test",[178,1121,1124],{"className":1122,"code":1123,"language":183,"meta":184},[181],"# Local: dry-run\npython3 patch_local.py \u003Ccli.js> patches.json --dry-run\n\n# Compile pipeline: dry-run\npython3 bundle\u002Fextract-recompile\u002Fpatch_cli.py \\\n  dist\u002Fclaude-extract\u002Fdarwin-arm64\u002Fcli.js \\\n  bundle\u002Fextract-recompile\u002Fpatches.json \\\n  \u002Ftmp\u002Fcli-body-dryrun.js\n",[27,1125,1123],{"__ignoreMap":184},[188,1127,1129],{"id":1128},"_5-smoke-test","5. Smoke test",[178,1131,1134],{"className":1132,"code":1133,"language":183,"meta":184},[181],"claude --version          # banner check\necho \"ping\" | claude -p   # basic functionality\n",[27,1135,1133],{"__ignoreMap":184},[215,1137],{},[43,1139,1141],{"id":1140},"drift-recovery","Drift Recovery",[14,1143,1144,1145,1147,1148,1151],{},"Anthropic rewords prompts between releases. ",[27,1146,130],{}," reports MISSING patches; the compile pipeline's ",[27,1149,1150],{},"patch_cli.py --strict"," halts the build.",[188,1153,1155],{"id":1154},"investigation-workflow","Investigation workflow",[242,1157,1158,1164,1173,1179,1198],{},[63,1159,1160,1163],{},[22,1161,1162],{},"Extract the new cli.js"," from the current version",[63,1165,1166,1169,1170,1172],{},[22,1167,1168],{},"Search for fragments"," of the missing patch's ",[27,1171,417],{}," string (3-5 word phrases)",[63,1174,1175,1178],{},[22,1176,1177],{},"Read surrounding context"," — understand what the new wording says",[63,1180,1181,1184],{},[22,1182,1183],{},"Decide:",[60,1185,1186,1192],{},[63,1187,1188,1191],{},[22,1189,1190],{},"Drop",": upstream rewording already accomplishes the patch intent → remove entry from patches.json",[63,1193,1194,1197],{},[22,1195,1196],{},"Adapt",": find equivalent phrasing, write new entry matching current wording",[63,1199,1200,33,1203,1206,1207,1210],{},[22,1201,1202],{},"Update",[27,1204,1205],{},"_versioning"," in patches.json and bump ",[27,1208,1209],{},"AIO_TAG"," when shipping fleet bundles",[188,1212,1214],{"id":1213},"the-hijk-injection-is-special","The H\u002FI\u002FJ\u002FK injection is special",[14,1216,1217,1218,1220],{},"Its anchor is ",[27,1219,920],{},". If Anthropic renames this header:",[60,1222,1223,1232,1239],{},[63,1224,1225,1227,1228,1231],{},[27,1226,130],{}," reports ",[27,1229,1230],{},"INJECT@hijk-block"," as MISSING",[63,1233,1234,1235,1238],{},"Before shipping: confirm dry-run shows ",[27,1236,1237],{},"injected x2"," (short + long system-prompt variants)",[63,1240,1241,1242,1244],{},"Find the new header text, update the ",[27,1243,417],{}," field in patches.json",[215,1246],{},[43,1248,1250],{"id":1249},"what-not-to-patch","What NOT to Patch",[14,1252,1253],{},"These are reasonable design decisions, not quality trade-offs:",[60,1255,1256,1262,1268,1274,1280,1286],{},[63,1257,1258,1261],{},[22,1259,1260],{},"Focus mode"," behavior (user explicitly chose brevity)",[63,1263,1264,1267],{},[22,1265,1266],{},"Brief mode"," behavior (user explicitly chose it)",[63,1269,1270,1273],{},[22,1271,1272],{},"Continuation mode"," \"do not recap\" (correct for resumption)",[63,1275,1276,1279],{},[22,1277,1278],{},"Read-only mode"," for explore\u002Fplan agents (correct by design)",[63,1281,1282,1285],{},[22,1283,1284],{},"Side question agent"," limitations (lightweight by design)",[63,1287,1288,1291],{},[22,1289,1290],{},"Security restrictions"," (keep ALL safety prompts intact)",[215,1293],{},[43,1295,1297],{"id":1296},"version-compatibility","Version Compatibility",[14,1299,1300],{},"The patch table evolves with upstream Claude Code versions. When updating:",[242,1302,1303,1306,1313,1316,1319],{},[63,1304,1305],{},"Extract cli.js from the new version",[63,1307,1308,1309,1312],{},"Run ",[27,1310,1311],{},"patch_local.py --dry-run"," to see what's MISSING",[63,1314,1315],{},"For each MISSING: investigate drift, drop or adapt",[63,1317,1318],{},"Update patches.json",[63,1320,1321],{},"Re-run and verify all patches apply",[14,1323,1324,1325,1328,1329,1331],{},"Patches are ",[22,1326,1327],{},"lost on Claude Code auto-update"," — re-run this skill after every ",[27,1330,285],{}," upgrade.",{"title":184,"searchDepth":1333,"depth":1333,"links":1334},2,[1335,1336,1341,1348,1355,1360,1371,1372,1379,1383,1384],{"id":45,"depth":1333,"text":46},{"id":169,"depth":1333,"text":170,"children":1337},[1338,1340],{"id":190,"depth":1339,"text":191},3,{"id":200,"depth":1339,"text":201},{"id":219,"depth":1333,"text":220,"children":1342},[1343,1344,1345,1346,1347],{"id":223,"depth":1339,"text":224},{"id":328,"depth":1339,"text":329},{"id":344,"depth":1339,"text":345},{"id":466,"depth":1339,"text":467},{"id":489,"depth":1339,"text":490},{"id":519,"depth":1333,"text":520,"children":1349},[1350,1351,1352,1353,1354],{"id":529,"depth":1339,"text":530},{"id":539,"depth":1339,"text":540},{"id":549,"depth":1339,"text":550},{"id":638,"depth":1339,"text":639},{"id":722,"depth":1339,"text":723},{"id":734,"depth":1333,"text":735,"children":1356},[1357,1358,1359],{"id":744,"depth":1339,"text":745},{"id":803,"depth":1339,"text":804},{"id":849,"depth":1339,"text":850},{"id":861,"depth":1333,"text":862,"children":1361},[1362,1363,1364,1365,1366,1367,1368,1369,1370],{"id":871,"depth":1339,"text":872},{"id":878,"depth":1339,"text":879},{"id":885,"depth":1339,"text":886},{"id":892,"depth":1339,"text":893},{"id":899,"depth":1339,"text":900},{"id":906,"depth":1339,"text":907},{"id":913,"depth":1339,"text":914},{"id":949,"depth":1339,"text":950},{"id":991,"depth":1339,"text":992},{"id":1000,"depth":1333,"text":1001},{"id":1055,"depth":1333,"text":1056,"children":1373},[1374,1375,1376,1377,1378],{"id":1059,"depth":1339,"text":1060},{"id":1072,"depth":1339,"text":1073},{"id":1108,"depth":1339,"text":1109},{"id":1118,"depth":1339,"text":1119},{"id":1128,"depth":1339,"text":1129},{"id":1140,"depth":1333,"text":1141,"children":1380},[1381,1382],{"id":1154,"depth":1339,"text":1155},{"id":1213,"depth":1339,"text":1214},{"id":1249,"depth":1333,"text":1250},{"id":1296,"depth":1333,"text":1297},"Patch Claude Code system prompts to maximize quality over token efficiency. Automated pipeline via patch_local.py + patches.json from godClaude, with manual fallback. Covers local cli.js patching and full binary recompilation.","skill","md",{},true,"\u002Fplugins\u002Faio-claude-toolkit\u002Faio-patch-claude",{"title":5,"description":1385},"plugins\u002Faio-claude-toolkit\u002Faio-patch-claude","ZqHHkxAjuCDhbCAJoe9Vph7ZZAhwOhK9qK4o8t-mcNs",[],1779707415958]