Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Six Dof Simulation

ASecurity

Use when you must simulate the rigid body motion of an aircraft with the six degree of freedom body axis equations of motion: compute the body axis accelerations from the applied aerodynamic forces and moments, compute the angular accelerations from the moments and the inertia tensor, form the state derivative of the state vector u v w p q r phi theta psi, and propagate the state one step with a fourth order Runge Kutta integrator to integrate the equations of motion over the simulation step....

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentspythonangular

Works with

claude code

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add ashfordeOU/aero-agent-skills --skill six-dof-simulation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Six Dof Simulation?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Six Dof Simulation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashfordeou-six-dof-simulation/badge)](https://www.skillsdirectory.com/skills/ashfordeou-six-dof-simulation)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: six-dof-simulation
description: "Use when you must simulate the rigid body motion of an aircraft with the six degree of freedom body axis equations of motion: compute the body axis accelerations from the applied aerodynamic forces and moments, compute the angular accelerations from the moments and the inertia tensor, form the state derivative of the state vector u v w p q r phi theta psi, and propagate the state one step with a fourth order Runge Kutta integrator to integrate the equations of motion over the simulation step. Produces the propagated state, the Euler angle rates from the body angular velocities p q r, and the attitude angles over the step. Trigger: six degree of freedom, body axis equations of motion, Runge Kutta, Euler angle rates, state vector, angular velocities."
license: Apache-2.0
compliance: STANDARDS-REF
standards:
  - id: arp4754a
    reference-only: true
gated: false
domain: flight-mechanics
pack: flight-mechanics
compatibility: "agentskills.io SKILL.md; any SKILL.md host (Claude Code, Hermes, OpenClaw)"
metadata:
  domain: flight-mechanics
  subdomain: flight-dynamics-sim
  tags: [six-dof-simulation, body-axis, runge-kutta, euler-angles, rigid-body, equations-of-motion, state-vector, angular-velocities, rk4, attitude-kinematics]
  version: 0.1.0
  author: Aero Agent Skills
---

# Six-DOF Simulation (flight-mechanics/flight-dynamics-sim/six-dof-simulation)

Use when the task is rigid body aircraft simulation with the six
degree of freedom body axis equations of motion: force and moment
balance, Euler angle kinematics, and Runge Kutta propagation of the
state vector.

## Domain quick reference

Documented convention: body axes fixed in the aircraft, x forward,
y out the right wing, z down. The state vector is
[u, v, w, p, q, r, phi, theta, psi]: translational velocities
u, v, w in m/s, angular rates p, q, r in rad/s, and the Euler angles
phi (roll), theta (pitch), psi (yaw) in radians. The inputs are the
non-gravity body-axis loads: forces (X, Y, Z) in N, moments
(L, M, N) in N m, the mass m in kg, and the principal inertias
(Ixx, Iyy, Izz) in kg m^2 (products of inertia zero for a symmetric
aircraft). Weight enters through the gravity terms with g = 9.80665
m/s^2.

- Translational equations of motion (flat Earth, constant mass):
  u_dot = X/m - q w + r v - g sin(theta)
  v_dot = Y/m - r u + p w + g sin(phi) cos(theta)
  w_dot = Z/m - p v + q u + g cos(phi) cos(theta)
- Rotational equations (Euler rigid body equations about principal
  axes):
  p_dot = (L + (Iyy - Izz) q r) / Ixx
  q_dot = (M + (Izz - Ixx) r p) / Iyy
  r_dot = (N + (Ixx - Iyy) p q) / Izz
- Euler angle kinematics (body angular rates to attitude rates):
  phi_dot = p + tan(theta) (q sin(phi) + r cos(phi))
  theta_dot = q cos(phi) - r sin(phi)
  psi_dot = (q sin(phi) + r cos(phi)) / cos(theta)
- Fourth order Runge Kutta: one propagation step combines the
  derivative evaluations k1, k2, k3, k4 of the full nine-component
  state derivative and updates the state with the weighted average
  h (k1 + 2 k2 + 2 k3 + k4) / 6. The local error is fifth order in
  the step, so halving the step shrinks the error by about 32.
- Kinetic energy: 0.5 m (u^2 + v^2 + w^2) plus the rotational part
  0.5 (Ixx p^2 + Iyy q^2 + Izz r^2); used for the energy consistency
  check of a propagation step.

## Workflow

1. Collect the state vector (u, v, w, p, q, r, phi, theta, psi), the
   body-axis forces and moments, the mass, and the principal
   inertias.
2. Compute the Euler angle rates from p, q, r, phi, theta with
   euler_angle_rates.
3. Form the full nine-component state derivative with
   body_axis_derivative: the translational accelerations, the angular
   accelerations, and the attitude rates.
4. Propagate the state over the step with rk4_step and the fourth
   order Runge Kutta update.
5. Check the step with kinetic_energy when a work or energy budget is
   part of the simulation.

## Pitfalls

- Forgetting that the forces and moments are the non-gravity loads:
  weight is not an input force, it enters through the g terms, so a
  level trimmed aircraft needs Z = -m g, not Z = 0.
- Feeding degrees where radians are expected: phi, theta, psi and the
  rates are all radians and rad/s.
- Swapping the inertia roles in the gyroscopic terms: the p equation
  uses (Iyy - Izz), the q equation uses (Izz - Ixx), the r equation
  uses (Ixx - Iyy).
- Ignoring gimbal lock: psi_dot divides by cos(theta), so theta at
  plus or minus 90 degrees is singular and euler_angle_rates raises
  ValueError.
- Treating the Euler angle rates as the body angular rates: p, q, r
  are not phi_dot, theta_dot, psi_dot except at small angles.
- Using too large a step: RK4 is fourth order accurate, but a step
  that moves theta through the singularity still fails.

## Behavior contract (gate 3)

The six degree of freedom logic is exercised by the gate 3 contract
test: scripts/test_six_dof_simulation.py against
scripts/six_dof_simulation_logic.py (stdlib unittest, offline). Run:

python3 scripts/test_six_dof_simulation.py

## Compliance

- ARP4754A (SAE) gives guidance for the development of aircraft
  systems, including simulation and verification of system behavior
  during development; this leaf cites it as reference only per
  standards-map.yaml. The equations here are generic rigid body
  dynamics, not ARP4754A text.
- Revision note: ARP4754B (2023) supersedes ARP4754A; this skill keys to
  ARP4754A as the certification-baseline revision (FAA AC 20-174 cites A);
  see standards-map.yaml arp4754a.revision_decision.
- compliance: STANDARDS-REF, gated: false.

Attribution

ashfordeOUashfordeOU
View sourceMore from ashfordeOU →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

694821 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →