writing-rules

Define and validate hookify rules with structured frontmatter templates.

Updated May 11, 2026
One-click install
npx skills add https://github.com/AvaTar-ArTs/my-supremepowers --skill writing-rules-avatar-arts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-rules
Source: https://github.com/AvaTar-ArTs/my-supremepowers/tree/main/qwen_skills/writing-rules
Command: npx skills add https://github.com/AvaTar-ArTs/my-supremepowers --skill writing-rules-avatar-arts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams write and validate hookify rule files that govern automated checks and messages, ensuring consistent behavior across projects.

Core Features & Use Cases

  • Provides structured frontmatter templates for hookify rules (name, enabled, event, pattern, and optional conditions).
  • Guides writing effective patterns, conditions, and messages to improve rule accuracy.
  • Demonstrates workflows and examples to test, refine, and deploy rules in real projects.

Quick Start

Create a sample hookify rule file using this guide and place it at the project root to test rule creation.

Frequently Asked Questions about writing-rules

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

FAQPage Schema
How do I write hookify rules with consistent frontmatter for CI workflows?

Hookify rules require structured frontmatter with name, enabled, event, and pattern fields to validate correctly in CI workflows. This skill provides standardized templates and guidance for creating rule files that integrate quickly into automated editor checks.

What is the required frontmatter structure for hookify rule files?

Hookify rule files need frontmatter fields including name, enabled, event, and pattern, with optional conditions. This skill defines these structural requirements and provides templates to ensure your rules satisfy validation checks across projects.

How do I test and refine hookify rules before deploying them?

Testing hookify rules involves creating a sample rule file at the project root and validating its frontmatter and patterns. This skill demonstrates workflows and examples to refine rule accuracy, conditions, and messages before deploying to real projects.

Can I use markdown to define and validate hookify rule patterns?

Markdown files with proper frontmatter can define hookify rules by specifying event triggers and validation patterns. This skill helps standardize markdown rule templates and validates their structure for consistent automated behavior.

What's the best way to enforce consistent hookify rules across multiple projects?

Enforcing consistent hookify rules across projects requires standardized frontmatter templates and pattern definitions. This skill provides structured templates, testing guidance, and example formats to ensure rules behave uniformly in CI and editor workflows.

Why do my hookify rules fail validation when using optional conditions?

Hookify rule validation fails when frontmatter is incomplete or patterns and conditions are incorrectly structured. This skill guides writing effective conditions and messages, ensuring rules meet required frontmatter fields for proper validation.