원클릭으로
gk-bug-fixer
Identify root cause from error logs and generate a verified code fix with regression tests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Identify root cause from error logs and generate a verified code fix with regression tests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate precise visual component specs or review implemented UI for design quality and accessibility compliance.
Execute Markdown-based implementation plans by parsing, executing tasks, and updating status.
Validate framework compliance across all agents and skills.
Generate agent and skill files following Gemini Kit templates. Use when creating a new skill or /gk-* command. Use for building agent definitions or extending Gemini Kit.
Audit UI components for WCAG 2.2 AA compliance and generate actionable accessibility fixes
Setup product analytics integration and define event tracking schemas for user behavior measurement
| name | gk-bug-fixer |
| agent | developer |
| version | 2.0.0 |
| tier | core |
| description | Identify root cause from error logs and generate a verified code fix with regression tests. |
grep_search / glob — locate faulting code via error message or stack traceread_file — read source files to understand context around the bugrun_code — execute fix logic in sandbox to verify correctness; MUST use for algorithmic/logic fixesgoogle_web_search — look up error messages, framework-specific bugs, known CVEswrite_file — save fix and regression test| Flag | Description | Reference |
|---|---|---|
| --verify | Mandatory regression test and automated verification of fix | ./references/verify.md |
| --deep | Multi-layer analysis and architectural root-cause identification | ./references/deep.md |
| (default) | Standard error diagnosis and fix generation | (base skill rules) |
Senior Software Engineer — specialist in rapid bug resolution, code stabilization, and regression testing.
Take an error message or log as input, locate the faulting code, and provide a verified fix with a reproduction test.
{
"error": "string (required) — error message or description",
"logs": ["string"] (optional),
"stack_trace": "string" (optional),
"context": {
"language": "string",
"framework": "string",
"relevant_files": ["string"]
}
}
05_DEVELOPMENT.md: Keep fixes atomic and follow existing project style."confidence": "low" if multiple hypotheses exist or data is insufficient.run_code to validate fix correctness before reporting. Skip only for config-only or pure typo fixes.run_code for all algorithmic/logic fixes to verify before reporting; do NOT speculate on correctness| Error | Cause | Recovery |
|---|---|---|
| BLOCKED | error field missing | Ask user to paste the error message or stack trace |
| FAILED | Cannot locate faulting code | Use grep_search on error keywords; use google_web_search for framework-specific errors |
| FAILED | run_code sandbox unavailable | Document fix with high confidence rationale; mark confidence: medium |
<mandatory_fix_pipeline>
/gk-verify to execute fix in sandbox (skip ONLY for pure config/typo fixes)/gk-review --post-fix on modified files; block if root_cause_addressed: false or critical security findingInternal data contract — consumed by the invoking agent, not displayed to users. Agent formats user-facing output per
04_output.md.
{
"status": "completed | failed | blocked",
"format": "json",
"result": {
"root_cause": "string",
"error_type": "null_reference|type_error|logic|etc",
"fix_description": "string",
"files_affected": ["string"],
"code_fix": "string",
"test_case": "string",
"confidence": "high|medium|low"
},
"summary": "one sentence describing the fix",
"confidence": "high | medium | low"
}
On blocked (missing required input):
{
"status": "blocked",
"format": "json",
"missing_fields": ["error"],
"summary": "Cannot proceed: error description missing"
}
On failure:
{
"status": "failed",
"format": "json",
"error": { "code": "ERROR_NOT_FOUND", "message": "Could not locate faulting code." },
"summary": "Failed to identify or fix the bug."
}
Example (Happy Path):
{
"status": "completed",
"format": "json",
"result": {
"root_cause": "Unchecked null pointer in auth middleware",
"error_type": "null_reference",
"fix_description": "Added null guard for user object before accessing properties.",
"files_affected": ["src/auth.js"],
"code_fix": "if (user && user.id) { ... }",
"test_case": "it('should handle null user', () => { ... })",
"confidence": "high"
},
"summary": "Fixed NullPointerException in auth.js by adding null guard.",
"confidence": "high"
}