Claude-skill-registry ic-optimize
Optimize IC10 code for efficiency and line count. Use when user wants to reduce line count, improve performance, or refactor existing Stationeers IC10 code.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ic-optimize" ~/.claude/skills/majiayu000-claude-skill-registry-ic-optimize && rm -rf "$T"
manifest:
skills/data/ic-optimize/SKILL.mdsource content
IC10 Code Optimization
Optimize IC10 code for better efficiency and lower line count.
Workflow
-
Analysis Phase Use Task tool to spawn:
- Understand current code structurecode-analyzer
-
Optimization Phase Use Task tool to spawn:
- Apply optimization techniquescode-optimizer
Instructions
When the user asks to optimize IC10 code:
-
Launch
to understand the code structurecode-analyzer -
Launch
with:code-optimizer- The original code
- The analysis results
- Any specific constraints (target line count, etc.)
-
Present the optimization report:
- Before/after line counts
- List of optimizations applied
- Explanation of each change
-
Show the optimized code:
- With preserved documentation
- With clear structure
- Verifiably equivalent behavior
-
Note any trade-offs:
- Readability vs line count
- Additional register usage
- Potential edge cases
Optimization Goals
-
Line Count Reduction
- IC10 has 128 line limit
- Critical when code is near limit
- Use select, combine conditions, remove redundancy
-
Efficiency Improvement
- Reduce instructions per tick
- Cache device reads
- Move static calculations outside loops
-
Code Quality
- Maintain readability
- Keep documentation
- Preserve functionality
Example Triggers
- "Optimize this code"
- "Reduce line count"
- "Make this more efficient"
- "Refactor this script"
- "I'm running out of lines"
- "Can this be shorter?"