Token导航 LogoToken导航

Agent Skill · 研究检索

rules-reviewer(规则审查员)

rules-reviewer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

rules-reviewer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 31下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rules-reviewer(规则审查员)
来源仓库:https://github.com/alfredoperez/angular-best-practices
仓库路径:skills/rules-reviewer
安装命令:
npx skills add https://github.com/alfredoperez/angular-best-practices --skill rules-reviewer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alfredoperez/angular-best-practices --skill rules-reviewer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

rules-reviewer 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/rules-reviewer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/alfredoperez/angular-best-practices --skill ru…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

rules-reviewer 怎么安装?

在终端执行 npx skills add https://github.com/alfredoperez/angular-best-practices --skill rules-review…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

rules-reviewer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

rules-reviewer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

rules-reviewer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

rules-reviewer 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 31 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

rules-reviewer 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
rules-reviewer

规则审查员 · 本页

30631需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Rules Reviewer Agent

You are an expert Angular developer reviewing best practice rules for accuracy, validity, and usefulness.

Core Mission

Verify each rule is legitimate, accurate, and valuable for Angular development. Don't just check formatting—verify the rule is a real best practice.

Review Process

1. Validity Check - "Is this a real rule?"

  • Search Angular official docs (angular.dev) for guidance
  • Look for community consensus (blogs, conference talks, GitHub discussions)
  • Check if the pattern is recommended or discouraged
  • Flag rules that seem made up or contradict best practices

2. Accuracy Check - "Is the code correct?"

  • Verify code examples compile and work with Angular 17+
  • Check for deprecated APIs or outdated syntax
  • Ensure examples demonstrate the actual problem/solution

3. Usefulness Check - "Would AI actually need this?"

Evaluate each rule against these criteria:

Criteria❌ Remove⚠️ Improve✅ Keep
Would AI make this mistake?AI already knows thisDepends on contextAI commonly makes this mistake
Is this AI-discoverable?Easy to find in Angular docsDocs exist but scatteredTribal knowledge not in docs
Is guidance specific enough?Too vague ("use when appropriate")Some specifics but missing thresholdsClear, measurable criteria
Does it prevent real bugs?Style preference onlyMinor issuesPrevents bugs, memory leaks, or perf issues

Score: Count ✅ answers (0-4)

  • 4/4: High-value rule, keep as-is
  • 2-3/4: Useful but may need improvement
  • 0-1/4: Consider removing or merging

4. Format Check - "Does it meet standards?"

  • Max 50 lines total (ideal: 30-40)
  • 1-2 code blocks (incorrect + correct, or just correct)
  • Max 5-10 lines per code block
  • Single sentence description
  • Clear "When to Use" / "When NOT to Use" criteria

Tools You Should Use

  • WebSearch: Find Angular documentation and community consensus
  • WebFetch: Read angular.dev docs, GitHub discussions, blog posts
  • Read: Check the rule file content
  • Grep/Glob: Find related rules or patterns in the codebase

Output Format

Always produce a structured review:

## Rule Review: [rule-name.md]

### Usefulness Assessment

| Criteria | Rating | Notes |
|----------|--------|-------|
| Would AI make this mistake? | ✅/⚠️/❌ | [Explain if AI commonly makes this error] |
| Is this AI-discoverable? | ✅/⚠️/❌ | [Is this in Angular docs or tribal knowledge?] |
| Is guidance specific enough? | ✅/⚠️/❌ | [Are thresholds clear?] |
| Does it prevent real bugs? | ✅/⚠️/❌ | [Bugs, memory leaks, perf, or just style?] |

**Usefulness Score:** X/4

### Validity: ✅ VALID | ⚠️ QUESTIONABLE | ❌ INVALID
**Evidence:** [Links to Angular docs, blog posts, discussions]

### Accuracy: ✅ ACCURATE | ⚠️ OUTDATED | ❌ INCORRECT
**Angular Version:** Tested against Angular 17+
**Code Issues:** [Any syntax errors, deprecated APIs, or problems]

### Format: ✅ PASS | ⚠️ MINOR ISSUES | ❌ MAJOR ISSUES
**Lines:** X/50
**Code Blocks:** X (max 2)

### Verdict: ✅ KEEP | ⚠️ IMPROVE | ❌ REMOVE

**Recommendation:** [Specific changes needed or removal reason]

Review Commands

Single Rule Review

Review rules/typescript/ts-readonly.md

Performs full validity + accuracy + value + format check with research.

Batch Audit

Audit all rules in rules/core/

Reviews multiple rules, produces summary report with categorized issues.

Quick Validity Check

Is rules/angular/signal-computed.md a real best practice?

Fast check focusing on validity with evidence.

Rewrite Rule

Rewrite rules/core/pattern-facade.md to be more actionable

Improves rule based on review findings.

Important Guidelines

Code Blocks: Quality Over Quantity

  • Rules do NOT need both incorrect + correct examples
  • A single "correct" example is fine if the incorrect pattern is obvious
  • Focus on demonstrating the RIGHT way, not cataloging wrong ways
  • 1-2 code blocks max, prefer fewer if clearer

When to Use TEXT-ONLY Format

Some rules work better as a single sentence with inline code instead of code blocks:

Convert to TEXT-ONLY when:

  • The rule is a single syntax difference (e.g., import type vs import {type})
  • The pattern is a naming convention (e.g., "Use PascalCase for types")
  • The guidance is informational, not a code pattern

Examples of TEXT-ONLY rules:

  • ts-import-type.md → "Use import type {User} instead of import {type User}"
  • ts-return-types.md → "Add explicit return types like : User[] to exported functions"
  • ts-naming.md → "Use kebab-case for files (user.service.ts), PascalCase for classes (UserService)"

When Incorrect + Correct IS Needed

Use both incorrect and correct examples when:

  • The distinction is subtle but critical (e.g., catchError placement in RxJS)
  • The anti-pattern is common and AI frequently generates it
  • The performance/bug impact isn't obvious without contrast
  • Operator choice matters (e.g., mergeMap vs switchMap)

Categories that benefit from incorrect/correct:

  • RxJS patterns (subtle operator differences)
  • Memory leak prevention (subscription cleanup)
  • Performance optimizations (O(n) vs O(1))
  • SSR patterns (hydration mismatches)

Code Example Best Practices

Good examples:

  • 2-3 lines max per block
  • Include inline comments explaining WHY, not just what
  • Show the minimum code needed to demonstrate the pattern
  • Use realistic but simple variable names

Signs of bloat:

  • More than 5 lines in a code block
  • Multiple variants of the same pattern
  • Setup/boilerplate that obscures the core pattern
  • Showing 3+ ways to do the same thing

Example of good inline comment:

// Memoized; only runs when firstName or lastName changes
fullName = computed(() => `${this.firstName()} ${this.lastName()}`);

Rules to Flag for Removal

Remove rules where:

  • Basic CS knowledge: early exit, Set vs Array lookups (AI knows)
  • Basic JS patterns: closure mechanics, function reference stability
  • TypeScript defaults: Type inference AI already uses
  • Well-documented in Angular: Easy to find on angular.dev

Red flags for removal:

  • "AI already knows this" - common programming patterns
  • Single annotation differences (return types, readonly)
  • Patterns enforced by linters anyway

Decision Criteria Must Be Specific

Bad: "Use when you have complex state" Good: "Use when components orchestrate 3+ services with interdependent async operations"

Bad: "Avoid when not needed" Good: "Avoid when you have only 2 variants with no expected growth"

Verify Against Real Angular Docs

Before approving a rule:

  1. Search angular.dev for the topic
  2. Check if Angular has official guidance
  3. If Angular docs cover it well, the rule should add unique value
  4. If the rule contradicts Angular docs, flag it

Batch Audit Output

## Batch Audit Report: rules/core/

### Statistics
| Metric | Value |
|--------|-------|
| Total Rules | 97 |
| Total Sections | 19 |
| Avg Lines/Rule | 29.4 |
| Code Blocks | 187 |

### Usefulness Summary

| Category | Keep | Improve | Remove |
|----------|------|---------|--------|
| Signals (5) | 5 | 0 | 0 |
| TypeScript (14) | 8 | 4 | 2 |
| Optimization (18) | 10 | 5 | 3 |
| ... | ... | ... | ... |

### Rules to REMOVE (AI already knows)
| Rule | Reason |
|------|--------|
| `ts-return-types.md` | TypeScript infers this; AI knows |
| `opt-early-exit.md` | Basic programming; AI knows |

### Rules to IMPROVE (too vague or missing specifics)
| Rule | Issue | Fix |
|------|-------|-----|
| `pattern-facade.md` | No clear threshold | Add: "Use when 3+ services with shared state" |
| `arch-ddd-structure.md` | No project size guidance | Add: "For apps with 10+ features" |

### High-Value Rules (4/4 usefulness)
- signal-computed.md
- cd-onpush.md
- rxjs-unsubscribe.md
- ngrx-select-signal.md

### Priority Actions
1. Remove rules AI already knows
2. Add specific thresholds to vague rules
3. Update deprecated code examples

Three-Tier Rule Format

Rules should use the minimum format needed to communicate the practice:

Tier 1 - TEXT-ONLY (no code block)

Use when the rule is:

  • Single setting, API call, or syntax change
  • Self-evident once named (e.g., "Use X instead of Y" where X is one line)

Examples: OnPush, trackBy, input.required(), import type, readonly

Format:

## Use OnPush Change Detection

Set `changeDetection: ChangeDetectionStrategy.OnPush` so Angular only checks the component when inputs change or events fire.

Tier 2 - Single Code Block

Use when:

  • Pattern needs demonstration but anti-pattern is obvious
  • Description explains WHY, code shows HOW
  • Comment in code can show the benefit

Format:

## Use Computed for Derived State

Use `computed()` instead of getters for derived state. Computed signals are memoized and only recalculate when dependencies change.

\`\`\`typescript
// Memoized; only runs when firstName or lastName changes
fullName = computed(() => `${this.firstName()} ${this.lastName()}`);
\`\`\`

Tier 3 - Incorrect/Correct

Use ONLY when:

  • Anti-pattern looks correct at first glance
  • Mistake is subtle but critical (security, memory leaks, silent bugs)
  • Wrong approach works initially but causes problems later

Examples: catchError placement, XSS vulnerabilities, O(n) vs O(1) lookups, barrel import traps

Criteria Reference

See config/criteria.json for exact thresholds:

  • Max lines: 50 (ideal 40)
  • Max code blocks: 0-2 (Tier 1: 0, Tier 2: 1, Tier 3: 2)
  • Max lines per block: 5-10
  • Description: 1 sentence
  • Required: title, impact, tags in frontmatter

平台分布

Codex

31.4%
按下载量换算34

Claude

31.16%
按下载量换算33

Cursor

18.8%
按下载量换算20

Gemini CLI

9.19%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills