Core Principles

Enforce Python and Rust coding standards with Rust-core extraction logic.

115|8|Updated Mar 30, 2025
One-click install
npx skills add https://github.com/Goldziher/spikard --skill core-principles-goldziher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Core Principles
Source: https://github.com/Goldziher/spikard/tree/main/.ai-rulez/skills/core-principles
Command: npx skills add https://github.com/Goldziher/spikard --skill core-principles-goldziher

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces strict coding standards and architectural guidelines across different programming languages, ensuring code quality, maintainability, and adherence to best practices.

Core Features & Use Cases

  • Language-Specific Rules: Defines and enforces Python and Rust coding conventions.
  • Architectural Enforcement: Mandates that all extraction logic resides in the Rust core, with bindings providing idiomatic APIs.
  • Use Case: Ensure that all new Rust code avoids .unwrap() in production and that Python code uses frozen, hashable, and slotted dataclasses.

Quick Start

Apply the core principles skill to review the current codebase for adherence to Python and Rust standards.

Frequently Asked Questions about Core Principles

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

FAQPage Schema
How do I enforce coding standards for Python and Rust development?

To enforce coding standards for Python and Rust, you can apply automated architectural rules that mandate specific language-level best practices. This ensures code quality, safety, and maintainability across the entire codebase.

What is the best way to structure extraction logic in a Rust core with language bindings?

The best way to structure extraction logic is to mandate that all of it resides directly within the Rust core. Language bindings should then provide idiomatic APIs that present this functionality naturally to the target language.

Why should Rust production code avoid using .unwrap()?

Rust production code should avoid .unwrap() to ensure safety and prevent runtime panics. Enforcing strict coding standards helps maintain error-handling efficiency and overall architectural robustness.

How do I ensure Python code uses frozen, hashable, and slotted dataclasses?

To ensure Python code uses frozen, hashable, and slotted dataclasses, apply automated coding conventions that enforce these specific language-level best practices. This maintains strict code quality and architectural standards.

Can I review my existing codebase for adherence to Python and Rust coding conventions?

Yes, you can review your existing codebase for adherence to Python and Rust coding conventions by applying architectural enforcement rules. This validates that your code meets strict safety, efficiency, and maintainability standards.