Skip to content

Instantly share code, notes, and snippets.

@kaznak
kaznak / gcp.mp
Created July 7, 2025 13:30
Claude Code: Git Commit & Push Command with Auto-Generated Messages
# git commit and push
Commits specified files and pushes to remote repository if configured. Uses Task tool to analyze changes and generate commit message from file contents only.
## Usage
When user specifies files to commit (or no files for all changes), this command will:
1. Use Task tool to analyze the specified files' changes (or all changes if no files specified)
2. Generate commit message based on the changes
3. Add specified files to staging (or all changes if no files specified)
4. Commit with auto-generated message

Orchestrator

Split complex tasks into sequential steps, where each step can contain multiple parallel subtasks.

Process

  1. Initial Analysis
    • First, analyze the entire task to understand scope and requirements
    • Identify dependencies and execution order
  • Plan sequential steps based on dependencies

This is typescript environment setup guide for LLM and humans

Baseline

Always setup baseline settings

  • pnpm
  • typescript
  • vitest
@kaznak
kaznak / proof.md
Created March 11, 2025 18:00
proof for keyoxide

aspe:keyoxide.org:ZLCJ7BY6TD35GMP5SGWDYYTHVY

@kaznak
kaznak / agent loop
Created March 10, 2025 05:39 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@kaznak
kaznak / install-home-manager.sh
Last active March 10, 2025 02:06
Install home-manager into userland
#!/usr/bin/env bash
set -vxe
source /etc/os-release
nix-channel --remove home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/release-${VERSION_ID}.tar.gz home-manager
nix-channel --update
@kaznak
kaznak / dump_context_values.yaml
Last active July 4, 2024 01:30
A reusable workflow that dumps context values
name: Dump Context Values
on:
workflow_dispatch:
workflow_call:
jobs:
dump_contexts:
name: Dump Context Values
runs-on: ubuntu-22.04
@kaznak
kaznak / envVars.tsx
Last active June 27, 2024 05:38
Remix で GA4 の Tracking ID をセットする時に使うコンポーネントの案
/**
* Loaders does not work, if some errors occurred.
* Thus the critical values are passed by in script element.
*/
export type Env = Partial<typeof process.env>;
declare global {
interface Window {
env: Env;
@kaznak
kaznak / 0_prepare.sql
Last active September 18, 2025 08:20
PostgreSQL 16 上での履歴テーブルの実装(not null バージョン)
-- Extension: btree_gist
-- DROP EXTENSION btree_gist;
CREATE EXTENSION IF NOT EXISTS btree_gist
SCHEMA public
VERSION "1.7";
-----------------------------------------------------------------------------------
@kaznak
kaznak / 0_install_extensions.sql
Last active July 21, 2024 06:48
PostgreSQL 16 上での履歴テーブルの実装
-- Extension: btree_gist
-- DROP EXTENSION btree_gist;
CREATE EXTENSION IF NOT EXISTS btree_gist
SCHEMA public
VERSION "1.7";