Skip to content
Back to skills

Personal Rule

ASecurity

Add, change, remove or list a personal rule that applies only to the current GitHub repo or to all repos of its owner, and syncs between the user's own PCs (never to group members). Use when the user states a rule for one project or one owner that is about them personally (how to behave in that repo), not a group-wide rule.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentgonodegit

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add MehdiMamas/agent-sync --skill personal-rule --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Personal Rule?

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

Security grade badge for Personal Rule
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mehdimamas-personal-rule-agent-sync/badge)](https://www.skillsdirectory.com/skills/mehdimamas-personal-rule-agent-sync)

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: personal-rule
description: Add, change, remove or list a personal rule that applies only to the current GitHub repo or to all repos of its owner, and syncs between the user's own PCs (never to group members). Use when the user states a rule for one project or one owner that is about them personally (how to behave in that repo), not a group-wide rule.
argument-hint: "add|change|remove|list [--owner] ..."
---

# personal-rule

Personal, project-scoped rules. The personal-rules mod loads them at session start. The personal dir `~/.claude/personal-state` is a git clone of the user's private repo `<login>/agent-sync-personal`, rules in its `personal-rules/` folder (or, until that exists, of the old `<login>/claude-personal-rules`). It is pulled at session start and each add/change/remove commits and pushes itself; a failed push is only a warning. Never use `<login>/claude-sync-personal` or write under `~/.claude-sync/`: that belongs to the claude-sync app.

First time on a machine: `node "${CLAUDE_SKILL_DIR}/../../bin/sync.mjs" setup` (creates the repo when missing, clones it, merges an existing folder without overwriting, copies old mod content from `~/.claude-sync/personal` read-only). Also: `sync.mjs pull`, `sync.mjs push "<msg>"`, `sync.mjs status`.

Scope: this repo (default) or every repo of its owner (`--owner`). Group-wide rules go to the `group-memory` skill, not here. No secrets, tokens or emails in a rule.

Run from the project folder (or pass `--cwd DIR`):

- `node "${CLAUDE_SKILL_DIR}/../../bin/rule.mjs" add "<one rule>"` or `add --owner "<one rule>"`
- `node "${CLAUDE_SKILL_DIR}/../../bin/rule.mjs" list [--owner]`
- `node "${CLAUDE_SKILL_DIR}/../../bin/rule.mjs" change <number|text> "<new rule>" [--owner]`
- `node "${CLAUDE_SKILL_DIR}/../../bin/rule.mjs" remove <number|text> [--owner]`
- `node "${CLAUDE_SKILL_DIR}/../../bin/rule.mjs" show` prints what the next session would load.

One bullet per rule, one short sentence. The script creates `projects/<repoId>-<owner>__<name>/rules.md` or `owners/<ownerId>-<login>.md` under the personal dir (`CLAUDE_SYNC_PERSONAL_DIR`, default `~/.claude/personal-state`) and looks up the GitHub ids with `gh`. It warns and starts a `.partN.md` file near 200 KiB (keep files under 256 KiB) and refuses past 16 MiB in total. Tell the user in one line what was saved.

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 development →

Comments

Loading comments…

Newsletter

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