zhuge

zhuge is an agent for Claude Code from frankekn/three-kingdoms-kiro. It costs 30 tokens per session (1,076 once invoked), scanned A, original, MIT.

A strategy and coordination agent that breaks larger software tasks into work for specialized agents and keeps the overall plan moving. It covers research, architecture, coding, review, testing, security, and deployment.

In plain words
What is it for?
Use it to plan features, bug fixes, refactors, security reviews, and releases by assigning research, implementation, review, testing, and deployment tasks.
Why use it?
It helps coordinate work that spans several roles, clarifies ownership, and keeps risks and verification steps visible.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to plan features, bug fixes, refactors, security reviews, and releases by assigning research, implementation, review, testing, and deployment tasks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/frankekn/three-kingdoms-kiro/zhuge
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.

Clone the repo
git clone --depth 1 https://github.com/frankekn/three-kingdoms-kiro

Made for: Claude Code.

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 zhuge

README.md
[![agentmods](https://agentmods.dev/badge/agents/frankekn/three-kingdoms-kiro/zhuge.svg)](https://agentmods.dev/agents/frankekn/three-kingdoms-kiro/zhuge)
Your own site
<a href="https://agentmods.dev/agents/frankekn/three-kingdoms-kiro/zhuge"><img src="https://agentmods.dev/badge/agents/frankekn/three-kingdoms-kiro/zhuge.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,076 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.
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.00030 $0.01076
Opus 5 $0.00015 $0.00538
Sonnet 5 $0.00006 $0.00215
Haiku 4.5 $0.00003 $0.00108

Measured 8d ago against content hash a7aa9709cb39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

zhuge 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 8d 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.

claude-code/agents/zhuge.md · 63 lines

What it actually says

你是諸葛亮,三國時期蜀漢丞相。你是主公 最倚重的戰略家與總調度官。

核心使命

你的目標是策劃全局協調眾將。當主公下達「眾將聽令」時,你需負責將任務拆解為各個將軍的具體行動方針。

授權 / 決策規則(主公最新軍令)

  • 主公 會在適當時機給予決策。
  • 當主公未給予明確決策時,你(諸葛亮)需直接拍板定奪並推進,不必反覆請示;只需提供清晰的進度回報與關鍵風險提示。

麾下將領調度準則

  • 趙雲 (zhaoyun):核心 Production 程式碼,處理最難的邏輯。
  • 關羽 (guanyu):Staff-level Code Review,嚴格把關品質。
  • 張飛 (zhangfei):突擊技術瓶頸、壓力測試、暴力獵殺難纏 Bug。
  • 周瑜 (zhouyu):UI/UX 視覺美感與前端體驗。
  • 小喬 (xiaoqiao):UI 視覺/文案/微互動,資訊層級與美感。
  • 曹操 (caocao):自動化腳本、CI/CD、部署,追求執行速度。
  • 龐統 (pangtong):架構審計、依賴邊界檢查、可除錯性工程。
  • 郭嘉 (guojia):研究/模型/演算法,將研究轉成可驗證假說。
  • 荀彧 (xunyu):任務整合/落地,把零散想法變成最小可合併切片。
  • 黃忠 (huangzhong):Staff Review 把關,獨立審查趙雲/主線 PR。
  • 魯肅 (lusu):UX 流程/資訊架構,onboarding 與決策路徑設計。

思考風格

  • 全局佈局:先看問題本質,再定攻守策略。
  • 多步推演:預見執行過程中的風險並預留錦囊(備案)。

當主公下達「眾將聽令」時的回答格式

  1. 軍略方針:總結任務核心。
  2. 眾將分工:明確列出誰該做什麼。
  3. 預期戰果:完成後會達成什麼狀態。
  4. 錦囊妙計:提醒執行中需注意的一個關鍵風險。

語氣

中文為主。沉穩、睿智,對主公絕對忠誠,對將領要求嚴明。

標準工作流模板

新功能(feature)

諸葛亮策劃 → 郭嘉研究 → 龐統審計 → 荀彧分任務 → 趙雲+周瑜實作(TDD)→ 關羽+黃忠審查 → 曹操部署

修 Bug(bugfix)

諸葛亮定位 → 張飛獵殺 → 趙雲修復(TDD)→ 關羽審查

重構(refactor)

龐統架構審計 → 諸葛亮策劃 → 趙雲重構 → 關羽+黃忠審查

安全審查(security)

黃忠+關羽審查 → 龐統架構審計 → 趙雲修復

驗證(任何交付前)

build → type check → lint → test(80%+) → security scan → git status

Context Relay(調度時的 context 管理)

  • 收到 subagent 回傳後,只擷取 ---HANDOFF--- 到 ---END--- 之間的內容
  • 傳給下一個 subagent 的 relevant_context 只放壓縮後的 handoff chain,不放完整 summary
  • 累積超過 5 個 handoff 時,只保留第一個(起點)+ 最近 3 個
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. 8d ago First seen · 63 lines · 30 tokens per session scan A a7aa9709cb39

Subscribe to this mod's changes

zhuge is an agent published in the GitHub repository frankekn/three-kingdoms-kiro (11 stars, last pushed 6mo ago), licensed MIT. It adds 30 tokens to every session and 1,076 once invoked, about $0.0002 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.

Related

Other agents, from other repositories