504-frameworks-micronaut-security — скилл для Claude Code
Скилл 504-frameworks-micronaut-security помогает проектировать и проверять безопасность Micronaut-приложений: аутентификацию, права доступа, JWT, CORS и защиту данных в логах.
Apache-2.0 282 установок ★ 465 обновлён 2026-10-21
npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a claude-codeЧто делает 504-frameworks-micronaut-security
Скилл разбирает настройки micronaut-security, правила @Secured и intercept-url-map, стратегии JWT и сессий, проверки через SecurityService, CORS, CSRF для браузерных приложений и обработчики отказа. Он также помогает не выводить чувствительные данные в логи и ответы.
Работа строится вокруг файла references/504-frameworks-micronaut-security.md: сначала агент читает рекомендации и изучает проект, затем выбирает минимальный набор изменений, применяет их по правилам Micronaut и запускает проверку. До любых правок нужен ./mvnw compile или mvn compile; если компиляция не проходит, агент останавливается. После изменений запускается ./mvnw clean verify или mvn clean verify.
Какие задачи решает
- настроить аутентификацию в Micronaut
- закрыть маршруты правилами ролей
- добавить JWT-защиту API
- проверить политики
@Secured - убрать чувствительные данные из логов
Примеры запросов агенту
- Проверь конфигурацию безопасности в этом Micronaut-проекте и предложи минимальные исправления.
- Добавь JWT-защиту API и проверь правила доступа к маршрутам.
- Проведи ревью
@Securedиintercept-url-map, затем запусти полную проверку.
Как установить 504-frameworks-micronaut-security
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a claude-code2Вручную: положить файлы
~/.claude/skills/504-frameworks-micronaut-security/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/504-frameworks-micronaut-security/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a codex2Вручную: положить файлы
.agents/skills/504-frameworks-micronaut-security/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a cursor2Вручную: положить файлы
.cursor/skills/504-frameworks-micronaut-security/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth skills/504-frameworks-micronaut-security2Вручную: положить файлы
.github/skills/504-frameworks-micronaut-security/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/504-frameworks-micronaut-securityВручную: положить файлы
.devin/skills/504-frameworks-micronaut-security/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 504-frameworks-micronaut-security
Как установить 504-frameworks-micronaut-security в Claude Code?
Выполните npx skills add jabrena/plinth --skill 504-frameworks-micronaut-security -a claude-code. Скилл будет доступен по пути ~/.claude/skills/504-frameworks-micronaut-security/SKILL.md.
Что делает 504-frameworks-micronaut-security?
Он помогает настраивать и проверять безопасность Micronaut-приложений: аутентификацию, авторизацию маршрутов, JWT и сессии, CORS, CSRF и безопасную обработку отказов.
Что нужно сделать перед изменением конфигурации?
Сначала нужно прочитать references/504-frameworks-micronaut-security.md и запустить ./mvnw compile или mvn compile. При ошибке компиляции скилл должен остановиться.
Исходный текст
SKILL.md · Apache-2.0
--- name: 504-frameworks-micronaut-security 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 Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Micronaut Security Guidelines Apply Micronaut security best practices with secure-by-default API boundaries. **What is covered in this Skill?** - Micronaut security configuration and authentication setup - Authorization with @Secured and role-based policies - Endpoint and route protection strategy - Least-privilege design and policy boundaries - Secure error/denial behavior - Sensitive data handling in logs and responses **Scope:** Apply recommendations based on the reference rules and good/bad examples. ## Constraints Before applying security changes, ensure the project compiles. After improvements, run full verification. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change - **SAFETY**: If compilation fails, stop immediately - **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements - **BEFORE APPLYING**: Read the reference for detailed rules and examples ## When to use this skill - Add Micronaut security support - Review Micronaut security configuration - Improve API authorization in Micronaut - Add JWT security in Micronaut - Harden Micronaut route authorization rules - Implement @Secured policies in Micronaut controllers ## Workflow 1. **Read reference and assess project context** Read `references/504-frameworks-micronaut-security.md` and inspect the current project setup before proposing changes. 2. **Gather scope and decide target improvements** Identify requested outcomes, constraints, and the minimum safe set of changes to apply. 3. **Apply framework-aligned changes** Implement or refactor security-related configuration/code following the reference patterns and project conventions. 4. **Run verification and report results** Execute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions. ## Reference For detailed guidance, examples, and constraints, see [references/504-frameworks-micronaut-security.md](references/504-frameworks-micronaut-security.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth