npx skills add giantcroissant-lunar/lunar-snake-hubREADME
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:
.hub-manifest.toml- Pins versions of packs to usetask hub:sync- Fetches assets to.hub-cache/(gitignored)- Runtime access - Agents read rules; build orchestration is provided by the separate
unify-buildrepository
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
- Quick Start - What to read first
- Phase 1 Progress - Current implementation status
- MCP Setup - Smithery server configuration
- Architecture Discussion - Complete system design
- Phase 1 Checklist - Step-by-step implementation guide
š 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 hooksspec-{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,
...