kaimingwan/oh-my-kiro/omk-coding
Claude Code and agent skill by kaimingwan/oh-my-kiro
- community
Checking that the SKILL.md file is still in the repository.
Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes, self-review, verification. Trigger when writing code, modifying source files, fixing bugs, refactoring, optimizing code, entering a worktree or submodule, or when user says 'write code', 'implement', 'fix this', 'fix PR', 'add feature', 'add field', 'refactor', 'optimize', 'modify', 'change this', 'update code', 'apply feedback', 'apply review', '改代码', '修复', '加个', '改一下', '优化'. Also trigger when creating/editing .java .py .ts .js .go .rs .sh .tsx .jsx .vue .css .scss files, or after debugging identifies root cause and implementation begins.
Install
npx vskill@latest install kaimingwan/oh-my-kiro/omk-codingSKILL.md
Coding — Write Code Right
Trigger Examples
- "帮我实现这个功能"
- "fix this bug in the auth module"
- "重构一下这段代码"
- "修复 PR review 发现的问题"
- "改一下这个 hook 的逻辑"
- "apply the review feedback"
- "优化这段代码的性能"
- "加个字段到这个 model 里"
Overview
Writing code without discipline creates debt. This skill enforces quality at the point of creation.
Core principle: Every code change must be minimal, tested, verified, and self-reviewed before claiming done.
Phase 0: Environment Setup
Before writing any code in a worktree or submodule:
If LSP init fails: Retry with /code init -f. If still fails, log to plan Errors and continue with grep fallback — but note degraded analysis quality.
Phase 0.5: Deep Read — Build Understanding (MANDATORY)
This phase is NOT optional. Even for "simple" changes, you MUST complete it before writing any code.Research shows: the most expensive failure mode is code that is "correct in isolation but breaks the surrounding system" (Boris Tane). Agents only explore dependencies 42% of the time when left to decide on their own (CodeCompass). This phase forces the other 58%.
If you cannot answer any field in the Codebase Understanding summary, you haven't read enough code. Go back and read more before proceeding.
Phase 1: Understand Before Changing
Before modifying any file, confirm you completed Phase 0.5 and that your Codebase Understanding covers the target code.
Rules (Iron Rules — no exceptions):
- No modify without goto_definition
- No refactor without find_references
- No new public API without searching for existing similar abstractions
- Match existing code style — don't introduce new conventions
Phase 2: Write Code (TDD)
Red → Green → Refactor
Minimal Change Rules
| Rule | Check | |
|---|---|---|
| Single responsibility | Does this change do exactly one thing? | |
| Minimal diff | Can any line be removed without breaking the goal? | |
| No drive-by fixes | Unrelated improvements go in separate commits | |
| No new dependencies | Unless essential and approved | |
| Backward compatible | Existing callers unaffected unless explicitly intended | |
| Match existing style | Follow the conventions of the surrounding code, not your ideal. If the codebase is 85/100, write 85–90/100 code — don't chase 100 | |
| Don't "fix" old code | Existing code works. Don't refactor, restyle, or "improve" code outside your change scope. If you see a real problem, file it separately |
Code Quality Gates
- Methods ≤ 20 lines (split when longer)
- No boolean flag parameters — split into two methods
- No swallowed exceptions — catch must log or rethrow
- Return empty collections, not null
- Use self-documenting names — comments explain WHY, not WHAT
- Depend on interfaces, not concrete implementations
Phase 3: Self-Verify
After implementation, before claiming done:
Frontend Visual Verification (when UI files changed)
If any modified file is a frontend file (.tsx/.jsx/.vue/.html/.css/.scss), you MUST verify visually:
CRITICAL: Never claim a frontend issue is "fixed" based only on code changes. The browser is the source of truth.
Phase 4: Self-Review
Before committing, review your own diff:
If any check fails: Fix before committing. Don't leave TODOs for "later."
Phase 4.5: Self-Explanation
After self-review, explain your changes in natural language before committing:
If you discover a logical contradiction while explaining → go back to Phase 2 and revisit the implementation. The act of explaining often reveals errors that code review misses (Self-Debugging research: explanation outperforms chain-of-thought for error detection).
Phase 5: Commit
Commit message types: feat, fix, refactor, test, docs, chore
Language-Specific Addenda
Java
- Load
knowledge/reference/java-coding-standards.mdwhen touching .java files - After interface changes:
mvn compile -pl <module> -am - After all changes:
mvn clean test - Prefer constructor injection over @Autowired
TypeScript/JavaScript
- Strict mode, no
anyunless justified - Prefer
constoverlet, nevervar - Handle async errors — no unhandled promise rejections
Python
- Type hints on all public functions
pytestwith-vflag for visibility- No bare
except:— always specify exception type
When to Apply
Always when:
- Creating new files in a worktree/submodule
- Modifying existing code
- Fixing bugs (TDD: write failing test reproducing bug first)
- Refactoring
Skip Phase 2 (TDD) only when:
- Pure documentation changes
- Config-only changes (but still verify)
- User explicitly says "skip tests"
Anti-patterns
| Don't | Do Instead | |
|---|---|---|
| Write code then "add tests later" | Test first, always | |
git add . | git add -p — stage intentionally | |
| Fix + unrelated cleanup in one commit | Separate commits | |
| Trust "it should work" | Run and see output | |
| Copy-paste without understanding | Read source, then adapt | |
| Add abstraction "for future use" | Solve today's problem |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/omk-coding/SKILL.md
Popularity
- Repository stars
- 92
- Repository forks
- 14
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kaimingwan/oh-my-kiro/omk-coding)