From oh-my-agent
Detects triggers from task context and changed files, activates relevant OMA rule packages like tests-required and security-review, explains rules and behaviors, outputs detection table, enforcements, suggestions, and persists state.
How this command is triggered — by the user, by Claude, or both
Slash command
/oh-my-agent:rulesThe summary Claude sees in its command listing — used to decide when to auto-load this command
运行 oma `rules` 注入器。 输入: $ARGUMENTS 协议: 1. 从请求文本和更改文件上下文中检测任务触发器。 2. 仅激活相关的规则包。 3. 解释每个活动规则和预期行为。 4. 当文件系统工具可用时持久化活动规则(`.oma/state/rules.md`)。 规则包矩阵: - `tests-required`:当行为代码更改时激活。 - `migration-safety`:当出现模式、合约或配置迁移时激活。 - `security-review`:当出现认证、令牌、秘密或权限表面时激活。 - `docs-sync`:当面向用户的行为或命令更改时激活。 - `perf-watch`:当触及热路径、循环或批处理作业时激活。 输出格式: ## 触发器检测 | 触发器 | 已匹配 | 证据 | | --- | --- | --- | ## 活动规则 1. ... 2. ... ## 强制执行行为 - ... ## 建议的下一个命令 - ...
运行 oma rules 注入器。
输入: $ARGUMENTS
协议:
.oma/state/rules.md)。规则包矩阵:
tests-required:当行为代码更改时激活。migration-safety:当出现模式、合约或配置迁移时激活。security-review:当出现认证、令牌、秘密或权限表面时激活。docs-sync:当面向用户的行为或命令更改时激活。perf-watch:当触及热路径、循环或批处理作业时激活。输出格式:
| 触发器 | 已匹配 | 证据 |
|---|
npx claudepluginhub sswym/oh-my-agent --plugin oh-my-agent/audit-rulesAudits .claude/rules/ files across enforceability, token efficiency, conflict detection, and correctness risk dimensions. Supports --full and --mini depth flags.
/hookifyCreates custom behavioral rules from instructions to block or warn on unwanted actions like dangerous bash commands, debug code in files, or missing tests, saving regex-based rules to .claude/ files. Also analyzes conversation history for rule suggestions.
/load-rulesAnalyzes current task context to discover and selectively load relevant coding rules from rules/ directory, states loaded rules, and proceeds following them.
/forceInteractively selects CLAUDE.md rule files, collects rules, summarizes changes, and applies them to the project or specified path after confirmation.
/rulesLoads and executes Hypo-Workflow skill instructions for rule management, enforcing strict question-asking discipline and DeepSeek tool calling rules.
/rulesManage project-specific custom upgrade rules for Ruby/Rails: gem pins/swaps, source substitutions (Rails LTS, Sidekiq Pro), verification gates (Brakeman, Reek), policy overrides. Supports init, validate, list, add/remove/toggle/show/explain subcommands.