← スキル一覧に戻る

ringdev-sre
by LerianStudio
⭐ 1🍴 0📅 2026年1月22日
SKILL.md
name: "ring:dev-sre" description: | Gate 2 of the development cycle. VALIDATES that observability was correctly implemented by developers. Does NOT implement observability code - only validates it. license: MIT compatibility: platforms: - opencode
metadata: version: "1.0.0" author: "Lerian Studio" category: development trigger: - Gate 2 of development cycle - Gate 0 (Implementation) complete with observability code - Gate 1 (DevOps) setup complete - Service needs observability validation (logging, tracing) sequence: after: [ring:dev-devops] before: [ring:dev-testing]
SRE Validation (Gate 2)
Overview
This skill VALIDATES that observability was correctly implemented by developers:
- Structured logging with trace correlation
- OpenTelemetry tracing instrumentation
- Code instrumentation coverage (90%+ required)
- Context propagation for distributed tracing
Role Clarification
Developers IMPLEMENT observability. SRE VALIDATES it.
| Who | Responsibility |
|---|---|
| Developers (Gate 0) | IMPLEMENT observability following Ring Standards |
| SRE Agent (Gate 2) | VALIDATE that observability is correctly implemented |
| Implementation Agent | FIX issues found by SRE (if any) |
If observability is missing or incorrect:
- SRE reports issues with severity levels
- This skill dispatches fixes to the implementation agent
- SRE re-validates after fixes
- Max 3 iterations, then escalate to user
Required Input
unit_id: Task/subtask being validatedlanguage: go / typescript / pythonservice_type: api / worker / batch / cli / libraryimplementation_agent: Agent that performed Gate 0implementation_files: Files created/modified in Gate 0
Dispatch SRE Agent
Task:
subagent_type: "ring:sre"
description: "Validate observability for [unit_id]"
prompt: |
VALIDATE Observability Implementation
## Context
- Language: [language]
- Service Type: [service_type]
- Files to Validate: [implementation_files]
## Validation Checklist
### 0. FORBIDDEN Logging Patterns (Check FIRST)
| Language | FORBIDDEN | Search For |
|----------|-----------|------------|
| Go | fmt.Println, log.Printf | grep in *.go |
| TypeScript | console.log | grep in *.ts |
If ANY FORBIDDEN pattern found: Severity CRITICAL, Verdict FAIL
### 1. Structured Logging
- Uses lib-commons logger (Go) or lib-common-js (TypeScript)
- JSON format with timestamp, level, message
- trace_id correlation in logs
### 2. Instrumentation Coverage (90%+ required)
Count spans in Handlers, Services, Repositories
### 3. Context Propagation
For external calls: InjectHTTPContext, InjectGRPCContext
## Required Output
### Validation Summary
| Check | Status | Evidence |
|-------|--------|----------|
| Structured Logging | ✅/❌ | [file:line] |
| Tracing Enabled | ✅/❌ | [file:line] |
| Instrumentation ≥90% | ✅/❌ | [X%] |
### Instrumentation Coverage Table
| Layer | Instrumented | Total | Coverage |
|-------|--------------|-------|----------|
| Handlers | X | Y | Z% |
| Services | X | Y | Z% |
| **TOTAL** | X | Y | **Z%** |
### Issues Found (if any)
- Severity: CRITICAL/HIGH/MEDIUM/LOW
- File: [path:line]
- Fix Required By: [implementation_agent]
### Verdict
**ALL CHECKS PASSED:** YES/NO
**Instrumentation Coverage:** [X%]
Severity Calibration
| Severity | Scenario | Action |
|---|---|---|
| CRITICAL | Missing ALL observability | Return to Gate 0 |
| CRITICAL | fmt.Println instead of JSON logs | Return to Gate 0 |
| HIGH | Instrumentation 50-89% | Fix and re-validate |
| MEDIUM | Missing context propagation | Fix and re-validate |
| LOW | Minor logging improvements | Note for future |
Output Schema
## Validation Result
**Status:** PASS/FAIL/NEEDS_FIXES
**Iterations:** [N]
**Instrumentation Coverage:** [X%]
## Instrumentation Coverage
| Layer | Instrumented | Total | Coverage |
|-------|--------------|-------|----------|
| Handlers | X | Y | Z% |
| Services | X | Y | Z% |
| Repositories | X | Y | Z% |
| **TOTAL** | X | Y | **Z%** |
## Issues Found
[List or "None"]
## Handoff to Next Gate
- SRE validation: COMPLETE
- Logging: ✅ Structured JSON with trace_id
- Tracing: ✅ OpenTelemetry instrumented
- Ready for Gate 3 (Testing): YES
Pressure Resistance
| User Says | Response |
|---|---|
| "Skip SRE validation" | "Observability is MANDATORY. Dispatching SRE agent now." |
| "90% coverage is too high" | "90% is the Ring Standard minimum. Cannot lower." |
| "Will add instrumentation later" | "Instrumentation is part of implementation. Fix now." |
Component Type Requirements
| Type | JSON Logs | Tracing | Instrumentation |
|---|---|---|---|
| API Service | REQUIRED | REQUIRED | 90%+ |
| Background Worker | REQUIRED | REQUIRED | 90%+ |
| CLI Tool | REQUIRED | N/A | N/A |
| Library | N/A | N/A | N/A |
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です