lunar-collector

Create custom Lunar collector plugins with Bash scripts for SDLC metadata.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you build custom collectors for Earthly Lunar, enabling you to gather Software Development Lifecycle (SDLC) metadata automatically.

Core Features & Use Cases

  • Collector Development: Learn the structure and requirements for creating Lunar collector plugins using Bash scripts.
  • Data Collection: Understand how to gather metadata from repositories, CI pipelines, or external APIs and write it to the Component JSON.
  • Use Case: You need to collect data on the number of lines in your README files for compliance checks. This Skill guides you in creating a Bash script that uses wc -l and lunar collect to achieve this.

Quick Start

Follow the steps outlined in the documentation to create your first Lunar collector plugin.

Frequently Asked Questions about lunar-collector

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

FAQPage Schema
How do I create a custom Lunar collector plugin using Bash scripts?

Lunar collectors gather Software Development Lifecycle (SDLC) metadata from repositories, CI pipelines, or external APIs. They automatically write this data to the Component JSON to enable automated guardrail enforcement across your projects.

How do I collect SDLC metadata for automated guardrail enforcement?

You collect SDLC metadata for guardrails by building a Bash collector script that extracts the required data and executes the `lunar collect` command to persist it into the Component JSON structure.

Can I use Bash scripts to gather repository metadata for Lunar?

Yes, you can use Bash scripts to gather repository metadata for Lunar. The Skill guides you through the collector structure, hook types, and Bash best practices for extracting data like counting README lines for compliance checks.

Do I need any external dependencies to build a Lunar collector?

No external dependencies are required to build a Lunar collector. The Skill provides the necessary scripts and references to guide you through creating Bash-based collectors using standard command-line tools and the `lunar collect` command.

What are the best practices for SDLC metadata collection in Bash?

Best practices for SDLC metadata collection in Bash involve understanding the correct collector structure, utilizing appropriate hook types, and using standard utilities like `wc -l` to reliably extract data before passing it to `lunar collect`.