Octocode Code Research
bgauryy/octocode
Researches code with evidence: traces callers, imports and cross-repo links, diagnoses failures and reports findings with exact file and line references and a confidence label.
Diagnoses a Muse Code installation's own failures from binary and session evidence, instead of treating the report as an ordinary repository bug.
$ npx skills add asgeirtj/system_prompts_leaks --skill doctor -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install asgeirtj/system_prompts_leaks doctor --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Meta/muse-code/skills/doctor .claude/skills/doctor && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "doctor" agent skill from https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctor into .claude/skills/doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctor", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add asgeirtj/system_prompts_leaks --skill doctor -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install asgeirtj/system_prompts_leaks doctor --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git skills-src && mkdir -p .agents/skills && cp -r skills-src/Meta/muse-code/skills/doctor .agents/skills/doctor && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "doctor" agent skill from https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctor into .agents/skills/doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctor", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add asgeirtj/system_prompts_leaks --skill doctor -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install asgeirtj/system_prompts_leaks doctor --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/Meta/muse-code/skills/doctor .cursor/skills/doctor && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "doctor" agent skill from https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctor into .cursor/skills/doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctor", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/asgeirtj/system_prompts_leaks.git --path Meta/muse-code/skills/doctor--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add asgeirtj/system_prompts_leaks --skill doctor -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install asgeirtj/system_prompts_leaks doctor --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/Meta/muse-code/skills/doctor .gemini/skills/doctor && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "doctor" agent skill from https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctor into .gemini/skills/doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctor", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install asgeirtj/system_prompts_leaks doctorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add asgeirtj/system_prompts_leaks --skill doctor -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git skills-src && mkdir -p .github/skills && cp -r skills-src/Meta/muse-code/skills/doctor .github/skills/doctor && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "doctor" agent skill from https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctor into .github/skills/doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctor", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add asgeirtj/system_prompts_leaks --skill doctor -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install asgeirtj/system_prompts_leaks doctor --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/Meta/muse-code/skills/doctor .opencode/skills/doctor && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "doctor" agent skill from https://github.com/asgeirtj/system_prompts_leaks/tree/main/Meta/muse-code/skills/doctor into .opencode/skills/doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "doctor", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
doctorDiagnoses a Muse Code installation's own failures from binary and session evidence, instead of treating the report as an ordinary repository bug.
Activates only on an explicit request to debug Muse Code itself, such as a crash, a provider or auth problem, a broken plugin, or a question about what happened earlier in the current session. It treats the person as a product user rather than a repository engineer, assuming they have only the installed binary, and works toward explaining how the app behaves, gathering the smallest safe set of evidence, naming the likely failing layer, and suggesting one safe next step.
It explicitly stays out of ordinary engineering work: no third-party project bugs, benchmark tasks, build or CI failures, or local codebase debugging unless the evidence actually points back to Muse Code. It will not create issues, branches, commits or pull requests, install or change skills, plugins, settings, auth or trust, or run live network checks unless asked, and a bundled script, `scripts/session-evidence.py`, helps collect that evidence.
Secrets are handled carefully: raw prompts, model payloads, auth tokens, cookies and full session logs must never be printed, with redacted exports and presence checks preferred instead. A pure settings question with no failure to investigate is routed to a separate settings-management skill.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 181ebcd. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Muse Code Product Doctor loads about 3.5k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 1,872 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from asgeirtj/system_prompts_leaks at commit 181ebcd, republished under its CC0-1.0 licence (© asgeirtj). 1,872 words, ~3,520 tokens.
.claude/skills/doctor/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Diagnose Muse Code as an installed product. Use this skill only when the user
explicitly invokes doctor or clearly asks to debug/troubleshoot Muse Code
itself from binary/runtime evidence. Assume the user has the binary, not the
source tree. Help them understand how the app works, collect the smallest safe
evidence set, identify the likely failing layer, and give the next safe action.
doctor, asks to use
the doctor skill, or clearly asks to debug/troubleshoot broken Muse Code
product behavior: app, CLI, TUI, desktop, crash, provider/model, settings,
auth, trust, skills, plugins, MCP, session, resume, export, trace, approvals,
sandbox, update, or unexpected output.manage-settings skill instead;
Diagnose reads settings only as evidence for a failure it is investigating.Explain the relevant product path before asking for logs:
Collect the smallest read-only set that explains the issue. Adapt the map to the symptom; do not run every row by default.
The config/data roots below are Muse Code's entire local state surface. A
config, log, or session file outside them is not Muse Code state —
never present one as the product's active configuration, logs, or session
evidence.
Variables such as CODEX_HOME matter only for explicitly requested
import/compat evidence and stay attributed to the product that owns them.
muse --version; also note command -v muse when
multiple copies may exist.$XDG_CONFIG_HOME/muse or $HOME/.config/muse;
$XDG_DATA_HOME/muse or $HOME/.local/share/muse.settings.json, auth.json, and trust.json; read settings
when relevant, but report auth/trust presence and provider names only.sessions, memory, model-catalog, and crashes under the
data dir. For crashes, summarize report metadata and file path, not session
content.muse export --redacted --out <file> for the
latest workspace session, or muse export --session <id-or-session.jsonl> --redacted --out <file> when the user provides a handle.muse resume <session-id> or
muse resume --last for interactive continuation. Use
muse exec --session-id <session-id> "<follow-up>" only on explicit
request for headless continuation. Add --allow-workspace-switch to the
muse exec --session-id command only after confirming the session
belongs to another workspace; interactive muse resume does not take
this flag. If an exit, fork, or handoff message printed
muse resume <session-id>, treat that command as the canonical handle.muse trace inspect --session-log <session.jsonl> --render-mode compact; add --run-id <uuid> or --all-runs for multi-run
logs; use --format json only when structured analysis is needed./feedback when available; otherwise prefer a
redacted export, trace inspection, crash metadata, and concise reproduction
steps.muse skills list --enabled-only --json and safe
muse plugins ... --help or validation commands when the symptom points
there.MUSE_MODEL, base-url variables with credentials redacted, XDG dirs,
CODEX_HOME for import/compat issues, and telemetry variables by presence
only.For a question about what happened earlier in the current Muse Code session,
use the sibling scripts/session-evidence.py helper before export or full trace
inspection. After read_skill gives the physical Diagnose package path, run:
python3 <doctor-skill-dir>/scripts/session-evidence.py --session-log <current-session.jsonl> --workspace "$PWD"The runtime session-identity context already contains the exact current log
path. Do not ask the user for a path already present there, do not guess a
latest session, and do not search the session store first. A host may instead
provide MUSE_CURRENT_SESSION_LOG, in which case the helper can run without a
selector.
For an explicitly selected earlier Muse Code session, use the exact path or id:
python3 <doctor-skill-dir>/scripts/session-evidence.py --session-log <explicit-session.jsonl> --workspace "$PWD"
python3 <doctor-skill-dir>/scripts/session-evidence.py --session-id <explicit-session-id> --workspace "$PWD"Both explicit earlier-session forms are current-workspace scoped and fail
closed on unknown workspace metadata, a mismatch, or ambiguity. Use --kind,
--path, --tool, --run-id, or sequence bounds to narrow follow-up evidence.
Projected events retain their source stream, and the default bound reserves
evidence for both the main session and child sessions so a busy child cannot
erase the parent timeline. Always compare durable actions with assistant claims,
especially across compaction and child activity. Use a
redacted export or compact trace only when this bounded projection is
insufficient. Never paste the raw session log into model context.
Use this path when resume says a session is already open or the original terminal no longer accepts input:
scripts/session-evidence.py as
above. Bound the output and compare its latest durable activity timestamps;
do not start with a store-wide process or file search..session.lock as an inode-backed kernel lease, not a marker file:
file existence is not lock ownership, and flock protects an open inode.
Unlinking a contended pathname can let another process create and lock a new
inode while the original writer still owns the old inode.flock. Open it
without truncation, report only acquirable, contended, missing, or the
read error, then close it immediately. Never resume the session as a probe.ps/kill -0 absence inside it cannot prove that
the host owner died. Request a host-shell check when that distinction matters..session.lock, especially rm, unlink, replacement, truncation, or
recreation. If the path is missing while old activity advances, stop resume
attempts and preserve evidence.Never remove, replace, truncate, or recreate .session.lock as diagnosis or
repair. Never signal the owner from Diagnose. Do not request takeover or use an
owner-control endpoint. Ask the user to exit the owning process normally, then
explicitly retry ordinary resume.
Classify the result before recommending an action:
| Evidence | Classification | Safe next action |
|---|---|---|
| Lease is acquirable | No current kernel owner; a leftover pathname is harmless | Retry normal resume; do not clean the file for tidiness |
| contended lease with advancing session activity | Live owner and active runtime; terminal attachment may be the failed layer | Preserve the owner; inspect terminal/PTY evidence or exit it normally |
| Contended lease with bounded activity idle | Live kernel owner, runtime/terminal health unknown | Ask the user to exit the owning process normally, then explicitly retry ordinary resume |
| Legacy owner-control artifacts are present | Diagnostic leftovers from an old binary; the kernel lease remains authoritative | Treat them as diagnostic only; exit the owning process normally before ordinary resume retry |
| Lock path was unlinked or replaced while old activity continues | Unsafe prior mutation with possible dual writers | Stop further resume attempts, preserve both inode/session timelines, and escalate; do not recreate the lock |
A contended lease proves a live kernel owner, not that its TUI, terminal, provider, or runtime is healthy. Pin the failing layer from activity plus host-visible evidence before proposing a product fix.
Work from evidence:
Include:
© asgeirtj, CC0-1.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (scripts) in Meta/muse-code/skills/doctor of asgeirtj/system_prompts_leaks.
Open the folder on GitHubat commit 181ebcd
Muse Code Product Doctor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Muse Code Product Doctor this skillasgeirtj/system_prompts_leaks | 69k | — | ~3.5k | Automated safety check: Pass | CC0-1.0 | |
| Octocode Code Researchbgauryy/octocode | 949 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Root Cause Investigationgarrytan/gstack | 136k | — | ~13k | Automated safety check: Notes | MIT | |
| Evidence-Driven TraceYeachan-Heo/oh-my-claudecode | 40k | — | ~2.6k | Automated safety check: Pass | MIT | |
| Targeted Emergency Bug FixVeryGoodOpenSource/vgv-wingspan | 109 | — | ~1.9k | Automated safety check: Pass | MIT | |
| OMC Session DebuggerYeachan-Heo/oh-my-claudecode | 40k | — | ~361 | Automated safety check: Pass | MIT |
bgauryy/octocode
Researches code with evidence: traces callers, imports and cross-repo links, diagnoses failures and reports findings with exact file and line references and a confidence label.
garrytan/gstack
Debugs in four phases (investigate, analyze, hypothesize, implement) under one rule: no fix is made until the root cause is found.
Yeachan-Heo/oh-my-claudecode
Explains why something happened by generating competing hypotheses, gathering evidence in parallel, ranking explanations and proposing the next discriminating probe.
VeryGoodOpenSource/vgv-wingspan
Applies a minimal fix to an emergency bug through triage, root-cause location, a hotfix branch and a blast-radius check, with tests and review still required.
Yeachan-Heo/oh-my-claudecode
Diagnoses a broken oh-my-claudecode session or repository state from logs, traces, state and a narrow reproduction, then names the smallest next fix.
github/awesome-copilot
Debug failing Power Automate cloud flows using the FlowStudio MCP server.
asgeirtj/system_prompts_leaks
Shows one digest of coding-agent sessions across your connected machines and lets you open, read, steer, approve, stop and close them, over Herdr, tmux or MSP.
asgeirtj/system_prompts_leaks
A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx) or Word templates (.dotx).
asgeirtj/system_prompts_leaks
Runs a goal as a project in which the agent coordinates separate agent threads, judging when to split the work, and interviews you first when nothing can be verified.
asgeirtj/system_prompts_leaks
Creates and validates a new native Muse plugin package in the current workspace, limited to five capability families, and leaves installation to you.
asgeirtj/system_prompts_leaks
A skill your agent uses when the user's prompt requires (1) researching a topic across multiple sources, comparing options or alternatives, analyzing trends or history, understanding markets or…
asgeirtj/system_prompts_leaks
Inspects Figma designs through the figma CLI and Figma's MCP server to read variants, spacing, tokens and layouts and to extract assets for implementation.
Categories
Diagnoses a Muse Code installation's own failures from binary and session evidence, instead of treating the report as an ordinary repository bug. Activates only on an explicit request to debug Muse Code itself, such as a crash, a provider or auth problem, a broken plugin, or a question about what happened earlier in the current session. It treats the person as a product user rather than a repository engineer, assuming they have only the installed binary, and works toward explaining how the app behaves, gathering the smallest safe set of evidence, naming the likely failing layer, and suggesting one safe next step.
Muse Code Product Doctor fits situations like: debugging a Muse Code crash, auth failure, or unexpected output; asking what happened earlier in the current Muse Code session; collecting a support bundle for a broken Muse Code install; understanding where Muse Code stores its state or logs.
Run `npx skills add asgeirtj/system_prompts_leaks --skill doctor -a claude-code`. Or copy the skill folder (Meta/muse-code/skills/doctor in asgeirtj/system_prompts_leaks) into .claude/skills/doctor in your project. Claude Code loads it when a task matches its description.
Run `npx skills add asgeirtj/system_prompts_leaks --skill doctor -a codex`. Or copy the skill folder (Meta/muse-code/skills/doctor in asgeirtj/system_prompts_leaks) into .agents/skills/doctor in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgeirtj/system_prompts_leaks --skill doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doctor, .gemini/skills/doctor, .github/skills/doctor and .opencode/skills/doctor in your project.
Going by SKILL.md and its folder, Muse Code Product Doctor needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: A local Muse Code installation; Python, to run the bundled evidence-collection script.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Muse Code Product Doctor is published under the CC0-1.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Muse Code Product Doctor: Octocode Code Research (bgauryy/octocode, 949 stars), Root Cause Investigation (garrytan/gstack, 136k stars), Evidence-Driven Trace (Yeachan-Heo/oh-my-claudecode, 40k stars) and Targeted Emergency Bug Fix (VeryGoodOpenSource/vgv-wingspan, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
asgeirtj (a GitHub user) maintains it in asgeirtj/system_prompts_leaks, which has 69,367 GitHub stars. The repository holds 128 skills in this directory. The repository was last updated on October 10, 2026.
Source: asgeirtj/system_prompts_leaks on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.