Debug Ohmycode
AlphaLab-USTC/OhMyCode
Guide for debugging OhMyCode issues. An agent skill from AlphaLab-USTC/OhMyCode.
Run tests and analyze results for OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
$ npx skills add AlphaLab-USTC/OhMyCode --skill run-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode run-tests --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/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/run-tests .claude/skills/run-tests && 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 "run-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-tests into .claude/skills/run-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-tests", 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/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-testsType 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 AlphaLab-USTC/OhMyCode --skill run-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode run-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/run-tests .agents/skills/run-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "run-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-tests into .agents/skills/run-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-tests", 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 AlphaLab-USTC/OhMyCode --skill run-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode run-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/run-tests .cursor/skills/run-tests && 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 "run-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-tests into .cursor/skills/run-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-tests", 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/AlphaLab-USTC/OhMyCode.git --path .claude/skills/run-tests--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 AlphaLab-USTC/OhMyCode --skill run-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode run-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/run-tests .gemini/skills/run-tests && 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 "run-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-tests into .gemini/skills/run-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-tests", 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 AlphaLab-USTC/OhMyCode run-testsInstalls 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 AlphaLab-USTC/OhMyCode --skill run-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/run-tests .github/skills/run-tests && 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 "run-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-tests into .github/skills/run-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-tests", 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 AlphaLab-USTC/OhMyCode --skill run-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install AlphaLab-USTC/OhMyCode run-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlphaLab-USTC/OhMyCode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/run-tests .opencode/skills/run-tests && 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 "run-tests" agent skill from https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.claude/skills/run-tests into .opencode/skills/run-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-tests", 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.
run-testsRun tests and analyze results for OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
Run Tests is an agent skill from AlphaLab-USTC/OhMyCode. Run tests and analyze results for OhMyCode. Use when user wants to run, check, or verify tests — or after any code change.
Its SKILL.md is about 960 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Minimal and Customizable CC-Style Coding Agent. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4d1bb28. 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.
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.
Run Tests loads about 959 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 443 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 AlphaLab-USTC/OhMyCode at commit 4d1bb28, republished under its MIT licence (© AlphaLab-USTC). 443 words, ~959 tokens.
.claude/skills/run-tests/SKILL.md (or your agent's skills folder).Run the project test suite, analyze results, and take action on failures.
This skill is part of the OhMyCode development closed-loop:
编码 ──→ /gen-tests ──→ /run-tests ──→ 分析失败 ──→ 修代码 ──╮
↑ │
╰────────────────────────────────────────────────────────────╯/gen-tests generates new test files — verify them immediatelyohmycode/ — catch regressions/run-tests — confirm the fix$ARGUMENTS — optional scope specifier. If empty, run the full suite.
| Argument | pytest path |
|---|---|
| (empty) | tests/ (full suite) |
tools | tests/tools/ |
tools/bash | tests/tools/test_bash.py |
core | tests/core/ |
core/loop | tests/core/test_loop.py |
providers | tests/providers/ |
config | tests/config/ |
skills | tests/skills/ |
| specific file path | use as-is |
Resolve $ARGUMENTS to a pytest target path using the table above.
If a specific file is given, verify it exists. If not, check for the closest match under tests/.
python3 -m pytest <resolved_path> -v --tb=short 2>&1 | tee tests_run.logUse -v for verbose output and --tb=short for concise tracebacks.
Report the result summary (e.g., "73 passed in 2.1s") and confirm the code is healthy. No further action needed.
For each failure:
ohmycode//run-tests — repeat until all green ✓This is the core of the closed-loop: fail → diagnose → fix → re-run → pass.
Review warnings in the output. Common ones:
| Warning | Action |
|---|---|
PytestUnraisableExceptionWarning | Usually async cleanup — check for missing await |
DeprecationWarning | Note for future cleanup, not blocking |
RuntimeWarning: coroutine was never awaited | Missing await — fix immediately |
Ignore warnings that don't affect correctness unless they indicate real bugs.
If Step 2 only ran a subset of tests, prompt to run the full suite:
python3 -m pytest tests/ -v --tb=short 2>&1 | tee tests_run.logThis catches regressions in other modules caused by the recent change. The task is not complete until the full suite passes.
Use /run-tests at every transition in the closed-loop:
| When | What to do |
|---|---|
After /gen-tests | Run new tests to verify they pass |
After editing ohmycode/ source | Catch regressions early |
| After fixing a failure | Confirm the fix, re-enter loop if still red |
| Before committing | Full suite gate — python3 -m pytest tests/ -v must be all green |
| When resuming work | Baseline health check |
/gen-tests — generates tests; always follow up with /run-tests/commit-conventions — commit after all tests pass© AlphaLab-USTC, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/run-tests of AlphaLab-USTC/OhMyCode.
Open the folder on GitHubat commit 4d1bb28
Run Tests 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 |
|---|---|---|---|---|---|---|
| Run Tests this skillAlphaLab-USTC/OhMyCode | 131 | — | ~959 | Automated safety check: Pass | MIT | |
| Debug OhmycodeAlphaLab-USTC/OhMyCode | 131 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Commit ConventionsAlphaLab-USTC/OhMyCode | 131 | — | ~479 | Automated safety check: Pass | MIT | |
| Add FeatureAlphaLab-USTC/OhMyCode | 131 | — | ~995 | Automated safety check: Pass | MIT | |
| Add ToolAlphaLab-USTC/OhMyCode | 131 | — | ~758 | Automated safety check: Pass | MIT | |
| Add ProviderAlphaLab-USTC/OhMyCode | 131 | — | ~888 | Automated safety check: Pass | MIT |
AlphaLab-USTC/OhMyCode
Guide for debugging OhMyCode issues. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
OhMyCode commit message conventions. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Guide for adding a new feature to OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Guide for adding a new tool to OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Guide for adding a new LLM provider to OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Generate high-quality tests for OhMyCode modules. An agent skill from AlphaLab-USTC/OhMyCode.
AlphaLab-USTC/OhMyCode
Run OhMyCode benchmarks — score any provider/model with token tracking.
AlphaLab-USTC/OhMyCode
Guide for customizing OhMyCode's terminal output style and rendering.
AlphaLab-USTC/OhMyCode
Guide for customizing OhMyCode's AI personality and behavior via system prompt.
Run tests and analyze results for OhMyCode. An agent skill from AlphaLab-USTC/OhMyCode. Run Tests is an agent skill from AlphaLab-USTC/OhMyCode. Run tests and analyze results for OhMyCode.
Run Tests fits situations like: user wants to run; after any code change.
Run `npx skills add AlphaLab-USTC/OhMyCode --skill run-tests -a claude-code`. Or copy the skill folder (.claude/skills/run-tests in AlphaLab-USTC/OhMyCode) into .claude/skills/run-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add AlphaLab-USTC/OhMyCode --skill run-tests -a codex`. Or copy the skill folder (.claude/skills/run-tests in AlphaLab-USTC/OhMyCode) into .agents/skills/run-tests 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 AlphaLab-USTC/OhMyCode --skill run-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/run-tests, .gemini/skills/run-tests, .github/skills/run-tests and .opencode/skills/run-tests in your project.
Going by SKILL.md and its folder, Run Tests needs the command-line tools its instructions call (python3). Our summary lists: Python 3.
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.
Run Tests is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 959 tokens (SKILL.md is roughly 3.8k 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 Run Tests: Debug Ohmycode (AlphaLab-USTC/OhMyCode, 131 stars), Commit Conventions (AlphaLab-USTC/OhMyCode, 131 stars), Add Feature (AlphaLab-USTC/OhMyCode, 131 stars) and Add Tool (AlphaLab-USTC/OhMyCode, 131 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
AlphaLab-USTC (a GitHub user) maintains it in AlphaLab-USTC/OhMyCode, which has 131 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on April 2, 2026.
Source: AlphaLab-USTC/OhMyCode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.