Skill instructions
local-service-diagnosis5.95 KB
View saved version →
---
name: local-service-diagnosis
description: Diagnose an approved local service or localhost endpoint through Local Commander's existing scoped MCP capabilities without restarting or mutating it automatically.
---
# Local service diagnosis
## Trigger
Use this skill when the user asks to inspect an approved local service, diagnose a localhost endpoint, or understand a service's reported health on a connected device. Do not use it to scan arbitrary hosts, identify unrelated process owners, or restart a service without explicit approval.
## Required inputs
- An authenticated Local Commander MCP connection.
- A selected connected device.
- The specific approved localhost service or endpoint, including the user's intended diagnostic scope.
- Local permission for the relevant service or localhost access.
- Explicit approval before any restart, stop, configuration write, file write, or other process change.
If the endpoint, device, scope, or permission is missing, ask instead of guessing. Do not accept a public endpoint or arbitrary network target as a substitute for an approved local scope.
Test suites and new automatic tests are optional and require an explicit current user request. Use necessary builds and small real runtime checks for an authorized fix. Preserve existing checks and runtime guards.
## Safe sequence
1. Confirm the connected device, approved localhost scope, and read-only diagnostic intent.
2. Open an explicit execution session with `execution_session_open` using the approved device and workspace grant required by the service.
3. Request bounded observations with read-only tools: `localhost_get` (GET or HEAD) to the approved endpoint, and `fs_read` for approved logs or configuration. Keep each diagnostic action attributable to the session and operation identity.
4. Report only observations returned by the service, including unavailable, permission-required, timeout, or unknown states.
5. If a corrective action is requested, describe its expected effect and ask for explicit approval before dispatching it with the matching change tool (`command_run`, `fs_write`, `fs_replace` or `localhost_send`).
6. If a result is pending, track it with `operation_status` and retrieve its bounded observations through `operation_output` before closing the session. Use `operation_cancel` only for the user's owned operation when requested.
7. Close the session with `execution_session_close` when diagnosis is complete.
This skill does not contain service-control scripts, shell snippets, port-killing logic, restart automation, or a separate localhost client. It reuses the existing MCP tools and local permission model. If portable MCP wiring cannot be completed without an owner-provided endpoint and registration, explain that configuration is pending; do not invent `mcp.json`, a public MCP URL, or an application ID.
## Output
Provide a concise diagnostic report containing:
- The device and approved local scope confirmed by the service.
- Observed status, bounded response, timing, and result code where returned.
- Any permission, availability, timeout, or unknown state.
- A clearly separated proposed remediation, if one is appropriate.
Never claim that a service is healthy, stopped, restarted, or repaired without service-confirmed evidence.
## Stop and ask conditions
Stop and ask before reading an unapproved location, contacting an unapproved endpoint, changing configuration, writing files, restarting or stopping a process, changing firewall or network settings, or terminating any process. Stop on ambiguous ownership, missing permission, offline device, quota admission failure, or unknown outcome. Do not retry a potentially mutating operation automatically.
A diagnostic request does not authorize process control. Any process change requires explicit user approval, the applicable local permission, and an operation owned by the authenticated tenant and session. Never use elev
Preview of the first 4,000 characters. Read full instructions →
project-check5.89 KB
View saved version →
---
name: project-check
description: Inspect an approved connected project, identify its available checks, and propose independent checks before asking for execution approval.
---
# Project check
## Trigger
Use this skill when the user asks Local Commander to inspect a connected project, review project health, identify available checks, or prepare a project check. Do not invoke it for general explanations of project concepts or for an unconnected project.
## Required inputs
- The connected device and approved workspace or project identity.
- The user's requested project or outcome, if one was provided.
- Permission to inspect the selected workspace through the Local Commander MCP connection.
- A clear confirmation before any check that can execute a program, write files, change a process, or otherwise mutate state.
If the project, device, workspace grant, or permission is missing, ask for the missing information. Never infer a path, device, grant, or permission from conversational context alone.
Test suites and new automatic tests are optional and require an explicit current user request. Use necessary builds and small real runtime checks for an authorized fix. Preserve existing checks and runtime guards.
## Safe sequence
1. Confirm that the Local Commander MCP connection is available and that the user has identified an approved project.
2. Open an explicit execution session for the selected device and workspace grant using `execution_session_open`.
3. Inspect only the approved project metadata and documented check definitions with the read-only tools (`project_snapshot`, `fs_list`, `fs_read`). Do not invent scripts, commands, files, or results.
4. Present a concise list of proposed checks, including whether each check is expected to read, execute, write, or alter a process.
5. Ask for explicit approval of the proposed checks before submitting chargeable or potentially mutating work.
6. If approved, run each check with its own `command_run` call and a fresh operationId; preserve each returned operation identity.
7. Track each operation with `operation_status`, then fetch each child's bounded stdout/stderr using `operation_output` with its operationId and childExecutionId. Retrieve output before closing the session; status alone does not contain it.
8. If the user requests cancellation, use `operation_cancel` for the owned operation.
9. Close the session with `execution_session_close` when the requested work is complete or the user asks to stop.
This skill reuses the existing MCP execution tools. It does not provide shell commands, scripts, a second execution engine, or an automatic endpoint configuration. If portable MCP wiring is unavailable, tell the user that the Local Commander MCP connection must be configured by the owner; do not invent an endpoint or `mcp.json` entry.
## Output
Report:
- The selected device and approved project at the level the service actually confirms.
- The checks proposed and the user's approval state.
- One separate status for each submitted check.
- Bounded returned output only when the connected service provides it.
- Any `offline`, `permission required`, `queued`, `running`, `finished`, `failed`, `cancel requested`, or `outcome unknown` state exactly as returned.
Do not claim a check ran, passed, failed, or produced output unless the MCP service returned evidence for that check.
## Stop and ask conditions
Stop and ask before proceeding when the device is offline, the workspace grant is absent or ambiguous, local permission is required, the requested operation could mutate data, a process change is requested, quota is exhausted, or the operation outcome is unknown. Preserve the operation identity for recovery and do not silently retry an unknown operation.
Never read or write outside the approved workspace. Never broaden permissions, select another tenant's device, bypass consent, or convert a proposed check into an automatic mu
Preview of the first 4,000 characters. Read full instructions →
run-checks5.92 KB
View saved version →
---
name: run-checks
description: Run explicitly approved independent checks on an approved connected project and report each result separately through Local Commander's existing MCP tools.
---
# Run checks
## Trigger
Use this skill when the user explicitly asks Local Commander to run one or more checks on an approved connected project. Use `project-check` first when the project, checks, permissions, or expected effects have not already been established.
## Required inputs
- An authenticated Local Commander MCP connection.
- A selected device and approved workspace grant.
- The exact checks the user approved, or a prior proposal whose approval is unambiguous.
- The executionSessionId returned by session opening. Generate a fresh UUID operationId for each call and preserve it for recovery.
- Confirmation that any check capable of writing files, changing processes, or causing other side effects is authorized.
Do not manufacture a command, check name, path, result, approval, or device identity. Ask when any required input is missing.
Test suites and new automatic tests are optional and require an explicit current user request. Use necessary builds and small real runtime checks for an authorized fix. Preserve existing checks and runtime guards.
## Safe sequence
1. Verify the existing MCP connection and the approved device/workspace context.
2. Open an explicit execution session with `execution_session_open` unless an active owned session is already available.
3. Confirm the exact approved checks and classify expected effects before dispatch.
4. Run each check with its own `command_run` call; read any files you need first with `fs_read`. Keep each check tied to its own operationId and do not resend a call that was already submitted.
5. Track the returned operation with `operation_status`, then read each child's stdout/stderr through `operation_output` using operationId and childExecutionId. Retrieve output before closing the session and report each check separately.
6. Use `operation_cancel` only for an operation owned by the authenticated session and only when the user requests cancellation.
7. Close the session with `execution_session_close` after the work is complete, unless the user asks to keep it open for a stated follow-up.
8. Use `usage_status` only to explain the service-reported usage state; do not treat it as permission to bypass quota or safety controls.
The skill uses existing Local Commander/cloud MCP concepts only. It contains no executable script and does not reproduce command execution, process supervision, output capture, retry, or accounting logic. If portable MCP wiring is unavailable before the owner supplies an endpoint and registration, state that setup is required; never add a guessed public URL or registration identifier.
## Output
For every approved check, report the service-confirmed execution identity, status, bounded output when available, and result code when available. Distinguish `queued`, `running`, `finished`, `failed`, `cancel requested`, and `outcome unknown`. State when no dispatch occurred because validation, permission, device availability, or quota admission failed.
Do not infer success from acceptance alone and do not claim output that was not returned by the MCP service.
## Stop and ask conditions
Stop and ask before dispatch if approval is unclear, the selected workspace is not confirmed, local permission is required, the check may mutate data or alter a process, the device is offline, or the operation has an unknown outcome. Do not automatically retry after a timeout, disconnect, or unknown result. Do not resend a call after a response indicates that it may have reached the device unless the service provides a safe, owned recovery path.
Writes and process changes always require explicit user approval and the relevant local permission. Never elevate privileges, broaden a workspace, terminate an unrelated process, or use a shell
Preview of the first 4,000 characters. Read full instructions →