rules-common

Enforce universal coding, testing, security, and git workflow rules across multi-language codebases.

4|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/NSObjects/specpowers --skill rules-common
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-common
Source: https://github.com/NSObjects/specpowers/tree/main/skills/rules-common
Command: npx skills add https://github.com/NSObjects/specpowers --skill rules-common

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill keeps multi-language development grounded in a common set of expectations so that every writer, reviewer, and maintainer speaks the same quality language and avoids sloppy or unchecked code. It prevents fragmented conventions, missing tests, and unchecked security issues by foregrounding shared rules before any implementation work begins.

Core Features & Use Cases

  • Universal rulebook: Names, formatting, comments, and magic value policies that apply everywhere unless overridden by a language-specific variant.
  • Quality checkpoints: Testing, security, performance, design, and git workflow mandates that a reviewer can cross-check against any contribution or refactor.
  • Use case: When a reviewer sees a new pull request touching JavaScript and Python, run this Skill to ensure both languages respect consistent naming, validation, test-first discipline, and documentation rules.

Quick Start

Ask the rules-common skill to review your latest code change and highlight any violations of naming, testing, or security rules.

Frequently Asked Questions about rules-common

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

FAQPage Schema
How do I enforce consistent coding style and naming conventions across a multi-language codebase?

You can enforce consistent coding style by applying a universal rulebook that standardizes naming, formatting, comments, and magic value policies across all languages unless a specific variant overrides them. This prevents fragmented conventions and ensures maintainers share the same quality expectations.

What design patterns and testing practices should I check during a multi-language code review?

During a multi-language code review, check contributions against shared testing practices, security validation, performance optimization, and design pattern mandates. Cross-referencing these quality checkpoints ensures new code respects test-first discipline and avoids unchecked security issues.

Can I apply universal git workflow and security guidance to both JavaScript and Python contributions?

Yes, you can apply universal git workflow and security guidance to both JavaScript and Python contributions. Shared rules validate naming, testing, and security requirements across diverse languages, ensuring every writer and reviewer speaks the same quality language before implementation work begins.

How do I prevent sloppy code and missing tests in a multi-language development environment?

Prevent sloppy code and missing tests by foregrounding shared rules that mandate test-first discipline, explicit style commandments, and security validation. Applying these universal guardrails before implementation keeps multi-language development grounded in a common set of quality expectations.

Does this universal coding rules approach override language-specific formatting and styling?

This universal coding rules approach does not strictly override language-specific formatting; it acts as a default universal rulebook. Specific language variants can override the shared naming, formatting, and styling commandments to accommodate unique syntax while maintaining baseline quality.

When should I use universal coding guardrails instead of language-specific linters?

Use universal coding guardrails when a reviewer sees a new pull request touching multiple languages and needs to ensure both respect consistent naming, validation, and documentation rules. Language-specific linters handle syntax, while universal rules enforce shared design, security, and git workflow mandates.