apply-rules
Apply Rules
Applies organization-wide rules (produced by merge-rules) to the current project. Detects the project's tech stack, selects relevant rules, merges them with existing extract-rules output, cleans up promoted patterns from .local.md files, and ensures the final structure conforms to the extract-rules/merge-rules convention.
Usage
/apply-rules <source> # Apply from GitHub URL or local path
/apply-rules # Apply using config file
/apply-rules --config <path> # Apply using specified config file
/apply-rules --dry-run # Show what would change without writing
/apply-rules --dry-run <source> # Dry run with specified source
<source> points directly to the rules directory (merge-rules or extract-rules output):
- GitHub:
https://github.com/org/repo/tree/main/.claude/rules - Local:
~/org-rules/.claude/rules
Configuration
More from hiroro-work/claude-plugins
security-scanner
Scan installed plugins and skills for security risks including malicious code AND malicious natural language instructions. Use /security-scanner to audit before installation.
60ask-codex
Asks Codex CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
40ask-claude
Asks Claude CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
25extract-rules
Extract project-specific coding rules and domain knowledge from existing codebase, generating markdown documentation for AI agents. Use when onboarding a new project, after code review discussions about coding style, or when coding conventions need documenting. Also consider running after sessions where coding preferences were discussed or corrected (--from-conversation), or after PRs with significant review feedback (--from-pr).
22ask-gemini
Asks Gemini CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
21ask-copilot
Asks Copilot CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
20