Skip to content

Instantly share code, notes, and snippets.

View laughingman7743's full-sized avatar
🤣

laughingman7743

🤣
  • 1776 5419 5080
  • 12:06 (UTC +09:00)
View GitHub Profile
@laughingman7743
laughingman7743 / SKILL.md
Last active July 17, 2026 12:30
Claude Code skill: git-worktree-pr — always create PRs from a dedicated git worktree (one worktree per PR, parallel PR support)
name git-worktree-pr
description Always create pull requests from a dedicated git worktree instead of switching branches in the main checkout. One worktree per PR. Supports creating multiple PRs in parallel (e.g., batch changes split by service or environment). Use whenever creating a PR, fixing a bug on a new branch, or performing batch operations that require separate PRs.

Git Worktree PR Workflow

Core rule: never develop a PR branch in the main checkout. Create a dedicated worktree per PR, do all work there, and remove it after the PR is merged.

@laughingman7743
laughingman7743 / claude-profile.fish
Created June 1, 2026 02:37
claude-profile — switch Claude Code config profiles (CLAUDE_CONFIG_DIR) per shell session or per directory (fish + mise). e.g. Max plan in one repo, API/proxy in another.
# claude-profile — switch Claude Code config profiles (the CLAUDE_CONFIG_DIR it uses).
#
# Idea: Claude Code reads its config/auth from $CLAUDE_CONFIG_DIR (default: ~/.claude).
# This function switches that per shell session or per directory, so you can run e.g.
# a Max-plan account in one repo and an API/proxy setup in another.
#
# "default" = no override -> ~/.claude
# "<name>" = ~/.config/claude/profiles/<name>/ (own settings.json + auth;
# symlink CLAUDE.md/plugins/skills/projects from ~/.claude to share them)
#
@laughingman7743
laughingman7743 / SKILL.md
Last active July 17, 2026 12:06
Claude Code skill: github-pr-review — review PRs via gh CLI (inline comments, diff with line numbers, submit reviews, etc.)
name github-pr-review
description GitHub Pull Request review operations skill. Retrieve PR info, view diffs, get/post comments, add inline comments, submit reviews (approve/request-changes/comment), check CI status, and reply to comments using gh CLI. Use for PR review, code review, and PR operations.

GitHub PR Review Operations

Source: Based on Claude CodeでPRレビュー操作を行うスキルを作った by shibayu36

This skill provides comprehensive PR review capabilities using GitHub CLI (gh).

@laughingman7743
laughingman7743 / config
Last active July 17, 2026 11:52
macOS terminal & window-management dotfiles - Ghostty, tmux, yabai, skhd (HackGen Console NF, TokyoNight, Emacs-like keybinds)
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /Users/{USER_NAME}/Library/Application Support/com.mitchellh.ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
@laughingman7743
laughingman7743 / schema.cue
Last active June 19, 2022 15:40
cue import -f -p argoworkflow -l '#ArgoWorkflow:' pkg/argoworkflow/schema.json
package argoworkflow
#ArgoWorkflow: {
@jsonschema(schema="http://json-schema.org/schema#")
(#["io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplate"] | #["io.argoproj.workflow.v1alpha1.CronWorkflow"] | #["io.argoproj.workflow.v1alpha1.Workflow"] | #["io.argoproj.workflow.v1alpha1.WorkflowEventBinding"] | #["io.argoproj.workflow.v1alpha1.WorkflowTemplate"]) & {
@jsonschema(id="http://workflows.argoproj.io/workflows.json")
...
}
#: "eventsource.CreateEventSourceRequest": {
@laughingman7743
laughingman7743 / Pipfile
Last active April 29, 2019 10:49
Triggering DAGs with Python script
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
google-api-python-client = "*"
requests = "*"
@laughingman7743
laughingman7743 / Pipfile
Created September 22, 2018 15:24
PyAthena performance
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pandas = "*"
pyathena = {git = "https://github.com/laughingman7743/PyAthena.git", ref = "add_pandas_cursor"}
[dev-packages]
# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2017 Datadog, Inc.
from __future__ import print_function
import base64
import gzip
import json
import logging
@laughingman7743
laughingman7743 / .gitignore
Last active August 12, 2021 13:46
Terraform wrapper python
.idea
*.iml
*.tfstate
*.tfstate.backup
.terraform
*/*/*/__*.tf
!*/*/_template/__*.tf
Pipfile.lock
CREATE SCHEMA IF NOT EXISTS billing;
CREATE EXTERNAL TABLE IF NOT EXISTS billing.detailed_line_items_with_resources_and_tags (
invoice_id string,
payer_account_id string,
linked_account_id string,
record_type string,
record_id string,
product_name string,
rate_id string,