agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/quarkus-security/SKILL.md

quarkus-security

Skill0 starsChanged 12 days agoMITView on GitHub

Apply and review backend security in Quarkus: Argon2id, Redis sessions, closed-by-default RBAC with @RolesAllowed, query-level auth, and upload validation.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use motion-advanced, prediction-market-oracle-research and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • renepfSkill

    motion-advanced

    Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree. Requires motion-foundations.

    Also in 6 projects that use this

  • renepfSkill

    prediction-market-oracle-research

    Research prediction markets as data sources or oracle signals for products, agents, dashboards, and corporate decision intelligence. Use for source-grounded analysis of market-implied probabilities, caveats, and integration patterns without investment advice.

    Also in 4 projects that use this

  • arsalllsSkill

    network-config-validation

    Pre-deployment validation of Cisco IOS/IOS-XE configuration — catching missing saves, mismatched ACLs, overlapping subnets, duplicate IPs, missing route-maps, and dangerous commands before they cause outages.

    Also in 5 projects that use this

  • TironFoxSkill

    agent-payment-x402

    Add x402 payment execution to AI agents — per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents need to pay for APIs, services, or other agents.

    Also in 5 projects that use this

  • marcusgollSkill

    parallel-execution-optimizer

    Identify and execute independent operations in parallel for 3-5x speedup. Auto-analyzes task dependencies, groups into batches, launches parallel Task() calls. Applies to /optimize (5 checks), /ship pre-flight (5 checks), /implement (task batching), /prototype (N screens). Auto-triggers when detecting multiple independent operations in a phase.

    Also in 5 projects that use this

  • TironFoxSkill

    openclaw-persona-forge

    为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调已有 SOUL.md、非 OpenClaw 平台的角色设计、纯工具型无性格 Agent。 触发词:龙虾灵魂、虾魂、OpenClaw 灵魂、养虾灵魂、龙虾角色、龙虾定位、 龙虾剧本杀角色、龙虾游戏角色、龙虾 NPC、龙虾性格、龙虾背景故事、 lobster soul、lobster character、抽卡、随机龙虾、龙虾 SOUL、gacha。

    Also in 4 projects that use this

  • +4 more from renepf

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every HTTP method requires an explicit role annotation:

    line 30

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Quarkus Security

Overview

Full rules: .agents/standards/java/security.md. This is how to apply them.

This system holds customer records, contract values, and award decisions. A leak here is not a technical incident — it is a legal and data-integrity problem.

When to use

  • Touching login, sessions, or passwords
  • Adding an endpoint (every endpoint needs a role decision)
  • Accepting user input or files
  • Building a dynamic ORDER BY or filter
  • Reviewing a PR that touches auth or sensitive data

Process

Every HTTP method requires an explicit role annotation:

@GET @RolesAllowed({"ADMIN", "COMMITTEE"})     // right — restricted
@GET @PermitAll                                 // right — public, deliberately
@GET                                            // wrong — an omission; review and tests reject it

Protect it with an architecture test rather than relying on a reviewer's memory:

@Test
void everyEndpointDeclaresARole() {
    // reflect over all *Resource classes: every method annotated
    // @GET/@POST/@PUT/@DELETE must carry @RolesAllowed or @PermitAll
}

With many endpoints, one omission will slip past a quick manual review sooner or later.

Red flags

  • An endpoint without @RolesAllowed or a deliberate @PermitAll
  • Filtering rows in memory after listAll()
  • Dynamic ORDER BY from unallowlisted input
  • Uploads trusted by Content-Type or original filename
  • Returning an entity (hashes and internals leak)

Verification

For every PR touching auth, user input, or files:

  • Every endpoint has @RolesAllowed or a deliberate @PermitAll
  • Data-level authorisation is in the query, not a post-load filter
  • No string concatenation into SQL/JPQL
  • Dynamic sort/filter uses an allowlist
  • Uploads: magic bytes, size limit, regenerated filename
  • No entity returned as a response
  • No new secrets
  • Errors expose no internal detail
  • Passwords/tokens/confidential fields are not logged
  • A test proves the wrong role is rejected

References

  • references/authorisation.md - data-level authorisation and the domain rules that need their own tests
  • references/credentials-and-input.md - passwords, sessions, login, dynamic sort/filter, upload
  • references/output-cors-secrets.md - response shaping, CORS, secret handling

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.