AI Skills Documentation#241
Conversation
May have to produce an updated workflow documentation with the steps for Claude such as /plan, etc...
Given example of local galaxy cluster database
Removed redundancy and added some notes from personal experience
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
==========================================
- Coverage 72.38% 68.97% -3.41%
==========================================
Files 19 19
Lines 1673 1673
Branches 211 211
==========================================
- Hits 1211 1154 -57
- Misses 380 441 +61
+ Partials 82 78 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kelle
left a comment
There was a problem hiding this comment.
also add Claude as a co-author.
| These skills only apply to the local repository you're running the agent from. | ||
| For skills to be available globally, copy them into ``%USERPROFILE%/.claude/skills/`` or the equivalent for your agent. |
There was a problem hiding this comment.
| These skills only apply to the local repository you're running the agent from. | |
| For skills to be available globally, copy them into ``%USERPROFILE%/.claude/skills/`` or the equivalent for your agent. |
| The skills are designed to run in sequence, each feeding the next, but any of them can | ||
| also be run on its own. | ||
|
|
||
| #. **astrodb-parse-data-table** — Reads a data table (FITS, CSV, ECSV, HDF5, VOTable, |
| Example: Building From The Local Group Galaxy Database | ||
| ----------------------------------------------- | ||
| The following condensed walkthrough shows the skills used end to end in a real | ||
| Claude Code session that built a database from McConnachie's *Nearby Galaxies* | ||
| catalog (``NearbyGalaxies_Jan2021_PUBLIC.fits`` — 144 Local Group dwarf galaxies). | ||
|
|
||
| **Setting up the session.** A few Claude Code slash commands configured the run | ||
| before any work began: | ||
|
|
||
| .. code-block:: text | ||
|
|
||
| /effort ultracode # maximum reasoning effort + dynamic workflow orchestration | ||
| /model # Opus 4.8 (1M context) | ||
| /advisor # route review checkpoints to a second Opus 4.8 reviewer | ||
| /plan # enter plan mode to scope the whole build before any changes |
There was a problem hiding this comment.
| Example: Building From The Local Group Galaxy Database | |
| ----------------------------------------------- | |
| The following condensed walkthrough shows the skills used end to end in a real | |
| Claude Code session that built a database from McConnachie's *Nearby Galaxies* | |
| catalog (``NearbyGalaxies_Jan2021_PUBLIC.fits`` — 144 Local Group dwarf galaxies). | |
| **Setting up the session.** A few Claude Code slash commands configured the run | |
| before any work began: | |
| .. code-block:: text | |
| /effort ultracode # maximum reasoning effort + dynamic workflow orchestration | |
| /model # Opus 4.8 (1M context) | |
| /advisor # route review checkpoints to a second Opus 4.8 reviewer | |
| /plan # enter plan mode to scope the whole build before any changes | |
| Example and Prompt Advice | |
| ----------------------------------------------- | |
| We recommend using plan mode. |
|
|
||
| The ``/plan`` prompt was *"Review your astro-db skills and create a plan to | ||
| have a fully working database after going through @NearbyGalaxies_Jan2021_PUBLIC.fits"*. | ||
| Plan mode let the agent inspect the FITS file and propose a complete build plan for |
There was a problem hiding this comment.
| Plan mode let the agent inspect the FITS file and propose a complete build plan for | |
| Plan mode tells the agent to inspect the FITS file and propose a complete build plan using all of the available skills for |
There was a problem hiding this comment.
You could alternatively run each skill one-by-one.
There was a problem hiding this comment.
Add that the output of this prompt is a populated SQLite database based on the data in the input file.
| /advisor # route review checkpoints to a second Opus 4.8 reviewer | ||
| /plan # enter plan mode to scope the whole build before any changes | ||
|
|
||
| The ``/plan`` prompt was *"Review your astro-db skills and create a plan to |
There was a problem hiding this comment.
make the prompt stand out more.
| **Running the pipeline.** With the plan approved, the skills ran in sequence, each | ||
| feeding the next: | ||
|
|
||
| #. **astrodb-parse-data-table** — parsed all 50 columns (names, units, descriptions). | ||
| #. **astrodb-match-schema** — mapped 50 / 50 columns (0 unmatched) onto ``Sources``, | ||
| ``RadialVelocities``, ``ProperMotions``, ``Photometry``, ``Morphology``, and | ||
| ``ModeledParameters``. | ||
| #. **astrodb-generate-schema** / **astrodb-validate-schema-mapping** — produced the | ||
| Felis ``schema.yaml`` (``felis validate`` passing) and confirmed 0 nullable | ||
| violations and 0 type mismatches against the real data. | ||
| #. **astrodb-create-db** — created ``LocalGroupDB.sqlite`` and a matching test suite. | ||
| #. **astrodb-ingest-source** — ingested all 144 galaxies as sources, plus their | ||
| measurements (129 radial velocities, 65 proper motions, 142 V-band magnitudes, | ||
| 137 morphologies, 889 modeled parameters). |
There was a problem hiding this comment.
| **Running the pipeline.** With the plan approved, the skills ran in sequence, each | |
| feeding the next: | |
| #. **astrodb-parse-data-table** — parsed all 50 columns (names, units, descriptions). | |
| #. **astrodb-match-schema** — mapped 50 / 50 columns (0 unmatched) onto ``Sources``, | |
| ``RadialVelocities``, ``ProperMotions``, ``Photometry``, ``Morphology``, and | |
| ``ModeledParameters``. | |
| #. **astrodb-generate-schema** / **astrodb-validate-schema-mapping** — produced the | |
| Felis ``schema.yaml`` (``felis validate`` passing) and confirmed 0 nullable | |
| violations and 0 type mismatches against the real data. | |
| #. **astrodb-create-db** — created ``LocalGroupDB.sqlite`` and a matching test suite. | |
| #. **astrodb-ingest-source** — ingested all 144 galaxies as sources, plus their | |
| measurements (129 radial velocities, 65 proper motions, 142 V-band magnitudes, | |
| 137 morphologies, 889 modeled parameters). |
Add that intermediary files for your inspection are put in the tmp/ folder.
| .. note:: | ||
|
|
||
| It's also recommended that you give your agent a reference to the `AstroDB template <https://github.com/astrodbtoolkit/astrodb-template-db>`_ | ||
| repository, which contains example ``schema.yaml`` files and test suites for all the template tables. | ||
| This can help the agent understand how to structure the new database and its tests. |
There was a problem hiding this comment.
I think we should fix this -- this should be in the SKILL and not the user's responsibility.
| repository, which contains example ``schema.yaml`` files and test suites for all the template tables. | ||
| This can help the agent understand how to structure the new database and its tests. | ||
|
|
||
| **Catalogs will have problems.** Claude is great at cleaning up data that doesn't |
There was a problem hiding this comment.
Move this statement to the first paragraph which motivates these SKILLS.
| **Review checkpoints with the advisor.** Because ``/advisor`` was enabled, a second | ||
| Opus 4.8 model reviewed the work at key points. This review isn't required but can | ||
| be very helpful for catching issues. |
There was a problem hiding this comment.
Make a Claude advice section with specific notes about using Claude.
also add that it's useful, but will use more resources/tokens.
| **Result.** A populated ``LocalGroupDB.sqlite`` with all 144 sources and their | ||
| measurements, 16 / 16 pytest tests passing, and a clean reload from the saved JSON. | ||
| A second ``/plan`` was used later in the same session to resolve the catalog's | ||
| numbered footnote references against its bibliography file. |
There was a problem hiding this comment.
| **Result.** A populated ``LocalGroupDB.sqlite`` with all 144 sources and their | |
| measurements, 16 / 16 pytest tests passing, and a clean reload from the saved JSON. | |
| A second ``/plan`` was used later in the same session to resolve the catalog's | |
| numbered footnote references against its bibliography file. |
Created new subsection under "Creating a New Database" with instructions on how to use the Claude skills and then a workflow example from using it on The Local Group Galaxy data.