giantcroissant-lunar/lunar-snake-hub

No description

0 stars0 forksUpdated Jan 11, 2026
npx skills add giantcroissant-lunar/lunar-snake-hub

README


doc_id: DOC-2025-00001 title: lunar-snake-hub doc_type: reference status: active canonical: true created: 2025-10-30 tags: [hub, overview, reference, infrastructure] summary: Central hub for lunar-snake projects - single source of truth for specs, agent rules, build components, and shared infrastructure source: author: agent agent: claude model: sonnet-4.5

lunar-snake-hub

Central hub for lunar-snake projects - Single source of truth for specs, agent rules, and shared infrastructure.

šŸŽÆ Purpose

This repository provides:

  • Specifications & RFCs - API contracts, architecture decisions, design docs
  • Agent Rules - AI agent prompts, coding standards, best practices
  • Pre-commit Hooks - Shared linting, formatting, security checks
  • Infrastructure Templates - Docker, Terraform, GitHub Actions

šŸ—ļø Architecture

Satellite repos (like lablab-bean) consume this hub via:

  1. .hub-manifest.toml - Pins versions of packs to use
  2. task hub:sync - Fetches assets to .hub-cache/ (gitignored)
  3. Runtime access - Agents read rules; build orchestration is provided by the separate unify-build repository

Key principle: Satellites commit only code + manifest. All shared assets are synced at runtime.

šŸ“ Structure

lunar-snake-hub/
ā”œā”€ā”€ .agent/              # Agent configs (rules, skills, workflows, adapters)
│   ā”œā”€ā”€ rules/           # Coding standards & project rules
│   ā”œā”€ā”€ skills/          # Reusable skills
│   ā”œā”€ā”€ workflows/       # Orchestrated workflows
│   ā”œā”€ā”€ adapters/        # IDE-specific configs (Cline, Roo, etc.)
│   └── scripts/         # Helper scripts for agent workflows
ā”œā”€ā”€ specs/              # Specifications & RFCs
│   └── {domain}/
│       └── v{version}/
│           ā”œā”€ā”€ rfc.md
│           ā”œā”€ā”€ adr.md
│           └── schema/
ā”œā”€ā”€ precommit/          # Pre-commit hooks
│   ā”œā”€ā”€ .pre-commit-config.base.yaml
│   └── hooks/
ā”œā”€ā”€ infra/              # Infrastructure & secrets
│   ā”œā”€ā”€ .sops.yaml
│   └── secrets/
│       └── *.enc.yaml
ā”œā”€ā”€ .github/
│   └── workflows/      # Reusable GitHub Actions
ā”œā”€ā”€ docs/               # Documentation
│   ā”œā”€ā”€ README.md       # šŸ“– Documentation index
│   ā”œā”€ā”€ architecture/   # Design docs & decisions
│   ā”œā”€ā”€ guides/         # How-to guides
│   ā”œā”€ā”€ operations/     # Runbooks & procedures
│   └── sessions/       # Session handovers & progress

šŸš€ Quick Start (For Satellites)

1. Add manifest to your project

.hub-manifest.toml:

[hub]
repo = "GiantCroissant-Lunar/lunar-snake-hub"

[packs]
precommit = "0.1.0"

2. Add sync task

Taskfile.yml:

tasks:
  hub:sync:
    desc: Sync assets from lunar-snake-hub
    cmds:
      - |
        if [ ! -d .hub-cache/hub-repo ]; then
          git clone https://github.com/GiantCroissant-Lunar/lunar-snake-hub .hub-cache/hub-repo
        else
          git -C .hub-cache/hub-repo pull
        fi
        cp -r .hub-cache/hub-repo/.agent .hub-cache/
        echo "āœ… Hub sync complete"

3. Gitignore synced content

.gitignore:

.hub-cache/

4. Sync and use

task hub:sync
# Agents now read from .hub-cache/.agent/rules/

šŸ“š Documentation

šŸ“– Documentation Index - Complete guide to all documentation

Quick Access

šŸ” Secrets Management

Secrets are encrypted with SOPS and stored in infra/secrets/*.enc.yaml.

Decrypt:

sops decrypt infra/secrets/mac-mini.enc.yaml

Encrypt:

sops encrypt infra/secrets/mac-mini.yaml > infra/secrets/mac-mini.enc.yaml

šŸ› ļø Infrastructure Services

This hub supports a Mac Mini "brain" running:

  • Letta - Persistent agent memory
  • Qdrant - Vector database for RAG
  • Context Gateway - HTTP API for context retrieval
  • n8n - Workflow orchestration

See infra/README.md for setup.

šŸ”§ Build System

Build orchestration and reusable NUKE components are now owned by the dedicated unify-build repository.

Satellite repos should use unify-build for all build pipelines and publish workflows; lunar-snake-hub no longer ships build scripts or NUKE components.

šŸ“¦ Versioning

Releases are tagged by pack type:

  • packs-precommit-v0.1.0 - Pre-commit hooks
  • spec-{domain}-v1.0.0 - Specification releases

šŸ“¦ npm Package Consumption

Install into a consumer repo (runs hook installer automatically via postinstall):

npm install @giantcroissant-lunar/lunar-snake-hub

Uninstall (runs cleanup via preuninstall,

...

Read full README

Statistics

Stars0
Forks0
Open Issues0
CreatedOct 30, 2025