AGENT SKILL

dimensional-analysis-estimation

Use dimensional analysis, scaling laws, order-of-magnitude and Fermi estimation to solve or sanity-check physics problems: Buckingham Pi theorem, natural units, similarity, back-of-envelope calculation. Use whenever the user wants a quick estimate or a check of units and scaling.

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

01 前言 Front Matter

name
dimensional-analysis-estimation
description
Use dimensional analysis, scaling laws, order-of-magnitude and Fermi estimation to solve or sanity-check physics problems: Buckingham Pi theorem, natural units, similarity, back-of-envelope calculation. Use whenever the user wants a quick estimate or a check of units and scaling.

02 资源文件 1

03 SKILL.md 正文

Dimensional Analysis & Estimation

Dimensional analysis

  1. List all relevant variables and their dimensions [M, L, T, Θ, I].
  2. Buckingham Pi: n variables, k independent dimensions → n - k dimensionless groups.
  3. Express the answer as Π1 = f(Π2, ...); determine f by theory, limit, or experiment. Examples: pendulum T ∝ sqrt(L/g); Taylor blast radius R ≈ (E t²/ρ)^{1/5}; drag via Re; pipe flow via friction factor.

Natural scales

  • Planck: l_P = sqrt(ħG/c³) = 1.6e-35 m; t_P = 5.4e-44 s; m_P = 2.2e-8 kg; E_P = 1.2e19 GeV
  • Atomic: Bohr radius a0 = 0.529 Å, Hartree 27.2 eV, fine structure α ≈ 1/137
  • Nuclear: fm, MeV; QCD scale ≈ 200 MeV
  • Useful: ħc = 197.3 eV·nm; k_BT at 300 K = 25.9 meV; 1 eV = 11,600 K; λ[nm] = 1240/E[eV]; GM☉/c² = 1.48 km

Fermi estimation

  • Break the problem into factors known to within a factor ~3; multiply; errors partly cancel (log-normal).
  • Anchor numbers: Earth R = 6.4e6 m, g = 9.8, atmosphere 1e5 Pa, human power ≈ 100 W, global energy use ≈ 18 TW, sun's flux 1361 W/m², c = 3e8 m/s, N_A = 6e23.
  • Report as order of magnitude with a stated uncertainty; cross-check by a second route.

Scaling

Square-cube law (strength ∝ L², weight ∝ L³), Kleiber's law (metabolic rate ∝ M^{3/4}), scaling of waves, stars (L ∝ M^{3.5}).

Checks

Every final formula: confirm units; test limits (zero, infinity); compare with a known special case.

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