You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add persistent CLI configuration (global + per-project) and wire three-tier skill path resolution through the loader and all CLI commands that scan disk.
Today roots are implicit (SKILLWARE_SKILL_PATH → cwd walk → bundled). Operators cannot see or persist project vs external paths; shadowing is silent. Pip-only users need bundled registry as a reliable default; project teams need scoped ./skills/; power users need external folders.
This is the backend for: bundled read-only default, optional project/external paths, multi-root scan, conflict visibility, and consistent errors across CLI and library.
Feature Description
Add persistent CLI configuration (global + per-project) and wire three-tier skill path resolution through the loader and all CLI commands that scan disk.
Tiers (aligned with #234 / trust doc vocabulary):
site-packages/skills/./skills/or explicit project rootConfig files (v1 — names negotiable in PR):
~/.config/skillware/config.yaml(or OS-appropriate XDG path).skillware.yamlin repo root (walk up from cwd)Schema sketch (v1):
Behavior:
skillware paths, config location).skillware list,skillware test, andSkillLoader.load_skill()use the same discovery helper (extend module from [Feat]: CLI commands to set and repair skill directory paths (sub-issue of #16) #81).Out of scope:
Rationale
Rationale
Today roots are implicit (
SKILLWARE_SKILL_PATH→ cwd walk → bundled). Operators cannot see or persist project vs external paths; shadowing is silent. Pip-only users need bundled registry as a reliable default; project teams need scoped./skills/; power users need external folders.This is the backend for: bundled read-only default, optional project/external paths, multi-root scan, conflict visibility, and consistent errors across CLI and library.
Affected paths (optional)
skillware/core/discovery.py, skillware/core/loader.py, skillware/core/config.py, skillware/cli.py, tests/test_loader.py, tests/test_cli.py, tests/test_discovery.py, docs/usage/cli.md, docs/usage/README.md, docs/security/skill-trust-model.md, docs/contributing/ai_native_workflow.md
Implementation Idea
Implementation Idea
discovery.py—get_skill_roots(config)with tier label, path, skill IDs._all_skill_roots()reads config; backward compat when no config file.skillware config show(read-only; editor is [CLI]: Interactive paths editor and grouped help submenus #247).tmp_path: global config, project.skillware.yaml, env var, bundled fallback, shadow warning.cli.md; trust doc cross-link ([Docs]: Operator expectations for bundled vs external skills #243).Acceptance criteria
load_skill,list,test.SKILLWARE_SKILL_PATHdocumented when config also present.docs/usage/cli.mdand trust doc updated.