ワンクリックで
skln-ai-review
Review code changes and submit inline comments via the SakuraLens API
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Review code changes and submit inline comments via the SakuraLens API
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | skln-ai-review |
| description | Review code changes and submit inline comments via the SakuraLens API |
SakuraLens is a local code review workspace running at $SKLN_API_URL.
You (the agent) may be working in a git worktree for a specific change range.
Check $SKLN_RANGE_CONTEXT — it tells you exactly what you're reviewing:
| Value | Meaning |
|---|---|
WORKING_TREE | Uncommitted changes in the working tree |
<hash> | A single commit diff |
<hash>..<hash> | A range between two commits |
<branch> | All commits on a branch not yet merged |
If $SKLN_WORKTREE_PATH is set, you are in an isolated git worktree for this range.
Read files from disk here; they match the range context exactly.
Base URL: $SKLN_API_URL/api
GET /changes
Returns the full diff for $SKLN_RANGE_CONTEXT — all files, hunks, line numbers.
Always run this first to understand what changed before reviewing individual files.
GET /agent/next
Returns JSON: changed files with existing comment counts. Each entry shows the file path and any comments already made. Prioritise files with no comments.
GET /file?path=<file_path>
Returns the full content of any file in the repo. Prefer reading from $SKLN_WORKTREE_PATH
when available — it reflects the exact state of the range you're reviewing.
GET /comments?file_path=<file_path>
POST /comments
Content-Type: application/json
{
"file_path": "src/main.rs",
"line_number_begin": 42,
"line_number_end": 42,
"content": "Consider using Option here."
}
Include parent_id to thread discussions:
POST /comments
Content-Type: application/json
{
"file_path": "src/main.rs",
"content": "Addressed in follow-up.",
"parent_id": 5
}
PATCH /comments/{id}
Content-Type: application/json
{"resolved": true}
GET /info
Returns current branch, HEAD, worktree paths.
$SKLN_RANGE_CONTEXT to know what you're reviewingGET /changesGET /agent/next/file)POST /commentsPATCH /comments/{id}/changes first to understand the full scope of the range.line_number_begin and line_number_end for exact locations.