plasticine-agent-dotfile
v0.3.0
Published
`plasticine-agent-dotfile` is a CLI for managing a JSON config file and installing skills and Claude Code plugins from that config.
Downloads
560
Readme
plasticine-agent-dotfile
plasticine-agent-dotfile is a CLI for managing a JSON config file and installing skills and Claude Code plugins from that config.
Quick start
Prefer using the skill first:
npx skills add github.com/Plasticine-Yang/plasticine-agent-dotfile --skill plasticine-agent-dotfileCreate a config file in the current directory:
npx plasticine-agent-dotfile initList the current config:
npx plasticine-agent-dotfile config listInstall everything from the local config file:
npx plasticine-agent-dotfile installIf you installed the package globally and exposed the bin alias, you can also use pad.
Development
Quality commands:
pnpm format
pnpm format:check
pnpm lint
pnpm lint:fix
pnpm checkpnpm formatformats the repository with Biome.pnpm format:checkverifies formatting without writing files.pnpm lintruns Biome lint checks.pnpm lint:fixapplies Biome's safe fixes.pnpm checkruns lint, format verification, type checking, and tests.
Local config file
The default file name is:
plasticine-agent-dotfile.config.jsoninit creates this file in the current directory.
Example config:
{
"skills": [
{
"sourceName": "github.com/example/cli",
"skillName": "example-skill"
},
{
"sourceName": "github.com/larksuite/cli",
"skillName": "lark-doc"
}
],
"claudeCodePlugins": [
{
"packageName": "superpowers@claude-plugins-official"
}
]
}Commands
init
Create plasticine-agent-dotfile.config.json in the current directory:
npx plasticine-agent-dotfile initconfig list
Show the whole config:
npx plasticine-agent-dotfile config listShow only skills:
npx plasticine-agent-dotfile config list --skillsShow only Claude Code plugins:
npx plasticine-agent-dotfile config list --claude-codeconfig add-skill
Add a skill entry:
npx plasticine-agent-dotfile config add-skill --source-name github.com/larksuite/cli --skill-name lark-docIf you omit required fields, the CLI asks for them interactively.
config remove-skill
Remove a skill entry:
npx plasticine-agent-dotfile config remove-skill --skill-name lark-docconfig add-claude-code-plugin
Add a Claude Code plugin entry:
npx plasticine-agent-dotfile config add-claude-code-plugin --package-name superpowers@claude-plugins-officialconfig remove-claude-code-plugin
Remove a Claude Code plugin entry:
npx plasticine-agent-dotfile config remove-claude-code-plugin --package-name superpowers@claude-plugins-official--config-file-path
All config subcommands support --config-file-path:
npx plasticine-agent-dotfile config list --config-file-path /path/to/plasticine-agent-dotfile.config.jsonIf --config-file-path is invalid, the command fails immediately.
If you do not pass --config-file-path, the CLI uses the current directory config file. For config add-* and config remove-*, if the default file does not exist, the CLI asks for a config file path.
Install
Default behavior
install resolves config in this order:
--config-file-path./plasticine-agent-dotfile.config.jsonPLASTICINE_AGENT_DOTFILE_CONFIG_JSON_URL--config-json-url
If none of these sources exist, the CLI tells you to run npx plasticine-agent-dotfile init first.
Install everything from the local config file
npx plasticine-agent-dotfile installInstall only skills
npx plasticine-agent-dotfile install --skillsInstall only Claude Code plugins
npx plasticine-agent-dotfile install --claude-code-pluginsInstall from a specific local config file
npx plasticine-agent-dotfile install --config-file-path /path/to/plasticine-agent-dotfile.config.json --skillsInstall from a remote config URL
npx plasticine-agent-dotfile install --config-json-url https://example.com/config.json --skills --claude-code-pluginsInstall from an environment-provided remote config URL
PLASTICINE_AGENT_DOTFILE_CONFIG_JSON_URL=https://example.com/config.json \
npx plasticine-agent-dotfile install --skillsOnly http and https URLs are supported for remote configs.
Interactive behavior
When needed, the CLI prompts for:
- which install targets to run (
skills,claude code plugins, or both) - which agents should receive skills (
claude-code,trae,trae-cn) - missing
config add-*/config remove-*fields - a config file path for
config add-*/config remove-*when the default file is missing
When loading a remote config, the CLI shows a spinner while downloading and validating the JSON.
