LanternUI.InstallSkills (LanternUI v0.9.0)

Copy Markdown View Source

Copies the lantern agent skills and rules into a consuming app.

Safe to re-run: skill files that already exist are left alone unless :force is given, and the AGENTS.md block is replaced in place between its markers — user content outside the markers is never touched.

Skills land in <target>/skills/<name>/SKILL.md (the same layout this package uses, so skill imports keep working). The rules block comes from priv/AGENTS.md with its catalog section rendered from the live registry, so the installed catalog can never rot.

Summary

Functions

Locate the lantern_ui package source: the installed dep in consumer apps, the working tree when run inside this package.

Render the priv/AGENTS.md template: the catalog section becomes a table generated from the live component registry.

Install from package source into app target.

Functions

locate_source(cwd \\ File.cwd!())

Locate the lantern_ui package source: the installed dep in consumer apps, the working tree when run inside this package.

render_agents(template)

Render the priv/AGENTS.md template: the catalog section becomes a table generated from the live component registry.

run(source, target, opts \\ [])

Install from package source into app target.

Options: :force (overwrite changed skill files). Returns a report map.