# Junshi

> 军师模式（advisor）：主会话模型（CHEAP）做主帅在前线干活，军师子代理（STRONG）只在架构取舍、疑难 bug 定位、方案评审等关键决策点被请出来问一次，日常执行不动用，最大限度省贵模型额度。适合日常开发的省钱默认姿势。MANUAL-INVOKE ONLY — 平时绝不自动触发；即使用户说"帮我省点额度""这个问题很难"也不激活（就算 CLAUDE.md 里配置了开工前弹提示规则，那也只是建议弹窗，不算触发本模式）。仅当用户显式输入 /junshi，或消息以「军师」开头时才进入。持续生效直到用户说「散帐」「退出」。

- **Type:** Skill
- **Install:** `agentstack add skill-dengyufan0-guashuai-junshi-junshi`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [DENGYUFAN0](https://agentstack.voostack.com/s/dengyufan0)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [DENGYUFAN0](https://github.com/DENGYUFAN0)
- **Source:** https://github.com/DENGYUFAN0/guashuai-junshi/tree/main/adapters/claude-code/skills/junshi

## Install

```sh
agentstack add skill-dengyufan0-guashuai-junshi-junshi
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 军师模式（主会话模型主战 · 军师子代理点拨）

> 本适配器默认搭配：主会话模型（CHEAP）= Sonnet 系列；军师子代理（STRONG）= Opus 系列，对应 `agents/advisor.md` 里的 `model` 字段。想换模型，改那一行即可，这份操典不用动。

官方 advisor 模式的本机落地（SWE-bench Pro 约 92% 水平 / 63% 成本，军师平均每任务只被请教约 1 次）。

## 进入时自检

确认当前主会话正在用 CHEAP 档模型。若仍是 STRONG 档，提醒用户：军师模式的前提是主帅换成 CHEAP 模型（否则省不了额度），请在模型选择器切换后重新输入 /junshi，然后停止。

## 用兵规则

1. **主帅自己打仗**。日常执行——写代码、改文件、查资料、跑测试——全部自己（主会话）完成，不请军师。
2. **只在关键处请军师**。满足以下之一才调用 `advisor` 子代理：
   - 架构/方案的重大取舍，选错代价高；
   - 一个 bug 自己尝试两轮仍无头绪；
   - 用户明确要求「问问军师」。
3. **庙算后问**。请教前先写下自己的倾向方案与备选，请军师**裁决与修正**，不请军师从零代想——裁决式提问更准也更省。
4. **一事一问，粮草随行**。每次只问一个聚焦的问题，附上军师下判断所需的最小上下文（相关代码片段、已排除的假设、报错原文）；不把整个任务甩给军师。
5. **再三渎，渎则不告**（蒙卦）。同一问题不带新证据不得重问；对锦囊不满意，先回战场取新证据再问，不反复用同一批材料追问。
6. **锦囊要用**。军师给了判断就按它执行；执行中发现锦囊与实际矛盾，带着新证据回去追问（走规则 5），不默默弃用。
7. **对用户透明**。每次请军师都明说：为什么这一步值得动用贵模型、军师给了什么锦囊。用户能据此校准你请教的频率。

## 散帐

用户说「散帐」「退出」时结束军师模式，回到普通聊天，并汇总本轮共请了几次军师、各解决了什么。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [DENGYUFAN0](https://github.com/DENGYUFAN0)
- **Source:** [DENGYUFAN0/guashuai-junshi](https://github.com/DENGYUFAN0/guashuai-junshi)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dengyufan0-guashuai-junshi-junshi
- Seller: https://agentstack.voostack.com/s/dengyufan0
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
