agent-security-hardening
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
Review checklist for Java / Spring Boot code - correctness, security, performance, Spring signals, REST semantics, and code smells; project rules are referenced from conventions, not repeated. Use when user says "review code", "check this PR", "refactor", "check API", or before merging changes.
Knowledge for reviewing Java / Spring Boot changes: what to flag and how to recognize it. The review process, scope, and report format belong to the code-reviewer agent; project rules belong to the conventions skill.
No duplication: this skill holds only what no other skill states (generic Java quality, smells, REST semantics, detection signals). Project rules live in conventions, spring-boot, and jpa-patterns; the references here point to them and never restate them, so a rule change is made in one place.
Read only the references that match the changed files.
| If the change contains | Read |
|---|---|
| Any Java code | references/correctness.md, references/spring-conventions.md (signals; rules in conventions) |
| Controllers, DTOs, OpenAPI, error handling | references/api-contract.md |
| Input handling, auth, config, secrets, actuator | references/security.md |
| Repositories, queries, entity loops | references/performance.md |
Entities, *.sql migrations, spring.jpa.*, Flyway | conventions → Relational Database Schema (Flyway); spring-boot → references/data.md |
| Any non-trivial logic | references/smells.md |
Any code in a project whose architecture block says style: cqrs (conventions → Architecture Decision): handlers, events, projections, outbox, Kafka listeners | event-driven → references/cqrs.md (Review Signals), and references/kafka.md when the diff touches the outbox or a listener |
Any code in a project whose architecture block says style: cqrs-event-sourcing: aggregates, events, upcasters, event store, projections, migrations | event-driven → references/cqrs.md and references/event-sourcing.md (Review Signals); references/axon.md with event-store: axon |
deploy/**, skaffold.yaml, docker-compose.yml, Kubernetes manifests | spring-boot → references/cloud.md (overlays, probes, Compose healthchecks); references/security.md (secrets) |
Related skills, loaded only when the diff needs them:
| Topic | Skill |
|---|---|
| Project rules (No Lombok, RestClient, Flyway, Problem Details) | conventions |
| Lazy loading, fetching, optimistic locking | jpa-patterns |
Test quality, RestTestClient, Testcontainers | testing-patterns |
| Log levels, MDC, structured logging | logging-patterns |
| UI contract details | spring-boot → references/ui-contract.md |
| Records, sealed types, pattern matching | java-modern |
| CQRS and Event Sourcing: handlers, events, outbox, event store, projections | event-driven |
references/smells.md)CLAUDE.md / AGENTS.md, conventions, or an existing documented decision overrides a rule here, the repo wins| Category | Red flags |
|---|---|
| Null safety | chained calls, Optional.get(), returning null |
| Exceptions | empty catch, broad catch, lost stack trace |
| Resources | manual close() |
| Transactions | multi-step writes without @Transactional, self-invocation |
| API | wrong verb or status |
| Performance | N+1, findAll() without paging, LIKE from user input |
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail202k4,226 new stars in the last 7 days
GAgarrytan/gstack143k524 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
RUruvnet/RuView106k596 new stars in the last 7 days