LEVEL 3 · ENGINEER

Cross-Agent Skill Installer

Validate local skill bundles, translate agent metadata, verify content digests, and atomically install without overwriting learner edits.

4 stages~8 hoursTypeScriptcore
Validate a portable bundleTranslate metadata and hash contentInstall atomically within a rootProtect edits during upgrades
YOU END UP WITH

A cross-agent upgrade tool promising a reviewable diff and no lost local edits.

USEFUL FOR
  • A cross-agent upgrade tool promising a reviewable diff and no lost local edits.
  • inspect is a dry run.
PROJECT OUTLINE

Cross-Agent Skill Installer in 4 stages

Validate local skill bundles, translate agent metadata, verify content digests, and atomically install without overwriting learner edits.

  1. Validate a portable bundle

    Accept a named bundle with a SKILL.md and optional reference files. Validate every relative path before touching disk. Reject dot segments, absolute paths, drive prefixes, backslashes and reserved installation metadata. Limit each text file to 100 KB. The installer reads an in-memory bundle, leaving network fetching and signature trust as separate responsibilities.

    starter · ~2 hours · TypeScript

    safePathvalidate
  2. Translate metadata and hash content

    Keep one body of instructions while regenerating a small quoted metadata header. Preserve references byte-for-byte. Compute a SHA-256 digest over sorted path/content pairs, so file insertion order cannot change integrity. The digest detects changed content but does not establish publisher identity; obtaining a trusted expected digest is the caller's responsibility.

    core · ~2 hours · TypeScript

    digesttranslate
  3. Install atomically within a root

    Check the expected digest before creating directories. Inspect each agent directory with lstat and reject symlinks. Stage the complete translated bundle beside the destination, then rename it. An existing managed installation moves to a temporary backup so a failed final rename can restore it. This educational transaction assumes a single trusted local writer; hostile concurrent filesystem replacement requires OS-level isolation.

    core · ~2 hours · TypeScript

    install
  4. Protect edits during upgrades

    Before replacing an installation, verify that every tracked file still matches the prior digest and no unmanaged files have appeared. Refuse upgrades when users edited a tracked file or added their own file. The user can move those changes into the source bundle deliberately. Successful repeated installs leave no staging or backup directories behind.

    core · ~2 hours · TypeScript

    install

Lessons this project uses

All projects · Course catalog · Source on GitHub