Token导航 LogoToken导航

Agent Skill · AI 工具

rules-capture(规则捕获)

rules-capture 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

rules-capture 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有未通过项,按安装量在AI 工具类的 2,536 个 Skill 里排第 682。

总安装 2,472周安装 103GitHub Stars 21下载 824核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/shipshitdev/library --skill rules-capture

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

rules-capture 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

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

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/shipshitdev/library --skill rules-capture;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

rules-capture 怎么安装?

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

rules-capture 支持哪些 AI 工具?

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

rules-capture 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/shipshitdev/library --skill rules-capture;npx skills add shipshitdev/library --skill "rules-capture" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

rules-capture 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

rules-capture 用的人多吗?

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

rules-capture 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

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

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
rules-capture

规则捕获 · 本页

2,47221执行命令MIT未通过

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

SKILL.md 原文

Rules Capture Skill

This skill automatically detects when users express preferences, rules, or coding standards during conversations and documents them for future sessions.


When This Skill Activates

Automatically activate when the user mentions ANY of these:

Direct Rule Expressions

  • "always do X" / "never do X"
  • "I prefer X" / "I don't like X"
  • "don't ever X" / "stop doing X"
  • "from now on X" / "going forward X"
  • "that's not how we do it" / "we do it this way"
  • "the rule is X" / "the standard is X"

Coding Style Expressions

  • "use X pattern" / "don't use X pattern"
  • "name things like X" / "format like X"
  • "import from X" / "don't import from X"
  • "the convention is X"
  • "follow the X pattern"

Frustration Indicators (Capture these especially!)

  • "why did you X" / "stop doing X"
  • "I told you before" / "I already said"
  • "that's wrong" / "that's not right"
  • "fix this" / "change this"
  • Any profanity + instruction (strong signal!)

Questions About Standards

  • "what's the rule for X" / "how should I X"
  • "is it X or Y" / "which way is correct"
  • "what's the coding style for X"

Capture Process

When a rule/preference is detected:

1. Acknowledge Detection

I noticed you expressed a preference/rule. Let me capture this.

2. Extract Rule Details

Parse the user's statement to identify:

  • Category: What area does this apply to? (coding, naming, imports, patterns, tools, communication)
  • Rule Type: ALWAYS, NEVER, PREFER, AVOID
  • Specific Action: What exactly should/shouldn't be done
  • Context: When does this apply
  • Example: Good vs bad example if mentioned

3. Document to Capture File

Append to .agents/SYSTEM/CAPTURED-RULES.md:

### [YYYY-MM-DD HH:MM] - [Category]: [Short Title]

**User said:**

> "[Exact quote from user]"

**Rule extracted:**

- **Type**: [ALWAYS | NEVER | PREFER | AVOID]
- **Action**: [What to do/not do]
- **Context**: [When this applies]
- **Category**: [coding | naming | imports | patterns | tools | communication | workflow]

**Example:**

// Good [good example]

// Bad [bad example]

Status: PENDING_REVIEW

### 4. Confirm with User

Captured this rule:

  • [Brief summary of the rule]

Should I add this to the permanent rules? [Yes/No/Modify]

### 5. On Confirmation
- Move to `USER-PREFERENCES.md` under appropriate section
- Or create new section in `RULES.md` if it's a coding standard
- Remove from `CAPTURED-RULES.md` (or mark as PROCESSED)

---

## Rule Categories

### Coding Rules
- Pattern preferences
- Import conventions
- Naming conventions
- File structure
- Component patterns

### Workflow Rules
- Build/test preferences
- Git workflow
- Documentation requirements
- Communication style

### Tool Rules
- CLI preferences
- IDE settings
- Terminal behavior
- Background processes

### Communication Rules
- Response style
- Verbosity preferences
- Explanation depth
- Acknowledgment patterns

---

## Storage Locations

| Rule Type | Storage Location |
|-----------|------------------|
| Personal preferences | `../.agents/SYSTEM/ai/USER-PREFERENCES.md` |
| Coding standards | `.agents/SYSTEM/RULES.md` |
| Critical rules | `../.agents/SYSTEM/critical/CRITICAL-NEVER-DO.md` |
| Pending review | `../.agents/SYSTEM/CAPTURED-RULES.md` |

---

## Auto-Capture File Format

File: `../.agents/SYSTEM/CAPTURED-RULES.md`

Captured Rules - Pending Review

Rules automatically captured from conversations. Review and promote to permanent docs.


Pending Rules

[Auto-captured rules appear here]


Processed Rules

[Rules that have been promoted to permanent docs]


---

## Integration with Other Skills

This skill works with:

- **docs**: For formatting captured rules properly
- **session-documenter**: Rules captured during session are included in session docs

---

## Cleanup Command

When user says "clean up rules" or "process captured rules":

1. Read `CAPTURED-RULES.md`
2. Present each pending rule for review
3. User can: Approve, Modify, Delete
4. Approved rules get promoted to permanent docs
5. File is cleaned up

---

## Example Interaction

**User**: "stop using console.log for debugging, use the logger service"

**Claude**:

I noticed a new rule. Let me capture it:

Rule: Use logger service instead of console.log for debugging Category: Coding Type: NEVER (console.log) / ALWAYS (logger service)

Added to captured rules. Should I promote this to permanent coding rules?


---

## Activation Triggers

The skill activates on these regex patterns:

Direct commands

(always|never|don't|stop|from now on|going forward)\s+.+ (prefer|like|want|need)\s+(you to|it to|this to)\s+.+ (the rule is|the standard is|the convention is)\s+.+

Frustration signals

(why (did|do) you|stop doing|I told you|I already said)\s+.+ (that's (wrong|not right|incorrect)|fix this|change this)\s+.+

Questions about standards

(what's the (rule|standard|convention) for|how should I|which way is)\s+.+


---

**When this skill is active**, you will automatically capture and document any rules, preferences, or standards the user expresses, ensuring nothing is forgotten between sessions.

平台分布

Claude Code

32.24%
按下载量换算266

Antigravity

22.49%
按下载量换算185

Gemini CLI

18.99%
按下载量换算156

Codex

13.18%
按下载量换算109

OpenCode

7.18%
按下载量换算59

Cursor

3.47%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/shipshitdev/library --skill rules-capture;npx skills add shipshitdev/library --skill "rules-capture" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills