Skip to content
Back to skills

Rules

ASecurity

Use when the user asks about lfg/GrokBuild rules injection, project rules files, matching, or environment configuration.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentsgit

Works with

  • cursor

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add islee23520/lfg --skill rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/islee23520-rules/badge)](https://www.skillsdirectory.com/skills/islee23520-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rules
description: Use when the user asks about lfg/GrokBuild rules injection, project rules files, matching, or environment configuration.
---

# GrokBuild Rules (lfg)

Rules injection is automatic once the lfg Grok plugin is enabled. It injects:

- static project instructions on `SessionStart` and `UserPromptSubmit` (native rules hook + config loader)
- matching file-specific rules after edit-like tools via PostToolUse (rules-injector glue)

Dynamic PostToolUse output is injected as additional context when the host attaches hook output. If hook context is not visible, read matching rule files from disk directly.

Supported project sources:

- `CONTEXT.md`
- `.omo/rules/**/*.md`
- `.claude/rules/**/*.md`
- `.cursor/rules/**/*.md`
- `.github/instructions/**/*.md`
- `.github/copilot-instructions.md`
- Root / nested `AGENTS.md` (fail-closed project awareness)

## Environment (lfg / Grok)

Prefer lfg/Grok-owned knobs when present. Codex-only `CODEX_RULES_*` names may appear in upstream OMO docs as historical reference; on GrokBuild do not require `CODEX_HOME` or Codex plugin layout.

## Cross-host note

Upstream may brand this as "Codex Rules". On GrokBuild the owner is **lfg native rules** (`lfg-native-rules.mjs` + `src/core/omo/rules-engine`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.