crud-grpc-ruleset

Validate CRUD gRPC .proto files for naming, pagination, and go_package consistency.

357|65|Updated Jul 29, 2022
One-click install
npx skills add https://github.com/ArtisanCloud/PowerX --skill crud-grpc-ruleset
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crud-grpc-ruleset
Source: https://github.com/ArtisanCloud/PowerX/tree/main/.codex/skills/crud/grpc-ruleset
Command: npx skills add https://github.com/ArtisanCloud/PowerX --skill crud-grpc-ruleset

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill guarantees that CRUD gRPC contracts in PowerX follow a consistent structure, naming, pagination, error handling, and go_package alignment, preventing mismatches between transport and business layers.

Core Features & Use Cases

  • Rule definitions for proto syntax, package naming, service and RPC methods, pagination messages, auth comments, and go_package consistency.
  • Automated validation of .proto files against the ruleset and verification that buf.gen.yaml configuration matches the expected go_package prefix.
  • Ready‑to‑use templates for proto snippets and Go handler skeletons to quickly create compliant CRUD services. Use case: When a developer adds a new entity, they run the skill to verify the generated .proto adheres to organizational standards before code generation.

Quick Start

Ask the skill to validate all CRUD gRPC proto files in the repository against the defined ruleset.

Frequently Asked Questions about crud-grpc-ruleset

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

FAQPage Schema
How do I validate CRUD gRPC proto files against a standard ruleset?

You can validate CRUD gRPC proto files by checking them against rulesets that enforce proto3 syntax, service naming, pagination messages, and go_package prefix consistency with buf.gen.yaml.

What is go_package prefix alignment in gRPC proto contracts?

Go_package prefix alignment ensures the go_package declaration in .proto files matches the configuration in buf.gen.yaml, preventing mismatches between transport and business layers in generated Go code.

How do I enforce standardized naming and pagination in gRPC services?

Enforce standardized naming and pagination by applying a ruleset to .proto files that validates RPC method names, pagination messages, and auth comments to maintain consistent CRUD gRPC contract definitions.

Does this validation ruleset work with existing buf.gen.yaml configurations?

Yes, the ruleset verifies that your existing buf.gen.yaml configuration matches the expected go_package prefix, ensuring generated code aligns with organizational standards across PowerX services.

Can I generate Go handler skeletons from compliant CRUD proto files?

Yes, the skill provides ready-to-use templates for proto snippets and Go handler skeletons, allowing you to quickly create compliant CRUD services after validating your .proto definitions.

Why does my CRUD gRPC service have mismatches between transport and business layers?

Mismatches occur when .proto files lack standardized structure, naming, or go_package alignment; validating against a CRUD ruleset ensures consistency across transport and business layers.