Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Alenryuichi/openmemory-plus --skill rule-creatorgit clone --depth 1 https://github.com/Alenryuichi/openmemory-plusWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/alenryuichi/openmemory-plus/rule-creator)<a href="https://agentmods.dev/skills/alenryuichi/openmemory-plus/rule-creator"><img src="https://agentmods.dev/badge/skills/alenryuichi/openmemory-plus/rule-creator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/alenryuichi/openmemory-plus/rule-creator"><img src="https://agentmods.dev/badge/skills/alenryuichi/openmemory-plus/rule-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.01321 |
| Opus 5.5 | $0.00038 | $0.00528 |
| Sonnet 5.5 | $0.00019 | $0.00264 |
| Haiku 4.5 | $0.00010 | $0.00132 |
Grade A, and why
rule-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rule Creator
为不同 IDE 工具创建有效的 AI 代理规则。
规则文件格式
| 工具 | 文件位置 | 格式 |
|---|---|---|
| Claude Code | CLAUDE.md |
Markdown |
| Cursor | .cursorrules 或 .cursor/rules/*.md |
Markdown + YAML frontmatter |
| Cline | .clinerules/*.md |
Markdown + YAML frontmatter |
| Windsurf | .windsurfrules |
Markdown |
| Augment | .augment/skills/*/SKILL.md |
用于复杂工作流,简单规则用 CLAUDE.md |
| 通用 | AGENTS.md |
纯 Markdown (跨工具兼容) |
规则类型 (Cursor/Cline)
始终应用:
---
alwaysApply: true
---
# 规则内容...
按文件匹配:
---
globs: ["src/components/**", "**/*.tsx"]
---
# 规则内容...
由 Agent 决定:
---
description: "React 组件开发指南"
---
# 规则内容...
写作原则
具体明确
❌ "写好异步代码" ✅ "所有数据库调用使用 async/await,禁止回调"
展示模式
❌ "遵循错误处理规范"
✅ "参考 src/utils/errors.ts 的错误处理模式"
关注结果
❌ "第一步打开文件,第二步..." ✅ "确保所有 API 响应包含 error code 和 message"
尽量量化
❌ "函数不要太长" ✅ "单个函数不超过 50 行"
规则模板
# [规则名称]
## 代码规范
- [具体规范 1]
- [具体规范 2]
## 架构约束
- [约束 1]
- [约束 2]
## 禁止事项
- [禁止 1]
- [禁止 2]
## 参考文件
- `path/to/example.ts` - [说明]
适合写成规则的内容
✅ 适合写成规则:
- 代码规范 (命名、格式、风格)
- 架构决策 (设计模式、依赖规则)
- 团队约定 (PR 流程、分支命名、commit 格式)
- 技术约束 (必须使用的库、禁用的 API)
- 安全要求 (敏感信息处理、权限检查)
❌ 不适合写成规则:
- 一次性指令 (直接在对话中说)
- 复杂多步骤工作流 (用 Skill 或 Workflow)
- 依赖运行时上下文的动态决策
工作流程
- 确认目标: 询问规则要解决什么问题
- 识别 IDE: 检查项目中已有的规则文件 (
.cursorrules,.windsurfrules,CLAUDE.md等) - 选择格式:
- 单一 IDE → 使用对应格式
- 多 IDE 环境 → 优先
AGENTS.md(通用兼容) - 复杂工作流 → 建议使用 Skill 而非 Rule
- 起草规则: 使用模板,保持简洁具体
- 验证规则:
- 规则是否可被检查遵守?
- 是否有正确/错误示例?
- 是否与现有规则冲突?
- 放置文件: 保存到正确位置,遵循命名约定
示例: Backend API 规则 (带 frontmatter)
---
globs: ["src/routes/**", "src/controllers/**"]
---
# Backend API 规范
## 路由处理
- 使用 async/await,禁止回调
- 请求体使用 Zod schema 验证
- 错误返回使用 `src/errors.ts` 中的类型
## 数据库访问
- 所有查询通过 `src/repositories/` 中的类
- 多表更新使用事务
- 禁止向客户端暴露原始数据库错误
## 测试要求
- 业务逻辑: `src/services/` 单元测试
- 路由处理: `src/routes/` 集成测试
- Mock 外部 API,不 mock 内部模块
条件规则 (Cursor/Cline)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 175 lines · 96 tokens per session scan A 84f1852a368a
rule-creator is a skill published in the GitHub repository Alenryuichi/openmemory-plus (20 stars, last pushed 9mo ago), licensed MIT. It adds 96 tokens to every session and 1,321 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
rule-creator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rule-creatorAlenryuichi/openmemory-plus | Skill | 20 | 9mo ago | MIT | A | 96 | Claude Code, Codex |
| gsap-scrolltriggercalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 68 | Claude Code, Codex |
| threejs-interactioncalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 44 | Claude Code, Codex |
| gsap-corecalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 128 | Claude Code, Codex |
| playwright-recordingcalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 53 | Claude Code, Codex |
| seedance-2-5calesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 117 | Claude Code, Codex |
| threejs-fundamentalscalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 51 | Claude Code, Codex |