Agent skill

Spring Framework Patterns

by Hack23 in Hack23/cia

Apply Spring Framework best practices: dependency injection, transaction management, AOP for CIA services

Apache-2.0Auto-check passedDevelopment

Install Spring Framework Patterns

skills CLI
$ npx skills add Hack23/cia --skill spring-framework-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Hack23/cia spring-framework-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/spring-framework-patterns .claude/skills/spring-framework-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
spring-framework-patterns
GitHub stars
239
Token cost
~472 tokens
SKILL.md length
45 words
Files
1
Skills in repo
78
Repo updated
First seen
Licence
Apache-2.0

At a glance

Apply Spring Framework best practices: dependency injection, transaction management, AOP for CIA services

  • Tasks that involve Design patterns
  • SKILL.md covers Purpose, When to Use, Dependency Injection Patterns and Transaction Management, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Spring Framework Patterns is an agent skill from Hack23/cia. Apply Spring Framework best practices: dependency injection, transaction management, AOP for CIA services

Its SKILL.md is about 470 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Design patterns. It works with Spring Boot. The repository describes itself as: Citizen Intelligence Agency. Open-source intelligence platform analyzing Swedish political activities using AI and data visualization. Tracks politicians, government… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Design patterns

Example prompts

  • “/spring-framework-patterns”

What it can do on your machine

Read from SKILL.md and the folder at commit 6a9797b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.spring.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Spring Framework Patterns loads about 472 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 45 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~472

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Hack23/cia at commit 6a9797b, republished under its Apache-2.0 licence (© Hack23). 45 words, ~472 tokens.

Download SKILL.mdSave it as .claude/skills/spring-framework-patterns/SKILL.md (or your agent's skills folder).
name
spring-framework-patterns
description
Apply Spring Framework best practices: dependency injection, transaction management, AOP for CIA services
license
Apache-2.0

Spring Framework Patterns Skill

Purpose

Apply Spring Framework best practices for dependency injection, transactions, and aspect-oriented programming.

When to Use

  • ✅ Creating Spring services and components
  • ✅ Managing transactions
  • ✅ Implementing cross-cutting concerns
  • ✅ Configuring application context

Dependency Injection Patterns

java
@Service
public class PoliticianService {
    private final PoliticianRepository repository;
    private final AuditLogger auditLogger;
    
    // Constructor injection (preferred)
    public PoliticianService(
            PoliticianRepository repository,
            AuditLogger auditLogger) {
        this.repository = repository;
        this.auditLogger = auditLogger;
    }
}

Transaction Management

java
@Service
@Transactional(readOnly = true)
public class VotingService {
    
    @Transactional
    public void recordVote(Vote vote) {
        voteRepository.save(vote);
        statisticsService.updateStats(vote);
        auditLogger.log("VOTE_RECORDED", vote.getId());
    }
}

Aspect-Oriented Programming

java
@Aspect
@Component
public class PerformanceMonitoringAspect {
    
    @Around("@annotation(Monitored)")
    public Object monitor(ProceedingJoinPoint joinPoint) throws Throwable {
        long start = System.currentTimeMillis();
        try {
            return joinPoint.proceed();
        } finally {
            long duration = System.currentTimeMillis() - start;
            log.info("Method {} took {}ms", 
                joinPoint.getSignature().getName(), duration);
        }
    }
}

References

© Hack23, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/spring-framework-patterns of Hack23/cia.

Open the folder on GitHubat commit 6a9797b

Compare with similar skills

Spring Framework Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Spring Framework Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Spring Framework Patterns this skillHack23/cia239—~472Automated safety check: PassApache-2.0
Clean Architecturegiuseppe-trisciuoglio/developer-kit355—~4kAutomated safety check: NotesMIT
Java Rulessoftspark/ai-toolkit179—~3.1kAutomated safety check: PassApache-2.0
Langchain4j Spring Boot Integrationgiuseppe-trisciuoglio/developer-kit3551 repos~2.3kAutomated safety check: NotesMIT
Spring Boot Dependency Injectiongiuseppe-trisciuoglio/developer-kit355—~1.7kAutomated safety check: NotesMIT
Spring Boot Best PracticesHoangNguyen0403/agent-skills-standard570—~598Automated safety check: PassMIT

Similar skills

  • Clean Architecture

    giuseppe-trisciuoglio/developer-kit

    Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications.

    355 GitHub stars~4k tokensUpdated 27 days ago
    DevelopmentAuto-check: notes
  • Java Rules

    softspark/ai-toolkit

    Java coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.

    179 GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Langchain4j Spring Boot Integration

    giuseppe-trisciuoglio/developer-kit

    Provides integration patterns for LangChain4j with Spring Boot.

    355 GitHub starsUsed in 1 repo~2.3k tokens
    Backend & APIsAuto-check: notes
  • Spring Boot Dependency Injection

    giuseppe-trisciuoglio/developer-kit

    Provides dependency injection patterns for Spring Boot projects, including constructor-first design, optional collaborator handling, bean selection, and wiring validation.

    355 GitHub stars~1.7k tokensUpdated 27 days ago
    Backend & APIsAuto-check: notes
  • Spring Boot Best Practices

    HoangNguyen0403/agent-skills-standard

    Apply core coding standards, dependency injection, and configuration for Spring Boot 3.

    570 GitHub stars~598 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Swiftui View Refactor

    Dimillian/Skills

    Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.

    4k GitHub starsUsed in 5 repos~2k tokens
    DevelopmentAuto-check passed

More from Hack23/cia

All 78 skills in this repo
  • WCAG 2.1 AA compliance, ARIA attributes, keyboard navigation, screen reader optimization for accessible political data platforms

    239 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Advanced chart types, D3.js/Vaadin Charts patterns, political data visualization, time series analysis

    239 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • AI Governance

    Hack23/cia

    AI governance, EU AI Act compliance, OWASP LLM security, responsible AI practices for GitHub Copilot agents

    239 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • API Integration

    Hack23/cia

    External API integration patterns, retry logic, circuit breakers, caching, rate limiting for government data APIs

    239 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • AWS CloudWatch metrics, alarms, dashboards, log insights, and application monitoring for the CIA platform

    239 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • AWS security best practices, VPC security, IAM, KMS, CloudTrail, GuardDuty for CIA platform deployment

    239 GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Spring Framework Patterns

What does Spring Framework Patterns do?

Apply Spring Framework best practices: dependency injection, transaction management, AOP for CIA services. Spring Framework Patterns is an agent skill from Hack23/cia.

When should I use Spring Framework Patterns?

Spring Framework Patterns fits situations like: tasks that involve Design patterns.

How do I install Spring Framework Patterns in Claude Code?

Run `npx skills add Hack23/cia --skill spring-framework-patterns -a claude-code`. Or copy the skill folder (.github/skills/spring-framework-patterns in Hack23/cia) into .claude/skills/spring-framework-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Spring Framework Patterns in Codex?

Run `npx skills add Hack23/cia --skill spring-framework-patterns -a codex`. Or copy the skill folder (.github/skills/spring-framework-patterns in Hack23/cia) into .agents/skills/spring-framework-patterns in your project. Codex loads it when a task matches its description.

Can I use Spring Framework Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Hack23/cia --skill spring-framework-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spring-framework-patterns, .gemini/skills/spring-framework-patterns, .github/skills/spring-framework-patterns and .opencode/skills/spring-framework-patterns in your project.

What does Spring Framework Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Spring Framework Patterns is instructions for the agent only.

Does Spring Framework Patterns access the network?

SKILL.md names 1 domain. As links in the text: docs.spring.io. This is read from the text; nothing was executed.

Is Spring Framework Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Spring Framework Patterns use?

Spring Framework Patterns is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Spring Framework Patterns use?

About 472 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Spring Framework Patterns?

Skills that share tags, products or a category with Spring Framework Patterns: Clean Architecture (giuseppe-trisciuoglio/developer-kit, 355 stars), Java Rules (softspark/ai-toolkit, 179 stars), Langchain4j Spring Boot Integration (giuseppe-trisciuoglio/developer-kit, 355 stars) and Spring Boot Dependency Injection (giuseppe-trisciuoglio/developer-kit, 355 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Spring Framework Patterns?

Hack23 (a GitHub organization) maintains it in Hack23/cia, which has 239 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.

Source: Hack23/cia on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.