sync-permissions

sync-permissions is a skill for Claude Code from flonat/flonat-research. It costs 54 tokens per session (983 once invoked), scanned B, original, MIT.

A workflow for bringing the project's Claude and Codex permissions up to date with a shared global policy. It adds missing permissions while preserving project-specific settings.

In plain words
What is it for?
It helps update project-local AI permissions after policy changes, migrations, or setup work.
Why use it?
Existing projects may stop receiving newly added global permissions after their local settings file is created. This reconciles the two permission sets.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Codex; $skill-name invocation.

Good fit It helps update project-local AI permissions after policy changes, migrations, or setup work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flonat/flonat-research/sync-permissions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flonat/flonat-research --skill sync-permissions
Clone the repo
git clone --depth 1 https://github.com/flonat/flonat-research

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-permissions

README.md
[![agentmods](https://agentmods.dev/badge/skills/flonat/flonat-research/sync-permissions/github.svg)](https://agentmods.dev/skills/flonat/flonat-research/sync-permissions)
Your own site
<a href="https://agentmods.dev/skills/flonat/flonat-research/sync-permissions"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/sync-permissions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-permissions

Your own site · 80×15
<a href="https://agentmods.dev/skills/flonat/flonat-research/sync-permissions"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/sync-permissions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 18
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 33
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 43
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 105
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Rogue Agent · line 46
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00983
Opus 5 $0.00027 $0.00491
Sonnet 5 $0.00011 $0.00197
Haiku 4.5 $0.00005 $0.00098

Measured 8d ago against content hash 1634ba5614ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

sync-permissions scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- After adding new permissions to `~/.claude/settings.json`
skills/sync-permissions/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Update Rules Skill

Sync global permissions, skills, and agents into the current project without losing project-specific settings.

Purpose

The SessionStart hook only copies permissions when .claude/settings.local.json doesn't exist yet. After that, new global permissions never propagate to existing projects. This skill fills that gap — run it anytime to pull in new permissions additively.

When to Use

  • After adding new permissions to ~/.claude/settings.json
  • When starting work in a project that hasn't been updated in a while
  • After creating a new skill and wanting it available everywhere
  • When the user says "sync permissions", "update rules", "update my permissions"

What It Does

  1. Merge permissions — adds global permissions into project-local, keeping any project-specific ones
  2. Verify skills directory — ensures <skills-root>/ exists and has content
  3. Verify agents directory — ensures ~/.claude/agents/ exists and has content
  4. Report changes — shows exactly what was added

What It Does NOT Do

  • Never removes existing project permissions (additive only)
  • Never modifies ~/.claude/settings.json (reads it, never writes)
  • Never touches model, hooks, or other global settings keys

Workflow

Step 1: Read Both Permission Files

Read these two files:

  • Global: ~/.claude/settings.json → extract permissions.allow array
  • Local: .claude/settings.local.json → extract permissions.allow array

If the local file doesn't exist, create it with global permissions (same as the SessionStart hook).

Step 2: Compute the Union

Merge the two permission arrays:

  • Start with all existing local permissions (preserve everything)
  • Add any global permissions not already present in local
  • Sort the final array for readability

The merge logic:

new_permissions = local_permissions ∪ global_permissions
added = new_permissions - local_permissions

Step 3: Write the Merged Result

If there are new permissions to add:

  1. Read the full local settings file (preserve any non-permissions keys)
  2. Replace permissions.allow with the merged array
  3. Write back to .claude/settings.local.json

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 125 lines · 54 tokens per session scan B 1634ba5614ac

Subscribe to this mod's changes

sync-permissions is a skill published in the GitHub repository flonat/flonat-research (133 stars, last pushed 17d ago), licensed MIT. It adds 54 tokens to every session and 983 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

fin-paper-convert

Compile LaTeX to PDF and convert to target journal format.

csmar432/finai-research · 12 tokens

fin-paper-plan

Generate structured paper outline adapted to target journal.

csmar432/finai-research · 8 tokens

doc-audit

Evaluate one project document in detail — a workbook section, big picture, strategy map, handoff message, paper, brief, or primer — without editing it. Runs the mechanical lint, builds a claim ledger, types every headline against the eight claim statuses in CLAUDE.md, traces cited evidence to the scripts and logs that…

Mexregkan/claude-for-researchers · 140 tokens

latex-compile

Compile a LaTeX document and fix every error plus aesthetic issue (overfull/underfull boxes, widows, alignment, fonts) for a clean PDF and log. Use this instead of running pdflatex/latexmk manually — it avoids the latexmk stale-log trap and silent grep failures on binary log output, and it reformats rather than…

Mexregkan/claude-for-researchers · 79 tokens

claim-audit

Audit what a passing script actually established, before writing any prose about it — build the computed-object ledger, rewrite every check's label as the weakest statement that makes its body pass, and separate the verdict on someone else's work from your own new claim. Run after the script passes and BEFORE the…

Mexregkan/claude-for-researchers · 75 tokens

nb-to-wolfbook

Convert Mathematica .nb or .m files to Wolfbook .wb format so they open and run in VS Code. Use when bringing existing .nb/.m files into Wolfbook, or to make an existing .wb bridge-safe.

Mexregkan/claude-for-researchers · 53 tokens