stability-analysis

stability-analysis is a skill for Claude Code, Codex from ppak10/RocketSmith. It costs 30 tokens per session (1,111 once invoked), scanned A, original, MIT.

A guide for checking model-rocket stability, measured in calibers, using the positions of the centre of gravity and centre of pressure.

In plain words
What is it for?
Use it to calculate stability, inspect flight data, and correct geometry or mass distribution when stability falls outside the target range.
Why use it?
It helps diagnose rockets that may be unstable or too sensitive to wind, including cases where a simulation gives no stability result.

Skill for Claude CodeCodex

Part of the rocketsmith plugin — 7 skills, 6 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ppak10/rocketsmith/stability-analysis
Any agent
npx skills add ppak10/RocketSmith --skill stability-analysis
Clone the repo
git clone --depth 1 https://github.com/ppak10/RocketSmith

Made for: Claude Code, Codex.

Or install rocketsmith, the plugin that ships this one along with the rest of its 7 skills, 6 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stability-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/ppak10/rocketsmith/stability-analysis.svg)](https://agentmods.dev/skills/ppak10/rocketsmith/stability-analysis)
Your own site
<a href="https://agentmods.dev/skills/ppak10/rocketsmith/stability-analysis"><img src="https://agentmods.dev/badge/skills/ppak10/rocketsmith/stability-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.01111
Opus 5 $0.00015 $0.00556
Sonnet 5 $0.00006 $0.00222
Haiku 4.5 $0.00003 $0.00111

Measured 3d ago against content hash bb4f54c054cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stability-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/stability-analysis/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stability Analysis

Overview

Stability margin = (CP − CG) / reference diameter, measured in calibers. The target is 1.0–1.5 cal. Outside this range the rocket is either dangerous or excessively weathercock-sensitive.

Core principle: Always fix the root cause — geometry or mass distribution — not the symptom. Never accept a null stability result; compute it manually.

When to Use

  • min_stability_cal < 1.0 (unstable)
  • min_stability_cal > 1.5 (over-stable)
  • min_stability_cal is null after simulation
  • User reports unexpected flight path or weathercocking
  • Stability was in range before rocketsmith:mass-calibration but fell out after applying real printed part weights — this is the expected failure mode when printed PLA/PETG is significantly heavier than OpenRocket's material defaults

Steps

1. Read the Numbers

Run openrocket_component (action="read") and note:

  • cg_x — center of gravity from nose tip (m)
  • cp_x — center of pressure from nose tip (m)
  • max_diameter_m — reference diameter

If min_stability_cal returned null, compute manually:

stability_cal = (cp_x - cg_x) / max_diameter_m

A positive result means CP is aft of CG — stable. A negative or zero result means unstable.

1.5. Consult the Reference Collection

Query rag_reference(action="search", collection="stability_notes", query=f"stability {round(current_cal, 2)} cal {symptom}", n_results=3) for prior cases with known fixes. Cite close matches and weigh against the heuristic below. Proceed if no results or on errors — the collection is an enrichment, not a prerequisite.

2. Diagnose the Direction

Under-stable (< 1.0 cal): CP is too close to CG, or forward of it.

  • Fins too small or too far forward
  • Nose cone too heavy
  • Body tube too short relative to fin span

Over-stable (> 1.5 cal): CP is too far aft of CG.

  • Fins too large
  • Nose cone too light
  • Aft mass (motor, motor mount) dominating

3. Apply Fixes

Work one change at a time. Re-simulate after each.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 105 lines · 30 tokens per session scan A bb4f54c054cc

Subscribe to this mod's changes

stability-analysis is a skill published in the GitHub repository ppak10/RocketSmith (21 stars, last pushed 4mo ago), licensed MIT. It adds 30 tokens to every session and 1,111 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.