Lexxes-Projects

Obey — Security skill for Claude Code

Security community intermediate

Rule enforcement plugin.

How to install Obey

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Lexxes-Projects/obey and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Obey does

You tell Claude "never push to main." Claude agrees. Five minutes later, Claude pushes to main.

Alternatives in Security

  • List All Global Skills Sorted By Provider Location — asm list --scope global --sort location asm search "code review" --json asm inspect my-skill asm audit --yes a 185 ★
  • Airsec — Find Security Issues in your code by using coding CLIs like Claude, Codex & CommandCode 162 ★
  • Sail Skill — SAIL V2 (Secure AI Lifecycle) as an agent skill — the full 91-risk catalog for AI/agent gap assessments, secur 122 ★

README

obey

Makes Claude actually follow your rules.


The problem

You tell Claude "never push to main." Claude agrees. Five minutes later, Claude pushes to main.

The memory system is passive — Claude writes rules down but doesn't actively check them. Hooks exist but require manual regex setup. There's no way to say "remember this" and have it actually stick.

The solution

**obey** is a Claude Code plugin that stores your rules, injects them into every session, and actively blocks violations.

/remember never push to main
# → Rule saved (global, hook-enforced)
# → Claude is now blocked from running "git push origin main"

/remember always explain your reasoning before writing code
# → Rule saved (global, instruction)
# → Injected at the start of every session as a reminder

/remember never use .unwrap() --rust
# → Rule saved (Rust projects only, blocks .unwrap() in code)

That's it. Rules persist across sessions, survive context compaction, and get actively enforced.

How it works

You say: "/remember never force push"
                │
    obey evaluates the rule:
    ├── Scope: global (applies everywhere)
    ├── Mechanism: hook (can be blocked by code)
    ├── Pattern: git push --force
    └── Saved to ~/.config/obey/global-rules.json
                │
    Next session starts:
    ├── SessionStart hook fires
    ├── All rules injected into Claude's context
    └── Claude sees: "RULE: Never force push"
                │
    Claude tries: git push --force
    ├── PreToolUse hook fires
    ├── Pattern matches → BLOCKED
    ├── Claude sees: "Rule violated: Never force push"
    └── Claude adjusts behavior

Install

From marketplace

/plugin marketplace add https://github.com/Lexxes-Projects/lexxes-plugins.git
/plugin install obey@lexxes-plugins

Local development

claude --plugin-dir /path/to/obey

...