Add Rule Skill

Add new linter rules to attgo-linter with analyzer packages and test fixtures.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/attestantio/attgo-linter --skill add-rule-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Add Rule Skill
Source: https://github.com/attestantio/attgo-linter/tree/main/.claude/skills/add-rule
Command: npx skills add https://github.com/attestantio/attgo-linter --skill add-rule-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of adding new rules to the attgo-linter project, ensuring consistency and reducing the manual effort involved in rule development.

Core Features & Use Cases

  • Guided Rule Creation: Provides step-by-step instructions for creating new linter rules.
  • Template Generation: Offers code templates for analyzer, test files, and test data.
  • Checklist Verification: Includes a comprehensive checklist to ensure all necessary steps are completed.
  • Use Case: A developer wants to add a new rule to enforce a specific coding style. They use this Skill to get clear instructions, code snippets, and a verification checklist, making the process efficient and error-free.

Quick Start

Use the Add Rule Skill to create a new linter rule by following the provided instructions and templates.

Frequently Asked Questions about Add Rule Skill

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

FAQPage Schema
How do I add a new custom linter rule to a golang project?

To add a new custom linter rule, you must create an analyzer package, generate test fixtures, register the rule in the plugin, and update the configuration and documentation. This Skill provides structured workflows and code templates to automate that process.

What steps are required to develop an analyzer for golangci-lint?

Developing an analyzer for golangci-lint requires creating the analyzer package, adding test files and data, registering it within the plugin, and updating documentation. This Skill provides step-by-step instructions, code snippets, and a verification checklist to complete the process.

Can I use this Skill to generate test fixtures and code templates for linter rules?

Yes, this Skill generates code templates for analyzers, test files, and test data. It streamlines linter rule development by providing a structured workflow and a comprehensive checklist to ensure all necessary steps are completed correctly.

Does this Skill follow golangci-lint plugin development standards for rule creation?

Yes, this Skill adheres strictly to golangci-lint plugin development standards. It ensures consistency and reduces manual effort by guiding you through analyzer creation, plugin registration, and configuration updates for your new rules.

What is the best way to ensure consistency when adding rules to the attgo-linter project?

The best way to ensure consistency is to use a guided workflow with code templates and a checklist verification system. This Skill simplifies adding rules to the attgo-linter project by enforcing a structured process for analyzer packages and configuration updates.

Why do I need to update plugin configuration and documentation when adding a linter rule?

Updating plugin configuration and documentation is required to register the new analyzer and inform users of its functionality. This Skill includes a comprehensive checklist to verify these steps are completed, ensuring the linter rule integrates properly.