.agents/skills/code-review/SKILL.md
Performs code quality checks and reviews for ComposeWebView. Validates expect/actual implementations, KDoc coverage, Spotless formatting, and multiplatform patterns. Use when reviewing PRs, checking code quality, or validating new features.
npx skillsauth add parkwoocheol/compose-webview composewebview-code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill automates code quality checks and assists with pull request reviews for the ComposeWebView multiplatform library.
Run complete review workflow:
bash .agents/skills/code-review/scripts/review_checklist.sh
This executes all quality checks: formatting, expect/actual validation, KDoc coverage, and tests.
Check formatting (non-destructive):
./gradlew spotlessCheck
Auto-fix formatting:
./gradlew spotlessApply
Spotless enforces ktlint rules. REQUIRED before all commits.
Check expect/actual pairs:
bash .agents/skills/code-review/scripts/check_expect_actual.sh
Verifies:
expect declaration has corresponding actual implementationsactual declarationsVerify KDoc:
bash .agents/skills/code-review/scripts/verify_kdoc.sh
Checks:
public APIs have KDoc comments@param and @return where applicableEnsure tests exist for:
commonTestRun tests:
bash .agents/skills/development/scripts/test_all.sh
Verify adherence to project patterns:
WebViewState (see .agents/knowledge/architecture.md)WebViewControllerSee reference/common_patterns.md for patterns.
Copy and work through: checklists/feature_checklist.md
Quick checklist:
- [ ] Defined in commonMain with expect
- [ ] Implemented in all 5 platforms (Android, iOS, Desktop, JS, WASM)
- [ ] Public APIs have KDoc with @param/@return
- [ ] Tests added in commonTest and platform tests
- [ ] Spotless formatting applied
- [ ] Updated relevant documentation
- [ ] Follows existing patterns (State/Controller)
- [ ] Platform constraints considered (iOS, Desktop, WASM)
- [ ] Kotlinx Serialization used for JSON
- [ ] Null safety enforced (no !! operator)
- [ ] Immutability preferred (val over var)
Copy and work through: checklists/pr_checklist.md
Essential checks:
For complex platform work: checklists/multiplatform_checklist.md
Platform-specific considerations:
bash .agents/skills/code-review/scripts/review_checklist.sh
Checks performed:
Exit codes:
0 - All checks passed1 - Critical issues found (formatting, tests, expect/actual)Expect/Actual:
bash .agents/skills/code-review/scripts/check_expect_actual.sh
KDoc Coverage:
bash .agents/skills/code-review/scripts/verify_kdoc.sh
Formatting:
bash .agents/skills/development/scripts/format_check.sh
See reference/review_guidelines.md for:
Formatting issues:
./gradlew spotlessApply
Missing actual implementation:
expect declarationactual to all platform source setsbash .agents/skills/code-review/scripts/check_expect_actual.shMissing KDoc:
/**
* Brief description of what this does.
*
* @param param Description of parameter
* @return Description of return value
*/
fun publicFunction(param: String): Result
Format code:
./gradlew spotlessApply
Run full review:
bash .agents/skills/code-review/scripts/review_checklist.sh
Fix any issues reported
Run tests:
bash .agents/skills/development/scripts/test_all.sh
Commit and push
Check PR against checklist:
Verify multiplatform completeness:
bash .agents/skills/code-review/scripts/check_expect_actual.sh
Review architectural patterns:
.agents/knowledge/architecture.mdTest locally:
git checkout pr-branch
bash .agents/skills/development/scripts/test_all.sh
Consistent naming: Follow Kotlin conventions
PascalCasecamelCaseUPPER_SNAKE_CASEVisibility modifiers:
public - External APIinternal - Internal implementationsprivate - Encapsulated logicImmutability: Prefer val over var
Null safety: Avoid !!, use safe calls ?. or ?:
These checks can be integrated into GitHub Actions:
- name: Code Review Checks
run: bash .agents/skills/code-review/scripts/review_checklist.sh
Comprehensive review running all checks. Returns non-zero exit code if critical issues found.
Validates that all expect declarations have actual implementations on all platforms.
Checks KDoc coverage for public APIs. Warning-level (doesn't fail build).
.agents/knowledge/architecture.md.agents/knowledge/code_style.md.agents/knowledge/commands.mdCheck output for specific failure:
./gradlew spotlessApplyExpect/actual check counts declarations - may show warnings for:
Review build errors for actual issues.
Not all public APIs require extensive KDoc (e.g., simple getters). Use judgment, but prefer documentation.
Use this skill to maintain high code quality and consistent patterns across the ComposeWebView codebase.
development
Manages MkDocs documentation site and API references for ComposeWebView. Use when creating, updating, or building documentation, adding guides, or generating API docs. Handles mkdocs serve, build, and validation.
development
Builds, tests, and formats ComposeWebView multiplatform library. Handles Android, iOS, Desktop (JVM), and Web (JS) platforms. Use when building, testing, running Spotless formatting, or checking platform-specific code. Supports expect/actual pattern workflows.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.