AgentSkillsCN

managing-sc-packages

列出、安装或卸载Synaptic Canvas软件包。配合`/sc-manage`命令使用。

SKILL.md
--- frontmatter
name: managing-sc-packages
description: List, install, or uninstall Synaptic Canvas packages. Use with the `/sc-manage` command.
version: 0.7.0

Managing Synaptic Canvas Packages

Use this skill to manage Synaptic Canvas packages on this machine or in the current repo.

Agent Delegation

This skill delegates to specialized agents via the Task tool:

OperationAgentReturns
Listsc-packages-listJSON: packages [{ name, description, installable_scopes, installed }]
Installsc-package-installJSON: success, scope, dest
Uninstallsc-package-uninstallJSON: success, scope, dest
Docssc-package-docsJSON: readme_path, size_bytes

Inputs / Flags

  • --list → call sc-packages-list.
  • --install <package> → require --local or --global; if missing, ask the user. If the package is local-only, force --local.
  • --uninstall <package> → same scope logic as install.
  • --docs <package> (alias --doc) → call sc-package-docs to load and present the package README.

Conventions

  • Local scope: current repository's .claude directory.
  • Global scope: global .claude directory.
  • The agents will detect the repo toplevel via git rev-parse --show-toplevel.
  • The agents call the Synaptic Canvas installer at <SC_REPO_PATH>/tools/sc-install.py (default injected as /Users/randlee/Documents/github/synaptic-canvas).

Safety

  • Respect package metadata: if a package manifest declares install.scope: local-only, block global installation.
  • Return only fenced JSON from agents; present tables and prompts in this skill.