murphysec
v1.0.4
Published
MurphySec SCA Agent skills installer.
Readme
MurphySec SCA Skills
MurphySec SCA Agent skills installer for Codex, Claude Code, Trae, and generic Agent skill directories.
Install
Interactive install:
npx murphysec-sca-skills installInteractive install stores the MurphySec server origin in
~/.murphysec-sca/config.env. Later interactive installs reuse that value and
ask whether to replace it instead of asking for the server every time.
Install for Codex:
npx murphysec-sca-skills install --host codex --server <server-origin>Install for Codex from an AI Agent, replacing existing SCA skills:
npx murphysec-sca-skills install --host codex --force --server <server-origin>Install for all detected Agent hosts:
npx murphysec-sca-skills install --all --server <server-origin>Install to a custom skills directory:
npx murphysec-sca-skills install --dest <skills-dir> --server <server-origin>The server can also be supplied by environment variable:
MURPHYSEC_SERVER=<server-origin> npx murphysec-sca-skills install --host codex --forceThe legacy no-subcommand form is still accepted:
npx murphysec-sca-skills --host codex --server <server-origin>Auth
Re-authorize the local MurphySec CLI:
npx murphysec-sca-skills auth login --server <server-origin>Check authorization status:
npx murphysec-sca-skills auth status --server <server-origin>For install and auth, the server origin is resolved in this order:
--server, MURPHYSEC_SERVER, MURPHYSEC_INSTALL_ORIGIN,
~/.murphysec-sca/config.env, then an interactive prompt when available.
Options
install Interactive install when no options are provided.
auth login Re-authorize with device-code login.
auth status Verify the stored local token.
--host <name> Target host: codex, claude, agents, trae. Default: codex.
--all Install to all detected host directories.
--dest <dir> Install to a custom skills directory.
--server <url> MurphySec server origin. Required unless MURPHYSEC_SERVER is set.
--verify-token Run auth status with the stored token, then exit.
--force Replace existing MurphySec SCA skill directories.
--skip-bootstrap Copy skills only. Intended for automation or manual bootstrap.
--dry-run Print actions without changing files.
-h, --help Show help.What It Does
- Copies
sca-component-check,sca-sbom-scan, andsca-sharedinto the target skills directory. - Writes the configured server origin into
sca-shared/references/install-config.env. - Installs or verifies the local MurphySec CLI.
- Verifies an existing token with
auth status --json --server <server-origin>. - Starts device-code authorization when no valid token is available.
- Prints the authorization link and keeps the same command running until the CLI saves the token locally.
- Prints usage examples after installation completes.
The token is read from the local token file and passed to the MurphySec CLI through process environment. Do not paste or print the token in chat.
AI Agent Notes
When the installer prints an authorization link, relay that link to the user as
a clickable Markdown link and keep the install command running. Do not call
open, and do not start another murphysec auth login command.
If the installer reports that the existing token is authorized, do not tell the user to click an authorization link.
After installation, include the install result and the natural-language usage
guidance printed by the installer. Do not include internal marker lines such as
MURPHYSEC_AUTH_STATUS unless they are needed for debugging.
After Installation
The installer prints usage guidance after installation:
如当前会话尚未识别新安装的 sca-sbom-scan 和 sca-component-check 技能,请重启或新开会话后使用。你可以这样问我:
- 单组件漏洞检查:
lodash 4.17.15 有漏洞吗? - 组件版本升级建议:
requests 2.31.0 是否建议升级? - 整个项目的组件与漏洞检查:进入目标项目目录后,输入
帮我在当前项目做一次 SCA 依赖扫描
During login authorization, the installer also prints:
授权链接:<authorization-url>Supported Hosts
| Host | Default skills directory |
|------|--------------------------|
| Codex | ~/.codex/skills |
| Claude Code | ~/.claude/skills |
| Trae | ~/.trae/skills |
| Generic Agent | ~/.agents/skills |
