fix-bug
Skill3.6k starsChanged 2 months agoMITView on GitHub
Use when given a GitHub issue URL or number to investigate and implement a fix. Triggers on "fix issue", "fix bug", "fix #123", GitHub issue URLs, or any request to resolve a reported problem from a GitHub issue. Also triggers when asked to investigate errors, diagnose failures, or debug unexpected behavior in DBHub.
- Commits and pushes
21 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- tddworks/ClaudeBartheir own version, first seen Oct 5, 2026
- hawkyre/hawk-skillstheir own version, first seen Sep 28, 2026
- abigayleh/claude-workflow-plugintheir own version, first seen Sep 27, 2026
- mthines/agent-skillstheir own version, first seen Sep 25, 2026
- mgiovani/cc-arsenaltheir own version, first seen Sep 25, 2026
- rmstdope/cerebrotheir own version, first seen Sep 24, 2026
Who's talking about bytebase/dbhub
- modelcontextprotocol/servers“Claude Desktop invokes MCP server docker image twice on startup”GitHub · Mar 12, 2025 · 6 reactions
- @ottoke.bsky.social“If you are integrating LLMs with databases, check out github.com/bytebase/dbh... - a universal MCP server …”Bluesky · Jun 21, 2025 · 2 likes
- sudosubin/agents.nix“agent-skills.github.bytebase.dbhub: 1.3.1 → 1.4.0”GitHub · Oct 3, 2026
- PermanentOrg/roboterry“Bump @bytebase/dbhub from 1.2.1 to 1.3.1”GitHub · Oct 1, 2026
- kingsa2026/Neurova“build(deps): bump the npx-runtime-minor-patch group across 1 directory with 2 updates”GitHub · Sep 29, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub and Bluesky (22 times).
On GitHub · 21
- Mar 12, 2025Claude Desktop invokes MCP server docker image twice on startup — modelcontextprotocol/servers6 reactions · 11 comments
- Oct 3, 2026agent-skills.github.bytebase.dbhub: 1.3.1 → 1.4.0 — sudosubin/agents.nix0 reactions
- Oct 1, 2026Bump @bytebase/dbhub from 1.2.1 to 1.3.1 — PermanentOrg/roboterry0 reactions
- Sep 29, 2026build(deps): bump the npx-runtime-minor-patch group across 1 directory with 2 updates — kingsa2026/Neurova0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.bytebase.dbhub: init at 1.3.1 — sudosubin/agents.nix0 reactions
16 more on GitHub
- Sep 1, 2026Bump @bytebase/dbhub from 0.24.0 to 1.2.1 — PermanentOrg/roboterry0 reactions · 1 comment
- Aug 1, 2026Bump @bytebase/dbhub from 0.22.4 to 0.24.0 — PermanentOrg/roboterry0 reactions · 1 comment
- Jul 31, 2026Add bytebase/dbhub to databases — tolkonepiu/best-of-mcp-servers0 reactions · 1 comment
- Jul 1, 2026Bump @bytebase/dbhub from 0.21.2 to 0.22.4 — PermanentOrg/roboterry0 reactions
- Jun 6, 2026content(mcp): add DBHub MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
- Apr 8, 2026Add bytebase/dbhub to Databases section 🤖🤖🤖 — punkpeye/awesome-mcp-servers0 reactions · 2 comments
- Mar 9, 2026Add dbhub mcp — negi524/nestjs-starter0 reactions
- Feb 23, 2026feat: add SSH keepalive configuration options — takemi-ohama/dbhub0 reactions
- Jan 23, 2026Add MCP section — mgramin/awesome-db-tools0 reactions · 2 comments
- Jan 5, 2026Add DBHub SQLite MCP server shared workflow — github/gh-aw0 reactions · 2 comments
- Dec 21, 2025[MCP Catalog] New MCP server candidate: bytebase/dbhub — obot-platform/mcp-catalog0 reactions
- Dec 21, 2025[MCP Catalog] New MCP server candidate: io.github.bytebase/dbhub — obot-platform/mcp-catalog0 reactions
- Nov 26, 2025[Server Request]: DBHub — cursor/mcp-servers0 reactions · 1 comment
- Jul 9, 2025[docs] Add Install Buttons to Readme — googleapis/mcp-toolbox0 reactions · 3 comments
- Mar 25, 2025MCP: Update to `@bytebase/dbhub@0.2.2` — crate/cratedb-examples0 reactions · 1 comment
- Mar 13, 2025feat: add DBHub - Universal database MCP server — modelcontextprotocol/servers0 reactions
On Bluesky · 1
- Jun 21, 2025If you are integrating LLMs with databases, check out github.com/bytebase/dbh... - a universal MCP server connecting to MariaDB, TiDB,… — @ottoke.bsky.social2 likes and reposts · 1 reply
Used with
Projects with it also use implement-feature, refactor and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
tddworksSkillimplement-feature
Guide for implementing features following architecture-first design, TDD, rich domain models, and Swift 6.2 patterns. Use this skill when: (1) Adding new functionality to a Swift app (2) Creating domain models that follow user's mental model (3) Building SwiftUI views that consume domain models directly (4) User asks "how do I implement X" or "add feature Y" (5) Implementing any feature that spans Domain, Infrastructure, and App layers
Also in 4 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 6 projects that use this
HashiCorpSkillchangelog
Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.
Also in 3 projects that use this
ElasticSkillcreate-skill
Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.
Also in 3 projects that use this
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- JetBrains/Exposed★ 9.3ksame name
- tddworks/ClaudeBar★ 1.5ksame name
- danielvm-git/bigpowers★ 252same name
- tddworks/SkillsManager★ 168same name
- AlemTuzlak/skills★ 42same name
- hawkyre/hawk-skills★ 30same name
- nowsprinting/unity-coding-skills★ 20same name
- YehudaFrankel/clankbrain★ 16same name
- hellotern/Sextant★ 15same name
- mthines/agent-skills★ 13same name
11 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- testingSkill
- dbhubSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Linked PRs/issues: Check for related context
- Very specific: line 41
Use the issue details to identify which part of the codebase is affected.
- Distinctive: line 59
Search for error messages, function names, or file paths mentioned in the issue.
- Very specific: line 64
Write a failing test that captures the bug.
- Very specific: line 70
Use the test fixtures in src/__fixtures__/ for multi-database or readonly/max_rows scenarios.
- Distinctive: line 84
Keep changes minimal and focused
- Distinctive: line 85
Follow existing code conventions (see CLAUDE.md for style guide)
- Distinctive: line 86
Use parameterized queries for any database operations
- Distinctive: line 91
Run the relevant tests to confirm the fix:
- Distinctive: line 100
No existing tests regressed
- Distinctive: line 147
Missing edge cases: Check if the fix handles related scenarios mentioned in comments
- Distinctive: line 148
Not testing with the right database: If the bug is database-specific, test with that connector
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fix Bug from GitHub Issue
Systematic workflow for turning a GitHub issue into a working fix in the DBHub codebase.
Workflow
- Fetch → 2. Analyze → 3. Locate → 4. Reproduce → 5. Plan → 6. Implement → 7. Verify → 8. PR
Step 1: Fetch Issue
# From URL: https://github.com/owner/repo/issues/123
gh issue view 123 --json title,body,labels,comments,state
# From another repo
gh issue view 123 --repo owner/repo --json title,body,labels,comments,state| Input | How to fetch |
https://github.com/owner/repo/issues/42 | gh issue view 42 --repo owner/repo |
#42 or 42 | gh issue view 42 (current repo) |
owner/repo#42 | gh issue view 42 --repo owner/repo |
Step 2: Analyze Issue
Extract from the issue:
- What's broken: Expected vs actual behavior
- Reproduction steps: How to trigger the bug
- Environment: Database type, connection method (DSN, SSH tunnel, TOML config), transport (stdio/HTTP)
- Labels/comments: May reveal affected area or prior investigation
- Linked PRs/issues: Check for related context
Step 3: Locate Relevant Code
Use the issue details to identify which part of the codebase is affected. DBHub has a clear modular structure — most bugs fall into one of these areas:
| Bug Category | Where to Look | Key Files |
| Connection failures | Connector implementations | src/connectors/{db-type}/index.ts, src/connectors/manager.ts |
| SQL execution errors | Tool handlers | src/tools/execute-sql.ts, src/utils/allowed-keywords.ts |
| Schema/table listing | Search tool | src/tools/search-objects.ts |
| DSN parsing issues | Parser logic | src/connectors/{db-type}/index.ts (DSNParser), src/utils/dsn-obfuscate.ts, src/utils/safe-url.ts |
| SSH tunnel problems | Tunnel utilities | src/utils/ssh-tunnel.ts, src/utils/ssh-config-parser.ts |
| TOML config issues | Config loading | src/config/toml-loader.ts, src/types/config.ts |
| Multi-database routing | Manager & tools | src/connectors/manager.ts, src/utils/tool-handler-helpers.ts |
| Custom tool issues | Custom handler | src/tools/custom-tool-handler.ts, src/tools/registry.ts |
| HTTP transport | Server setup | src/server.ts |
| Read-only violations | SQL validation | src/utils/allowed-keywords.ts, src/utils/sql-parser.ts |
| Row limiting | SQL rewriting | src/utils/sql-row-limiter.ts |
| API endpoint issues | API handlers | src/api/sources.ts, src/api/requests.ts |
| AWS IAM auth | Token signing | src/utils/aws-rds-signer.ts |
Search for error messages, function names, or file paths mentioned in the issue. Trace the code path from entry point to the failure.
Step 4: Reproduce
If integration tests exist for the area: Write a failing test that captures the bug. DBHub's test infrastructure makes this straightforward:
- Database connector bugs → extend existing integration test in
src/connectors/__tests__/ - Utility bugs → add cases to existing unit tests in
src/utils/__tests__/ - Tool handler bugs → add to
src/tools/__tests__/ - Config bugs → add to
src/config/__tests__/
Use the test fixtures in src/__fixtures__/ for multi-database or readonly/max_rows scenarios.
If no test infrastructure applies: Trace the code path and confirm the logic flaw by reading.
Step 5: Plan the Fix
For non-trivial fixes (multi-file, architectural impact): use EnterPlanMode.
For simple fixes (single function, clear root cause): proceed directly.
Step 6: Implement
- Fix the root cause, not just the symptom
- Keep changes minimal and focused
- Follow existing code conventions (see CLAUDE.md for style guide)
- Use parameterized queries for any database operations
- Validate inputs with zod schemas where appropriate
Step 7: Verify
Run the relevant tests to confirm the fix:
pnpm test:unit # Quick check — no Docker needed
pnpm test src/path/to/test.ts # Run the specific test file
pnpm test:integration # Full integration suite if neededCheck that:
- The failing test (if written) now passes
- No existing tests regressed
- The diff fully addresses the issue
Step 8: Create PR
- Create a branch:
git checkout -b fix/issue-123 - Commit changes referencing the issue:
git add <changed-files> git commit -m "$(cat <<'EOF' Fix: <short description> Closes #123 EOF )" - Push and create the PR:
git push -u origin fix/issue-123 gh pr create --title "Fix: <short description>" --body "$(cat <<'EOF' ## Summary <What was broken and how this fixes it> ## Changes <Bullet list of changes> Closes #123 ## Test plan - [ ] Existing tests pass - [ ] New test covers the bug scenario (if applicable) EOF )" - Return the PR URL to the user.
Common Mistakes
- Fixing symptoms instead of root cause: Trace the full code path before patching
- Skipping reproduction: A fix without a repro is a guess
- Scope creep: Fix the reported issue, don't refactor surrounding code
- Missing edge cases: Check if the fix handles related scenarios mentioned in comments
- Not testing with the right database: If the bug is database-specific, test with that connector
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

