Skip to content
Back to skills

Ledger Registry

ASecurity

Reads /ledger/manifest.json, verifies per-ledger checksums, and returns the active ledger map. **Version:** 1.1 **Author:** Entropy Control Theory **License:** MIT **Based on:** Structure DNA v1.0 + PROFILE-GENERATOR-SPEC v1.0

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill ledger-registry --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ledger Registry?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ledger Registry
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-ledger-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-ledger-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ledger-registry
description: >
  Reads /ledger/manifest.json, verifies per-ledger checksums, and returns the active ledger map.
  **Version:** 1.1  **Author:** Entropy Control Theory  **License:** MIT
  **Based on:** Structure DNA v1.0 + PROFILE-GENERATOR-SPEC v1.0
---

# ledger.registry — v1.1

## Goal
Provide a single source of truth for active ledgers and integrity status.  
If missing, auto-generate `/ledger/profile.json` (energy-aware preferences) based on `profile.schema.json` + `profile.defaults.json`.

## Inputs
- none (or `verify=true` to force SHA-256 recompute)

## Outputs
- Returns manifest summary:
  - module → path
  - schema version
  - metadata.version
  - metadata.checksum (valid/invalid)
- Auto-generates `profile.json` if absent, ensuring downstream Skills can use energy preferences.

## Mechanism
1. Load `/ledger/manifest.json` or scan `/ledger/` for `.json` files.
2. **Check for presence of module `"profile"`**:
   - If absent → call `ensure_profile(ledger_dir="/ledger")`.
   - Reload ledger list to include the newly created `profile.json`.
3. For each ledger, recompute checksum; compare with `metadata.checksum` per Structure DNA integrity rules.
4. Write updated checksums and ledger list back to `/ledger/manifest.json`.
5. Return runtime registry map.

## Pseudocode
```python
def run_registry(ledger_dir="/ledger"):
    ledgers = scan_ledgers(ledger_dir)

    # ✅ NEW STEP: ensure profile.json exists
    if not any(L["module"] == "profile" for L in ledgers):
        ensure_profile(ledger_dir)  # uses profile.schema.json + profile.defaults.json
        ledgers = scan_ledgers(ledger_dir)  # re-scan to include it

    manifest = build_manifest(ledgers)
    manifest["metadata"]["last_sync"] = now_iso()
    manifest["metadata"]["checksum"] = recompute_checksum(manifest)
    save_json(f"{ledger_dir}/manifest.json", manifest)
    return manifest

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.