Agent skill

Lina Review

by linaproai in linaproai/linapro

用于审查 LinaPro OpenSpec 工作流中的代码变更和规范合规性。在完成 /opsx:apply 任务、 完成 lina-feedback 反馈修复、执行 /opsx:archive 归档前必须使用;在用户要求代码审查、 规范合规检查,或明确调用 /lina-review 时也必须使用。

Apache-2.0Auto-check passedDevelopment

Install Lina Review

skills CLI
$ npx skills add linaproai/linapro --skill lina-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install linaproai/linapro lina-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/linaproai/linapro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/lina-review .claude/skills/lina-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lina-review
GitHub stars
161
Token cost
~1.1k tokens
SKILL.md length
133 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
Apache-2.0

At a glance

用于审查 LinaPro OpenSpec 工作流中的代码变更和规范合规性。在完成 /opsx:apply 任务、 完成 lina-feedback 反馈修复、执行 /opsx:archive 归档前必须使用;在用户要求代码审查、 规范合规检查,或明确调用 /lina-review 时也必须使用。

  • Works in 5 steps: 确定审查范围 → 加载项目规范 → 执行审查 → …
  • Development work in your project
  • SKILL.md covers 触发条件, 审查工作流, 问题严重性 and 审查触发点, plus 1 more section
  • Calls git, make and go

What it does

Lina Review is an agent skill from linaproai/linapro. 用于审查 LinaPro OpenSpec 工作流中的代码变更和规范合规性。在完成 /opsx:apply 任务、 完成 lina-feedback 反馈修复、执行 /opsx:archive 归档前必须使用;在用户要求代码审查、 规范合规检查,或明确调用 /lina-review 时也必须使用。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: 依赖 OpenSpec CLI、GoFrame v2 技能、lina-e2e 技能。

It sits in Development. It works with Git. The repository describes itself as: AI-native full-stack framework engineered for sustainable delivery. The licence is Apache-2.0.

When your agent uses it

  • Development work in your project

Example prompts

  • “/lina-review”

Requirements

  • Compatibility (from SKILL.md): 依赖 OpenSpec CLI、GoFrame v2 技能、lina-e2e 技能。

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 确定审查范围
  2. 加载项目规范
  3. 执行审查
  4. 验证审查证据
  5. 生成审查报告

What it can do on your machine

Read from SKILL.md and the folder at commit 75395c8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • make
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    依赖 OpenSpec CLI、GoFrame v2 技能、lina-e2e 技能。

    From compatibility in the SKILL.md frontmatter.

Context cost

Lina Review loads about 1.1k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 133 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from linaproai/linapro at commit 75395c8, republished under its Apache-2.0 licence (© linaproai). 133 words, ~1,093 tokens.

Download SKILL.mdSave it as .claude/skills/lina-review/SKILL.md (or your agent's skills folder).
name
lina-review
description
用于审查 LinaPro OpenSpec 工作流中的代码变更和规范合规性。在完成 /opsx:apply 任务、 完成 lina-feedback 反馈修复、执行 /opsx:archive 归档前必须使用;在用户要求代码审查、 规范合规检查,或明确调用 /lina-review 时也必须使用。
compatibility
依赖 OpenSpec CLI、GoFrame v2 技能、lina-e2e 技能。

Lina 审查

lina-review审查当前项目变更是否符合项目规范。项目领域规范的唯一事实来源是AGENTS.md及其显式引用的.agents/rules/*.md,包括接口契约、后端 Go、数据库、缓存、数据权限、插件、前端、测试、开发工具、文档、架构和i18n等细则。

审查必须先读取AGENTS.md,再按其中的强制规则加载矩阵识别审查范围命中的规则域,并读取所有对应规则文件。禁止仅凭记忆、历史上下文、摘要、此前读取记录或其他代理转述替代本次读取。未读取命中规则文件的审查结论无效,不得据此标记任务完成、反馈完成或执行归档。

如果审查过程中发现某条可执行审查要求只存在于本技能而不存在于AGENTS.md或对应规则文件,必须将其作为规则归属问题报告;在规则归属明确前,不得把该要求当作正式项目规范执行。更新审查要求时,应优先修改对应.agents/rules/*.md,本技能只保留指向规则文件的执行入口。

与用户交互的内容语言以用户上下文使用的语言为准。

触发条件

自动触发:

  • /opsx:apply每个任务完成后。
  • lina-feedback每个任务完成后。
  • /opsx:archive执行前。

手动触发:

  • 用户明确请求审查代码、检查规范合规性或调用/lina-review。

审查工作流

1. 确定审查范围

根据调用来源确定范围:

来源审查范围
任务完成后已完成任务修改或创建的文件
反馈完成后当前反馈任务修改或创建的文件
归档前当前OpenSpec变更中的所有变更
手动调用用户指定范围;未指定时使用当前变更和工作区状态

范围收集必须从仓库状态开始,而不是只看git diff:

bash
git status --short
git ls-files --others --exclude-standard

审查候选项必须包含所有已跟踪和未跟踪变更,包括已暂存文件、未暂存文件、显示为??的未跟踪文件,以及显示为?? path/的未跟踪目录。

当git status --short报告未跟踪目录时,在审查前必须展开为具体文件:

bash
git ls-files --others --exclude-standard -- <path>

当git status --short报告子仓库或submodule存在变更时,例如父仓库只显示m apps/lina-plugins,不得把该路径整体视为已审查。审查前必须进入子仓库收集内部状态、已跟踪差异和未跟踪文件,并把结果加上父路径前缀纳入审查候选项:

bash
git -C <path> status --short
git -C <path> diff --name-only
git -C <path> diff --cached --name-only
git -C <path> ls-files --others --exclude-standard

对于apps/lina-plugins这类插件子仓库,展开后的候选文件必须继续按AGENTS.md的插件本地规范优先级处理;涉及具体apps/lina-plugins/<plugin-id>/时,必须检查该插件根目录是否存在AGENTS.md普通文件或符号链接,并在审查结论中记录插件本地规范读取结果或不存在判断。

如果任务运行过代码生成器、治理脚本或测试生成流程,即使生成文件未出现在git diff中,也必须显式纳入审查范围。git diff只能作为状态收集后的辅助工具,不能单独定义审查范围。

涉及OpenSpec变更时,运行以下命令了解当前变更状态:

bash
openspec status --change "<name>" --json
2. 加载项目规范

读取AGENTS.md作为规范入口,并按其中的强制规则加载矩阵判断审查范围命中的规则域。命中后读取所有对应.agents/rules/*.md,并按规则文件中的设计、实现、验证和审查要求执行。

本技能不得复制维护各规范域的细则。例如:

  • 接口契约审查读取并遵守.agents/rules/api-contract.md。
  • 后端 Go 审查读取并遵守.agents/rules/backend-go.md,并在修改或审查 Go 后端代码时使用goframe-v2技能。
  • E2E 审查读取并遵守.agents/rules/testing.md,并按需使用lina-e2e技能。
  • 其他规范域均以AGENTS.md命中的规则文件为准。

若规则文件缺失、无法读取或规则之间存在无法调和的冲突,审查必须报告为严重问题,并阻塞任务完成、反馈完成或归档。

3. 执行审查

按审查范围和已读取规则文件执行检查。审查重点由规则文件决定,lina-review只负责确保以下编排要求成立:

  1. 审查结论必须列出实际读取的规则文件。
  2. 审查必须只检查与当前审查范围相关的类别。
  3. 命中规则域时,必须按对应规则文件确认实现、测试、验证命令和任务记录是否满足门禁。
  4. 规则要求记录无影响判断时,审查结论必须明确说明无影响理由。
  5. 对i18n、缓存一致性、数据权限、开发工具跨平台和测试策略等 OpenSpec 审查要求,按.agents/rules/openspec.md和实际命中规则文件执行影响分析;确认无影响时也必须记录。
  6. 发现问题时,必须提供文件路径和行号,并说明违反的规则文件或规则来源。
  7. 简单、低风险且范围清晰的问题可以提供自动修复选项;不得在审查过程中擅自修改用户未要求修改的文件。
4. 验证审查证据

审查必须确认执行者提供的验证证据覆盖当前工作区状态,而不是历史状态。验证证据包括但不限于:

  • openspec validate <change> --strict。
  • 命中规则文件要求的 Go 编译门禁、单元测试、E2E、静态扫描、治理验证或文件检查。
  • 与反馈修复性质匹配的测试或治理验证。

当审查范围包含 Go 代码文件时,验证证据必须包含当前工作区已执行且通过的make lint命令记录;仅有go test/go build不得视为满足backend-go lint 门禁。

当审查范围命中 i18n 影响(bizerr、manifest/i18n、$t、用户可见文案,或任务未声明无 i18n 影响)时,验证证据必须包含当前工作区已执行且通过的make i18n.check命令记录。

如果验证命令因外部依赖不可用而无法运行,审查结论必须记录阻断原因、替代验证、覆盖范围和剩余风险。不能用未执行的验证假设替代审查证据。缺少强制门禁证据时必须记为严重问题并阻塞完成/归档。

5. 生成审查报告

使用以下结构输出审查报告,并按实际命中规则域删减或扩展章节:

markdown
## Lina 审查报告

**变更:** <变更名称或未指定>
**范围:** <任务级 / 反馈级 / 全部变更 / 手动范围>
**审查文件数:** <数量>
**范围来源:** `git status --short` + `git ls-files --others --exclude-standard` + <任务或变更上下文>
**已读取规则文件:** <列出按 `AGENTS.md` 命中的 `.agents/rules/*.md`>

### 发现的问题

- **严重** <文件路径:行号>:<问题描述>。依据:<规则文件或规范入口>。
- **警告** <文件路径:行号>:<问题描述>。依据:<规则文件或规范入口>。

### 规则域结论

- <规则域>:通过 / 发现 N 个问题 / 未命中,原因:<说明>。
- <规则域>:通过 / 发现 N 个问题 / 无影响,原因:<说明>。

### 验证证据

- <命令或检查>:通过 / 失败 / 未运行,原因:<说明>。

### 摘要

- 严重:N
- 警告:N

### 建议操作

1. <具体操作>

没有发现问题时,必须明确说明“未发现阻塞问题”,并列出仍然存在的测试缺口或剩余风险。

问题严重性

级别行为
严重阻塞任务完成、反馈完成或归档,必须修复或明确豁免依据
警告展示给用户,建议修复,但不单独阻塞继续推进

审查触发点

工作流步骤行为
/opsx:apply任务完成审查当前任务变更,在下一任务前暴露问题
lina-feedback任务完成审查反馈修复,在标记完成前暴露问题
/opsx:archive审查完整变更,严重问题阻塞归档
手动调用按用户指定范围或当前变更执行审查

硬性规则

  • AGENTS.md及其显式引用的规则文件是唯一事实来源。
  • 未读取命中规则文件的审查结论无效。
  • 不在本技能中重复维护领域规范细则。
  • 范围识别必须包含未跟踪文件和展开后的未跟踪目录。
  • 仅检查与变更文件和命中规则域相关的类别。
  • 严重问题阻塞任务完成、反馈完成或归档。
  • 问题报告必须包含文件路径、行号和规则来源。

© linaproai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/lina-review of linaproai/linapro.

Open the folder on GitHubat commit 75395c8

Compare with similar skills

Lina Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lina Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lina Review this skilllinaproai/linapro161—~1.1kAutomated safety check: PassApache-2.0
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k35 repos~1.8kAutomated safety check: PassMIT
Migrate Internal Package into GhostTryGhost/Ghost56k—~3.8kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 35 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed

More from linaproai/linapro

All 13 skills in this repo
  • Lina Perf Audit

    linaproai/linapro

    通过 make db.init/mock 重置数据库、重启服务、安装并启用所有内置插件、准备压测数据,并启动并发子代理; 通常需要几十分钟到数小时,且会消耗大量 Token。不得从其他技能、CI、定时任务、 Git 钩子或模糊的性能请求中触发。

    161 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Vben

    linaproai/linapro

    Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。

    161 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check: notes
  • 手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。

    161 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community Fix CI

    linaproai/linapro

    排查并修复给定的 LinaPro GitHub Actions 失败问题;修复完成后保留本地改动, 禁止自动提交、推送或创建 PR。

    161 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • 审查 LinaPro 社区 GitHub Issues,并按项目规范和源码实现分类处理. An agent skill from linaproai/linapro.

    161 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community New Branch

    linaproai/linapro

    手动触发:将主仓库与 apps/lina-plugins 对齐最新 main 后, 按提示在两侧各建独立分支;分支就绪后继续处理提示词中的后续请求。

    161 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Lina Review

What does Lina Review do?

用于审查 LinaPro OpenSpec 工作流中的代码变更和规范合规性。在完成 /opsx:apply 任务、 完成 lina-feedback 反馈修复、执行 /opsx:archive 归档前必须使用;在用户要求代码审查、 规范合规检查,或明确调用 /lina-review 时也必须使用。. Lina Review is an agent skill from linaproai/linapro.

When should I use Lina Review?

Lina Review fits situations like: development work in your project.

How do I install Lina Review in Claude Code?

Run `npx skills add linaproai/linapro --skill lina-review -a claude-code`. Or copy the skill folder (.agents/skills/lina-review in linaproai/linapro) into .claude/skills/lina-review in your project. Claude Code loads it when a task matches its description.

How do I install Lina Review in Codex?

Run `npx skills add linaproai/linapro --skill lina-review -a codex`. Or copy the skill folder (.agents/skills/lina-review in linaproai/linapro) into .agents/skills/lina-review in your project. Codex loads it when a task matches its description.

Can I use Lina Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linaproai/linapro --skill lina-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lina-review, .gemini/skills/lina-review, .github/skills/lina-review and .opencode/skills/lina-review in your project.

What does Lina Review need to run?

Going by SKILL.md and its folder, Lina Review needs the command-line tools its instructions call (git, make and go). Compatibility (from SKILL.md): 依赖 OpenSpec CLI、GoFrame v2 技能、lina-e2e 技能。.

Does Lina Review access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Lina Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lina Review use?

Lina Review is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lina Review use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lina Review?

Skills that share tags, products or a category with Lina Review: Finishing a Development Branch (obra/superpowers, 297k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Finishing A Development Branch (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lina Review?

linaproai (a GitHub organization) maintains it in linaproai/linapro, which has 161 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 7, 2026.

Source: linaproai/linapro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.