Trellis Session Insight
mindfold-ai/Trellis
Reach into past AI conversation history through the trellis mem CLI.
Systematic debugging: reproduce → hypothesize → verify → fix.
$ npx skills add KaimingWan/oh-my-kiro --skill omk-debugging -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install KaimingWan/oh-my-kiro omk-debugging --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/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/omk-debugging .claude/skills/omk-debugging && 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 "omk-debugging" agent skill from https://github.com/KaimingWan/oh-my-kiro/tree/main/skills/omk-debugging into .claude/skills/omk-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "omk-debugging", 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/KaimingWan/oh-my-kiro/tree/main/skills/omk-debuggingType 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 KaimingWan/oh-my-kiro --skill omk-debugging -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install KaimingWan/oh-my-kiro omk-debugging --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/omk-debugging .agents/skills/omk-debugging && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "omk-debugging" agent skill from https://github.com/KaimingWan/oh-my-kiro/tree/main/skills/omk-debugging into .agents/skills/omk-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "omk-debugging", 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 KaimingWan/oh-my-kiro --skill omk-debugging -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install KaimingWan/oh-my-kiro omk-debugging --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/omk-debugging .cursor/skills/omk-debugging && 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 "omk-debugging" agent skill from https://github.com/KaimingWan/oh-my-kiro/tree/main/skills/omk-debugging into .cursor/skills/omk-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "omk-debugging", 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/KaimingWan/oh-my-kiro.git --path skills/omk-debugging--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 KaimingWan/oh-my-kiro --skill omk-debugging -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install KaimingWan/oh-my-kiro omk-debugging --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/omk-debugging .gemini/skills/omk-debugging && 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 "omk-debugging" agent skill from https://github.com/KaimingWan/oh-my-kiro/tree/main/skills/omk-debugging into .gemini/skills/omk-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "omk-debugging", 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 KaimingWan/oh-my-kiro omk-debuggingInstalls 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 KaimingWan/oh-my-kiro --skill omk-debugging -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/omk-debugging .github/skills/omk-debugging && 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 "omk-debugging" agent skill from https://github.com/KaimingWan/oh-my-kiro/tree/main/skills/omk-debugging into .github/skills/omk-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "omk-debugging", 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 KaimingWan/oh-my-kiro --skill omk-debugging -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install KaimingWan/oh-my-kiro omk-debugging --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/omk-debugging .opencode/skills/omk-debugging && 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 "omk-debugging" agent skill from https://github.com/KaimingWan/oh-my-kiro/tree/main/skills/omk-debugging into .opencode/skills/omk-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "omk-debugging", 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.
omk-debuggingSystematic debugging: reproduce → hypothesize → verify → fix.
Omk Debugging is an agent skill from KaimingWan/oh-my-kiro. Systematic debugging: reproduce → hypothesize → verify → fix. Trigger when encountering bugs, test failures, errors, crashes, unexpected behavior, or when user says 'debug', 'not working', 'broken', 'fails', 'error', 'exception', 'why does this happen', 'investigate'. Also trigger on stack traces, error logs, or non-zero exit codes.
Its SKILL.md is about 4.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `investigation-template.md` and `reference.md`).
It sits in Development, covering Debugging. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ba228be. 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.
No scripts in the folder and no shell commands in SKILL.md.
From 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.
Omk Debugging loads about 4.7k tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 2,237 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); files beside SKILL.md are not scanned.
The full file from KaimingWan/oh-my-kiro at commit ba228be, republished under its MIT licence (© KaimingWan). 2,237 words, ~4,719 tokens.
.claude/skills/omk-debugging/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRSTIf you haven't completed Phase 1, you cannot propose fixes.
The investigation document (docs/investigations/{date}-{topic}.md) is the persistent, cross-session record of a debugging effort. Create one at the start of every non-trivial debug session using skills/omk-debugging/investigation-template.md.
| Level | Label | Meaning | Mutability |
|---|---|---|---|
| 🔒 L0 | Machine Facts | Command output, code analysis, API responses, experiment results | Immutable — cannot be overridden except by stronger L0 evidence |
| 👤 L1 | Human Observations | User-reported operations and phenomena | Protected — need L0 evidence + documented rationale to challenge |
| 🤖 L2 | Agent Inferences | AI deductions, hypotheses, analysis conclusions | Mutable — can be revised freely; mark old entry |
| Section | Update Mode | Rule |
|---|---|---|
| Status Overview | Overwrite | Refresh after every Stage completion — must reflect current state at all times |
| Evidence Table | Append-only | Never delete or edit existing entries; add new rows only |
| Investigation Tree | Overwrite | Update branch statuses (⬜→✅/❌) as investigation progresses |
| Decision Log | Append-only | Superseded decisions stay; mark status as "❌ 被 D{n} 取代" |
| Experiment Log | Append-only | Each experiment gets a unique EXP-{n} ID for cross-reference |
| Ruled Out | Append-only | Eliminated directions stay permanently to prevent re-investigation |
| Timeline | Append-only | Chronological milestones, never rewritten |
These rules prevent new sessions from undoing prior investigation progress:
| Bug Type | Tool Sequence | Why |
|---|---|---|
| Compile/type error | get_diagnostics → goto_definition → get_hover | Diagnostics pinpoint error; definition shows context; hover reveals types |
| Wrong behavior | search_symbols → find_references → goto_definition | Find the symbol, trace all callers, read implementation |
| Unknown codebase | get_document_symbols → goto_definition → get_hover | Map file structure, navigate to definitions, understand types |
| Refactor broke something | find_references → get_diagnostics → search_symbols | Find all usage sites, check for new errors, locate related symbols |
| Test failure | get_diagnostics → search_symbols → find_references | Check compiler errors first, find test subject, trace dependencies |
When to use grep instead: Only for searching comments, string literals, config values, or non-code files.
Use for ANY technical issue:
Use this ESPECIALLY when:
Don't skip when:
You MUST complete each phase before proceeding to the next.
BEFORE attempting ANY fix:
Step -1: Build Architectural Context (MANDATORY — do NOT skip)
Before looking at any specific code, build a map of the system around the bug. This step solves the "structural blindness" problem — LLMs process code as text and cannot see dependency graphs, call chains, or architectural boundaries without explicit navigation.
generate_codebase_overview to get the project's high-level module structurefind_references to discover all callers and usage sitesget_document_symbols to understand internal structureArchitectural Context:
- Module: [where this code sits in the system architecture]
- Upstream callers: [who calls the buggy code — list file:function]
- Downstream dependencies: [what the buggy code depends on]
- Cross-module impact: [which other modules could be affected by a fix]
- Hidden dependencies: [files with no semantic overlap but architectural connection]Why this is mandatory: CodeCompass research (258 trials) showed that dependency graph navigation achieves 99.4% architectural coverage on hidden dependencies vs 76.2% without (+23.2pp). Agents only explore dependencies voluntarily 42% of the time — when skipped, performance equals the no-tool baseline. This step must be forced, not optional.
Step 0: Check Past Episodes
knowledge/episodes.md for similar past bugsStep 0.5: Classify Failure Type (Failure Classification)
Before diving into investigation, classify the failure to guide your approach. Pick the most likely category:
| Category | Description | Typical Signal |
|---|---|---|
| Logic/Semantic Error | Code logic is wrong | Test fails, wrong output |
| Environment/Config Error | Environment, config, or dependency issue | Works locally, fails in CI |
| Concurrency/Timing Error | Race condition, timing dependency | Intermittent failure |
| Invalid Invocation | Tool/API call malformed or missing args | Schema error, 400 response |
| Misinterpretation of Output | Acted on wrong assumption about a return value | Downstream logic wrong |
| Intent–Plan Misalignment | Solving the wrong problem | Fix doesn't address user's actual issue |
| Plan Adherence Failure | Skipped required steps or did unplanned actions | Expected step not executed |
| Invention of New Information | Hallucinated data not in trace/tool output | References nonexistent variable/file |
| Under-specified Intent | Not enough information to proceed | Need more context from user |
Write your classification into the Diagnostic Evidence (Step 6). If unsure, pick the top 2 candidates and investigate both.
Step 1: Run get_diagnostics First
get_diagnostics on the failing file(s) to get compiler errors, warnings, hintsStep 2: Use search_symbols to Find Relevant Code
search_symbols to locate the function/class/variable involved in the errorgoto_definition to read the actual implementationfind_references to understand all callers and usage sitesStep 3: Read Error Messages Carefully
Step 4: Reproduce Consistently
Step 5: Check Recent Changes
reference.md to pinpoint the exact commit that introduced the bugStep 6: Gather Diagnostic Evidence
You MUST produce a Diagnostic Evidence summary before moving to Phase 2:
Diagnostic Evidence:
- failure_type: [category from Step 0.5 classification]
- get_diagnostics: [what errors/warnings were found]
- search_symbols: [what symbols were located]
- find_references: [what callers/usage sites were found]
- get_hover: [what type information was revealed]
- key_variables:
- var_name: [variable name]
expected: [expected value at this point]
actual: [actual value observed]
location: [file:line where divergence occurs]
- ...
- Root cause hypothesis: [your conclusion based on above]Without this evidence, you cannot proceed.
Step 7: Gather Evidence in Multi-Component Systems
WHEN system has multiple components (CI → build → signing, API → service → database):
BEFORE proposing fixes, add diagnostic instrumentation:
For EACH component boundary:
- Log what data enters component
- Log what data exits component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence showing WHERE it breaks
THEN analyze evidence to identify failing component
THEN investigate that specific componentStep 8: Trace Data Flow
WHEN error is deep in call stack:
goto_definition to navigate to the error sourcefind_references to trace callers backwardFind the pattern before fixing:
Find Working Examples
search_symbols to find similar patternsCompare Against References
Identify Differences
Understand Dependencies
Scientific method:
Form Single Hypothesis
Test Minimally
Verify Before Continuing
When You Don't Know
Fix the root cause, not the symptom:
Run get_diagnostics Before Fix (baseline)
Create Failing Test Case
Implement Single Fix
Run get_diagnostics After Fix (verify)
Verify Fix
5.5. Self-Explanation (Rubber Duck Verification) After verifying the fix works, explain in natural language:
If you discover a logical contradiction while explaining → STOP, return to Phase 3 and re-verify your hypothesis. The act of explaining often reveals flawed reasoning that testing alone misses.
If Fix Doesn't Work
If 3+ Fixes Failed: Question Architecture
Pattern indicating architectural problem:
STOP and question fundamentals:
Discuss with your human partner before attempting more fixes
Post-Fix Review After the fix is verified and working:
knowledge/episodes.md if this is a new bug patternIf you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.
If 3+ fixes failed: Question the architecture (see Phase 4.7)
Watch for these redirections:
When you see these: STOP. Return to Phase 1.
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I'll write test after confirming fix works" | Untested fixes don't stick. Test first proves it. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. Read it completely. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
| "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |
| "I'll just grep for it" | grep is text matching. Use LSP tools for semantic code analysis. |
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Root Cause | get_diagnostics, search_symbols, find_references, reproduce, gather evidence | Diagnostic Evidence produced |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Pre/post get_diagnostics, create test, fix, verify | Bug resolved, zero new diagnostics |
If systematic investigation reveals issue is truly environmental, timing-dependent, or external:
But: 95% of "no root cause" cases are incomplete investigation.
These techniques are part of systematic debugging and available in this directory:
root-cause-tracing.md - Trace bugs backward through call stack to find original triggerdefense-in-depth.md - Add validation at multiple layers after finding root causecondition-based-waiting.md - Replace arbitrary timeouts with condition pollingRelated skills:
© KaimingWan, MIT. 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 2 other files in skills/omk-debugging of KaimingWan/oh-my-kiro.
Open the folder on GitHubat commit ba228be
Omk Debugging 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 |
|---|---|---|---|---|---|---|
| Omk Debugging this skillKaimingWan/oh-my-kiro | 107 | — | ~4.7k | Automated safety check: Pass | MIT | |
| Trellis Session Insightmindfold-ai/Trellis | 15k | 4 repos | ~1.7k | Automated safety check: Pass | AGPL-3.0 | |
| Native Data FetchingCherryHQ/cherry-studio-app | 4k | 6 repos | ~2.9k | Automated safety check: Notes | MIT | |
| Aoti Debugpytorch/pytorch | 104k | 1 repos | ~1.7k | Automated safety check: Pass | Custom licence | |
| Herdr Throwaway Reproductionherdrdev/herdr | 43k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Systematic Debuggingultralisp/ultralisp | 258 | 51 repos | ~2.4k | Automated safety check: Pass | None |
mindfold-ai/Trellis
Reach into past AI conversation history through the trellis mem CLI.
CherryHQ/cherry-studio-app
A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.
pytorch/pytorch
Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.
herdrdev/herdr
Runs a disposable, uniquely named Herdr session inside an existing one so runtime, pane, terminal or API bugs can be reproduced without touching the main session.
ultralisp/ultralisp
A skill your agent uses when encountering any bug, test failure, or unexpected behavior, before proposing fixes
AprilNEA/OpenLogi
Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.
KaimingWan/oh-my-kiro
Multi-level research: built-in knowledge → web search → Tavily deep research API.
KaimingWan/oh-my-kiro
Code and plan review with multi-angle dispatch. An agent skill from KaimingWan/oh-my-kiro.
KaimingWan/oh-my-kiro
Create high-quality, production-ready skills from scratch. An agent skill from KaimingWan/oh-my-kiro.
KaimingWan/oh-my-kiro
Extract and summarize YouTube video content via subtitle extraction.
KaimingWan/oh-my-kiro
Fetch current library/framework documentation via Context7. An agent skill from KaimingWan/oh-my-kiro.
KaimingWan/oh-my-kiro
Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes, self-review, verification.
Categories
Systematic debugging: reproduce → hypothesize → verify → fix. Omk Debugging is an agent skill from KaimingWan/oh-my-kiro. Systematic debugging: reproduce → hypothesize → verify → fix.
Omk Debugging fits situations like: encountering bugs; unexpected behavior; user says debug; why does this happen.
Run `npx skills add KaimingWan/oh-my-kiro --skill omk-debugging -a claude-code`. Or copy the skill folder (skills/omk-debugging in KaimingWan/oh-my-kiro) into .claude/skills/omk-debugging in your project. Claude Code loads it when a task matches its description.
Run `npx skills add KaimingWan/oh-my-kiro --skill omk-debugging -a codex`. Or copy the skill folder (skills/omk-debugging in KaimingWan/oh-my-kiro) into .agents/skills/omk-debugging 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 KaimingWan/oh-my-kiro --skill omk-debugging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/omk-debugging, .gemini/skills/omk-debugging, .github/skills/omk-debugging and .opencode/skills/omk-debugging in your project.
SKILL.md names no scripts, command-line tools or credentials: Omk Debugging is instructions for the agent only.
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. Review the folder before installing.
Omk Debugging is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.7k tokens (SKILL.md is roughly 19k 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 Omk Debugging: Trellis Session Insight (mindfold-ai/Trellis, 15k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), Aoti Debug (pytorch/pytorch, 104k stars) and Herdr Throwaway Reproduction (herdrdev/herdr, 43k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
KaimingWan (a GitHub user) maintains it in KaimingWan/oh-my-kiro, which has 107 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on April 2, 2026.
Source: KaimingWan/oh-my-kiro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.