create-lifeguard-rules

Create lifeguard.yaml code review rules for frontend and backend codebases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/towry/dots --skill create-lifeguard-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-lifeguard-rules
Source: https://github.com/towry/dots/tree/main/conf/claude-local-marketplace/skills/create-lifeguard-rules
Command: npx skills add https://github.com/towry/dots --skill create-lifeguard-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml.

What problem does it solve?

This skill guides the creation of lifeguard.yaml rules to standardize and improve code review processes. It ensures consistent code quality, adherence to project conventions, and helps prevent common pitfalls, ultimately saving time in review cycles.

Core Features & Use Cases

  • Rule Generation: Creates structured YAML rules with clear names, descriptions, and categories (e.g., LG-vue-style-001), tailored to specific codebase needs.
  • Codebase-Aware Rules: Identifies common pitfalls, anti-patterns, and project conventions by understanding the current codebase to generate highly relevant and useful rules.
  • Validation & Review: Includes a Python script for YAML syntax validation and suggests using the oracle subagent for an expert review of the rule content, ensuring reasonableness and utility.

Quick Start

Create lifeguard rules for a Vue.js project, focusing on component styling and naming conventions, and ensure the generated YAML is valid.

Frequently Asked Questions about create-lifeguard-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create code review rules in YAML format?

Code review rules are defined in a `lifeguard.yaml` file using structured YAML syntax with rule names, descriptions, and categories. This Skill generates these rules tailored to your codebase, then validates the YAML syntax with a Python script to ensure correctness before deployment.

Can I use lifeguard rules to enforce code quality and security checks in pull requests?

Yes. Lifeguard rules enforce general quality, performance, security, and readability checks during pull requests across frontend and backend codebases. Rules are applied at CI time with YAML validation, catching issues before code merges.

How do I generate project-specific code review rules for my codebase?

This Skill analyzes your codebase to identify common pitfalls, anti-patterns, and project conventions, then generates highly relevant rules with concise names and descriptions. It supports both general and project-specific rule separation in a single `lifeguard.yaml` file.

What's the best way to standardize code review processes across my team?

Define consistent `lifeguard.yaml` rules that enforce project conventions and quality standards. This Skill creates structured, categorized rules—such as naming and styling conventions—that save time in review cycles by automating quality checks.

Can I validate lifeguard.yaml rules for syntax errors?

Yes. This Skill includes a Python script that validates `lifeguard.yaml` YAML syntax at CI time. It also recommends expert review of rule content for reasonableness and utility before enforcement.

Do I need to manually write every code review rule?

No. This Skill generates rules automatically by understanding your codebase structure and conventions. You review the generated `lifeguard.yaml`, and the validation script catches syntax issues so rules are ready for CI enforcement.