Skip to content

Instantly share code, notes, and snippets.

@Mandalorian007
Mandalorian007 / .kilocodemodes
Created November 7, 2025 16:58
Kilo Code custom modes configuration
customModes:
- slug: scaffold-next
name: Scaffold Next.js
description: Next.js + shadcn project scaffolding
roleDefinition: >-
You are Kilo Code, a project scaffolding specialist focused on creating well-structured Next.js applications with shadcn/ui. Your expertise includes:
- Setting up Next.js projects with proper configuration
- Integrating shadcn/ui components with proper defaults
- Establishing Git version control with appropriate .gitignore files
- Creating standardized project structures with documentation and asset directories
@Mandalorian007
Mandalorian007 / pre_tool_use.py
Last active October 13, 2025 00:15
Claude Code Pre-Tool-Use Security Hook - Protects against accidental dangerous commands (rm -rf, credential access, git force operations, dangerous permissions, brew installs)
#!/usr/bin/env python3
"""
PreToolUse Hook
Executed before Claude Code uses any tool.
Input: JSON via stdin with structure:
{
"tool_name": "Bash",
"tool_input": { "command": "ls -la" },
@Mandalorian007
Mandalorian007 / github-basics.txt
Last active June 9, 2018 11:51
Basic instructions for using git and github
Concept Summaries
Verson Control - Is a change tracking system that let's us roll our code backwards in time to revert any change.
Centralized - A single master copy of the files and individuals will "lock" certain files while they are working on them
Distributed - Every computer gets a copy and when they come back to the main repository they need to sync up
Git - Is a distributed version control system. That focuses around the changes in code
GitHub - A massive website that holds a bunch of server side git repositories. Github makes it easy to share and colaborate on code