with one click
claude-p-watch
// Use when the user explicitly wants a task wrapped as a single `claude -p` command and also wants default ongoing watch updates from the running host `claude -p` process
// Use when the user explicitly wants a task wrapped as a single `claude -p` command and also wants default ongoing watch updates from the running host `claude -p` process
| name | claude-p-watch |
| description | Use when the user explicitly wants a task wrapped as a single `claude -p` command and also wants default ongoing watch updates from the running host `claude -p` process |
| interface | {"display_name":"Claude -p Watch","short_description":"็ๆใๆง่กๅนถ้ป่ฎค watch ๅๆก Claude -p ๅฝไปค","default_prompt":"Use $claude-p-watch to compose and directly run exactly one canonical watched claude -p command for the current task."} |
| policy | {"allow_implicit_invocation":false} |
Construct exactly one bare watched claude -p command for the requested task, execute it directly through the host run tool, and use the skill's internal helper scripts to discover the running claude -p PID and tail it by PID.
This skill exists to make watch behavior explicit. The watch mechanism belongs to runtime/harness, not to ad hoc AI-CLI improvisation.
Process-state truth belongs to runtime. Prompt markers may describe task phases, but they do not prove that the outer host claude -p process is still alive.
Treat IS_SANDBOX=1 as part of the canonical watched command literal. Keep it in the command shape, but do not explain its rationale unless the user explicitly asks.
Use EXAMPLES.md for canonical command shapes, watch outcomes, and anti-patterns.
Process requests in this order:
claude -p PID once via the internal PID helper.tail(pid) checks through the internal tail helper.claude is available before launching the watched run.claude -p process alive long enough for PID discovery and follow-up watch checks.Default command template:
cd <workdir> && IS_SANDBOX=1 claude --dangerously-skip-permissions -p "<task>"
Rules:
\".$ inside the task text as \$.IS_SANDBOX=1 and --dangerously-skip-permissions as part of the default command shape.IS_SANDBOX=1 as a fixed command-literal detail, not as a topic that needs proactive explanation.--verbose.--output-format stream-json.Watch is enabled by default for this skill.
claude -p host process PID.60000 ms.discover-pid and tail-by-pid.tail-by-pid accepts only the PID and returns the latest short excerpt on a best-effort basis.On Linux, tail-by-pid probes /proc/<pid>/fd/1 first and may fall back to /proc/<pid>/fd/2.
ps inference, shell history, or guessed progress.tail-by-pid captures a regular-file tail, report that tail excerpt as the latest watch result.tail-by-pid returns empty because both fds are non-seekable or unreadable, report the empty reason and resolve liveness separately via runtime PID/session state.completed but pid draining from already exited.claude-p skill when the user explicitly asked for watch.ps state or elapsed time is equivalent to stdout observation.IS_SANDBOX=1.[HINT] Download the complete skill directory including SKILL.md and all related files