AGENT SKILL

astack

Rigor-mode router for engineering tasks. Matches a task to a playbook (bug fix, feature, refactor, investigation, ship) and carries a compact set of engineering principles through it. Invoke at the start of any task bigger than a one-line edit.

License 许可
GPL-3.0
所属仓库
UNRULYEON/skills
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
astack
description
Rigor-mode router for engineering tasks. Matches a task to a playbook (bug fix, feature, refactor, investigation, ship) and carries a compact set of engineering principles through it. Invoke at the start of any task bigger than a one-line edit.
argument-hint
Describe the task: what you want done.
disable-model-invocation
true

02 资源文件 11

03 SKILL.md 正文

astack

Route the task below to a playbook, then run it. Read the principles index once at the start of the task. Open a specific principle's full entry in principles.md only when a step calls for it. Open one playbook file after picking it — not the others.

1. Match a playbook

playbook for
bug-fix reproducing and fixing a defect
feature new or changed behavior
refactoring a behavior-preserving structural change
investigation a read-only question — how, why, is this true
ship getting a fresh diff to merge-ready and landed
babysit driving an already-open PR to merged: conflicts, review threads, CI
perf tracing a measured slowness and improving it against a baseline
prototype settling a design choice cheaply with throwaway competing sketches
visual-parity pixel- or property-exact UI equivalence between two implementations
multi-phase-plan work that spans phases or stacked PRs

No match? Apply the principles below directly and design a short sequence of verifiable steps for the task instead of forcing it into one of these.

2. Principles index

Apply these throughout the task, not just at the step that names them.

principle rule
bias toward deletion smallest change that solves the problem; prefer removing code to adding it
subtract before you add clear dead weight and stub references before building on top
data structures first settle core types and sequencing before writing logic
redesign from first principles design as if the new requirement had been there from day one, instead of bolting it on
exhaust the design space build 2-3 competing versions and compare them, rather than debating in the abstract
build the lever build the tool that does or proves repeated work, instead of doing it by hand
outcome-oriented execution converge on the target architecture directly; don't preserve throwaway compatibility scaffolding
minimize reader load collapse one-caller wrappers, shrink hidden state, cut layers between question and answer
model the domain encode the domain's states and transitions in a structure, not scattered conditionals
boundary discipline concentrate guards at system boundaries; trust internal types; keep core logic pure
illegal states unrepresentable parse external data at the boundary; don't lie to the type system
make operations idempotent converge to the same end state regardless of partial prior runs
prove it against the real artifact run the feature, read the actual value, inspect the diff — not a proxy or "it compiles"
fix root causes reproduce first, ask why until you reach it; resist guards that silence a crash instead of fixing it
sequence into verifiable units break work into steps that each end in a checkable state; verify each before the next
encode the lesson turn a recurring rule into a lint, script, or check instead of more prose

3. Route the work

Reach for these by role instead of doing everything in the main thread:

need reach for
read-only investigation, "how does X work" an Explore subagent
a cross-cutting design decision before writing code plan mode, or a Plan subagent
research or a work unit heavy enough to pollute the main thread a forked subagent
N independent attempts to compare before committing parallel subagent calls, then take the best parts
reviewing a diff before calling it ready the project's own review skill, if one is installed; otherwise review it yourself against the principles above
a deletion/simplification pass the project's own cleanup skill, if one is installed; otherwise apply bias-toward-deletion and subtract-before-you-add directly
a long-running or overnight task this session's loop/scheduling mechanism

4. Report

State what changed and how it was verified — not a narration of the steps taken to get there. If a step in the playbook couldn't be completed, say so plainly instead of reporting success.

<!-- Playbook/principle structure adapted from pstack's poteto-mode (github.com/cursor/plugins/tree/main/pstack, MIT), rewritten for Claude Code. -->

04 同仓库更多 Skills

UNRULYEON
UNRULYEON/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
UNRULYEON
UNRULYEON/skills

untangle-codebase

Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.

★ 0
UNRULYEON
UNRULYEON/skills

ui-sh

The ui.sh design system's tools for building and adapting UI: designing new UI from scratch, adding dark mode, generating a brand identity or marketing mockup board, cleaning up Tailwind classes, extracting reusable components, creating dark-mode raster image variants, comparing UI options in-browser with the ui.sh picker, making an existing UI responsive across breakpoints, and converting a screenshot, Figma export, mockup, or wireframe into semantic unstyled markup. Triggers on: design new UI, build a page or section, dark mode, add dark mode, brand kit, visual identity, marketing mockup, canonicalize Tailwind classes, clean up Tailwind, componentize, extract components, dark-mode image variant, ui.sh picker, compare UI options, make responsive, breakpoints, mobile/tablet/desktop layout, markup from image, screenshot to markup, Figma export to code, wireframe to markup.

★ 0
UNRULYEON
UNRULYEON/skills

transitions

Production-ready CSS transitions for web apps, plus tuning for motion that already exists. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, or accordions. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure". Also covers polishing motion that already animates — "polish my transitions", "refine the motion", "tune the timing / easing", "make the animation feel better / less janky", "tighten the durations", "fix the stagger", "align to the motion tokens", "audit the motion", "review my animations", "scan for ad-hoc transitions", "tokenize my animations", "timing feels off", "too slow / too fast", "open close timing", "hover in out". Also the commands transitions reveal, transitions review, transitions apply, transitions polish.

★ 0
UNRULYEON
UNRULYEON/skills

simplify

Use this skill automatically when you feel your code is ready for human review, and whenever writing or reviewing code comments. Ready means the code works and achieves a stated goal, verified by your own tests and/or, if you deem it necessary, human testing.

★ 0
UNRULYEON
UNRULYEON/skills

review-pr

Review a pull request or local branch diff for correctness, security, lifecycle, error handling, tests, and meaningful performance risks. Use when asked to review PR changes, a branch, a commit range, or the current working tree and return a structured review.

★ 0