ic-example
Find example IC10 code for common patterns. Use when user asks for examples, templates, or sample code for Stationeers automation like airlocks, pressure control, solar tracking, or furnace management.
When & Why to Use This Skill
This Claude skill is a specialized IC10 code repository and generator designed for Stationeers automation. It enables users to quickly find, adapt, or generate MIPS-like scripts for complex in-game systems, including atmospheric control, solar tracking, and automated airlocks. By leveraging a multi-phase search and generation workflow, it ensures players have access to optimized templates and functional code patterns to streamline their base building and automation logic.
Use Cases
- Retrieving ready-to-use IC10 templates for advanced airlock sequences, including pressure-based cycling and emergency protocols.
- Implementing efficient solar tracking and power distribution logic to maximize energy efficiency in Stationeers.
- Managing complex atmospheric setups such as gas mixing, temperature regulation, and filtration systems using proven code patterns.
- Generating custom automation scripts for unique hardware configurations when existing local or external examples are not found.
- Learning IC10 programming through examples of PID controllers, hysteresis loops, and state machine logic.
| name | ic-example |
|---|---|
| description | Find example IC10 code for common patterns. Use when user asks for examples, templates, or sample code for Stationeers automation like airlocks, pressure control, solar tracking, or furnace management. |
IC10 Example Finder
Find example IC10 code from local library or external sources.
Workflow
1. Local Search Phase
Use Task tool to spawn:
pattern-finder- Search local examples/ directory
2. External Search Phase (If Local Empty)
If local search returns no good matches:
resource-curator- Search external sources
3. Adaptation Phase (If Nothing Found Anywhere)
If neither local nor external found:
code-generator- Create example based on closest patterns
Decision Flow
User Request
|
v
pattern-finder (local examples/)
|
+-- FOUND --> Present local example(s)
| with full code
|
+-- NOT FOUND
|
v
resource-curator (external)
|
+-- FOUND --> Create guide
| Present top results with links
|
+-- NOT FOUND
|
v
Offer to generate new example
using code-generator
Available Categories (Local)
Atmosphere
- Pressure regulation
- Temperature control
- Gas mixing
- Filtration systems
Power
- Solar tracking
- Battery monitoring
- Generator control
- Power distribution
Airlocks
- Simple cycling
- Pressure-based cycling
- Multi-door sequences
- Emergency protocols
Patterns
- PID controller
- Hysteresis (bang-bang)
- State machines
- Proportional control
Instructions
When the user asks for example code:
Search locally first:
- Launch
pattern-finderwith category/pattern name - Check
examples/directory
- Launch
If found locally:
- Present the example with full code
- Explain what it does
- Note device requirements
- Highlight customization points
- Done
If NOT found locally:
- Launch
resource-curatorwith the topic - Wait for external search results
- Launch
If found externally:
- Present top resources with links
- Note guide location:
guides/[topic]-resources.md - Explain these are external resources (not local examples)
- Done
If nothing found anywhere:
- Inform user no existing examples found
- Offer to generate a new example
- If user agrees, launch
code-generator
Example Triggers
- "Show me an example of..."
- "How do I control pressure?"
- "Give me a template for..."
- "What's a good pattern for...?"
- "Do you have example code for...?"
- "I need a sample script for..."
Example Response (Local Found)
## Local Example: Pressure Control
Found in `examples/atmosphere/pressure-control.ic10`:
```ic10
# Pressure regulation for a room
# d0 = Pressure sensor
# d1 = Active vent (inward)
...
Devices required: Pressure sensor, Active vent Customization: Change TARGET_PRESSURE constant (line 5)
## Example Response (External Found)
External Resources for "trading automation"
No local examples found, but I searched external sources.
Found 4 resources:
jhillacre/trading-controller.ic10 https://github.com/jhillacre/stationeers-scripts/... Full auto-trading with satellite dish control
Wiki: Satellite Dish https://stationeers-wiki.com/Satellite_Dish Manual control and signal detection
Full guide saved to: guides/trading-resources.md
## Example Response (Nothing Found)
No Examples Found
I searched both local examples and external sources but didn't find existing code for "[topic]".
Would you like me to generate a new example? I can create one based on the closest related patterns.