Report or diagnose and fix the Wework desktop app on the affected machine, across its renderer, Electron host, and local Executor. Start when the user explicitly selects or names this skill.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Repair Wework?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/wecode-ai-repair-wework)
---
name: repair-wework
description: Report or diagnose and fix the Wework desktop app on the affected machine, across its renderer, Electron host, and local Executor. Start when the user explicitly selects or names this skill.
disable-model-invocation: true
---
# Repair Wework
Run on the affected Wework device. If the conversation executes elsewhere, use diagnostics supplied by the affected device and report which checks still need to run there. This skill runs inside an existing conversation and requires a working agent session.
## Explain and confirm the goal
In the user's language, explain which local evidence you may inspect and that both modes use the manual Wework feedback destination, with the official GitHub issue tracker available when there is no backend feedback channel. Preview the report and destination before publishing it. Wework attaches redacted runtime logs and system information on the configured board after desktop confirmation. Raw logs and conversation content stay local.
Confirm the user's choice before proceeding. When the request already clearly selects a mode, state the selected mode and proceed. Otherwise use the host's structured question tool when available, with these choices:
- **Report a Bug** — collect the relevant evidence for the feedback issue.
- **Try to fix it** — reproduce the problem and attempt a verified patch. Include the fix or the blocker in the feedback issue.
Wait for the mode selection before collecting diagnostics or fetching source. An explicit Skill mention alone selects neither mode nor an external write.
## Locate the fault
If the draft references a Wework conversation, use it as the affected conversation. Read its relevant history through the authorized conversation tool and use its local task ID for live inspection when it runs on this device.
Discover `wework_diagnostics` first. It attaches to the running instance that owns this local Executor. For a stuck conversation, first call `inspect_conversation` with its local task ID. Compare the native active turns and pending requests with Executor queue and observed interaction state. A busy snapshot section or an absent owner is evidence of incomplete coverage. Use `read_trace_logs` to enumerate and read relevant Electron, renderer startup, and Executor transport logs. To investigate a live slowdown, tell the user when to reproduce and call `record_renderer` for the affected time window. It collects console entries, exception stacks, a Chromium trace and CPU call stacks together. Use `record_main_cpu` or `sample_process_stacks` when the evidence points to the host or Executor. Export the corresponding JavaScript heap when investigating retention. For native memory growth, compare instance metrics before and after reproduction and use `inspect_native_memory` on supported devices. Keep heap and trace files local and share only redacted findings. Capture the actual problem before starting an isolated reproduction.
Identify the failing user action, approximate time, OS, installed version, and the active runtime. Reuse evidence already available in the conversation. Use the desktop diagnostics bundle if provided, or read the relevant local logs around the failure. The Electron host resolves the log directory via `app.getPath('logs')`; inspect the directory for the affected instance only. Match timestamps and available request or run IDs across layers. Keep credentials, conversation bodies, and unrelated paths out of diagnostic excerpts.
| Layer | Evidence and source |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Renderer | Use the visible error and stack, `renderer-startup.log`, or Chromium DevTools Performance/Memory data for issues such as a blocked interaction or a stalled render. Source lives in `wework/src` and shared UI packages. Match source maps to the recorded build. |
| Electron main | Inspect `wework-main.log`, `runtime-launch.log`, and `electron-host-transport.log` for startup and host IPC. Use process samples when the host stalls. Trace the relevant handler under `wework/electron/src`. |
| Executor | Inspect `executor-transport.log` and the local runtime or Executor log. Distinguish a request that never arrived from one that started, failed, or finished without delivering its result. Trace the request in `executor/src`. Check `dsh-core-runtime.log` when the Core runtime or bridge is implicated. |
For performance issues, correlate `performance.log` or Process Explorer samples with the observed slowdown, then profile the implicated process where possible. Use the repository's Wework troubleshooting and performance diagnostics guides for product-specific collection steps. Capture the symptom before any reload or restart; preserve running tasks and ask before actions that would interrupt them or change personal application state. In repair mode, if the available evidence is inconclusive, use focused instrumentation in an isolated instance.
## Fetch the source and fix
- Use an existing checkout only after confirming it points to the intended Wegent repository. If no checkout exists, choose a new writable directory on the affected device and run `git clone --no-checkout https://github.com/wecode-ai/Wegent.git <checkout>`. If Git, the source download, or worktree setup fails, preserve the findings, record the blocker, and continue directly to the feedback handoff. Use the evidence already available even if source-level diagnosis or verification could not run.
- Prefer the installed package's recorded `sourceSha` to reproduce the fault. Fetch the official refs if the revision is missing locally, then create an isolated worktree with `git -C <checkout> worktree add --detach <worktree> <sourceSha>`. If the matching revision is unavailable, record any revision actually tested and which conclusions remain unverified. Continue to the feedback handoff if no suitable revision is available.
- Work in a separate worktree and follow the repository and affected module instructions. Reproduce the failing action with isolated development data. Fix the owning layer or the broken boundary and keep the patch focused. Use synthetic or explicitly supplied fixtures when the failure depends on local data.
- Re-run the original failure condition and relevant focused checks. For performance fixes, compare equivalent recordings before and after. Report what was verified on the affected device and what remains unverified. Keep the installed build and live data out of the source repair workflow.
## Submit through the feedback channel
Call `wework_diagnostics.get_feedback_destination` to resolve the same backend feedback configuration as **Report manually**.
- `configured`: Call `wework_diagnostics.submit_feedback_report` with the returned `project_id` as `projectId`, a stable `reportId`, and the reviewed title and description. The desktop confirmation covers the report and its redacted diagnostics attachment. Generate one report ID and keep it with the draft and any receipt. Preserve the draft if the user cancels.
- `unconfigured`: Use the official `wecode-ai/Wegent` GitHub issue tracker and check it for duplicates. Follow the bundled [GitHub skill](../github/SKILL.md).
- If the tool is unavailable, the backend check fails, or a write has an unknown outcome, keep the report as a draft and give the exact blocker. Recover the original write result when possible before attempting another write. The tool result determines the destination.
Prepare the report or update with the actual and expected behavior, affected version and OS, reproduction steps, and minimal redacted evidence. Include the root cause, fix and verification when available, or the blocker and outstanding checks when repair could not finish. Show the destination and proposed content before writing and follow native tool approvals. Use the desktop confirmation for the backend route and obtain the user's authorization for GitHub publication. Return the confirmed issue link or identifier. If writing is blocked, return the ready-to-submit draft and the exact reason.
For a separately authorized repair PR, follow the GitHub skill and the repository's contribution workflow. Verify the repository and base, preview the PR, then include its published link in the feedback issue. If PR publication is blocked, continue the feedback handoff with the verified repair status and publication blocker.