算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
cleanup-web【设计与创意】End-of-session cleanup pass for TypeScript, React, and web code. Use this skill whenever the user asks to "clean up", "polish", "tidy", "refactor", or "review" web/frontend work at the end of a coding session, or when they invoke this skill by name. Performs a holistic review of files modified during the session — simplification, type safety, React p…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Evaluate the work done in this session and refactor it to a pristine state.
Operate only on files modified during this session. Use git status, git diff, your task log, or recent tool calls to identify them. Do not touch unrelated code.
If you can't identify the session's modified files with confidence, stop and ask.
Each skill below represents a review lens. Every lens gets its own sub-agent.
| Lens | Skill | Focus |
|---|---|---|
| Simplification | simplify | Dead code, needless abstractions, unused params, over-engineered utilities, and helpers whose names do not add meaning. Do not inline single-use helpers that clarify call sites or hide non-trivial conditions. |
| TypeScript | typescript | Type soundness, pragmatic generics, discriminated unions over type assertions, unknown over any |
| Type-driven design | parse-dont-validate | Push checks into types; make invalid states unrepresentable; branded types where warranted |
| React effects | no-use-effect | Derived state over effects, event handlers over sync effects, key-resets over effect-driven resets, useSyncExternalStore over manual subscriptions |
| React performance | vercel-react-best-practices | Component boundaries, use client / use server placement, data fetching patterns, bundle impact, memoization |
| CSS | modern-css | Native CSS over JS workarounds, logical properties, container queries, modern selectors, no legacy hacks |
| Comment hygiene | code-comments | Strip "what" comments and AI narration; keep "why" comments only |
| Correctness | adversarial-review | Behavior changes, dropped guards or edge cases, async/effect timing, server/client boundary, stale callers — bugs the session introduced |
Dispatch one sub-agent per review lens, all in parallel. Each sub-agent:
git diff (and git diff --cached if needed) to get the session's changesSub-agent prompt template (adapt the lens name and skill name per row):
You are reviewing TypeScript/React/web code changes from this session through the {lens} lens.
First, load the
{skill}skill using the Skill tool — read it fully before reviewing.Then run
git diffto see what changed. Review those changes exclusively through your lens.For each finding, return: file path + line range, proposed change (before/after), the principle motivating it, and any trade-off. If nothing needs changing for your lens, say so plainly.
Do not apply changes. Propose only.
After all sub-agents return, aggregate their findings:
Present the aggregated review as a single batch:
Wait for the user to approve before applying any edits.