| name | sunzi |
| description | Apply Sun Tzu as a practical engineering strategy lens for terrain, leverage, sequencing, battles to avoid, and the smallest winning move. |
Sunzi Strategy Lens
Use Sun Tzu (ซุนวู) as a practical strategy lens for AI-assisted engineering and product work. This skill translates classic strategy into observable planning behavior: know the situation, choose the right battle, shape conditions before acting, and avoid wasteful direct fights.
Workflow
Run this lens directly in the current conversation; do not route it to a planner.
- Inspect the supplied goal and only the repository context that can change the decision.
- Define the objective, terrain, capabilities, constraints, leverage, and costly battles.
- Choose the smallest move that improves the option set or produces decisive evidence.
- Define a verification signal and rollback or exit path.
Return a short strategy brief and one recommended move. Do not change files unless the
user separately asks for implementation.
Sun Tzu Mapping for Subagents
-
Know self, know the other
- Self: current capability, repo state, team bandwidth, available tests, deploy confidence.
- Other: customer need, competitor, broken system behavior, constraints, budget, time, platform limits.
- Ask: "What do we know about ourselves and the situation that changes the move?"
-
Win before fighting
- Shape conditions before writing code: clarify acceptance, reduce uncertainty, add diagnostics, isolate blast radius.
- Good sign: the implementation is almost obvious after discovery.
- Bad sign: coding begins while the real objective is still vague.
- Ask: "What condition can we improve first so the work becomes easy?"
-
Choose terrain
- Terrain is code ownership, architecture boundaries, dependencies, CI, deployment paths, customer context, and timing.
- Good sign: the plan works with existing seams.
- Bad sign: the plan fights the repo, framework, or release calendar.
- Ask: "Where is the easiest path through the system?"
-
Avoid costly direct assaults
- Prefer leverage: small adapter, config fix, test harness, staged rollout, or documentation change over a risky rewrite.
- Good sign: fewer touched files, clearer rollback, faster proof.
- Bad sign: heroic refactor because the agent wants a clean slate.
- Ask: "What battle should we not fight?"
-
Use timing and surprise responsibly
- Timing: sequence work so each step creates better information for the next.
- Surprise, in engineering terms: find a non-obvious simpler path, not deception against people.
- Good sign: the next move changes the option set.
- Bad sign: big-bang changes with no intermediate signal.
- Ask: "What move creates maximum information or leverage now?"
-
Discipline beats force
- Strong operations beat raw effort: gates, ownership, rollback, logs, and clear communication.
- Good sign: every action has proof and an exit path.
- Bad sign: adding more subagents to compensate for unclear command.
- Ask: "What discipline prevents chaos as we scale action?"
Output Format
## Sunzi Strategy Brief
- Objective: <what winning means>
- Terrain: <repo/product/customer/context constraints>
- Self: <capabilities and limits>
- Other/Constraint: <external pressure, competitor, bug, platform, or risk>
- Leverage: <1-3 leverage points>
- Avoid: <battle not worth fighting>
- Smallest winning move: <one concrete action>
- Proof: <test, metric, customer signal, log, or review signal>
Common Uses
- Before planning: pick the strategy before task decomposition.
- Before implementation: decide the smallest winning implementation path.
- Before deployment: choose rollout, smoke tests, rollback, and timing.
- During competitive/product decisions: focus on terrain, differentiation, and leverage.
- During incidents: avoid random fixes and choose the fastest path to verified stability.
Evidence Receipt
Return spk.evidence/v1 with objective, terrain, capabilities, constraints, leverage,
avoided battle, smallest move, proof signal, risks, and next action.
Guardrails
- Do not turn strategy into aggression. In SPK, "enemy" means constraint, bug, uncertainty, competition, or wasted motion.
- Do not recommend manipulation or harmful deception. Reinterpret surprise as simplicity, sequencing, or non-obvious leverage.
- Do not produce a long essay. Return a brief that changes the next action.
- Prefer avoiding a bad battle over winning an unnecessary one.