motion-ui
Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- be-logging
- description
- Audit logging patterns for structured logging, SLF4J usage, and MDC.
- allowed-tools
- Read, Glob, Grep
- argument-hint
- [file-or-directory-path]
- user-invocable
- true
03 SKILL.md 正文
Logging Pattern Audit
Audit Java source code for logging best practices: SLF4J usage, structured logging, and security.
Instructions
Step 0: Validate Configuration
- Read
.claude/backend-springboot-plugin.json - If missing, tell the user to run
/backend-springboot-plugin:be-initfirst and stop
Step 1: Determine Scope
- If argument provided: audit the specified file or directory
- If no argument: audit all Java files in
{sourceDir}/{basePackage}/(excluding test files)
Step 2: Scan for Issues
Critical Issues
-
Console Output
System.out.printlnin production codeSystem.err.printlnin production codeprintStackTrace()calls
-
Sensitive Data Exposure
- Logging passwords, tokens, secrets, or API keys
- Logging full email addresses (should be masked)
- Logging credit card numbers or personal identification numbers
- Check log statements for variables named:
password,token,secret,key,credential
-
Missing Exception Logging
catchblocks that silently swallow exceptions (empty catch or catch without logging)catchblocks that only log the message without the stack trace: uselog.error("msg", exception)notlog.error(exception.getMessage())
Warning Issues
-
String Concatenation
- Log statements using
+for string concatenation - Should use
{}placeholders:log.info("User {} created", userId)notlog.info("User " + userId + " created")
- Log statements using
-
Wrong Log Level
log.error()for non-error conditionslog.info()for debug-level detaillog.debug()for critical business events that should always be logged
-
Logger Declaration
- Missing
private static final Logger log = LoggerFactory.getLogger(ClassName.class) - Using Lombok
@Slf4jwithout Lombok being enabled - Logger variable not named
log(convention)
- Missing
Suggestions
-
MDC (Mapped Diagnostic Context)
- Request handlers without MDC context (request ID, user ID)
- Suggest MDC filter for request tracing
-
Structured Logging
- Consider key-value pairs in log messages for easier parsing
- Suggest consistent log message format across the project
Step 3: Report
Display findings in the working language:
Logging Audit
=============
Files scanned: {count}
Critical ({count}):
{file}:{line} — {description}
Fix: {suggestion}
Warnings ({count}):
{file}:{line} — {description}
Fix: {suggestion}
Suggestions ({count}):
{description}
04 同仓库更多 Skills
remotion-video-creation
Best practices for Remotion - Video creation in React. 29 domain-specific rules covering 3D, animations, audio, captions, charts, transitions, and more.
hotcook-recipes
暂无简介
code-helper
Code review and assistance skill
research-assistant
Web research assistant skill using Brave Search MCP
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.
workspace-surface-audit
Audit the active repo, MCP servers, plugins, connectors, env surfaces, and harness setup, then recommend the highest-value ECC-native skills, hooks, agents, and operator workflows. Use when the user wants help setting up Claude Code or understanding what capabilities are actually available in their environment.