Logo Stellar Spectroscopy

Stellar Spectroscopy

Cộng đồng
Tibsfox
stellar-spectroscopy

Stellar spectral analysis from first light to chemical abundance. Covers continuum emission and absorption, the OBAFGKM classification sequence, luminosity classes, line identification, Doppler shifts, curve-of-growth abundance analysis, and the astrophysical conclusions that follow from a spectrum. Use when classifying a star, measuring radial velocity, inferring composition or temperature, or teaching why the Sun is mostly hydrogen.

Add to TypingMind

Tổng quan

Nhà phát hànhTibsfox
Kho mãgsd-skill-creator
Tên kỹ năngstellar-spectroscopy
Sao
70
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Tibsfox công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Stellar Spectroscopy trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/astronomy/stellar-spectroscopy
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/astronomy/stellar-spectroscopy .claude/skills/stellar-spectroscopy
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Stellar Spectroscopy trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Stellar Spectroscopy ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Stellar Spectroscopy với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Stellar Spectroscopy

A stellar spectrum is the single most information-dense observation in astronomy. From a dispersed beam of starlight you can read temperature, luminosity, surface gravity, chemical composition, radial velocity, rotation speed, magnetic field strength, and binary companionship. This skill covers the core techniques for turning a spectrum into astrophysics: how the continuum forms, how absorption lines are produced, how to classify a star on the OBAFGKM sequence, how to identify and measure lines, how to extract Doppler velocity, and how to run a curve-of-growth abundance analysis. Cecilia Payne-Gaposchkin's 1925 dissertation — the first analysis to show that stars are mostly hydrogen — is the worked example at the end.

Agent affinity: payne-gaposchkin (composition analysis), burbidge (nucleosynthesis signatures)

Concept IDs: astro-hr-diagram, astro-stellar-classification, astro-nuclear-fusion

Where a Spectrum Comes From

A star's spectrum has three components, each produced by a different physical process:

  1. Continuous spectrum (continuum) — thermal emission from the hot, dense gas below the photosphere, approximately a blackbody with small deviations.
  2. Absorption lines — cooler gas in the photosphere absorbs specific wavelengths as electrons jump between bound energy levels.
  3. Emission lines (less common in stars) — hot tenuous gas re-emits at specific wavelengths, most prominent in Be stars, Wolf-Rayets, and the solar chromosphere.

Kirchhoff's laws (1859) describe this: a hot dense gas produces a continuous spectrum; a hot diffuse gas produces emission lines; a cool gas in front of a continuum source produces absorption lines. The Sun shows all three depending on where you look.

The Continuum and Temperature

The continuum is approximately blackbody, so the shape of the continuum encodes temperature through the Wien displacement law:

lambda_max * T ~ 2.9 x 10^-3 m K

For the Sun (T ~ 5800 K), lambda_max ~ 500 nm, in the middle of the visible. For an O star (T ~ 30,000 K), lambda_max ~ 100 nm, in the far UV. For an M dwarf (T ~ 3000 K), lambda_max ~ 1 micron, in the near IR.

Color as a temperature proxy. Photometric indices like B-V (blue minus visual magnitude) map to temperature without requiring a full spectrum. A B-V of 0.0 corresponds to T ~ 10,000 K (A0V); a B-V of 1.5 corresponds to T ~ 3600 K (M0V). But color alone cannot separate temperature from reddening by interstellar dust, so photometric classification is always uncertain until you have a spectrum.

The OBAFGKM Spectral Sequence

Stellar spectra are classified into seven primary types based on which absorption lines dominate:

TypeT (K)ColorDominant featuresExample
O30,000-50,000blueHe II, ionized metals, weak H10 Lac
B10,000-30,000blue-whiteHe I strong, H strongerRigel, Spica
A7,500-10,000whiteH lines maximum, weak metalsSirius, Vega
F6,000-7,500yellow-whiteH weakening, Ca II H and K strongProcyon
G5,200-6,000yellowMetal lines strong, Ca II dominant, G-band (CH)Sun
K3,700-5,200orangeMetal lines very strong, molecular bands appearArcturus
M2,400-3,700redTiO molecular bands dominateBetelgeuse, Proxima

Each type subdivides 0-9, so the Sun is G2. Later additions extended the sequence to L (brown dwarfs, metal hydrides), T (methane brown dwarfs), Y (coolest brown dwarfs, below 500 K).

Why the sequence is not temperature alphabetical. Annie Jump Cannon, working at Harvard between 1896 and 1924, classified over 350,000 stellar spectra and discovered that the alphabetical ordering from Secchi's earlier system did not match temperature. She reordered the types as OBAFGKM (mnemonic: "Oh Be A Fine Girl/Guy, Kiss Me") — the sequence that has stood for a century.

The ionization-excitation interpretation. Cecilia Payne-Gaposchkin (1925) used Saha's ionization equation and Boltzmann's excitation equation to show that the spectral sequence reflects temperature through the physics of atomic excitation and ionization, not the abundances of elements. Hydrogen lines peak at type A not because A stars have more hydrogen but because A-star temperatures put the most hydrogen atoms in the n=2 level from which the Balmer lines are absorbed.

Luminosity Classes (Morgan-Keenan)

Spectral type alone gives temperature. To separate a cool dwarf from a cool giant (very different luminosities but similar temperatures), the MK system adds a luminosity class:

ClassNameExample
IaBright supergiantRigel (B8Ia)
IbSupergiantBetelgeuse (M1-M2 Ia-Iab)
IIBright giantPolaris (F7Ib-II)
IIIGiantArcturus (K1.5III)
IVSubgiantProcyon (F5IV-V)
VMain sequence (dwarf)Sun (G2V)
VISubdwarfKapteyn's Star
VIIWhite dwarfSirius B

How luminosity is read from a spectrum. Giants have lower surface gravity than dwarfs. Low gravity means lower photospheric pressure, which narrows pressure-broadened lines and strengthens certain ionization stages relative to neutrals. Specific ratios (e.g., Sr II 4077 / Fe I 4045) are calibrated luminosity indicators. The analyst compares these to standard spectra to assign a class.

Line Identification

Identifying which element produced which line is the first step in any quantitative analysis.

Procedure:

  1. Calibrate wavelength. Use an arc lamp (Fe-Ar, Th-Ar) taken in the same instrument setting. Residuals after calibration should be under 0.01 A for high-resolution work.
  2. Correct for radial velocity. Measure the Doppler shift from known stellar features (see next section) and transform the observed wavelengths to the rest frame.
  3. Match against a line list. Standard references: the Moore Multiplet Tables, the VALD database (Vienna Atomic Line Database), NIST ASD.
  4. Check oscillator strength and excitation potential. A "possible identification" must also be physically plausible given the star's temperature.
  5. Blend handling. Many lines overlap. Fitting requires deconvolution or exclusion of blended features.

Typical features to recognize:

  • Balmer series — H-alpha 6563, H-beta 4861, H-gamma 4340, H-delta 4102. Hydrogen absorption in A-type and hot F stars.
  • Ca II H and K — 3969 and 3934. Strongest in late-type stars (G, K).
  • Na I D doublet — 5890, 5896. The famous yellow sodium feature.
  • Fe I multiplets — hundreds of lines throughout the optical, dominant in G and K stars.
  • TiO bands — broad molecular absorption at 4954, 5167, 6159 and elsewhere, the defining feature of M stars.
  • He I 5876 — present in A and earlier types, absent in cool stars.

Doppler Shift and Radial Velocity

If a star moves toward or away from the observer, every spectral line shifts by the same proportional amount:

(lambda_observed - lambda_rest) / lambda_rest = v_r / c

where v_r is positive for recession (redshift) and negative for approach (blueshift), and c is the speed of light.

Measurement. Identify a well-calibrated line and measure its observed wavelength to sub-angstrom precision (modern echelle spectrographs can do 1 m/s with careful analysis). Compute the shift. For high precision, correlate the whole spectrum against a template (Doppler cross-correlation) rather than relying on one line.

Applications:

  • Binary orbits. A spectroscopic binary reveals itself through periodic RV variation.
  • Exoplanet detection. The reflex motion of a star pulled by an orbiting planet produces sub-m/s RV signals.
  • Cluster membership. Stars sharing a common RV are likely physical members of a cluster.
  • Galactic kinematics. RVs of thousands of stars map the rotation curve of the Milky Way.

Stellar Rotation from Line Broadening

A rotating star's lines are broadened because different parts of the disk approach and recede at different speeds. The broadening parameter is v sin i — the projected rotation velocity, where i is the unknown inclination angle.

Measurement. Fit the shape of a rotationally broadened line to a theoretical profile. The full width is proportional to v sin i divided by c. Typical values: Sun ~ 2 km/s, Vega ~ 20 km/s, rapidly rotating Be stars over 300 km/s.

Rotation broadening coexists with other broadening mechanisms: thermal Doppler broadening (proportional to sqrt(T)), pressure (Stark) broadening, microturbulence, and instrumental broadening. Disentangling them requires iterative spectral synthesis.

Equivalent Width and the Curve of Growth

The equivalent width (EW) of an absorption line is the width of a rectangular block of zero-intensity absorption that would remove the same amount of flux:

EW = integral of (1 - F_lambda / F_continuum) d-lambda

It has units of angstroms. EW is a convenient single number that captures how much an absorption line "bites out" of the continuum.

The curve of growth plots log(EW) against log(N * f * lambda) where N is the column density of absorbers in the lower level and f is the oscillator strength. The curve has three regimes:

  1. Linear regime — weak lines. EW grows linearly with N. Small columns.
  2. Saturation (flat) regime — line center goes to zero absorption. Growth is slow with N.
  3. Damping (square-root) regime — strong lines. Damping wings dominate and EW grows as sqrt(N).

Abundance measurement. Observe many lines of the same ion. Plot log(EW/lambda) against log(gf) + excitation potential correction. Match to a theoretical curve of growth for an assumed temperature and microturbulence. Adjusting the assumed abundance slides the observed points vertically until they fit. The best-fit abundance is your answer.

This is the classical method. Modern work uses full spectral synthesis — generating a synthetic spectrum for an assumed model atmosphere and composition, convolving to the instrument resolution, and fitting the observed spectrum line by line. The physics is the same.

Worked Example — Payne-Gaposchkin 1925

Cecilia Payne's Harvard PhD dissertation Stellar Atmospheres (1925) is the founding document of quantitative stellar spectroscopy.

The puzzle. Classical spectral analysis (before the Saha-Boltzmann framework) had concluded that the Sun had roughly terrestrial composition — iron, silicon, oxygen, and so on. This was wrong, but the error was invisible because it was baked into the methodology.

The insight. Payne applied Meghnad Saha's 1920 ionization equation to stellar photospheres. Saha's formula tells you, at a given temperature and electron pressure, what fraction of atoms of each element are in each ionization state. Combined with the Boltzmann distribution over excitation levels, you get the number of atoms in the specific quantum state from which a given absorption line originates.

The calculation. Payne observed that hydrogen and helium lines were strong despite being in the "wrong" excitation states for their visibility. When she worked backward from line strengths through Saha-Boltzmann to total elemental abundance, she got hydrogen and helium abundances a million times higher than the "heavy elements."

The reception. Payne's advisor Henry Norris Russell initially rejected the result as "clearly impossible" and persuaded her to soften the conclusion in her dissertation. Four years later Russell independently confirmed it and is sometimes miscredited with the discovery. Payne's result — that the universe is overwhelmingly hydrogen and helium — is the foundation on which stellar structure, Big Bang nucleosynthesis, and cosmic chemical evolution all rest.

Lesson for the skill. Getting the abundance right required applying the correct atomic physics to a correctly classified spectrum. Classification without physics gave terrestrial-like composition. Classification plus physics gave the actual universe.

Strategy Selection Heuristics

QuestionMethod
What kind of star is this?Spectral type from line ratios; luminosity class from pressure-sensitive diagnostics
How fast is it moving toward or away?Doppler shift of well-calibrated lines
Is it a binary?Look for double lines, or monitor RV for periodic variation
How fast is it rotating?v sin i from rotationally broadened line profiles
What is its composition?Curve-of-growth or synthetic spectrum fitting
Does it have a magnetic field?Zeeman splitting at high resolution

When NOT to Trust a Spectrum

  • Low S/N. Noise near the continuum swamps weak lines and fakes features. For reliable line measurements, S/N > 100 per resolution element.
  • Blending. Lines from different ions at the same wavelength cannot be separated without higher resolution.
  • Non-LTE effects. The Saha-Boltzmann framework assumes local thermodynamic equilibrium. Hot stars, low-gravity giants, and some line-forming regions require non-LTE treatment.
  • Stellar activity. Starspots, flares, and chromospheric emission contaminate the photospheric spectrum, especially for M dwarfs.
  • Interstellar contamination. Interstellar Na I and Ca II absorption can mimic stellar features.

Common Mistakes

MistakeWhy it failsFix
Using line strength as abundance directlyIgnores Saha-BoltzmannRun curve of growth or full synthesis
Single-line RVOne line, one chance to be wrongCross-correlate many lines
Ignoring telluric absorptionAtmospheric O2 and H2O mimic stellar featuresDivide by a telluric standard
Confusing luminosity class with distanceClass gives radius, not distanceCombine with parallax or bolometric flux
Assuming solar abundance for everythingMetal-poor halo stars, s-process giants break thisAlways verify against actual measurement

Cross-References

  • payne-gaposchkin agent: The definitive specialist for composition analysis and Saha-Boltzmann application.
  • burbidge agent: Nucleosynthesis signatures (s-process, r-process, alpha-element patterns).
  • hubble agent: Cross-references between spectral classification and redshift-based galaxy work.
  • distance-ladder skill: Spectroscopic parallax as a distance estimator using spectral type + apparent brightness.
  • naked-eye-observing skill: Visual estimation of color as a crude temperature proxy before any spectrograph.

References

  • Payne, C. H. (1925). Stellar Atmospheres: A Contribution to the Observational Study of High Temperature in the Reversing Layers of Stars. Harvard College Observatory Monograph No. 1. (The Ph.D. dissertation.)
  • Gray, D. F. (2005). The Observation and Analysis of Stellar Photospheres. 3rd edition. Cambridge University Press.
  • Gray, R. O., & Corbally, C. J. (2009). Stellar Spectral Classification. Princeton University Press.
  • Morgan, W. W., Keenan, P. C., & Kellman, E. (1943). An Atlas of Stellar Spectra. University of Chicago Press.
  • Saha, M. N. (1920). "Ionization in the solar chromosphere." Philosophical Magazine, 40, 472.
  • Mihalas, D. (1978). Stellar Atmospheres. 2nd edition. W. H. Freeman.

Câu hỏi thường gặp

Kỹ năng AI Stellar Spectroscopy làm được gì?

Stellar spectral analysis from first light to chemical abundance. Covers continuum emission and absorption, the OBAFGKM classification sequence, luminosity classes, line identification, Doppler shifts, curve-of-growth abundance analysis, and the astrophysical conclusions that follow from a spectrum. Use when classifying a star, measuring radial velocity, inferring composition or temperature, or teaching why the Sun is mostly hydrogen.

Vì sao nên dùng Stellar Spectroscopy trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Stellar Spectroscopy là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Stellar Spectroscopy trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/astronomy/stellar-spectroscopy. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Stellar Spectroscopy?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Stellar Spectroscopy với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Stellar Spectroscopy với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Stellar Spectroscopy có miễn phí không?

Kỹ năng này được Tibsfox phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇