home/claude/skills/cc-add-rule/SKILL.md
Create a global Claude Code rule in ~/.claude/rules
npx skillsauth add lambdalisue/dotfiles cc-add-ruleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
$ARGUMENTS = [{path-pattern}] {rule content...}
Parse the arguments:
* or contains / or {~/.claude/rules/
tools/, git/, documents/, deno/, rust/, ts/, or create new if needed.md extensionglobs field# Rule Title
Rule content here.
---
globs: { path-pattern }
---
# Rule Title
Rule content here.
Input: /cc-add-rule Use descriptive variable names
Output: ~/.claude/rules/code/descriptive-variables.md
Input: /cc-add-rule *.py Always use type annotations
Output: ~/.claude/rules/python/type-annotations.md with globs: *.py
Input: /cc-add-rule src/**/*.ts Use strict null checks
Output: ~/.claude/rules/ts/strict-null-checks.md with globs: src/**/*.ts
Analyze the {rule content} to understand the intended purpose, then write the rule file content:
Parse $ARGUMENTS and create the appropriate rule file. Ask for user approval before writing.
tools
Update the title and body of an existing pull request WITHOUT asking for approval
tools
Create a pull request with title and body based on commits WITHOUT asking for approval
tools
Create a Conventional Commit from already staged changes WITHOUT asking for approval
tools
Map staged changes to existing commits and create fixup commits for autosquash WITHOUT asking for approval