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.
npx skills add konglong87/methodology-skills --skill swot-analysisgit clone --depth 1 https://github.com/konglong87/methodology-skillsWrote 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.
[](https://agentmods.dev/skills/konglong87/methodology-skills/swot-analysis)<a href="https://agentmods.dev/skills/konglong87/methodology-skills/swot-analysis"><img src="https://agentmods.dev/badge/skills/konglong87/methodology-skills/swot-analysis/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.
<a href="https://agentmods.dev/skills/konglong87/methodology-skills/swot-analysis"><img src="https://agentmods.dev/badge/skills/konglong87/methodology-skills/swot-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.05182 |
| Opus 5.5 | $0.00037 | $0.02073 |
| Sonnet 5.5 | $0.00018 | $0.01036 |
| Haiku 4.5 | $0.00009 | $0.00518 |
Grade A, and why
swot-analysis 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 565 lines — stays where its author put it; the contents beside it link to each section on GitHub.
前置协议
环境检测
PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "unknown")
BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
echo "PROJECT: $PROJECT_ROOT"
echo "BRANCH: $BRANCH"
echo "COMMIT: $COMMIT"
前置技能检查
# 检查前置工件
GOAL_ARTIFACT="memory/artifacts/goal-oriented/latest.json"
FP_ARTIFACT="memory/artifacts/first-principles/latest.json"
if [ -f "$GOAL_ARTIFACT" ]; then
echo "FOUND: goal-oriented artifact"
fi
if [ -f "$FP_ARTIFACT" ]; then
echo "FOUND: first-principles artifact"
fi
mkdir -p memory/artifacts/swot-analysis
Overview
SWOT分析是一种战略规划工具,通过系统性地分析对象的内部优势和劣势,外部机会和威胁,帮助做出更明智的决策。
核心价值:
- 提供全景式现状评估,避免片面判断
- 内外因素结合,平衡客观与主观
- 从分析到策略,直接产出可执行方案
- 适用广泛,从产品规划到技术选型均可使用
两阶段模式:
- 分析阶段:识别并填充S、W、O、T四个维度
- 策略阶段:通过TOWS矩阵交叉分析,生成SO/WO/ST/WT四类策略
关键区别:
- 简单列表式SWOT:只列出四个象限,无后续行动
- 战略式SWOT:分析→策略→行动,形成闭环
When to Use
适用场景:
- 项目立项或新功能规划(评估可行性和风险)
- 技术选型和架构决策(对比多个方案)
- 竞品分析和市场进入策略
- 问题诊断和瓶颈突破
- 资源分配和优先级排序
- 战略规划和业务决策
- 用户明确要求"SWOT分析"或"优劣势分析"
不适用场景:
- 简单明确的小决策(杀鸡用牛刀)
- 纯技术问题调试(需要debugging skill)
- 已有明确最优方案的选择
- 数据驱动的A/B测试(SWOT是定性分析)
快速判断是否使用SWOT
是否需要决策?
├─ 否 → 不需要SWOT
└─ 是
└─ 问题是否复杂多因素?
├─ 否 → 简单决策框架即可
└─ 是
└─ 是否涉及内外部因素?
├─ 仅内部 → 考虑根因分析/5Whys
├─ 仅外部 → 考虑PESTEL/波特五力
└─ 内外都有 → ✅ 适合SWOT
The Process
digraph swot_analysis {
rankdir=TB;
"定义分析对象" [shape=box, style=filled, fillcolor="#e0e0e0"];
"收集信息" [shape=box, style=filled, fillcolor="#c8e6c9"];
"填充SWOT矩阵" [shape=box, style=filled, fillcolor="#bbdefb"];
"用户选择模式" [shape=diamond, style=filled, fillcolor="#fff9c4"];
"简洁输出" [shape=box, style=filled, fillcolor="#f8bbd0"];
"TOWS交叉分析" [shape=box, style=filled, fillcolor="#e1bee7"];
"生成策略建议" [shape=box, style=filled, fillcolor="#ffccbc"];
"输出完整报告" [shape=doublecircle, style=filled, fillcolor="#81c784"];
"定义分析对象" -> "收集信息";
"收集信息" -> "填充SWOT矩阵";
"填充SWOT矩阵" -> "用户选择模式";
"用户选择模式" -> "简洁输出" [label="简洁模式"];
"用户选择模式" -> "TOWS交叉分析" [label="详细模式"];
"TOWS交叉分析" -> "生成策略建议";
"生成策略建议" -> "输出完整报告";
"简洁输出" -> "输出完整报告";
}
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.
- 1mo ago First seen · 565 lines · 92 tokens per session scan A 45b81359a159
swot-analysis is a skill published in the GitHub repository konglong87/methodology-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 92 tokens to every session and 5,182 once invoked, about $0.0004 per session on Opus 5.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-31.
Other skills, from other repositories
importing-a-codebase
Use when asked to create the initial spec graph for an existing codebase that has source code but no specs. Normally reached via setting-up-a-project.
starting-a-new-project
Use when the workspace is empty, has no code, and the user brings a raw project idea. Normally reached via setting-up-a-project; not for an existing project.
managing-mcp-servers
Use when the user asks to add, change, remove, enable or disable an MCP server, or when an MCP tool is missing, needs sign-in, fails, or was blocked. ThinkRail runs pi in-process, so there is no pi command to call.
todos
Use when the user asks for a shared plan, a task needs at least three substantive execution steps, or a loose TODO is pending. Without an explicit plan request, not for one-shot answers or checks, or one- to two-step work that is not already in the list.
asking-user-questions
Use when composing an askuserquestion round inside a workflow, or when a workflow skill names it at a question step. Shared norms for the tool — not a workflow, nothing to execute.
writing-workflow-skills
Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.