Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

rule-updater规则更新器

Agent Skill

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

总安装

285

周安装

12

GitHub Stars

7,922

下载量

397
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/basedhardware/omi --skill rule-updater

简介

rule-updater 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Rule Updater Skill

This skill enables programmatic reading, updating, and creation of Cursor rules based on patterns extracted from PRs, issues, and user interactions.

When to Use

Use this skill when:

  • Updating existing rules with new examples or patterns
  • Creating new rules for emerging patterns
  • Identifying when rules need updating
  • Testing rule effectiveness
  • Organizing and maintaining rules

Key Capabilities

1. Read Existing Rules

Read and parse rule files:

  • Read .cursor/rules/*.mdc files
  • Parse frontmatter (description, alwaysApply, references)
  • Extract content sections
  • Understand rule structure

Example:

# Read a rule file
rule_content = read_file(".cursor/rules/common-mistakes.mdc")
# Parse frontmatter
# Extract sections
# Understand structure

2. Identify When Rules Need Updating

Detect update opportunities:

  • New patterns that fit existing rules
  • Examples that should be added
  • Clarifications needed
  • Outdated information

Signals:

  • Multiple PRs/issues showing same pattern
  • User corrections revealing gaps
  • Review feedback indicating missing guidance
  • Emerging patterns not covered

3. Update Existing Rules

Process for updating:

  1. Read the rule file
  2. Identify where to add new content
  3. Add examples or sections
  4. Maintain organization
  5. Update references if needed
  6. Write updated rule

Update types:

  • Add examples: Add new examples to existing sections
  • Enhance sections: Expand existing sections with more detail
  • Add sections: Add new sections for new patterns
  • Update references: Add links to related rules/PRs/issues

Example update:

### Using Deprecated Functions

**Problem**: Using functions that have been deprecated or removed.

**Examples from PR #3567**:
- ❌ Used `postprocess_conversation()` which was deprecated
- ❌ Assumed functions exist without checking current codebase state

**NEW EXAMPLE from PR #3621**:
- ❌ Used `old_function()` which was removed in PR #3400

4. Create New Rules

Process for creating:

  1. Identify the pattern category
  2. Collect 2-3 examples from PRs/issues/interactions
  3. Determine rule file name and location
  4. Write rule following format
  5. Add frontmatter with appropriate metadata
  6. Link from related rules

Rule structure:

---
description: "Brief description"
alwaysApply: true/false
references:
  - related-file.md
---

# Rule Title

## Section 1
Content...

## Section 2
Content...

## Related Rules
- Link to related rules

Example new rule:

---
description: "Guidelines for handling background operations"
alwaysApply: true
---

# Background Operations

Features should work when app is closed/backgrounded.

## Common Mistakes
- Features that only work when app is open (#4355)
- Features that require specific screen to be active

## How to Avoid
- Design features to work in background
- Test with app closed/backgrounded
- Use background services where appropriate

5. Test Rule Effectiveness

Verify updates don't break guidance:

  • Check rule syntax is valid
  • Verify frontmatter is correct
  • Ensure links work
  • Test rule readability

Metrics to track:

  • How often rule prevents mistakes
  • Reduction in related issues after rule creation
  • Rule coverage (scenarios covered)
  • User feedback on rule usefulness

Rule File Format

Frontmatter

---
description: "Brief description of what the rule covers"
alwaysApply: true  # or false
references:
  - related-file.md
  - docs/doc/example.mdx
globs:
  - "backend/**/*.py"  # Optional: file patterns
---

Content Structure

# Rule Title

Brief introduction explaining the rule.

## Section 1
Content with examples, code snippets, etc.

## Section 2
More content...

## Related Rules
- `.cursor/rules/related-rule.mdc` - Description

## Related Cursor Resources
### Skills
- `.cursor/skills/related-skill/SKILL.md` - Description

### Commands
- `/related-command` - Description

Update Patterns

Adding Examples

When: New examples of existing patterns emerge

How:

  1. Find relevant section
  2. Add example with source (PR/issue number)
  3. Maintain formatting consistency
  4. Keep examples organized

Example:

### Common Mistake

**Example from PR #3567**:
- ❌ Description of mistake

**Example from Issue #4394**:
- ❌ Description of mistake

Enhancing Sections

When: Section needs more detail or clarification

How:

  1. Expand existing content
  2. Add more specific guidance
  3. Include more examples
  4. Add "How to avoid" subsections

Adding Sections

When: New pattern category emerges

How:

  1. Add new section with appropriate heading
  2. Follow existing section format
  3. Include examples
  4. Add to table of contents if applicable

Rule Organization

Rule Categories

Common categories:

  • Common mistakes
  • Architecture patterns
  • Implementation checklists
  • Verification guidelines
  • Communication best practices
  • Domain-specific patterns (Omi, backend, Flutter, etc.)

Naming Conventions

Rule file names:

  • Use kebab-case: common-mistakes.mdc
  • Be descriptive: pre-implementation-checklist.mdc
  • Group related: backend-architecture.mdc, backend-api-patterns.mdc

Linking Rules

Cross-references:

  • Link related rules in "Related Rules" section
  • Reference from other rules when relevant
  • Keep links updated when rules are renamed

Best Practices

  1. Be specific: Include concrete examples, not vague patterns
  2. Reference sources: Always note which PR/issue/interaction the lesson came from
  3. Maintain organization: Keep rules well-organized and easy to navigate
  4. Test updates: Verify rule updates don't break existing guidance
  5. Prioritize: Focus on patterns that cause the most problems
  6. Iterate: Rules should improve over time as more data is collected

Example Workflow

Updating a rule with new pattern:

  1. Identify pattern: "Multiple PRs show missing context issue"
  2. Read rule: Read .cursor/rules/context-communication.mdc
  3. Find section: Find "PR Description Requirements" section
  4. Add example: Add example from recent PR
  5. Enhance guidance: Expand "What to Include" subsection
  6. Update references: Add link to new PR if relevant
  7. Write rule: Save updated rule file
  8. Verify: Check syntax and links

Creating new rule:

  1. Identify pattern: "New pattern: Background operation issues"
  2. Collect examples: Gather 2-3 examples from issues/PRs
  3. Determine name: background-operations.mdc
  4. Write rule: Create rule following format
  5. Add frontmatter: Include description, alwaysApply, references
  6. Link from related: Add link from common-mistakes.mdc
  7. Test: Verify rule is valid and readable

Related Cursor Resources

Rules

  • .cursor/rules/common-mistakes.mdc - Common mistakes rule
  • .cursor/rules/context-communication.mdc - Communication rule
  • .cursor/rules/pre-implementation-checklist.mdc - Checklist rule

Skills

  • .cursor/skills/self-improvement/SKILL.md - Self-improvement meta-skill

Commands

  • /learn-from-pr - Analyze PR for lessons
  • /self-improve - Analyze patterns and update rules

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.01%
按下载量换算139

Claude

28%
按下载量换算111

Cursor

18.15%
按下载量换算72

Gemini CLI

8.92%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills