AGENT SKILL

special-relativity

Solve special relativity problems: time dilation, length contraction, Lorentz transformations, relativistic momentum and energy, four-vectors, velocity addition, relativistic Doppler, paradoxes, spacetime diagrams. Use for fast-moving particles, E=mc², or any 'near light speed' question.

License 许可
MIT
最近更新
2026-10-17
Stars
★ 8
Forks
1

01 前言 Front Matter

name
special-relativity
description
Solve special relativity problems: time dilation, length contraction, Lorentz transformations, relativistic momentum and energy, four-vectors, velocity addition, relativistic Doppler, paradoxes, spacetime diagrams. Use for fast-moving particles, E=mc², or any 'near light speed' question.

02 资源文件 1

03 SKILL.md 正文

Special Relativity

Postulates

Laws of physics are identical in all inertial frames; c is the same for all observers.

Formulas

  • γ = 1/sqrt(1 - v²/c²), β = v/c
  • Lorentz boost (x-direction): x' = γ(x - vt), t' = γ(t - vx/c²)
  • Time dilation Δt = γΔτ (τ = proper time); length contraction L = L0/γ
  • Velocity addition u' = (u - v)/(1 - uv/c²)
  • Relativistic Doppler f_obs = f sqrt((1+β)/(1-β)) (approaching); transverse Doppler f = f0/γ
  • Momentum p = γmv; energy E = γmc²; E² = (pc)² + (mc²)²; K = (γ-1)mc²; photon E = pc
  • Four-vectors: x^μ = (ct, x), p^μ = (E/c, p), invariant interval s² = c²t² - x² ; p^μ p_μ = m²c²
  • Threshold energy for particle production: invariant mass s = (ΣE)² - |Σp|²c²
  • Relativistic force F = dp/dt; acceleration a = F/(γ³m) parallel, F/(γm) perpendicular
  • Constant proper acceleration (hyperbolic motion): x = (c²/a)(cosh(aτ/c) - 1)
  • Electromagnetism transforms: E'∥ = E∥, E'⊥ = γ(E + v×B)⊥

Paradoxes

  • Twin: the traveling twin changes frames (accelerates) → ages less.
  • Ladder/barn: simultaneity is frame dependent; no contradiction once relativity of simultaneity is used.

Method

  1. Define events with coordinates in one frame.
  2. Use invariants (interval, invariant mass) to avoid transformation errors.
  3. Use conservation of four-momentum in collisions/decays.
  4. Check β→0 reproduces Newtonian result.

04 同仓库更多 Skills

hamzabellouch
hamzabellouch/agent-skills

security-audit

Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).

★ 8
hamzabellouch
hamzabellouch/agent-skills

malware-analysis-reversing

Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static/dynamic binary analysis, memory forensics, and YARA detection rule authoring.

★ 8
hamzabellouch
hamzabellouch/agent-skills

application-security-pentesting

Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST/DAST pipeline integration, secure code review, threat modeling, and defensive security posture.

★ 8
hamzabellouch
hamzabellouch/agent-skills

oauth2-oidc-security-flows

Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.

★ 8
hamzabellouch
hamzabellouch/agent-skills

jwt-session-management-hardening

Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256/EdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.

★ 8
hamzabellouch
hamzabellouch/agent-skills

soc2-compliance-automation

Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI/CD security gates.

★ 8