Skip to content
Back to skills

Setup Rules Ex

ASecurity

Scaffold the rules-ex extended-rules infrastructure (.claude/rules/rules-ex-authoring.md and .claude/rules-ex/README.md) required by the workhub plugin's inject-extended-rules hook.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
developmentgo

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add atman-33/workhub --skill setup-rules-ex --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup Rules Ex?

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

Security grade badge for Setup Rules Ex
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/atman-33-setup-rules-ex/badge)](https://www.skillsdirectory.com/skills/atman-33-setup-rules-ex)

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: setup-rules-ex
description: Scaffold the rules-ex extended-rules infrastructure (.claude/rules/rules-ex-authoring.md and .claude/rules-ex/README.md) required by the workhub plugin's inject-extended-rules hook.
disable-model-invocation: true
allowed-tools: Read Write
---

Scaffold the two files that enable the `rules-ex` extended-rules system for this
project. Both files are templates — they will not be overwritten if they already
exist. The canonical template content lives in this skill's `assets/templates/`
folder (also used by the `setup-all` skill's Phase 4 — treat it as the single
source of truth and edit it there, not inline in either SKILL.md).

**What gets created:**

- `.claude/rules/rules-ex-authoring.md` — a native path-scoped rule that
  auto-injects an authoring guide whenever you Read/Edit a file under
  `.claude/rules-ex/`. Required so the guide fires for the *current* repo
  (native `.claude/rules` files only govern the repo they live in).
- `.claude/rules-ex/README.md` — explains what the `rules-ex` folder is and how
  to author rules in it. Has no `paths:` front matter intentionally, so the hook
  ignores it.

---

## Steps

1. Read `.claude/rules/rules-ex-authoring.md`.
   - If it already exists, display its path and current contents, then note it
     was left unchanged.
   - If it does not exist, read `assets/templates/rules-ex-authoring.md` (in this
     skill's folder) and write its exact contents to `.claude/rules/rules-ex-authoring.md`.

2. Read `.claude/rules-ex/README.md`.
   - If it already exists, display its path and current contents, then note it
     was left unchanged.
   - If it does not exist, read `assets/templates/rules-ex-readme.md` (in this
     skill's folder) and write its exact contents to `.claude/rules-ex/README.md`.

---

## Output Format

Print a summary table after completing both steps:

| File | Status |
|------|--------|
| `.claude/rules/rules-ex-authoring.md` | created / already existed |
| `.claude/rules-ex/README.md` | created / already existed |

Then remind the user:
- Add your own cross-cutting rules as `*.md` files under `.claude/rules-ex/`.
  Each file must have a `paths:` front matter (workspace-relative globs) — see
  the authoring guide that auto-injects when you edit files there.
- The `inject-extended-rules` hook fires on Read/Edit/Write; rules take effect
  immediately in the current session without a restart.

Files in this skill

  • SKILL.md2.4 KB
  • assets/templates/rules-ex-authoring.md2 KB
  • assets/templates/rules-ex-readme.md2 KB

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.

Comments

Loading comments…

Newsletter

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