Art of war software engineering
Skill kinhluan/skills/.agent-skills/art-of-war-software-engineering
π Professional Multi-Agent Skills
npx -y skills add kinhluan/skills --skill art-of-war-software-engineeringAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use before any major initiative, architecture decision, or competitive strategy choice. Triggers on "should we build this?", "how do we compete?", "is the timing right?", or when evaluating resource allocation. Scores five parallel factors (Tao/Heaven/Earth/Command/Method) β go/caution/stop verdict.
SKILL.md
29.0 KB, as published. Nobody here has run it
βοΈ Art of War for Software Engineering
"The general who wins a battle makes many calculations in his temple before the battle is fought." β Sun Tzu
Without this framework, teams commit to initiatives with hidden weaknesses β wrong timing, technical terrain that can't support the feature, no clear ownership, or engineers building without knowing why. The Five Factors surface these risks before resources are spent.
ποΈ The Five Fundamental Factors (NgΕ© Sα»±)
Five parallel evaluation criteria. Score all simultaneously β not a sequential pipeline.
1. Tao (ι β The Way)
Definition: Shared vision and alignment between stakeholders and the engineering team.
- Software Mapping: Does every engineer know why we are building this? β
why-strategic-rationale - Check: Can any engineer articulate the business value without reading a doc?
| Score | Signal |
|---|---|
| 1β3 | No WHY Statement. Direction changes weekly. Engineers "just completing tickets". |
| 4β6 | Some alignment but different team members give different answers to "why". |
| 7β10 | Clear WHY Statement + JTBD defined. All engineers can articulate business value. |
If score < 5: Run why-strategic-rationale before proceeding.
2. Heaven (倩 β Timing)
Definition: External conditions beyond control β market trends, timing, competition.
- Software Mapping: Is the market ready? β
diffusion-release-trackingRogers curve - Check: Launching too early (market not ready) or too late (missed window)?
| Score | Signal |
|---|---|
| 1β3 | No market validation. Building on assumption. Competitors dominate with no visible gap. |
| 4β6 | Some demand signals but timing unclear. Problem unvalidated. |
| 7β10 | Problem validated via problem-discovery. Target segment identified. Chasm strategy defined. |
If score < 5: Run problem-discovery + diffusion-release-tracking before proceeding.
3. Earth (ε° β Terrain)
Definition: Technical landscape, legacy systems, infrastructure β the "ground" you must traverse.
- Software Mapping: Tech debt, system boundaries, architecture β
c4-model+ddd-core - Check: Is tech debt too heavy to traverse? Should we buy instead of build?
| Score | Signal |
|---|---|
| 1β3 | Massive tech debt. Monolith. >6 months to change core component. No CI/CD. |
| 4β6 | Some debt, partially modular. Deploy takes days. Inconsistent test coverage. |
| 7β10 | Clean C4/DDD architecture. Loosely coupled. Core Domain isolated. Deploy < 1 hour. |
If score < 5: Run c4-model audit. Identify debt hotspots. Evaluate SaaS/managed services for Generic Subdomains before committing to build.
4. Command (ε° β Leadership)
Definition: Leadership qualities β wisdom, accountability, decision-making clarity.
- Software Mapping: Architects, PMs, Senior Engineers β
business-product-leadership - Check: Is there one DRI (Directly Responsible Individual) for the technical vision?
| Score | Signal |
|---|---|
| 1β3 | No clear owner. Decisions by committee or HIPPO (Highest Paid Person's Opinion). |
| 4β6 | Nominal ownership but unclear accountability. Gut-feel decisions dominant. |
| 7β10 | Clear DRI. Data-driven decisions. WHY understood and owned by leadership. |
If score < 5: Establish ownership and define RACI before execution begins.
5. Method (ζ³ β Discipline)
Definition: SDLC discipline, logistics, operational structure.
- Software Mapping: CI/CD, testing, DORA metrics β
dora-core - Check: Are deploy pipelines robust? Is testing/linting consistent?
| Score | Signal |
|---|---|
| 1β3 | Manual deployment. No CI/CD. DORA: Low tier (deployments < monthly). |
| 4β6 | Some automation but inconsistent. DORA: Medium tier. |
| 7β10 | Full CI/CD. Automated testing. DORA: High/Elite tier. Lead time < 1 hour. |
If score < 5: Run dora-core baseline. Fix CI/CD before adding feature complexity.
βοΈ Strategic Assessment Matrix
Score all five factors simultaneously before committing to any initiative.
| Factor | Score /10 | If Low β Action |
|---|---|---|
| Tao ι β WHY clear to every engineer? | Run why-strategic-rationale | |
| Heaven 倩 β Market timing validated? | Run problem-discovery + diffusion-release-tracking | |
| Earth ε° β Tech terrain navigable? | Run c4-model audit, consider SaaS | |
| Command ε° β Single DRI accountable? | Establish ownership, define RACI | |
| Method ζ³ β Pipeline automated? | Run dora-core baseline | |
| Total | /50 |
| Score | Decision |
|---|---|
| 40β50 | Excellent positioning. Proceed at full speed. |
| 30β39 | Proceed with caution. Fix lowest-scoring factor before sprint planning. |
| < 30 | STOP. Fix the two lowest-scoring factors. Re-assess before committing resources. |
π― Strategic Stratagems
1. "Know Yourself, Know Your Enemy"
"If you know the enemy and know yourself, you need not fear the result of a hundred battles."
Know yourself: Audit team capabilities, tech debt (Earth), Core Domain boundaries.
Know your enemy: Run problem-discovery β customer interviews + LMR (job board scan) + competitor analysis. Competitor analysis reveals the beachhead niche.
DO: Complete problem-discovery before defining JTBD.
DON'T: Substitute SWOT gut-feel for actual market signals. Assumptions are not intelligence.
2. "Win Without Fighting" (The Sheathed Sword)
"The supreme art of war is to subdue the enemy without fighting."
For every feature, ask: Core Domain or Generic Subdomain?
- Generic Subdomain β buy SaaS (Auth β Auth0, Payments β Stripe, Email β SendGrid)
- Core Domain β build with full engineering investment
DO: Default to SaaS for anything outside Core Domain. DON'T: Build Generic Subdomains. Every one you build steals engineering energy from your Core Domain β the only place you can actually win.
3. "Avoid Strength, Attack Weakness"
"Water runs away from high places and hastens downwards."
Strength = dominant competitors with moats, or your own legacy codebase. Weakness = underserved niches competitors ignore, new isolated microservices vs. monolith.
DO: Identify underserved segment from problem-discovery competitor analysis β use as beachhead. Dominate that niche completely, then cross the Chasm (diffusion-release-tracking). Target Early Adopters first.
DON'T: Compete head-on with dominant player. Don't refactor a massive monolith when you can build isolated new value instead.
4. "Binh NhΖ° NΖ°α»c" β Water Strategy (Adaptability)
"Shape your flow according to the nature of the ground over which it flows."
DO: Ship behind feature flags. Maintain high Deployment Frequency (dora-core). Keep architecture loosely coupled.
DON'T: Build tightly coupled monoliths or plan big-bang releases. Frozen water cannot flow β when Heaven (market) changes, you must be able to pivot.
π Integrated Workflow
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π‘οΈ LAYER 0 β NGΕ¨ Sα»° AUDIT (Score all 5 in parallel) β
β β
β Tao ι βββ Heaven 倩 βββ Earth ε° βββ Command ε° βββ Method ζ³ β
β WHY clear? Timing? Terrain? DRI? Pipeline? β
β β β β β β β
β βββββββββββββββ΄βββββββββββββ΄βββββββββββββββ΄βββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββ β
β β Assessment β β
β β Total /50 β β
β βββββββββ¬ββββββββ β
β β β
β βββββββββββββββΌββββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β ββββββββ ββββββββββ ββββββββββ β
β β < 30 β β 30β39 β β 40β50 β β
β β STOP β βCAUTION β βPROCEED β β
β β Fix 2β β Fix 1 β β β β
β βlowestβ β lowest β β β β
β ββββββββ ββββββββββ ββββββββββ β
β β β β
β ββββββββββββββββ re-assessββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π‘ LAYER 1 β KNOW YOURSELF / ENEMY (problem-discovery) β
β β
β ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ β
β β Customer β β Lean Validation β β LMR + Competitor β β
β β Interviews β β Landing page / β β Scan β β
β β (Blank 2005) β β Smoke test β β β β
β β β β (Ries 2011) β β β β
β ββββββββββ¬ββββββββββ ββββββββββ¬ββββββββββ ββββββββββ¬ββββββββββ β
β β β β β
β βββββββββββββββββββββββΌββββββββββββββββββββββ β
β βΌ β
β βββββββββββββββββββββββββββ β
β β Problem Statement β β
β β + Beachhead Niche β β
β βββββββββββββ¬ββββββββββββββ β
ββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π― LAYER 2 β ESTABLISH TAO (why-strategic-rationale) β
β β
β ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ β
β β VPC ββββββ PR/FAQ ββββββ WHY Statement β β
β β Value Propositionβ β Working Backwardsβ β + Kill Criteria β β
β β (Osterwalder) β β (Amazon) β β β β
β ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββ¬ββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π LAYER 3 β JTBD β VALUE PROP β PMR (business-product-leadership) β
β β
β Value Prop Statement: "[Product] helps [Customer] [solve Problem] β
β by [Approach], resulting in [Gain]" β
β β β
β βββββββββββββββββΌββββββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββ βββββββββββ βββββββββββ β
β β JTBD #1 β β JTBD #2 β β JTBD #3 β β
β βWhen [S],β βWhen [S],β β(optional)β β
β βwant [M],β βwant [M],β β β β
β βcan [O] β βcan [O] β β β β
β ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ β
β β β β β
β ββββββββββββββββΌβββββββββββββββ β
β βΌ β
β βββββββββββββββββββββββββββ β
β β Product Market Research β β
β β Validate each JTBD β β
β βββββββββββββ¬ββββββββββββββ β
β βββββββββββββΌββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββ βββββββββββ βββββββββββ β
β β GO β β DEFER β β NO-GO β β
β β Include β β Add to β β Kill β β
β β in MVP β β Roadmap β β Criteriaβ β
β ββββββ¬βββββ βββββββββββ βββββββββββ β
βββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β πΊοΈ LAYER 4 β MAP EARTH (c4-model + ddd-core) β
β β
β ββββββββββββββββββββ ββββββββββββββββββββ β
β β C4 L1βL3 ββββββ DDD Strategic + β β
β β (Simon Brown) β β Tactical (Evans) β β
β ββββββββββββββββββββ βββββββββββ¬βββββββββ β
β β β
β βΌ β
β βββββββββββββββββββ β
β β Core Domain or β β
β β Generic? β β
β ββββββββββ¬βββββββββ β
β βββββββββββββββββ΄ββββββββββββββββ β
β β β β
β βΌ βΌ β
β βββββββββββββββββ βββββββββββββββββ β
β β Generic β β Core Domain β β
β β Buy / SaaS β β Build β β
β β Win without β β Full eng β β
β β fighting β β investment β β
β βββββββββ¬ββββββββ βββββββββ¬ββββββββ β
ββββββββββββββββββββββΌββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββ
β β
βββββββββββββββββ¬ββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π§ LAYER 5 β WATER STRATEGY (collaborative-engineering-agent + diffusion) β
β β
β ββββββββββββββββββββ ββββββββββββββββββββ β
β β Feature Flags ββββββ Early Adopters β β
β β Dark Launch β β (Rogers 1962) β β
β β (Fowler 2010) β ββββββββββ¬ββββββββββ β
β ββββββββββββββββββββ β β
β βΌ β
β βββββββββββββββββββ β
β β The Chasm β β
β β (Moore 1991) β β
β ββββββββββ¬βββββββββ β
β β Cross β
β βΌ β
β βββββββββββββββββββ β
β β Early Majority βββββ Late Majority β
β βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π LAYER 6 β MEASURE & ADAPT (dora-core + product-analytics) β
β β
β ββββββββββββββββββββ ββββββββββββββββββββ β
β β DORA Metrics ββββββ Market Signal β β
β β DFΒ·LTΒ·CFRΒ·MTTR β ββββββββββ¬ββββββββββ β
β β (Forsgren et al) β β β
β ββββββββββββββββββββ β β
β βββββββββββββββββΌββββββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββββ βββββββββββββ βββββββββββββ β
β β Pivot β β Refine β β Kill β β
β β β VPC β β JTBD β β β Criteriaβ β
β βββββββββββββ βββββββββββββ βββββββββββββ β
β β β β
β ββββββββββββββββββ re-assess ββββββββββββββββββββ β
β (adaptability loop) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
NgΕ© Sα»± runs as audit layer at each step β not just at the start.
π Connection to Ecosystem
- β
why-strategic-rationale: Establishes the Tao (WHY Statement) - β
problem-discovery: Executes "Know Your Enemy" (market + competitor signals) - β
diffusion-release-tracking: Navigates the Heaven (Rogers curve + Chasm) - β
c4-model+ddd-core: Maps the Earth (architecture + domain) - β
business-product-leadership: Exercises the Command (JTBD + MVP + DRI) - β
dora-core: Refines the Method (CI/CD + DORA metrics)
π« Strategic Anti-Patterns
| Anti-pattern | Detection Signal | Consequence | Fix |
|---|---|---|---|
| High Method, Zero Tao | Engineers ship daily but can't explain business value | Efficiently building the wrong thing | WHY Statement before next sprint |
| Attacking strength | Competing head-on with dominant player in their core market | Resource drain, no path to win | Beachhead: dominate underserved niche first |
| Building Generic Subdomains | Auth, payments, email built in-house | Engineering energy stolen from Core Domain | Replace with SaaS, redirect capacity |
| Ignoring the Earth | Adding features to high-debt codebase with no audit | Velocity collapse, production incidents | C4/DDD audit before committing to timeline |
| Frozen water | Monolith, big-bang releases, no feature flags | Cannot pivot when market changes | Loosely coupled services + feature flags + high DF |
| Command without Method | Strong vision, inconsistent/manual pipelines | Vision never ships reliably | DORA baseline β CI/CD investment |
π Sources
| Concept | Author / Source | Year | Search keywords |
|---|---|---|---|
| Five Factors (NgΕ© Sα»±) | Sun Tzu, The Art of War | ~500 BC | "Art of War Sun Tzu five factors" |
| Customer Development | Steve Blank, Four Steps to the Epiphany | 2005 | "Customer Development Steve Blank" |
| Lean Startup / smoke tests | Eric Ries, The Lean Startup | 2011 | "Lean Startup Eric Ries validated learning" |
| Value Proposition Canvas (VPC) | Alex Osterwalder, Value Proposition Design | 2014 | "Value Proposition Canvas Osterwalder" |
| Working Backwards / PR/FAQ | Amazon; Colin Bryar & Bill Carr, Working Backwards | 2021 | "Amazon Working Backwards PR FAQ" |
| Jobs-To-Be-Done (JTBD) | Christensen; Ulwick; Moesta, Demand-Side Sales 101 | 2003+ | "Jobs To Be Done theory Christensen" |
| Crossing the Chasm / Beachhead | Geoffrey Moore, Crossing the Chasm | 1991 | "Crossing the Chasm Geoffrey Moore beachhead" |
| Diffusion of Innovations | Everett Rogers | 1962 | "Diffusion of Innovations Everett Rogers" |
| Domain-Driven Design (DDD) | Eric Evans, Domain-Driven Design | 2003 | "Domain Driven Design Eric Evans" |
| C4 Model | Simon Brown | 2011 | "C4 model Simon Brown architecture" |
| DORA Metrics | Forsgren, Humble, Kim, Accelerate | 2018 | "DORA metrics Accelerate book DevOps" |
| Feature Toggles | Martin Fowler | 2010 | "Feature Toggles Martin Fowler" |