home/claude/skills/cc-add-rule-local/SKILL.md
Create a project-local Claude Code rule in .claude/rules
npx skillsauth add lambdalisue/dotfiles cc-add-rule-localInstall 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/ (relative to project root)
.git, package.json, Cargo.toml, deno.json, etc.).md extensionglobs field# Rule Title
Rule content here.
---
globs: { path-pattern }
---
# Rule Title
Rule content here.
Input: /cc-add-rule-local Use project-specific error types
Output: {project-root}/.claude/rules/errors/project-error-types.md
Input: /cc-add-rule-local *.ts Run deno fmt before commit
Output: {project-root}/.claude/rules/deno/format-on-commit.md with globs: *.ts
Input: /cc-add-rule-local src/**/*.tsx Use functional components only
Output: {project-root}/.claude/rules/react/functional-components.md with globs: src/**/*.tsx
Analyze the {rule content} to understand the intended purpose, then write the rule file content:
Parse $ARGUMENTS, locate project root, 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