AGENT SKILL

runtime-diagnostics

Investigate Pioneer Gateway or desktop CPU, memory, slow work, queues, and runtime stalls using process metrics, local snapshots, bounded native profiles, and exact release symbols. Use for Pioneer performance diagnosis and interpreting its diagnostic artifacts.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 21
Forks
3

01 前言 Front Matter

name
runtime-diagnostics
slug
runtime-diagnostics
owner
pioneer
version
0.1.0
description
Investigate Pioneer Gateway or desktop CPU, memory, slow work, queues, and runtime stalls using process metrics, local snapshots, bounded native profiles, and exact release symbols. Use for Pioneer performance diagnosis and interpreting its diagnostic artifacts.
user-invocable
true
implicit-invocation
user-controlled
disable-model-invocation
false

02 资源文件 4

03 SKILL.md 正文

Pioneer Runtime Diagnostics

Find which process consumes resources, what work initiated it, where it waits, and which functions run during the problem. Use the existing pioneer diagnostics commands and telemetry before proposing new instrumentation or changing code.

Protect the session that is doing the investigation

The investigating agent may run inside the Gateway, desktop, or a child of the process it is investigating. Treat that dependency as present unless verified otherwise. Never stop, restart, replace, upgrade, or relaunch those processes from the agent's tools. Do not run pioneer stop, pioneer start, gateway-service, launch-memory, service-manager mutations, quit commands, or signals against them. Do not stop their containers, remote hosts, or supervisors. A detached shell, background task, or subagent does not make a restart safe.

Snapshot, bundle, symbol download/validation, and a bounded native attach capture can usually run autonomously under an authorized diagnostic request. Preserve the user's telemetry preference and OS attach permissions. If a restart is required, prepare the complete user handoff in references/restart-memory.md: exact paths and commands, what to reproduce, when to stop, how to restore ordinary launch, and how to continue this investigation. The user executes that handoff from a terminal outside Pioneer. Do not execute its restart blocks yourself.

Four capabilities

  1. Process resources and identity: one run/build identity; CPU and OS memory/IO snapshots for the target and registered children, with freshness and coverage.
  2. Native CPU and memory captures: bounded on-demand profiles, manifests, private artifacts, and exact Mach-O UUID / ELF build ID / PE GUID+age symbols.
  3. Work ownership: parent/linked work, trigger, attempt, executor and available trace/span context carried across instrumented execution boundaries.
  4. Live diagnosis: active work and waits, queue accounting, database pool state, runtime/foreground responsiveness, export health and bounded prehistory.

These are complementary signals. A long span is not measured CPU. An allocation stack is not an ownership/retainer graph. A successful export is not proof that the backend retained every event.

Normal autonomous workflow

  1. Discover the actual installed CLI, OS/architecture, runtime home, live runs, process ownership and available tools. Read references/signals-and-triage.md. The skill may be available before a binary supporting diagnostics is installed; report that mismatch instead of installing or restarting the hosting app.
  2. Save an initial snapshot, a later snapshot after a few normal sample periods, and a bundle for the exact run. Keep capture output in a private case directory. Prefer exact run IDs over gateway/desktop when several instances exist.
  3. Separate target CPU/memory from registered children and profiler cost. Check freshness, consent generation, unknown fields, queue/liveness evidence and instrumentation loss before naming a cause.
  4. If function-level evidence is needed, read references/captures.md and take the smallest relevant supported capture. Use attach first. Prepare user instructions for macOS allocation history only when attach cannot answer the question; read the restart reference before planning it.
  5. Read references/symbols.md to download the matching private Build Debug Symbols artifact for the exact producing release, validate it against the capture and executable, and resolve addresses. Prefer existing artifacts; local LLVM builds and release rebuilds are not a normal diagnostic step.
  6. Follow the evidence to the initiating work and concrete functions. Give a short verdict, evidence paths/time window, missing coverage and a scoped next action. A single failed native capture is not proof that ordinary telemetry failed. Finish when the requested question is answered; do not launch a broad benchmark or repeated capture campaign without a reason.

Operating bounds

  • Keep at least 5 GiB free on every volume holding inputs, symbols, profiles, or temporary logs. Check before downloads and capture and during large work; leave headroom for growth between checks. The product's artifact quotas are not a whole-disk free-space guard. Stop diagnostic work before crossing the floor.
  • Native profilers can consume several GiB of RAM and substantial CPU/IO. Report their cost separately from the target. Do not promise free or zero-overhead diagnosis.
  • Run one capture per target at a time. Use diagnostics cancel --target RUN_ID to stop the native capture worker, never kill the Gateway/desktop to cancel it.
  • Preserve private endpoint tokens, paths, native output and symbol artifacts. Do not print endpoint descriptor JSON or upload raw bundles to public services. A request to investigate does not authorize publishing diagnostic data.
  • Cleanup only case-owned files after identifying the exact path, size, ownership, active readers/writers and evidence that must remain. Never remove a shared Cargo target, running preparation logs, retained release inputs, or unrelated files merely to make room.
  • Use only callable tools and installed commands. Skill references are accessed through the same package/authority as this file, or relative to its filesystem directory when exported locally. Do not treat a skill:// identifier as a path.

04 同仓库更多 Skills

pioneerdotai
pioneerdotai/pioneer

threads

Use this skill to find and read accessible conversations, follow saved sources and child threads, read saved tool results, create a conversation, send a message, or start a permitted thread turn.

Skill与智能体开发
★ 21
pioneerdotai
pioneerdotai/pioneer

tasks

Use this skill when Pioneer should create, inspect, update, reschedule, pause, resume, finish, cancel, troubleshoot, or configure delivery for durable tasks, scheduled tasks, recurring tasks, interval tasks, cron jobs, background work, or existing task state.

Skill与智能体开发
★ 21
pioneerdotai
pioneerdotai/pioneer

subagents

Use this skill when Pioneer should delegate current-turn work to attached task-backed subagents, coordinate parallel child agents, wait for child results, review/revise/accept/cancel/detach attached work, or synthesize accepted child results into the parent answer.

Skill与智能体开发
★ 21
pioneerdotai
pioneerdotai/pioneer

memory

Use this skill when Pioneer should proactively use durable memory or recalled context: decide whether memory can improve a turn, answer from remembered user/project facts, request memory tools, search/list/get stored memories, save durable preferences or project decisions, forget memories, audit or clean up memory, or recover from memory tool failures.

Skill与智能体开发
★ 21
pioneerdotai
pioneerdotai/pioneer

html

Create inline HTML documents with CSS and embedded JavaScript in Pioneer messages, including interactive calculators, charts, and small working interfaces. Do not use for ordinary application edits merely involving HTML.

前端开发Skill与智能体开发
★ 21
pioneerdotai
pioneerdotai/pioneer

browser

Use agent-browser to interact with websites, inspect rendered pages, fill forms, extract data, capture screenshots or PDFs, and test web interfaces. Includes browser-backed QA and CDP-enabled Electron app workflows.

Skill与智能体开发
★ 21