Skip to content
Back to skills

Examples

ASecurity

Convert a recurring PR review comment into an automated lint rule with tests and CLAUDE.md annotation

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentsjavascripttypescriptpythonrustgojavarubytestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add zernie/vigiles --skill examples --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Examples?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Examples
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zernie-examples/badge)](https://www.skillsdirectory.com/skills/zernie-examples)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 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>
---

<!-- vigiles:sha256:49b12ebc0cf20852 compiled from examples/SKILL.md.spec.ts -->

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 `docs/spec-format.md` for the correct format.

### Step 4: Verify

Run `npm test` to ensure the new rule and tests pass.

Files in this skill

  • CLAUDE.md2.7 KB
  • CLAUDE.md.spec.ts3.5 KB
  • SKILL.md1.8 KB
  • SKILL.md.spec.ts2.1 KB
  • experimental-emit/README.md4.3 KB
  • experimental-emit/emit-server.mjs2.3 KB
  • experimental-emit/records/emit-tool.json1.1 KB
  • experimental-emit/records/emits-2026-08-13.jsonl3.1 KB
  • experimental-emit/records/prose-baseline-2026-08-13.json1.7 KB
  • experimental-emit/records/rate-limit-event.json366 B
  • experimental-emit/records/trials-2026-08-13.jsonl900 B
  • experimental-emit/run-emit.mjs10.9 KB
  • experimental-emit/score-emits.mjs2.8 KB
  • frontmatter-CLAUDE.md1.7 KB
  • harness/README.md455 B
  • harness/checks-dogfood.harness.mjs2.1 KB
  • harness/compiled-hook-inprocess.harness.mjs2.3 KB
  • harness/dogfood/adversarial-gate.eval.mjs5 KB
  • harness/dogfood/debug-my-harness.trigger.eval.mjs3 KB
  • harness/dogfood/edit-spec.trigger.eval.mjs3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.