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 Crearize/ai-dev-helm --skill log-designgit clone --depth 1 https://github.com/Crearize/ai-dev-helmWrote 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/crearize/ai-dev-helm/log-design)<a href="https://agentmods.dev/skills/crearize/ai-dev-helm/log-design"><img src="https://agentmods.dev/badge/skills/crearize/ai-dev-helm/log-design/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/crearize/ai-dev-helm/log-design"><img src="https://agentmods.dev/badge/skills/crearize/ai-dev-helm/log-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00058 | $0.03010 |
| Opus 5.5 | $0.00023 | $0.01204 |
| Sonnet 5.5 | $0.00012 | $0.00602 |
| Haiku 4.5 | $0.00006 | $0.00301 |
Grade A, and why
log-design 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 1mo 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 — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Log Design Check - ログ設計チェック
導入先の補足ファイル documents/development/project/log-design.md があれば、その段で読む。補足ファイルは製品への当てはめ(コマンド・パス・ポート等)だけを持ち、本スキルの規則を緩めない。食い違えば本スキルが優先する。
プロジェクトのログ設計が一般的な基準と法的要件を満たしているか体系的にチェックし、不足があれば実装パターンを提示する。
参照: セキュリティ関連のログルールは
documents/development/coding-rules/common-rules.mdSection 4 も併せて確認すること。
実行フロー
Step 1: 現状分析(既存のログ設定・出力を確認)
↓
Step 2: 一般的ログ基準チェック
↓
Step 3: 法的要件チェック
↓
Step 4: 不足箇所の実装パターン提示
↓
Step 5: レポート出力
Step 1: 現状分析
以下を確認する:
- ログライブラリ・設定ファイル(logback-spring.xml、pino設定等)
- 既存のログ出力箇所
- 取り扱うデータの種類(取引データ、個人情報、メール送信等)
Step 2: 一般的ログ基準チェック
ログレベル基準
| レベル | 用途 | 例 |
|---|---|---|
| ERROR | システム異常、復旧不可能なエラー | DB接続失敗、外部API障害、未処理例外 |
| WARN | 想定内だが注意が必要な事象 | リトライ発生、閾値超過、非推奨API使用 |
| INFO | ビジネス上重要なイベント | ユーザーログイン/ログアウト、決済完了、重要な状態遷移 |
| DEBUG | 開発・調査用の詳細情報 | リクエスト/レスポンス詳細、SQL実行詳細(本番では無効化) |
構造化ログ実装パターン
Spring Boot + Logback (JSON形式):
// logback-spring.xml で net.logstash.logback.encoder.LogstashEncoder を使用
// または logback-spring.xml で JSON パターンを定義
// 出力例:
// {
// "timestamp": "2025-01-08T10:00:00.000+09:00",
// "level": "INFO",
// "logger": "com.example.service.PaymentService",
// "message": "Payment completed",
// "traceId": "abc123",
// "userId": "user-001",
// "action": "PAYMENT_COMPLETE",
// "amount": 10000,
// "paymentId": "pay-001"
// }
@Slf4j
@Service
public class PaymentService {
public void completePayment(Payment payment) {
// MDC にトレース情報をセット
MDC.put("action", "PAYMENT_COMPLETE");
MDC.put("paymentId", payment.getId().toString());
log.info("Payment completed: amount={}", payment.getAmount());
MDC.clear();
}
}
Next.js (API Routes / Server Actions):
// lib/logger.ts - 構造化ログユーティリティ
import pino from 'pino';
export const logger = pino({
level: process.env.LOG_LEVEL || 'info',
formatters: {
level: (label) => ({ level: label }),
},
timestamp: pino.stdTimeFunctions.isoTime,
});
// 使用例: API Route
export async function POST(request: Request) {
const body = await request.json();
logger.info(
{ action: 'ORDER_CREATED', orderId: body.id, userId: session.userId },
'Order created'
);
}
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.
- 1mo ago Changed · +2 lines 0606826bfce7
- 3mo ago First seen · 301 lines · 58 tokens per session scan A 12c150e5fd6f
log-design is a skill published in the GitHub repository Crearize/ai-dev-helm (6 stars, last pushed 8d ago), licensed MIT. It adds 58 tokens to every session and 3,010 once invoked, about $0.0002 per session on Opus 5.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-31.
log-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| log-designCrearize/ai-dev-helm | Skill | 6 | 8d ago | MIT | A | 58 | Claude Code, Codex |
| fto-triageanthropics/claude-for-legal | Skill | 10k | 6d ago | Apache-2.0 | A | 81 | Claude Code |
| specification-writingwanshuiyin/Auto-claude-code-research-in-sleep | Skill | 20k | yesterday | MIT | A | 49 | Claude Code |
| legal-holdanthropics/claude-for-legal | Skill | 10k | 6d ago | Apache-2.0 | A | 68 | Claude Code |
| terms-of-servicegenspark-ai/genoffice | Skill | 13k | 3d ago | Apache-2.0 | A | 32 | Claude Code, Codex |
| regulatory-research-fallbackHKUDS/OpenSpace | Skill | 8.1k | 18d ago | MIT | A | 20 | Claude Code, Codex |
| x-scorecardx-cmd/x-cmd | Skill | 4.8k | 6d ago | Apache-2.0 | A | 57 | Claude Code, Codex |