Skip to content

Instantly share code, notes, and snippets.

View valarpirai's full-sized avatar

Valar valarpirai

View GitHub Profile
@valarpirai
valarpirai / setting-up-claude-ready-repos-SKILL.md
Created September 25, 2026 10:38
Audit or set up a code repository so Claude Code works efficiently in it
name setting-up-claude-ready-repos
description Audit or set up a code repository so Claude Code works efficiently in it — CLAUDE.md, path-scoped .claude/rules, subtree memory, verify scripts, pre-commit hooks, shared settings.json, agents and skills. Use this whenever the user wants to "set up a repo for Claude", "make Claude work better in this codebase", write or trim a CLAUDE.md, add .claude/rules, onboard a new or existing repo to Claude Code, review their Claude setup, or asks why Claude keeps making the same mistakes in a project — even if they don't say "audit" or "scaffold".

Setting up Claude-ready repos

A repo works well with Claude when three things hold:

  1. Claude loads only what the task needs. Small, scoped instructions beat
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

A Shared Gradle Build System for Multi-Repo Platforms

Large Java platforms often span dozens of repositories — each with its own build files, dependency declarations, and tooling configuration. Without a unified approach, version drift creeps in, build logic gets duplicated, and a routine dependency upgrade turns into a multi-repo coordination nightmare.

This post walks through an architecture pattern that solves this using Gradle: a dedicated shared-build repository that acts as the single source of truth for build logic, dependency versions, and project conventions across every repo in the platform.


Key Principles

@transitive-bullshit
transitive-bullshit / claude-code-prompts.js
Last active November 3, 2026 19:13
Unminified prompts and tool definitions for Claude Code
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
// Version: 0.2.9
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active October 25, 2026 12:07
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@valarpirai
valarpirai / dev_setup.md
Last active May 27, 2026 07:17
Dev Setup. Outline setup

Dev Tools

Package Managers

  • brew Mac package manager

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Mise dev tools manager

    • Alternative to node, python, cmake etc
  • SDK Manager For Java and JVM related pacakages

@karpathy
karpathy / add_to_zshrc.sh
Created August 25, 2024 20:43
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@valarpirai
valarpirai / app_config.rb
Last active January 31, 2022 11:48
Load configs from ERB based YML files in Rails application
module AppConfig
def self._config
@_config ||= ErbYaml.load_file("#{Rails.root}/config/app_configuration.yml")
end
def self.env
_config["env_name"]
end
end
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active October 23, 2026 14:42
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user