AGENT SKILL

semantic-review

Opens a semantic, narrative browser review of a git diff and returns the human reviewer's comments.

License 许可
MIT
所属仓库
mikker/dotfiles
最近更新
2026-11-10
Stars
★ 116
Forks
4

01 前言 Front Matter

name
semantic-review
agent
general-purpose
context
fork
license
MIT
background
false
description
Opens a semantic, narrative browser review of a git diff and returns the human reviewer's comments.
compatibility
Requires Node.js 20+. Optional sidecars use ANTHROPIC_API_KEY, OPENAI_API_KEY, or an installed claude, codex, gemini, or pi CLI.
user-invocable
true
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

Semantic Review

This skill is strictly opt-in. Do not run it unless the user explicitly requests semantic-review by name.

Run the review from the repository root after implementation and validation are complete. Interpret arguments supplied with the skill as natural-language preferences for how the analysis is generated.

Isolated analysis (default)

When the user gives no harness or model preference, keep analysis out of the main conversation and give the analyzer no implementation history:

  1. If this skill is already running in a forked or subagent context, generate the analysis there using the caller-provided workflow below.
  2. Otherwise, prefer a fresh non-interactive invocation of the current harness via --with claude, --with codex, --with gemini, or --with pi. Do not pass conversation history. Skip the caller-provided workflow because the CLI handles analysis directly.
  3. If the current harness has no CLI backend, use a native isolated subagent to generate the JSON from the emitted prompt.
  4. Only generate analysis in the main hosting context when isolation is unavailable.

Caller-provided analysis workflow

  1. Create temporary prompt and JSON files outside the repository.
  2. Run npx --yes semantic-review --emit-prompt [git diff args...] > <prompt-file>.
  3. Read the entire prompt file and follow it yourself. Write only the requested JSON object to the JSON file, without Markdown fences or commentary.
  4. Do not change the worktree between generating the prompt and opening the report.
  5. Run npx --yes semantic-review --analysis <json-file> [the same git diff args...] in the foreground with a long timeout.
  6. Delete both temporary files when the command exits.

With no git diff arguments, both commands review staged, unstaged, and untracked changes against HEAD. To review a branch, pass the same range such as main...HEAD to both commands. Custom ranges and piped diffs are reviewed exactly as supplied, so ensure they explicitly include any added files that are still untracked.

Sidecar analysis

When the user expresses a harness or model preference in any wording, translate it into an independent sidecar invocation. Pass model IDs through verbatim; effort must be one of low, medium, high, xhigh, or max. If the intended harness or model is genuinely ambiguous, confirm the choice with the user instead of requiring special syntax or silently guessing.

npx --yes semantic-review --with anthropic --model claude-sonnet-5 --effort medium
npx --yes semantic-review --with openai --model gpt-5.6
npx --yes semantic-review --with claude --model sonnet
npx --yes semantic-review --with codex --model gpt-5.3-codex-spark
npx --yes semantic-review --with gemini --model gemini-2.5-pro
npx --yes semantic-review --with pi --model google/gemini-2.5-pro

For example, “use Claude Code with fable” means --with claude --model fable. The available backends are anthropic, openai, claude, codex, gemini, and pi. CLI backends reuse their existing local authentication; the API backends use ANTHROPIC_API_KEY/ANTHROPIC_AUTH_TOKEN and OPENAI_API_KEY. If the user names a backend without a model, leave off --model and let that backend choose its default.

To compare harnesses, provide a comma-separated list. Do not add --model, because model IDs are backend-specific:

npx --yes semantic-review --with anthropic,codex

Workflow

  1. Run the final review command in the foreground with a long timeout. Never background it.
  2. Wait while the browser report is open. The command exits after the reviewer clicks Done.
  3. Read stdout. Status messages and the review URL on stderr are not feedback.
  4. If stdout says the review was approved with no comments, finish.
  5. Otherwise, treat every comment as a change request. Make the requested changes, validate them, and summarize what changed.
  6. If feedback is unclear, contradictory, or unsafe, ask the user before proceeding.

Do not use semantic review as a substitute for tests, type checks, or ordinary code inspection.

04 同仓库更多 Skills

mikker
mikker/dotfiles

unslop

Cut AI tells from any writing.

★ 116
mikker
mikker/dotfiles

stageshow

Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say "faux UI". React and plain CSS.

前端开发
★ 116
mikker
mikker/dotfiles

clean-copy

Cut interface copy that shouldn't exist — captions that restate a label, hints that pre-empt a worry the user never had, warnings that are scar tissue from a fixed bug. Use when writing or reviewing any user-facing string (labels, hints, empty states, toasts, confirmations, button text), or when asked to clean up / tighten copy.

★ 116
mikker
mikker/dotfiles

elyx

Elyx is a design tool with local, AI-friendly `.elyx` files for screens, components, layouts, flows, and design systems. This skill is only available to agents running in external harnesses while using the Elyx CLI. It is unavailable and must not be used when running in the ACP harness inside the Elyx app. In external harnesses, use this skill before reading, reasoning about, or answering any question that touches Elyx or `.elyx` files — authoring, editing, validating, inspecting, reviewing, refactoring, comparing, or recommending changes, including read-only analysis where you produce no edit. Do not reason about `.elyx` from source text alone; imports, instances, overrides, and layout only resolve through the tools.

★ 116
mikker
mikker/dotfiles

uikit-app-modernization

Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.

★ 116
mikker
mikker/dotfiles

swiftui-whats-new-27

New SwiftUI APIs, behaviors, and deprecations in the 2027 OS releases (iOS 27 and aligned macOS/watchOS/tvOS/visionOS). Consult when asked what's new in SwiftUI 27, or when working with: - @State compile errors after an SDK update ("used before being initialized", "invalid redeclaration of synthesized property") or @State becaming a macro - @ViewBuilder/@ContentBuilder ambiguous overloads or type-check regressions; drag-to-reorder in any container (List, stacks, grids, custom layouts) via reorderable()/reorderContainer and its drag-and-drop - AsyncImage caching, reloading on scroll, or a custom URLSession - Swipe actions outside List (ScrollView, LazyVStack, LazyVGrid) via swipeActions()/swipeActionsContainer() - Toolbar overflow, visibility (visibilityPriority, ToolbarOverflowMenu, toolbarMinimizeBehavior), and pinning - Presenting a confirmationDialog or alert from an optional item binding

★ 116