cosmic-code-lab
Skill1 starsChanged 4 months agoMITView on GitHub
Generate a runnable, space-themed coding lab — a problem statement, starter code, hidden tests, and a worked solution — in Python or JavaScript. Use when creating coding exercises, a 'code lab', an interactive tutorial, or a space/astronomy programming challenge.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- frankxai/starlight-agent-skillsword for word, first seen Jul 27, 2026
Other versions1 project uses a version of this.
Word for word · 1
- frankxai/starlight-agent-skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adapters/claude.mdCLAUDE.md
- arcanea-mythic-overlaySkill
- frankx-authority-postSkill
- starlight-voiceSkill
- starlight-autoplanSkill
- starlight-ceo-reviewSkill
- starlight-design-reviewSkill
- starlight-devex-reviewSkill
- starlight-eng-reviewSkill
- starlight-investigateSkill
- starlight-qaSkill
- starlight-shipSkill
- starlight-specSkill
- apod-to-shortSkill
- arxiv-space-paper-to-briefSkill
- cosmic-mythic-overlaySkill
- nasa-image-to-atlas-pageSkill
- rights-check-nasa-esaSkill
- rocket-launch-to-reelSkill
- space-social-repurposerSkill
- coding-challenge-generatorSkill
- explain-like-cosmic-professorSkill
- simulation-lab-builderSkill
- caption-and-hashtagSkill
- nasa-image-to-shortSkill
- rocket-launch-to-youtubeSkill
- social-repurposerSkill
- thumbnail-conceptSkill
- arxiv-paper-to-briefSkill
- claim-verificationSkill
- mission-page-to-summarySkill
- media-studioSkill
- publishing-studioSkill
- software-studioSkill
- template-studioSkill
- world-experience-studioSkill
- affiliate-auditSkill
- agentic-incomeSkill
- capability-foundrySkill
- notion-operating-systemSkill
- payments-mandateSkill
- swarm-queen-coordinationSkill
The file
Files
Cosmic Code Lab
A learning objective → a self-contained, auto-checkable coding lab with a space-science backdrop.
Purpose
Space data makes great programming practice (orbital math, image stats, light travel time, catalog parsing). This skill produces a complete lab — a clear problem, runnable starter code, a hidden test suite, and a reference solution — so an educator or platform can drop it into a course without writing the scaffolding by hand.
When it fires
- Keyword triggers:
code lab,coding challenge,exercise,kata,tutorial,cosmic code - File triggers:
labs/**,*.lab.md,test_*.py,*.test.js - Command triggers:
/cosmic-code-lab
Inputs
| Input | Required | Notes |
objective | yes | The concept/skill to teach (e.g. "parse a star catalog"). |
language | no | python (default) or javascript. |
level | no | intro, intermediate (default), advanced. |
Workflow
- Frame the problem — a concrete, space-flavored task that isolates the
objective. State inputs, outputs, and constraints precisely. ✅ Check: a competent student could implement it from the statement alone. - Write starter code — minimal scaffold with a clearly marked TODO and a stable function signature.
- Write hidden tests — a runnable suite (pytest / a tiny JS harness) covering the happy path, an edge case, and an error case. Tests must pass on the solution and fail on the empty starter.
- Write the reference solution — clean, idiomatic, commented at decision points.
- Add the science note — 2–3 lines on the real astronomy behind the problem, factually correct.
- Self-verify — confirm the solution passes the tests and the starter does not.
Output contract
{
"title": "string",
"language": "python | javascript",
"problem_statement": "string",
"starter_code": "string",
"tests": "string — runnable test source",
"solution": "string",
"science_note": "string"
}Tools & MCP
- Tools:
Write(lab files),Bash(run the tests to self-verify). - MCP dependencies: none required.
Quality bar
- Solution passes the tests; empty starter fails them.
- Problem statement is implementable from text alone.
- Tests cover happy path + at least one edge + one error case.
- Science note is factually correct.
Example
See examples/example-01.md.
Built on SIP — Starlight Intelligence Protocol Substrate: starlightintelligence.org/protocol v1.1.0 Layers used: [file-contract, attestation, sovereignty] Vertical: starlight-agent-skills · portable capability layer
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

