Skip to main content

Deterministic package-map inference engine for Logion.

Project description

logion-skillmap

Deterministic package-map inference engine for Logion.

This package depends on PyYAML as its single runtime dependency. It infers a PackageMap from repository trees by checking for:

  1. An explicit logion-package-map.yaml at the repo root (author map).
  2. A .claude-plugin/plugin.json or .claude-plugin/marketplace.json manifest (plugin manifest).
  3. SKILL.md / skill.md files (skill scan).

Installation

pip install logion-skillmap

Package map schema

The map is nested (package + components); capabilities is a mapping keyed by capability name:

version: 1
package:
  slug: my-package
components:
  capabilities:
    pr-review:
      entrypoint: skills/pr-review/SKILL.md
      capabilities_manifest: skills/pr-review/course/capabilities.yaml
      dependencies:
        - capability: diff-reading
          reason: "delegates hunk parsing"
    diff-reading:
      entrypoint: skills/diff-reading/SKILL.md
  runtime:
    include: ["skills/**"]
    entrypoint: skills/pr-review/SKILL.md
  source:
    include: ["src/**"]
    exclude: ["**/node_modules/**"]
  evals:
    commands:
      verify: "npm test"   # stored, never executed by this package

Usage

from logion_skillmap import (
    check_unknown_keys_raw,
    infer,
    parse_package_map,
    validate_package_map,
)

# Parse an author-provided map (raises TypeError only for non-mapping YAML).
pm = parse_package_map(yaml_text)

# Validate: check_unknown_keys_raw needs the raw mapping; validate_package_map
# covers everything derivable from the parsed model. Both return MapWarnings.
import yaml

warnings = check_unknown_keys_raw(yaml.safe_load(yaml_text))
warnings += validate_package_map(pm)

# Or infer a map deterministically from a repository tree.
result = infer(tree_entries, read_blob_callback)  # optional: slug=...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logion_skillmap-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logion_skillmap-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file logion_skillmap-0.1.0.tar.gz.

File metadata

  • Download URL: logion_skillmap-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for logion_skillmap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 54d4d5c7239ce094ed72c74636ce697981860d30818c4c8ba2e75387cfd7ba80
MD5 4afd1f3b022c941cad7e856685aaf693
BLAKE2b-256 3476148dfa0f478b19d0eafe799ce893b8ff9722edd67b280e2126e8f97d80a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for logion_skillmap-0.1.0.tar.gz:

Publisher: release-skillmap.yml on nicolasmelo1/logion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file logion_skillmap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: logion_skillmap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for logion_skillmap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b64ebd4af75d76991e8da9a97daac4d38fbfbc4af4c33ac839136c71c3ff0c14
MD5 ae318672b41e63e95a8569fb7bfcb237
BLAKE2b-256 4769f82d0f3a753a46f9bf14002e3806acbd9f48a19705080ca2d92a0cecc61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for logion_skillmap-0.1.0-py3-none-any.whl:

Publisher: release-skillmap.yml on nicolasmelo1/logion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page