Automated summary
Converts a recurring PR review comment into an automated lint rule, complete with tests and a CLAUDE.md annotation.
Strengths
- Detects the repository's primary language, linter, test framework, and existing custom rules so the output matches local conventions.
- Produces a full ESLint rule using the AST visitor pattern with meta and create(context) for JS/TS projects.
- Asks the user which language and linter to target when detection is inconclusive instead of guessing.
- Adds a CLAUDE.md annotation block and includes a test-based verification step.
Limitations
- The verification step hardcodes `npm test`, which only fits JavaScript/TypeScript projects.
- Only ESLint rule generation is actually spelled out; Ruff, Clippy, golangci-lint, and RuboCop are named but not detailed.
- Invocation is disabled by default (disable-model-invocation), so the command must be triggered explicitly.
Use it when the same piece of review feedback keeps coming up and you want it enforced automatically rather than by hand.
Avoid it for one-off or ambiguous review remarks that cannot be expressed as a static rule, or on a non-JS project whose test command differs.
Security analysis
SafeThe skill only generates a lint rule and updates documentation, then runs the project's existing test suite via 'npm test'. There are no destructive, exfiltrating, obfuscated, or safety-disabling actions. Running tests is a standard, legitimate verification step.
No concerns found
How this analysis is madeExamples
/pr-to-lint-rule we keep telling people not to import directly from antd, use our design system barrel file instead/pr-to-lint-rule people forget to use our custom logger instead of console.log/pr-to-lint-rule API route handlers must use the withAuth wrappername: pr-to-lint-rule description: Convert a recurring PR review comment into an automated lint rule with tests and CLAUDE.md annotation disable-model-invocation: true argument-hint: <description of recurring PR feedback>
Convert a recurring PR review comment into an automated lint rule.
Arguments
$ARGUMENTS — A natural language description of the pattern to enforce. Examples:
- "we keep telling people not to import directly from antd, use our design system barrel file instead"
- "people forget to use our custom logger instead of console.log"
- "don't use unwrap() in production code, use expect() or proper error handling"
- "API route handlers must use the withAuth wrapper"
Instructions
You are generating an automated lint rule from a recurring code review pattern. Follow these steps:
Step 1: Detect the Project Language and Toolchain
Look at the repository to determine:
- Primary language (JS/TS, Python, Rust, Go, Ruby, etc.)
- Linter in use (ESLint, Ruff, Clippy, golangci-lint, RuboCop, etc.)
- Testing framework (Vitest, Jest, pytest, cargo test, etc.)
- Existing custom rules (to match conventions)
If the language or linter cannot be confidently detected, ask the user which language and linter to target before generating anything.
Step 2: Generate the Lint Rule
Based on the detected (or user-specified) language, generate the appropriate rule type.
For JavaScript/TypeScript, generate an ESLint rule using the AST visitor pattern with meta and create(context).
Step 3: Update CLAUDE.md
Add the annotation block. See enforce-rules-format for the correct format.
Step 4: Verify
Run npm test to ensure the new rule and tests pass.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/convert-pr-comments-to-lint-rules-mt8767gr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/convert-pr-comments-to-lint-rules-mt8767gr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/convert-pr-comments-to-lint-rules-mt8767gr/download' --output '.skill-downloads/convert-pr-comments-to-lint-rules-mt8767gr/SKILL.md.part' && mv '.skill-downloads/convert-pr-comments-to-lint-rules-mt8767gr/SKILL.md.part' '.skill-downloads/convert-pr-comments-to-lint-rules-mt8767gr/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/convert-pr-comments-to-lint-rules-mt8767gr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.