一键导入
code-review
// Use when the user asks for a code review, asks to "review the code", or requests review of a feature/PR/branch. Runs the OntoBricks review checklist defined in .cursorrules.
// Use when the user asks for a code review, asks to "review the code", or requests review of a feature/PR/branch. Runs the OntoBricks review checklist defined in .cursorrules.
Use when adding a new subpackage under back/core/, back/objects/, or agents/ — e.g. a new graph DB engine, W3C parser, industry importer, reasoning module, or domain class. Enforces the checklist defined in .cursor/07-project-conventions.mdc.
Use after any code change (feature, fix, refactor, review fixup) to update /changelogs/YYYY-MM-DD.log and run the test suite. Mandatory post-change routine — see .cursorrules.
Use when the user asks to deploy, ship, release, or push OntoBricks to Databricks. Wraps the Databricks Asset Bundle deploy for the FastAPI app and the MCP server, with the bootstrap-perms safety net described in README.md.
Use when the user asks to "refactor", restructure, clean up, simplify, deduplicate, extract, or reorganize code. Enforces the Martin Fowler discipline defined in src/.coding_rules.md and .cursor/08-testing-and-deployment.mdc.
| name | code-review |
| description | Use when the user asks for a code review, asks to "review the code", or requests review of a feature/PR/branch. Runs the OntoBricks review checklist defined in .cursorrules. |
The review steps are canonical in .cursorrules ("When asking for a code
review, do all these tasks (in this order)…"). Read it first; this skill only
sequences the work and adds Claude-Code-specific tooling notes.
Create a TodoWrite with one item per .cursorrules review step, in order:
.cursor/05 §Error Handling"). The most common violations are listed at the bottom of this
skill as a quick-reference checklist; the rules themselves live in the
canonical files, not here.Grep for similar function names, repeated SQL strings,
recurring try/except patterns. Propose Extract Function/Class/Move Function
per Fowler vocabulary (see src/.coding_rules.md).src/back/objects/session/DomainSession.py
and any other session storage. For each field output field | used? | derivable? | recommendation.uv run pytest -q. Report PASS/FAIL counts..cursor/08-testing-and-deployment §Documentation Rules.End with a summary block:
Review summary
- Rule violations: <count> (fixed: <count>, plan: <count>)
- Duplication clusters: <count>
- Dead code candidates: <count>
- Session fields removed: <count>
- Tests: <passed>/<total>
- Docs updated: <yes/no>
This is a memory aid for grep-style spotting. Authoritative wording lives in the canonical files, not here.
HTTPException or {'success': False, ...} → .cursor/10print() or f-string in logger.*(...) → .cursor/10 §Logging.cursor/05, .cursor/07back/core/ or Request/Response in back/objects/ → .cursor/07.cursor/05 §Frontend.cursor/02, .cursor/07 §Domain Security.cursor/01, .cursor/07 §Class-First Policy