artifact-optimizer

Analyzes code, design documents, and Skill files to produce prioritized optimization recommendations.

2|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/HACK-WU/skills --skill artifact-optimizer-hack-wu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: artifact-optimizer
Source: https://github.com/HACK-WU/skills/tree/main/skills/artifact-optimizer
Command: npx skills add https://github.com/HACK-WU/skills --skill artifact-optimizer-hack-wu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After finishing code, a design document, or a Skill file, it is hard to know whether the artifact could be better beyond simply being correct. This Skill performs a systematic optimization audit that answers "can it be better and how", producing prioritized, actionable improvement suggestions instead of vague feedback. ## Core Features & Use Cases - Type-Adaptive Analysis: Automatically detects whether the input is code, a design document, or a Skill file and switches to the matching evaluation dimensions (performance/readability for code, architecture/completeness for designs, trigger accuracy/redundancy for Skills). - Prioritized Recommendations: Scores each dimension on a calibrated 1-5 scale, identifies optimization opportunities with root-cause attribution, and ranks them by a benefit-versus-difficulty matrix (P0/P1/P2) with concrete before/after improvement plans. - Guarded Execution: Before applying any optimization, it invokes a request-guard brake check to prevent over-engineering, and supports a challenger re-review of the analysis report. - Use Case: You just wrote a 500-line Python module and ask "how can this code be improved". The Skill scores it across five dimensions, lists root-caused optimization points, and outputs a phased execution plan with verification steps. ## Quick Start Ask the AI to analyze your code, design document, or Skill file for optimization opportunities and output a prioritized improvement report.

Frequently Asked Questions about artifact-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find optimization opportunities in my code?

Provide the code file or paste its content and ask for an optimization analysis. The Skill scores performance, readability, maintainability, robustness, and simplicity on a 1-5 scale, then outputs root-caused improvement suggestions ranked by benefit versus difficulty.

What is the difference between code review and code optimization analysis?

Code review checks whether code has bugs or defects, while optimization analysis assumes the code is correct and asks whether it can be better. Use code-review first to eliminate defects, then run this optimization scan for improvement suggestions.

Can it analyze design documents and Skill files too?

Yes. It auto-detects the artifact type and switches dimensions: architecture rationality, completeness, and feasibility for design documents; trigger accuracy, flow clarity, and content redundancy for Skill files.

Which programming languages does the optimization analysis support?

It has language-specific guidance for Python, JavaScript/TypeScript, Go, Java, Rust, and C/C++, covering idioms like Pythonic style, goroutine management, and ownership semantics. Other languages are analyzed against general readability and maintainability standards.

What happens with very large files during analysis?

For code over 2000 lines or documents over 10000 words, it first outputs a structural overview table of modules and functions, then lets you choose the analysis scope to avoid token overflow. By default it focuses on entry points and core logic.

Does the optimization analysis modify my files directly?

No. It only outputs an analysis report with suggestions and never edits the input artifact. If you choose to execute optimizations afterward, a request-guard check validates the plan before any modification is made.