一键导入
perf-gate
Performance gate for gfx/shader work. Capture baseline, change, capture after, report delta. Use before any non-trivial rendering change.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Performance gate for gfx/shader work. Capture baseline, change, capture after, report delta. Use before any non-trivial rendering change.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
File a machine self-diagnostic report as a tagged GitHub issue. When a tool, daemon, hook, skill, or agent hangs, errors, returns garbage, or behaves wrong, open a `machine-report`-labeled issue on the machine plugin repo so every plugin user's reports funnel to the maintainer. Requires `gh` logged in. Write-side only — it logs, it does not fix. Trigger: "/report", "report a problem", "this tool is broken", "file a machine report", "log this hang/error/hiccup".
Consume the machine self-diagnostic backlog. Lists the open `machine-report` GitHub issues on the machine repo, ranks them by severity then age, fixes the single highest-priority one at its root cause, verifies green, then closes that issue. The act side of /report (which only writes). Machine-repo-only skill — not shipped to other installs. Trigger: "/resolve", "resolve a report", "triage the reports", "fix the top report", "work the reports backlog".
Second-AI review via the Codex CLI at the drill's single review point — the consolidated review of the finished diff, alongside the persona panel, before a landing is proposed. Advisory only: it returns notes and concerns for the driver and user to weigh, it never gates, blocks, merges, or edits. Skips cleanly when codex is not installed. Trigger via "/codex-review", "codex review", "second opinion from codex", or invoked by the drill skill.
The drill — the orchestrator's default driver mode. Runs grill-first: the drill and the user refine a request one question at a time until the user calls it a valid plan. From there the job runs autonomously — a plan subagent writes a markdown brief, a miner implements it on a git-fs branch inside the orchestrator's worktree, and the gate iterates until the build is green — with one consolidated advisory review (personas + codex) at the end. The drill surfaces only to land the work into main, plus on any blocker it cannot resolve. The live roster lives in the hub (claims + board), not on disk. Trigger via "/drill", "drill mode", "orchestrator mode", "background this", "spawn an agent for this", "drive this".
Promote crystallized brainstorm findings into board tickets. After a brainstorm (drill grill) settles one or more well-scoped features, this turns each into a card on the current cwd's board so the drill's plan step can iterate per ticket. The bridge between brainstorm and plan — it creates tickets, it does not plan or implement. Trigger: "/promote", "promote these", "promote to tickets", "make tickets", "turn findings into cards".
Run the single ongoing chat that resolves the open plan and implementation questions parallel agents raise. Plan/implement agents post questions to mesh and wait; the questioneer aggregates them into one prioritized queue, presents each to you for a decision, and writes the answer back so the waiting agent proceeds. It routes decisions — it does not plan, implement, or dispatch. Trigger: "/questioneer", "questioneer", "answer the questions", "resolve open questions", "what are the agents blocked on".
| name | perf-gate |
| description | Performance gate for gfx/shader work. Capture baseline, change, capture after, report delta. Use before any non-trivial rendering change. |
| when_to_use | Performance-sensitive rendering work, esp. shader changes. Skip non-rendering, trivial, perf-not-concern. |
| triggers | {"files":["src/shader.wgsl","src/main.rs","src/rendering.rs","src/ui.rs","assets/stack.stk"],"keywords":["performance","fps","slow","profile","optimize","shadow cost","displacement cost","lighting cost"]} |
| auto_suggest | true |
| tags | ["skill","material","shading","graphics","code","pipeline"] |
Every rendering/shader task:
Done requires: app run check + compile check + screenshot artifact + perf artifact.
cargo check
cargo run -- --perf # stops frame 6000, writes profiler CSV, screenshot, exits
python skills/perf-gate/scripts/update_baseline.py
update_baseline.py writes profiling/perf_baseline.csv — two rows: latest (newest avg), previous (prior avg). Screenshot → screenshots/frame-6000-*.png.
Custom stop frame (early-frame regressions): cargo run -- --stop-frame=1200.
Read profiling/perf_baseline.csv, call out: full_ms, lighting_ms, shadow_ms, displacement_ms, avg_step_ms. Verify newest screenshot valid + clean exit. Pick dominant cost first (highest ms).
previous (ms + %)perf_baseline.csv updated, attached in summary