{"id":"38a9de56-01e5-437f-ab05-b14e7193c9d4","shortId":"AkdPWH","kind":"skill","title":"504-frameworks-micronaut-security","tagline":"Use when you need to design, review, or improve security in Micronaut applications — including micronaut-security authentication, @Secured and intercept-url-map rules, JWT/session strategies, SecurityService checks, CORS, CSRF awareness for browser apps, rejection handlers, and s","description":"# Micronaut Security Guidelines\n\nApply Micronaut security best practices with secure-by-default API boundaries.\n\n**What is covered in this Skill?**\n\n- Micronaut security configuration and authentication setup\n- Authorization with @Secured and role-based policies\n- Endpoint and route protection strategy\n- Least-privilege design and policy boundaries\n- Secure error/denial behavior\n- Sensitive data handling in logs and responses\n\n**Scope:** Apply recommendations based on the reference rules and good/bad examples.\n\n## Constraints\n\nBefore applying security changes, ensure the project compiles. After improvements, run full verification.\n\n- **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change\n- **SAFETY**: If compilation fails, stop immediately\n- **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements\n- **BEFORE APPLYING**: Read the reference for detailed rules and examples\n\n## When to use this skill\n\n- Add Micronaut security support\n- Review Micronaut security configuration\n- Improve API authorization in Micronaut\n- Add JWT security in Micronaut\n- Harden Micronaut route authorization rules\n- Implement @Secured policies in Micronaut controllers\n\n## Workflow\n\n1. **Read reference and assess project context**\n\nRead `references/504-frameworks-micronaut-security.md` and inspect the current project setup before proposing changes.\n\n2. **Gather scope and decide target improvements**\n\nIdentify requested outcomes, constraints, and the minimum safe set of changes to apply.\n\n3. **Apply framework-aligned changes**\n\nImplement or refactor security-related configuration/code following the reference patterns and project conventions.\n\n4. **Run verification and report results**\n\nExecute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions.\n\n## Reference\n\nFor detailed guidance, examples, and constraints, see [references/504-frameworks-micronaut-security.md](references/504-frameworks-micronaut-security.md).","tags":["504","frameworks","micronaut","security","cursor","rules","java","jabrena","agent-skills","ai-skills","claude","claude-code"],"capabilities":["skill","source-jabrena","skill-504-frameworks-micronaut-security","topic-agent-skills","topic-ai-skills","topic-claude","topic-claude-code","topic-claude-code-skills","topic-claude-code-subagents","topic-claude-skills","topic-cursor-agent","topic-cursor-ai","topic-cursor-skills","topic-cursorai","topic-github-copilot"],"categories":["cursor-rules-java"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/jabrena/cursor-rules-java/504-frameworks-micronaut-security","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add jabrena/cursor-rules-java","source_repo":"https://github.com/jabrena/cursor-rules-java","install_from":"skills.sh"}},"qualityScore":"0.631","qualityRationale":"deterministic score 0.63 from registry signals: · indexed on github topic:agent-skills · 362 github stars · SKILL.md body (2,015 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-26T12:53:38.822Z","embedding":null,"createdAt":"2026-04-26T12:53:38.822Z","updatedAt":"2026-04-26T12:53:38.822Z","lastSeenAt":"2026-04-26T12:53:38.822Z","tsv":"'/mvnw':129,146 '1':201 '2':219 '3':239 '4':259 '504':1 'action':280 'add':171,184 'align':243 'api':58,180 'app':40 'appli':48,103,115,135,154,157,238,240 'applic':18 'appropri':266 'assess':205 'authent':23,70 'author':72,181,192 'awar':37 'base':78,105 'behavior':94 'best':51 'boundari':59,91 'browser':39 'build/tests':267 'chang':117,137,218,236,244,271 'check':34 'clean':147,151 'compil':121,130,133,140 'configur':68,178 'configuration/code':251 'constraint':113,229,287 'context':207 'control':199 'convent':258 'cor':35 'cover':62 'csrf':36 'current':213 'data':96 'decid':223 'default':57 'design':11,88 'detail':162,283 'endpoint':80 'ensur':118 'error/denial':93 'exampl':112,165,285 'execut':265 'fail':141 'follow':252,278 'follow-up':277 'framework':3,242 'framework-align':241 'frameworks-micronaut-secur':2 'full':125 'gather':220 'good/bad':111 'guidanc':284 'guidelin':47 'handl':97 'handler':42 'harden':189 'identifi':226 'immedi':143 'implement':194,245 'improv':14,123,155,179,225 'includ':19 'inspect':211 'intercept':27 'intercept-url-map':26 'jwt':185 'jwt/session':31 'least':86 'least-privileg':85 'log':99 'mandatori':127 'map':29 'micronaut':4,17,21,45,49,66,172,176,183,188,190,198 'micronaut-secur':20 'minimum':232 'mvn':132,150 'need':9 'outcom':228 'pattern':255 'polici':79,90,196 'practic':52 'privileg':87 'project':120,206,214,257 'propos':217 'protect':83 'read':158,202,208 'recommend':104 'refactor':247 'refer':108,160,203,254,281 'references/504-frameworks-micronaut-security.md':209,289,290 'reject':41 'relat':250 'report':263 'request':227 'respons':101 'result':264 'review':12,175 'role':77 'role-bas':76 'rout':82,191 'rule':30,109,163,193 'run':124,128,145,260 'safe':233 'safeti':138 'scope':102,221 'secur':5,15,22,24,46,50,55,67,74,92,116,173,177,186,195,249 'secure-by-default':54 'security-rel':248 'securityservic':33 'see':288 'sensit':95 'set':234 'setup':71,215 'skill':65,170 'skill-504-frameworks-micronaut-security' 'source-jabrena' 'stop':142 'strategi':32,84 'summar':269 'support':174 'target':224 'topic-agent-skills' 'topic-ai-skills' 'topic-claude' 'topic-claude-code' 'topic-claude-code-skills' 'topic-claude-code-subagents' 'topic-claude-skills' 'topic-cursor-agent' 'topic-cursor-ai' 'topic-cursor-skills' 'topic-cursorai' 'topic-github-copilot' 'url':28 'use':6,168 'verif':126,261 'verifi':144,148,152,274 'workflow':200","prices":[{"id":"f1c593be-006a-4696-8490-64e1305b731d","listingId":"38a9de56-01e5-437f-ab05-b14e7193c9d4","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"jabrena","category":"cursor-rules-java","install_from":"skills.sh"},"createdAt":"2026-04-26T12:53:38.822Z"}],"sources":[{"listingId":"38a9de56-01e5-437f-ab05-b14e7193c9d4","source":"github","sourceId":"jabrena/cursor-rules-java/504-frameworks-micronaut-security","sourceUrl":"https://github.com/jabrena/cursor-rules-java/tree/main/skills/504-frameworks-micronaut-security","isPrimary":false,"firstSeenAt":"2026-04-26T12:53:38.822Z","lastSeenAt":"2026-04-26T12:53:38.822Z"}],"details":{"listingId":"38a9de56-01e5-437f-ab05-b14e7193c9d4","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"jabrena","slug":"504-frameworks-micronaut-security","github":{"repo":"jabrena/cursor-rules-java","stars":362,"topics":["agent-skills","ai-skills","claude","claude-code","claude-code-skills","claude-code-subagents","claude-skills","cursor-agent","cursor-ai","cursor-skills","cursorai","github-copilot","intellij-idea","java","prompting","system-prompts"],"license":"apache-2.0","html_url":"https://github.com/jabrena/cursor-rules-java","pushed_at":"2026-04-26T12:50:01Z","description":"A curated and opinionated collection of Skills and Agents to be used in modern SDLC workflows for Java Enterprise development with your favorite AI Agent harness.","skill_md_sha":"982da2a6ae1ecf465453a5e81323924a0f80a1a3","skill_md_path":"skills/504-frameworks-micronaut-security/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/jabrena/cursor-rules-java/tree/main/skills/504-frameworks-micronaut-security"},"layout":"multi","source":"github","category":"cursor-rules-java","frontmatter":{"name":"504-frameworks-micronaut-security","license":"Apache-2.0","description":"Use when you need to design, review, or improve security in Micronaut applications — including micronaut-security authentication, @Secured and intercept-url-map rules, JWT/session strategies, SecurityService checks, CORS, CSRF awareness for browser apps, rejection handlers, and sensitive-data-safe logging. This should trigger for requests such as Add Micronaut security support; Review Micronaut security configuration; Improve API authorization in Micronaut; Add JWT security in Micronaut; Harden Micronaut route authorization rules. Part of cursor-rules-java project"},"skills_sh_url":"https://skills.sh/jabrena/cursor-rules-java/504-frameworks-micronaut-security"},"updatedAt":"2026-04-26T12:53:38.822Z"}}