art-of-war

art-of-war is a skill for Claude Code from fatihguner/foreman. It costs 78 tokens per session (3,266 once invoked), scanned A, original, MIT.

A strategy framework based on the lessons of *The Art of War*, presented as a coding-agent skill.

In plain words
What is it for?
Use it for strategy discussions, planning, and analysing competitive situations.
Why use it?
It gives an agent a named way to think about strategy and competition instead of approaching those questions without a framework.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the foreman plugin — 142 skills, 60 commands, 7 agents shipped together

Good fit Use it for strategy discussions, planning, and analysing competitive situations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatihguner/foreman/art-of-war
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fatihguner/foreman --skill art-of-war
Clone the repo
git clone --depth 1 https://github.com/fatihguner/foreman

Made for: Claude Code.

Or install foreman, the plugin that ships this one along with the rest of its 142 skills, 60 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for art-of-war

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatihguner/foreman/art-of-war/github.svg)](https://agentmods.dev/skills/fatihguner/foreman/art-of-war)
Your own site
<a href="https://agentmods.dev/skills/fatihguner/foreman/art-of-war"><img src="https://agentmods.dev/badge/skills/fatihguner/foreman/art-of-war/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for art-of-war

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatihguner/foreman/art-of-war"><img src="https://agentmods.dev/badge/skills/fatihguner/foreman/art-of-war.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,266 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.03266
Opus 5 $0.00039 $0.01633
Sonnet 5 $0.00016 $0.00653
Haiku 4.5 $0.00008 $0.00327

Measured 6d ago against content hash 480831ec77ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

art-of-war scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/foreman/skills/art-of-war/SKILL.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Read runtime and advisory rules before applying this skill. Other Foreman layers and the catalog are in ../../content/, relative to this SKILL.md.

Sun Tzu's Art of War

Written approximately 2,500 years ago by a Chinese military strategist whose very existence some scholars dispute, The Art of War remains one of the most frequently purchased business books on Amazon. It sits on the bookshelves of Fortune 500 CEOs, Silicon Valley founders, and Wall Street traders with the same stubborn persistence as it sat in the libraries of Napoleon, Mao Zedong, and General Douglas MacArthur. This longevity is not nostalgia or affectation. Sun Tzu articulated principles of competitive strategy -- positioning, information asymmetry, resource allocation, the primacy of winning without fighting -- that predate Michael Porter by two millennia but remain structurally identical to the frameworks taught in modern business schools. The language is military; the logic is universal.


The Framework

Sun Tzu's treatise spans thirteen chapters, but its strategic wisdom distills into several core principles that map directly onto entrepreneurial competition.

Principle 1: Know Yourself and Know Your Enemy

"If you know the enemy and know yourself, you need not fear the result of a hundred battles."

This is Sun Tzu's most cited passage, and it is frequently reduced to a platitude. The operational meaning is precise: competitive advantage flows from superior information. Companies that understand their own capabilities honestly AND understand their competitors' capabilities accurately will outperform those with blind spots in either direction.

The Knowledge Matrix:

Know Yourself Do Not Know Yourself
Know Enemy Victory in every engagement -- strategic clarity enables decisive action Alternating wins and losses -- you exploit competitor weakness but are surprised by your own
Do Not Know Enemy Stalemate or defensive survival -- internal strength without external awareness leads to missed opportunities Certain defeat -- operating blind on both dimensions

Read the full file on GitHub · 211 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +210 lines · +78 tokens per session 480831ec77ac
  2. 12d ago First seen · 1 lines · 0 tokens per session scan A 1cc4855fc358

Subscribe to this mod's changes

art-of-war is a skill published in the GitHub repository fatihguner/foreman (50 stars, last pushed 7d ago), licensed MIT. It adds 78 tokens to every session and 3,266 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.