Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Empstack?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jueyi6-empstack)
---
name: empstack
description: Workflow for non-trivial engineering tasks. The session-start note says when to invoke it.
---
# empstack
Every other empstack skill is `../<name>/SKILL.md` from this file. Read the file and follow it, and never call the Skill tool for it. Most are hidden to save tokens, and it refuses those. A bold name like **swarm** or `/empstack:swarm` means that file. Put this file's absolute path in every `empstack:poteto-agent` prompt.
## 1. Name the stage
Before any tool call, tell the user in one sentence which stage this task is at, which playbook it takes, and why. In Korean the stages are 지도, 결정, 분해, 구현 and 출하. Your next tool call reads that playbook, `playbooks/<title>.md` with the title in kebab case, before you look at the user's code, however small the task. Copy its steps into the task list first.
Check Wayfind, then Decide, before any other stage.
- **Wayfind** (Wayfinder): the work is more than one session can hold and the way there is unclear: the user does not know where to start, or it hangs on many open decisions.
- **Decide** (Interview, Prototype, Investigation): Interview when what to build is a product or preference call no experiment can settle, or the user says they have not decided something, even something technical, or they ask to plan, specify or be grilled. The rules under Build, except Subagents, do not apply until the interview ends. Prototype when a run can settle the choice. Investigation when the user wants an answer, not a change.
- **Decompose** (Decomposition): work already settled, to split into tickets or PRs. A request to plan the work is Decide.
- **Build** (Bug fix, Feature, Refactoring, Perf issue, Hillclimb, Runtime forensics, Trace forensics, Visual parity, Authoring a skill or agent, Eval): a change to make. Restate the user's goal and the smallest change that meets it.
- **Ship** (Opening a PR, Babysit, Shipping, Autopilot-stack, Autopilot-full): a change to land.
- **Any stage** (Autonomous run, Session pickup, Pause safely, Worktree cleanup): how the run itself goes.
Large or cross-cutting work no playbook fits → **figure-it-out**. A small task no playbook fits → make the smallest change and prove it on the real artifact.
## Build
### Non-negotiables
In your reply, name each principle that shaped a decision and the choice it changed. Cite only principles whose leaf you read this session.
- Open each PR `## Why` and final report with the goal.
- Every agent kickoff starts with `Read <path>/worker.md before anything else.`, `<path>` being this skill's absolute folder, then the goal, its `Switch:` line, and what Briefs in `references/subagents.md` adds. Eval candidates are the exception.
- A design choice you could settle by running something → prototype it per `playbooks/prototype.md` instead of asking.
- Code → name the data shape first. Across a function boundary → **architect**. Fan-out → **swarm**. Bakeoff → **arena**. Contested design → **interrogate**. TypeScript → **typescript-best-practices**.
- Prose → **unslop**. Docs, PR descriptions, commit messages → **technical-writing**.
- Before commit → the built-in `simplify` skill over the diff. Before review → **no-comments**. A small diff you don't trust yet → **blast-radius**.
- Shipping UI or a CLI → drive the real thing: the project's `verify-*` skill, else the built-in `run` skill, the browser, or `Bash`. Without one, offer **create-verification-skill**. If it no longer matches the app, offer **maintain-verification-skill**.
- A measured number → **benchmark-checklist**. Outside facts into a cited file → **research**. Long or unattended work → **show-me-your-work**.
- PR status → the **Babysit** playbook. Landing a green stack → the **Shipping** playbook. Judge each bot review comment on its merits.
- Working from a ticket, or a wayfinder map covers this work → read `references/tickets.md` and follow it.
### Principles
Read the leaf in full for any principle you apply. The leaf is `../principle-<title>/SKILL.md`, title in kebab case with punctuation dropped, unless the entry names it.
**Core**
- **Laziness Protocol.** Refactoring, sizing a diff, or tempted to add layers. Bias to deletion and the smallest change.
- **Foundational Thinking.** Before writing logic: core types, data structures, setup-vs-feature order, shared state.
- **Redesign from First Principles.** A new requirement meets an existing design. Redesign as if it had been there from day one.
- **Attack the Premise.** Two fixes sharing one premise failed the same gate. Write the premise down and test it.
- **Subtract Before You Add.** Sequencing an addition, refactor, or rewrite. Remove dead weight first.
- **Minimize Reader Load.** Code that is hard to trace. Cut layers, hidden state, one-caller wrappers, mutable scope.
- **Outcome-Oriented Execution.** Rewrites and migrations. Converge on the target, no throwaway compatibility states.
- **Experience First.** Product, UX, or scope tradeoffs. User delight over implementation convenience.
- **Exhaust the Design Space.** A novel interaction or architecture. Build 2-3 competing prototypes and compare.
- **Build the Lever.** Any non-trivial work. Build the tool that does or proves it, so a reviewer can rerun it.
**Architecture**
- **Model the Domain.** Stateful logic, heavy branching, or a repeated shape assumption. Encode it in a structure (state machine, typed model, table) instead of scattered conditionals.
- **Boundary Discipline.** Validation, error handling, adapters. Guard at system boundaries, trust internal types, keep business logic pure.
- **Type System Discipline.** Designing types or a signature. Make illegal states unrepresentable, parse external data at boundaries.
- **Make Operations Idempotent.** Steps that run amid crashes and retries. Converge to the same end state.
- **Migrate Callers Then Delete Legacy APIs.** A new internal API while old callers exist. Migrate and delete in one wave.
- **Separate Before Serializing Shared State.** Concurrent actors might write the same thing. Eliminate the sharing first.
**Verification**
- **Prove It Works.** Before declaring done. Verify against the real artifact, not a proxy or "it compiles".
- **Fix Root Causes.** Debugging. Fix where the system first went wrong. A guard is a fix only when the state it handles is legitimate.
- **Sequence Work into Verifiable Units** (`principle-sequence-verifiable-units`). Multi-step work, stacking commits and PRs. Small units, each verified before the next.
- **Test Behavior, Not Implementation.** Writing, changing, or keeping a test. Assert what users of the code can observe.
- **Explain the Number.** Measuring, or trusting a measured number. Find what limits it and rule out that it measured something else.
**Delegation**
- **Guard the Context Window.** Large outputs, long files, repeated reads, fan-out. Route bulk to subagents, keep summaries here.
- **Never Block on the Human.** Tempted to ask "should I do X?" on reversible work. Proceed, present the result, let the human correct.
**Meta**
- **Encode Lessons in Structure.** Writing the same instruction twice. Encode it as a lint, flag, runtime check, or script. The operator corrects a mistake agents keep repeating → offer **correct**.
### Autonomy
Reversible work proceeds without asking. So do external actions the task calls for (team chat, ticket updates, starting evals). Ask before any other. Always pause for irreversible writes: force-push to shared branches, deploys, data deletion, customer messages.
No is an acceptable answer. Asked whether to do something, offered scope, or shown an approach, give your real judgment and push back when true.
### Subagents
**Approval.** Before a task's first spawn, state a delegation plan: each spawning step's switch, `model effort`, count, and whether it edits files. With `subagent approval: off`, the default, say it in one sentence and spawn, and say any later change the same way. With `subagent approval: on`, which the session-start note names, show it, end your turn for the person's typed yes, and ask again before you raise a model or effort or add a step. No agents, no plan. A new task needs a new plan.
Before writing that plan, read `references/subagents.md` and follow it. It covers the delegation mode, which agent type to spawn, the `Switch:` line and the model ladder, writing briefs, and owning the result.
### Writing the reply
Short declarative sentences, no long dash, no colon as a connector. Lead with what changes for the user. Give each claim its evidence or a label (measured, inferred, or guess). Never hand the human a check you could run.
## Unattended runs
"Don't stop", "going to bed", "run until done", "be fully autonomous", or starting an Autonomous run or Autopilot makes a run unattended. Keep going, and call no tool that shows the person a question. At a step that asks them, offers them something, or waits for their yes, act on the answer you would recommend when it can be undone, and record it as assumed in the decision trail or final report. List anything else in the final report as waiting on the person, such as a product or preference call, a security, privacy or data risk, or a call a skill says never to make for them.
## Precedence
The user's instructions and saved memories outrank this skill. Keep the user's approval gates where a rule above says to proceed alone.