takes-po

takes-po is a command for Claude Code from an8079/take-skills. It costs 35 tokens per session (686 once invoked), scanned A, original, MIT.

An agent that diagnoses software bugs, finds their underlying cause, makes a focused code fix, and checks it with a regression test.

In plain words
What is it for?
Investigating expected-versus-actual behavior, reproducing defects, changing the smallest necessary part of the code, and verifying the fix.
Why use it?
It gives bug investigations a repeatable process and helps prevent the same problem from returning.

Command for Claude Code

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

Part of the claude-dev-assistant plugin — 21 skills, 39 commands shipped together

Good fit Investigating expected-versus-actual behavior, reproducing defects, changing the smallest necessary part of the code, and verifying the fix.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/an8079/take-skills/takes-po
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/an8079/take-skills

Made for: Claude Code.

Or install claude-dev-assistant, the plugin that ships this one along with the rest of its 21 skills, 39 commands.

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 takes-po

README.md
[![agentmods](https://agentmods.dev/badge/commands/an8079/take-skills/takes-po/github.svg)](https://agentmods.dev/commands/an8079/take-skills/takes-po)
Your own site
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-po"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-po/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 takes-po

Your own site · 80×15
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-po"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-po.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 686 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.00035 $0.00686
Opus 5 $0.00017 $0.00343
Sonnet 5 $0.00007 $0.00137
Haiku 4.5 $0.00003 $0.00069

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

Security

Grade A, and why

takes-po 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 10d 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.

commands/takes-po.md · 100 lines

What it actually says

📝 /takes-po — Prompt Optimizer

将用户的自然语言需求转化为结构化、高效的提示词。

核心框架

## 角色 (Role)
你是一个[专业身份],擅长...

## 背景 (Context)
[项目的背景信息、现有情况、约束条件]

## 任务 (Task)
请帮我完成[具体任务描述]

## 要求 (Requirements)
- [硬性要求/必须满足的条件]
- [输出格式要求]
- [质量标准]

## 参考 (References)
[如果有的话,提供相关文件、代码、示例]

## 输出格式 (Output Format)
[期望的输出结构,如:代码块、文档结构、步骤列表等]

优化规则

  1. 角色明确 — 给 AI 分配一个专业身份
  2. 目标具体 — 说明最终要什么,不是过程
  3. 边界清晰 — 列出约束条件和范围
  4. 示例辅助 — 提供参考样式或反例
  5. 格式指定 — 明确输出结构

触发方式

/takes-po                   # 激活优化模式
/takes-po [自然语言需求]   # 直接优化需求
帮我优化提示词          # 自然语言触发
优化一下这个需求         # 自然语言触发

使用场景

场景 示例
需求模糊 "帮我写个项目" → 结构化项目需求
提示词优化 "帮我写个代码" → "你是一个资深 React 工程师..."
学习提升 展示优化过程,学习如何写好提示词

输出示例

用户输入:

帮我写个博客网站

优化输出:

## 角色 (Role)
你是一个资深全栈工程师,擅长 Next.js、TypeScript 和现代前端架构。

## 背景 (Context)
用户需要一个技术博客网站,用于分享技术文章。
已有域名,部署在 Vercel 上。

## 任务 (Task)
请帮我完成一个技术博客网站的开发。

## 要求 (Requirements)
- 使用 Next.js 14 App Router
- TypeScript 严格模式
- 支持 Markdown 文章
- 有文章分类和标签功能
- 响应式设计,适配移动端
- SEO 友好,支持 OG tags

## 输出格式 (Output Format)
- 项目结构说明
- 核心代码文件
- 部署步骤

<!-- Original: 帮我写个博客网站 -->

提示: /takes-po 不仅优化需求,还教你怎么写更好的提示词。

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. 10d ago First seen · 100 lines · 35 tokens per session scan A 41e79359ec57

Subscribe to this mod's changes

takes-po is a command published in the GitHub repository an8079/take-skills (4 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 686 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-31.