[Feature] Install and share skills (nanocoder skills add)
Description
docs/features/skills.md calls a skill bundle "one shareable artifact," but there is no install path anywhere in source/skills/ no fetch, no clone, no registry. Every skill today must be hand-authored directly into .nanocoder/skills/.
Use Case
Writing a skill (a markdown bundle) is far cheaper than writing TypeScript, making distribution the cheapest available lever on contributor growth for a 51-contributor project. Right now that leverage is unused there's no way to share a working skill except copy-pasting files.
Proposed Solution
Add source/skills/install.ts: fetch a tarball or shallow-clone a skill bundle into .nanocoder/skills/, validate it through the existing manifest-parser.ts and check.ts linter, then show a trust prompt that renders exactly which tools and event subscriptions the bundle declares before writing anything to disk. Start with a plain skills.json index hosted in a git repo no hosted registry infrastructure needed for v1.
Alternatives Considered
A hosted marketplace/registry service rejected for v1 as unnecessary infrastructure; a git-hosted index is enough to bootstrap sharing.
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] This feature aligns with the project's goals (local-first AI assistance)
Read this before closing as a duplicate of #92: #92 ("Plugin System & Marketplace") is closed as completed, so this can look like a duplicate on sight. It isn't skills delivered the plugin half of #92, but three of its stated goals never shipped: marketplace distribution, sandboxed execution, and lifecycle hooks. This issue is the distribution piece; lifecycle hooks are #1032 (already filed, PR #1047 open); sandboxed execution is the companion issue filed alongside this one.
Two things shape this beyond the fetch itself.
Installing a skill is arbitrary code execution: bundle tools are shell scripts, approval: never skips confirmation entirely, and a subscribe: block makes the daemon fire them headless. So the trust prompt needs to render each tool with its approval policy alongside the subscriptions names alone don't tell you what you're agreeing to.
Plan: git clone --depth 1 into a temp dir (git is already a hard dependency, so no tar lib needed), validate through checkSkillBundle, strip .git, show the trust prompt, then reuse applyPromotion's copy/collision/force semantics to land it. nanocoder skills add as a CLI fast path mirroring nanocoder daemon, with a plain skills.json index for name resolution.
Tests stay hermetic, clone from a local bare repo fixture in a temp dir, no network, plus adversarial bundles: path traversal, symlink escape, name/dir mismatch.
@akramcodez , Could I get this assigned to me?