Agent skill

Bug Detective

by bkywksj in bkywksj/knowledge-base

排查已发生的问题、定位 Bug 原因. An agent skill from bkywksj/knowledge-base.

Custom licenceAuto-check passed

Install Bug Detective

skills CLI
$ npx skills add bkywksj/knowledge-base --skill bug-detective -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bkywksj/knowledge-base bug-detective --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bkywksj/knowledge-base.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/bug-detective .claude/skills/bug-detective && rm -rf skills-src

Use ~/.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/

Facts

Skill name
bug-detective
GitHub stars
330
Token cost
~710 tokens
SKILL.md length
222 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
Custom licence

At a glance

排查已发生的问题、定位 Bug 原因. An agent skill from bkywksj/knowledge-base.

  • Works in 4 steps: 复现问题 → 缩小范围 → 定位根因 → …
  • SKILL.md covers 排查方法论, 常见问题分类, 调试工具 and 常见错误
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bug Detective is an agent skill from bkywksj/knowledge-base. 排查已发生的问题、定位 Bug 原因。 触发场景: - 代码运行报错,需要定位原因 - 功能不正常,需要排查 - Tauri Command 返回错误,需要分析 - 日志分析、调试代码 触发词:Bug、报错、不工作、调试、排查、为什么、出问题、失败、不生效、无效、找不到原因、定位问题

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Tauri, Rust and React. The repository describes itself as: 本地优先的知识库桌面应用。Markdown 编辑器 + 全文搜索(FTS5) + 双向链接 / 知识图谱;多端同步(WebDAV / S3 / 同步盘,单笔记粒度增量 + 自动双向调度,含整库 ZIP 备份);AI 问答与智能规划(OpenAI 兼容 / Ollama / 自定义 provider,工具调用框架);支持导入 .md / .txt /…

Example prompts

  • “/bug-detective”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 复现问题
  2. 缩小范围
  3. 定位根因
  4. 验证修复

What it can do on your machine

Read from SKILL.md and the folder at commit 1eeff20. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are rust and typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bug Detective loads about 710 tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 222 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~710

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 222 words (~710 tokens).

name
bug-detective

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .codex/skills/bug-detective of bkywksj/knowledge-base.

Open the folder on GitHubat commit 1eeff20

Compare with similar skills

Bug Detective 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.

Bug Detective compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bug Detective this skillbkywksj/knowledge-base330—~710Automated safety check: PassCustom licence
Manage Skills Hubqufei1993/skills-hub1.7k—~3.2kAutomated safety check: PassMIT
Cut Releasedelexw/claude-code-trace3761 repos~1.4kAutomated safety check: PassMIT
Papr Rssl0ng-ai/papr540—~1.1kAutomated safety check: PassMIT
UI Harnessship-studio/ship-studio285—~1.4kAutomated safety check: PassMIT
Project StructureEynzof/Hermes-CN-Desktop1.8k—~4.2kAutomated safety check: NotesCustom licence

Similar skills

  • Manage Skills Hub

    qufei1993/skills-hub

    A skill your agent uses whenever an Agent needs to query, find, install, deploy, update, tag, adopt, diagnose, or safely remove Skills Hub content, including natural-language requests to manage…

    1.7k GitHub stars~3.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Cut Release

    delexw/claude-code-trace

    Cuts a new versioned release of claude-code-trace end-to-end without asking any questions.

    376 GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Papr Rss

    l0ng-ai/papr

    Read, search and triage the user's Papr RSS subscriptions from the shell via the papr CLI.

    540 GitHub stars~1.1k tokensUpdated 17 days ago
    Knowledge ManagementAuto-check passed
  • UI Harness

    ship-studio/ship-studio

    Look at Ship Studio's actual UI. An agent skill from ship-studio/ship-studio.

    285 GitHub stars~1.4k tokensUpdated 15 days ago
    Auto-check passed
  • Project Structure

    Eynzof/Hermes-CN-Desktop

    A skill your agent uses when orienting within the Hermes Agent CN Desktop codebase, locating source files, understanding the Tauri+React architecture, finding Rust commands or frontend modules, or…

    1.8k GitHub stars~4.2k tokensUpdated 19 days ago
    DevelopmentAuto-check: notes
  • Reactflow Workflow

    veloxbase/veloxdb

    Build and harden React Flow diagram surfaces in VeloxDB using @xyflow/react patterns (nodes, edges, viewport, controls, interactions, performance).

    652 GitHub stars~897 tokensUpdated 9 days ago
    Frontend & DesignAuto-check passed

More from bkywksj/knowledge-base

All 37 skills in this repo
  • Collaborating With Codex

    bkywksj/knowledge-base

    当用户明确点名要用 OpenAI Codex CLI 协同时使用此 Skill,把指定任务委托给 Codex 执行并整合结果。

    330 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Collaborating With Gemini

    bkywksj/knowledge-base

    当用户明确点名要用 Google Gemini CLI 协同时使用此 Skill,把指定任务委托给 Gemini 执行并整合结果。

    330 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • AI Profile Integration

    bkywksj/knowledge-base

    用于本项目中与 ai-profile crate 相关的开发:模型服务预置、ai.profile 导入导出、「获取」零成本验证、上下文窗口限额。

    330 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • API Development

    bkywksj/knowledge-base

    Tauri Command (IPC API) 开发技能,指导如何设计和实现 Rust Command 供前端调用. An agent skill from bkywksj/knowledge-base.

    330 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Architecture Design

    bkywksj/knowledge-base

    Tauri 架构设计技能,指导双进程架构下的模块拆分和代码组织. An agent skill from bkywksj/knowledge-base.

    330 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Brainstorm

    bkywksj/knowledge-base

    当需要探索方案、头脑风暴、创意思维时自动使用此 Skill. An agent skill from bkywksj/knowledge-base.

    330 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Questions about Bug Detective

What does Bug Detective do?

排查已发生的问题、定位 Bug 原因. An agent skill from bkywksj/knowledge-base. Bug Detective is an agent skill from bkywksj/knowledge-base.

How do I install Bug Detective in Claude Code?

Run `npx skills add bkywksj/knowledge-base --skill bug-detective -a claude-code`. Or copy the skill folder (.codex/skills/bug-detective in bkywksj/knowledge-base) into .claude/skills/bug-detective in your project. Claude Code loads it when a task matches its description.

How do I install Bug Detective in Codex?

Run `npx skills add bkywksj/knowledge-base --skill bug-detective -a codex`. Or copy the skill folder (.codex/skills/bug-detective in bkywksj/knowledge-base) into .agents/skills/bug-detective in your project. Codex loads it when a task matches its description.

Can I use Bug Detective in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bkywksj/knowledge-base --skill bug-detective -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bug-detective, .gemini/skills/bug-detective, .github/skills/bug-detective and .opencode/skills/bug-detective in your project.

What does Bug Detective need to run?

SKILL.md names no scripts, command-line tools or credentials: Bug Detective is instructions for the agent only.

Does Bug Detective access the network?

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.

Is Bug Detective safe to install?

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. Review the folder before installing.

What licence does Bug Detective use?

Bug Detective has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Bug Detective use?

About 710 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bug Detective?

Skills that share tags, products or a category with Bug Detective: Manage Skills Hub (qufei1993/skills-hub, 1.7k stars), Cut Release (delexw/claude-code-trace, 376 stars), Papr Rss (l0ng-ai/papr, 540 stars) and UI Harness (ship-studio/ship-studio, 285 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bug Detective?

bkywksj (a GitHub user) maintains it in bkywksj/knowledge-base, which has 330 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 10, 2026.

Source: bkywksj/knowledge-base on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.