From p4-core
One-time setup skill for p4-core. Installs the statusline script and patches ~/.claude/settings.json to activate it. Invoke once after installing the plugin. Also invoked explicitly as /p4-core:setup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/p4-core:setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill performs the one-time configuration needed after installing the p4-core plugin. It installs the custom statusline and activates it in Claude Code settings.
This skill performs the one-time configuration needed after installing the p4-core plugin. It installs the custom statusline and activates it in Claude Code settings.
statusline-command.sh script bundled with this plugin~/.claude/statusline-command.sh~/.claude/settings.json to activate the statuslineFind the statusline-command.sh bundled with this plugin. It is at:
<plugin-root>/statusline/statusline-command.sh
where <plugin-root> is the directory containing this skill's parent folders. To locate it, resolve the path relative to this SKILL.md file:
# From this file's path: .../p4-core/skills/setup/SKILL.md
# Plugin root is: .../p4-core/
# Script is at: .../p4-core/statusline/statusline-command.sh
Use find or a known install path if the relative path is not directly accessible.
cp "<plugin-root>/statusline/statusline-command.sh" "$HOME/.claude/statusline-command.sh"
chmod +x "$HOME/.claude/statusline-command.sh"
Read ~/.claude/settings.json and add or replace the statusLine block:
"statusLine": {
"type": "command",
"command": "bash ~/.claude/statusline-command.sh"
}
statusLine already exists with "command": "bash ~/.claude/statusline-command.sh", skip this step — it is already configured.statusLine exists with a different value, ask the user before overwriting.statusLine is absent, add it.Use the Edit tool to make the minimal JSON patch rather than rewriting the whole file.
Report to the user:
~/.claude/statusline-command.shsettings.json updated (or already configured)[~/your/project] · [⎇ main] · Sonnet 4.6 · cx:16% sn:88% wk:8%
~cx: (context), sn: (5-hour session), wk: (7-day week)Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub rmompo/plugin4ai --plugin p4-core