lunar-policy

Create Python policies that evaluate component metadata for compliance checks.

4|1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/earthly/skills --skill lunar-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lunar-policy
Source: https://github.com/earthly/skills/tree/main/skills/lunar-policy
Command: npx skills add https://github.com/earthly/skills --skill lunar-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lunar-policy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the enforcement of engineering standards by allowing you to write Python policies that evaluate component data and produce pass/fail checks.

Core Features & Use Cases

  • Policy Creation: Write Python scripts using the lunar_policy SDK to define checks.
  • Data Evaluation: Assert conditions against component JSON data for compliance.
  • Use Case: Ensure all production services have a minimum of 3 replicas and a valid readiness probe by writing a policy that checks the .k8s.workloads data.

Quick Start

Use the lunar-policy skill to create a new policy that checks for the existence of a README file.

Frequently Asked Questions about lunar-policy

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

FAQPage Schema
How do I automate compliance checks for engineering standards in CI/CD?

You can automate compliance checks by writing Python policies that evaluate component metadata and produce pass/fail checks. These policies integrate with CI/CD pipelines to enforce engineering standards automatically.

Can I enforce Kubernetes deployment guardrails using a Python policy?

Yes, you can enforce Kubernetes guardrails by writing a Python policy that asserts conditions against component JSON data, such as checking the .k8s.workloads metadata to ensure services have valid readiness probes.

How do I write a Python policy to check if a repository has a README file?

To check for a README file, create a Python script using the lunar_policy SDK to define assertions that evaluate the component metadata and return a pass or fail compliance result.

How does data evaluation work when enforcing operational readiness policies?

Data evaluation works by asserting specific conditions against component JSON data using the lunar_policy SDK, which navigates the data structure to verify operational readiness and produce pass/fail outcomes.

Can I use dynamic configuration inputs for automated code quality checks?

Yes, the policy framework supports dynamic configuration via inputs, allowing you to pass variable data into your Python scripts to evaluate code quality and security compliance across different components.