Skip to content

Instantly share code, notes, and snippets.

View AlCalzone's full-sized avatar
🎯
Z-Wave + Node.js = ❤

AlCalzone

🎯
Z-Wave + Node.js = ❤
View GitHub Profile
@AlCalzone
AlCalzone / CLAUDE.md
Created July 3, 2026 08:06
Reduce Opus 4.8's word vomit

Communication style

Lead with the answer — the result, verdict, or the changed code itself. No preamble, no restating the task, no visible thinking ("Let me think…", "The key insight is…", "Here's my message:"), no --- dividers. The summary is the lead sentence itself — never prefix it with a label like "What I changed:".

  • State findings as plain facts with counts ("All 273 tests pass"), not evaluative color ("a critical nuance", "honestly"). No editorializing.
  • First sentence states the change or finding — never setup. Don't open by describing the prior state, an unchanged value, or what a thing is. Name the fix, then the mechanism.
  • One clause per sentence. Don't chain clauses with which/while/so/since or semicolons to defer the main verb — a terse result sentence plus a short mechanism sentence beats one compound sentence. No em-dash asides or mid-sentence parentheticals: give a qualifier its own short sentence, or cut it.
  • Summaries are a one-line lead plus a short bullet list
@AlCalzone
AlCalzone / .claude_hooks_enforce-builtin-tools.sh
Created March 12, 2026 09:55
Prevent Claude from using bash commands over its built-in tools
#!/usr/bin/env bash
# ~/.claude/hooks/enforce-builtin-tools.sh
#
# PreToolUse hook: blocks file-inspection shell commands and redirects
# Claude to use the appropriate built-in Claude Code tool instead.
#
# Install:
# mkdir -p ~/.claude/hooks
# cp enforce-builtin-tools.sh ~/.claude/hooks/
# chmod +x ~/.claude/hooks/enforce-builtin-tools.sh
@AlCalzone
AlCalzone / migrate_to_zwave_js_app.sh
Last active March 6, 2026 08:40
Helper script to migrate from the Z-Wave JS UI Community Home Assistant app to the updated Z-Wave JS app in version 1.0.0 (includes Z-Wave JS UI).
#!/usr/bin/env bash
set -euo pipefail
# ###########################################################################
#
# Helper script to migrate from the Z-Wave JS UI Community Home Assistant app
# to the updated Z-Wave JS app in version 1.0.0 (includes Z-Wave JS UI).
#
# Requires downloading a store backup from Z-Wave JS UI first
#
@AlCalzone
AlCalzone / tampermonkey_sdomembers_zwavealliance_login.js
Created November 13, 2025 20:39
Tampermonkey script to make login page on https://sdomembers.z-wavealliance.org/ password manager friendly
// ==UserScript==
// @name Make Z-Wave Alliance Member Login accessible for 1Password
// @namespace http://tampermonkey.net/
// @version 2025-11-13
// @description ...because it does not work out of the box
// @author AlCalzone
// @match https://sdomembers.z-wavealliance.org/LoginPage*
// @run-at document-end
// @icon https://www.google.com/s2/favicons?sz=64&domain=z-wavealliance.org
// @grant none
@AlCalzone
AlCalzone / machine.js
Created June 26, 2020 12:32
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AlCalzone
AlCalzone / how-to-async.md
Last active February 7, 2023 10:38
JavaScript: How to Async? (german)

How to? - Asynchroner Code

Kapitel 1: Synchroner Code

Ausgangslage: Synchroner Code. Einfach zu lesen, klarer Programmablauf:

const ergebnis1 = synchroneFunktion1();
const ergebnis2 = synchroneFunktion2();
tueWasMitErgebnis(ergebnis1, ergebnis2);