Tag logs, metrics, and distributed traces with REQ-* keys for production traceability. Enables backward traceability from runtime issues to requirements to intent. Use when deploying code or setting up observability.
/plugin marketplace add foolishimp/ai_sdlc_method/plugin install aisdlc-methodology@aisdlcThis skill is limited to using the following tools:
Skill Type: Actuator (Runtime Feedback) Purpose: Tag production telemetry with REQ-* keys Prerequisites: Code implemented and ready for deployment
You are adding REQ- tags to telemetry* for production traceability.
Telemetry types:
req:REQ-*Goal: Enable backward traceability (Alert → REQ-* → Intent)
# Find all files implementing <REQ-ID>
grep -rn "# Implements: <REQ-ID>" src/
Python (structlog, logging):
# Before
def login(email: str, password: str) -> LoginResult:
# Implements: <REQ-ID>
result = authenticate(email, password)
return result
# After
import logging
logger = logging.getLogger(__name__)
def login(email: str, password: str) -> LoginResult:
# Implements: <REQ-ID>
logger.info(
"User login attempt",
extra={
"req": "<REQ-ID>", # ← Tag for traceability
"email": email,
"success": False # Updated after auth
}
)
result = authenticate(email, password)
logger.info(
"User login result",
extra={
"req": "<REQ-ID>",
"email": email,
"success": result.success
}
)
if not result.success:
logger.warning(
"Login failed",
extra={
"req": "<REQ-ID>",
"email": email,
"error": result.error
}
)
return result
TypeScript (Winston, Pino):
// Implements: <REQ-ID>
function login(email: string, password: string): LoginResult {
logger.info('User login attempt', {
req: '<REQ-ID>', // ← Tag
email,
});
const result = authenticate(email, password);
logger.info('User login result', {
req: '<REQ-ID>',
email,
success: result.success,
});
return result;
}
Datadog (Python):
from datadog import statsd
def login(email: str, password: str) -> LoginResult:
# Implements: <REQ-ID>
result = authenticate(email, password)
# Tag metric with REQ-*
statsd.increment(
'auth.login.attempts',
tags=[
'req:<REQ-ID>', # ← Tag for traceability
f'success:{result.success}',
'env:production'
]
)
if result.success:
statsd.timing(
'auth.login.duration',
login_duration_ms,
tags=['req:<REQ-ID>', 'env:production']
)
return result
Prometheus (Python):
from prometheus_client import Counter, Histogram
# Define metrics with labels
login_attempts = Counter(
'auth_login_attempts_total',
'Total login attempts',
['req', 'success', 'env']
)
login_duration = Histogram(
'auth_login_duration_seconds',
'Login duration',
['req', 'env']
)
def login(email: str, password: str) -> LoginResult:
# Implements: <REQ-ID>
with login_duration.labels(req='<REQ-ID>', env='production').time():
result = authenticate(email, password)
login_attempts.labels(
req='<REQ-ID>', # ← Tag
success=str(result.success).lower(),
env='production'
).inc()
return result
OpenTelemetry:
from opentelemetry import trace
tracer = trace.get_tracer(__name__)
def login(email: str, password: str) -> LoginResult:
# Implements: <REQ-ID>
with tracer.start_as_current_span("auth.login") as span:
span.set_attribute("req", "<REQ-ID>") # ← Tag
span.set_attribute("email", email)
result = authenticate(email, password)
span.set_attribute("success", result.success)
if not result.success:
span.set_attribute("error", result.error)
span.set_status(trace.Status(trace.StatusCode.ERROR))
return result
Check logs:
# Search logs for REQ tags
grep "req.*<REQ-ID>" /var/log/app.log
Check metrics (Datadog):
auth.login.attempts{req:<REQ-ID>,success:true}
auth.login.duration{req:<REQ-ID>}
Check traces (OpenTelemetry):
Span: auth.login
Attributes:
- req: <REQ-ID>
- email: user@example.com
- success: true
[TELEMETRY TAGGING - <REQ-ID>]
Files Tagged:
src/auth/login.py:
✓ Logs: 3 log statements tagged
- logger.info("Login attempt", req="<REQ-ID>")
- logger.info("Login result", req="<REQ-ID>")
- logger.warning("Login failed", req="<REQ-ID>")
✓ Metrics: 2 metrics tagged
- auth.login.attempts{req:<REQ-ID>}
- auth.login.duration{req:<REQ-ID>}
✓ Traces: 1 span tagged
- Span "auth.login" with req="<REQ-ID>"
Total Tags Added: 6
- Log tags: 3
- Metric tags: 2
- Trace tags: 1
Traceability Enabled:
Production Alert → req:<REQ-ID> → docs/requirements/authentication.md → INT-100
✅ Telemetry Tagged!
Backward traceability ready
Why tag telemetry?
Homeostasis Goal:
desired_state:
all_code_telemetry_tagged: true
backward_traceability: complete
req_level_dashboards: available
"Excellence or nothing" 🔥
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.