init-local-rules
Installation
SKILL.md
init-local-rules
Auto-detect the current agent and create its personal config file. This file is added to .gitignore, keeping personal preferences separate from team rules (AGENTS.md).
Team rules are managed by /init-project-rules; personal rules by this skill.
Guard Rails
| # | Check | On Failure |
|---|---|---|
| 1 | CWD is a Git repository | "Please run inside a Git repository" |
| 2 | Local config file already exists | "Already exists. Overwrite or merge?" |
Workflow
Step 1: Detect Agent
Most agents do not provide a dedicated "I'm running" environment variable. Attempt detection in the following order; if uncertain, ask the user directly.