centralization-risk

centralization-risk is a skill for Claude Code, Codex from PlamenTSV/plamen. It costs 35 tokens per session (1,876 once invoked), scanned A, original, MIT.

A security review method for software protocols with privileged roles such as administrators, operators, governors, or account owners. It examines who controls sensitive actions and whether that control is concentrated or can be escalated.

In plain words
What is it for?
Use it when reviewing access control in Aptos Move protocols, especially functions protected by signers, capabilities, resource accounts, or object ownership.
Why use it?
It helps reveal single points of failure, excessive control, privilege-escalation paths, and dependence on outside governance.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/plamentsv/plamen/centralization-risk
Any agent
npx skills add PlamenTSV/plamen --skill centralization-risk
Clone the repo
git clone --depth 1 https://github.com/PlamenTSV/plamen

Made for: Claude Code, Codex.

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 centralization-risk

README.md
[![agentmods](https://agentmods.dev/badge/skills/plamentsv/plamen/centralization-risk.svg)](https://agentmods.dev/skills/plamentsv/plamen/centralization-risk)
Your own site
<a href="https://agentmods.dev/skills/plamentsv/plamen/centralization-risk"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/centralization-risk.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.01876
Opus 5 $0.00017 $0.00938
Sonnet 5 $0.00007 $0.00375
Haiku 4.5 $0.00003 $0.00188

Measured 5d ago against content hash 83448ff86e83, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

centralization-risk scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/skills/aptos/centralization-risk/SKILL.md · 158 lines

How it starts

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

Skill: CENTRALIZATION_RISK

Trigger: Protocol has privileged roles (admin, operator, governance, resource account owner) Covers: Single points of failure, privilege escalation, external governance dependencies Required: NO (optional -- recommended when protocol has 3+ distinct privileged roles) Inject Into: Breadth agents

Trigger Patterns

admin|owner|operator|governance|signer_cap|SignerCapability|resource_account|
has_role|is_admin|only_admin|assert_admin|get_signer

Aptos Capability Model Context

Aptos Move uses a capability-based access control model fundamentally different from EVM modifiers:

  • Signer-based: Functions receive &signer and check signer::address_of(account) == @admin
  • Capability pattern: SignerCapability stored in resources grants signing rights to resource accounts
  • No modifiers: Access control is enforced via assert! checks inside function bodies
  • Resource accounts: Accounts controlled by SignerCapability rather than a private key
  • Object ownership: Object<T> has an owner chain; ownership transfers control access

Reasoning Template

Step 1: Privilege Inventory

Enumerate ALL capability-gated functions by searching for signer checks and capability usage:

# Function Module Access Gate What It Controls Impact If Abused
1 {func} {module} assert!(addr == @admin) {parameter/state} {worst case}
2 {func} {module} SignerCapability stored in {resource} {operation} {worst case}
3 {func} {module} Object<T> ownership check {asset control} {worst case}

MANDATORY GREP: Search all .move files for:

  • signer::address_of followed by equality checks
  • SignerCapability usage (creation, storage, account::create_signer_with_capability)
  • object::is_owner and ownership assertions
  • Named address references (@admin, @operator, @governance, @protocol)

Read the full file on GitHub · 158 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. 5d ago First seen · 158 lines · 35 tokens per session scan A 83448ff86e83

Subscribe to this mod's changes

centralization-risk is a skill published in the GitHub repository PlamenTSV/plamen (281 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 1,876 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

prowler-ui

Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).

prowler-cloud/prowler · 64 tokens

prowler-pr

Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…

prowler-cloud/prowler · 84 tokens

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

tailwind-4

Tailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables are involved (no var() in className).

prowler-cloud/prowler · 47 tokens

prowler

Main entry point for Prowler development - quick reference for all components. Trigger: General Prowler development questions, project overview, component navigation (NOT PR CI gates or GitHub Actions workflows).

prowler-cloud/prowler · 43 tokens

prowler-tour

Keeps product-tour definitions aligned with the UI features they describe. Trigger: When modifying UI components that have associated tours, editing tour definition files, or renaming data-tour-id attributes.

prowler-cloud/prowler · 41 tokens