Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill springboot-redis-module-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-redis-module-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-redis-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-redis-module-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/springboot-redis-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/springboot-redis-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.01367 |
| Opus 5 | $0.00055 | $0.00683 |
| Sonnet 5 | $0.00022 | $0.00273 |
| Haiku 4.5 | $0.00011 | $0.00137 |
Grade A, and why
springboot-redis-module-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spring Redis Module Skill
面向已有 Spring Boot 项目的开发者,快速集成 Redis 能力。
能力清单
| 能力 | 说明 |
|---|---|
| 缓存 | @Cacheable 注解缓存、缓存更新、缓存删除 |
| Session | Redis Session 共享、Spring Session 配置 |
| 分布式锁 | 基于 Redis 的分布式锁(Redisson) |
| 限流 | 基于 Redis 的接口限流 |
| 消息队列 | Redis Stream 消息发布/订阅 |
| 计数器 | 分布式计数器、排行榜 |
触发场景
用户说"帮我加 Redis"或"集成 Redis"时触发。
依赖配置
<!-- pom.xml 添加 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
<version>3.24.3</version>
</dependency>
默认方法封装
1. 缓存操作
// RedisConfig.java - 配置
@Configuration
@EnableCaching
public class RedisConfig {
@Bean
public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory) {
// 配置序列化器
}
}
// 使用示例
@Service
public class UserService {
@Cacheable(value = "users", key = "#id")
public User getUser(Long id) {
// 首次查询数据库,之后从缓存取
}
@CachePut(value = "users", key = "#user.id")
public User updateUser(User user) {
// 更新后自动更新缓存
}
@CacheEvict(value = "users", key = "#id")
public void deleteUser(Long id) {
// 删除后自动清除缓存
}
}
2. 分布式锁
@Service
public class LockService {
@Autowired
private RedissonClient redisson;
public void executeWithLock(String lockKey, Runnable task) {
RLock lock = redisson.getLock(lockKey);
try {
lock.lock();
task.run();
} finally {
lock.unlock();
}
}
// 尝试获取锁
public boolean tryLock(String lockKey, long waitTime, long leaseTime, TimeUnit unit) {
RLock lock = redisson.getLock(lockKey);
return lock.tryLock(waitTime, leaseTime, unit);
}
}
3. 限流
@Component
public class RateLimiter {
@Autowired
private RedisTemplate<String, String> redisTemplate;
public boolean tryAcquire(String key, int maxRequests, long windowSeconds) {
String value = redisTemplate.opsForValue().increment(key);
if (value == null) return false;
if (value == 1) {
redisTemplate.expire(key, windowSeconds, TimeUnit.SECONDS);
}
return value <= maxRequests;
}
}
// 使用示例
@RestController
public class ApiController {
@Autowired
private RateLimiter rateLimiter;
@GetMapping("/api/data")
public ApiResponse<Data> getData() {
String key = "ratelimit:api:data";
if (!rateLimiter.tryAcquire(key, 100, 60)) {
throw new BusinessException(-429, "请求过于频繁,请稍后再试");
}
// 业务逻辑
}
}
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 216 lines · 110 tokens per session scan A 4b4981ebe5f6
springboot-redis-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (98 stars, last pushed yesterday), licensed Apache-2.0. It adds 110 tokens to every session and 1,367 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
spring-data-redis
Use when implementing caching, session storage, rate limiting, or any Redis integration. Covers cache-aside pattern, key naming, TTL strategy, and serialization config.
background-job-orchestrator
Expert in background job processing with Bull/BullMQ (Redis), Celery, and cloud queues. Implements retries, scheduling, priority queues, and worker management. Use for async task processing, email campaigns, report generation, batch operations. Activate on "background job", "async task", "queue", "worker", "BullMQ"…
nw-sd-patterns
Core distributed systems patterns - load balancing, caching, sharding, consistent hashing, message queues, rate limiting, CDN, Bloom filters, ID generation, replication, conflict resolution, CAP theorem.
cache-strategy
Design and implement caching layers for APIs and web applications using Redis or Memcached. Use when you need to reduce database load, improve response times, or handle traffic spikes. Covers cache-aside, write-through, and write-behind patterns, TTL strategies, cache invalidation, and stampede prevention. Trigger…
bull-mq
You are an expert in BullMQ, the high-performance job queue for Node.js built on Redis. You help developers build reliable background processing systems with delayed jobs, rate limiting, prioritization, repeatable cron jobs, job dependencies, concurrency control, and dead-letter handling — powering email sending…
nuxthub
Use when building NuxtHub v0.10.6 applications - provides database (Drizzle ORM with sqlite/postgresql/mysql), KV storage, blob storage, and cache APIs. Covers configuration, schema definition, migrations, multi-cloud deployment (Cloudflare, Vercel), and the new hub:db, hub:kv, hub:blob virtual module imports.