Token导航 LogoToken导航

Agent Skill · 研究检索

prompt-optimization-analyzer(提示优化分析器)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

prompt-optimization-analyzer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 68,654。

总安装 225周安装 9GitHub Stars 28下载 73核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-optimization-analyzer(提示优化分析器)
来源仓库:https://github.com/exploration-labs/nates-substack-skills
仓库路径:skills/prompt-optimization-analyzer
安装命令:
npx skills add https://github.com/exploration-labs/nates-substack-skills --skill prompt-optimization-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/exploration-labs/nates-substack-skills --skill prompt-optimization-analyzer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

深度分析提示词结构与性能表现关联性。量化评估清晰度、相关性、有效性指标。生成可视化报告和优先级改进建议。需要足够样本量支撑分析可靠性。prompt-optimization-analyzer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。结果仅供参考,不保证绝对准确。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/prompt-optimization-analyzer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/exploration-labs/nates-substack-skills --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

prompt-optimization-analyzer 怎么安装?

在终端执行 npx skills add https://github.com/exploration-labs/nates-substack-skills --skill prompt-op…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

prompt-optimization-analyzer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

prompt-optimization-analyzer 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

prompt-optimization-analyzer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

prompt-optimization-analyzer 用的人多吗?

公开数据是累计安装 225 次,近一周安装 9 次,下载 73 次,GitHub 28 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

prompt-optimization-analyzer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
prompt-optimization-analyzer

提示优化分析器 · 本页

22528只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Prompt Optimization Analyzer

When to Use This Skill

Always use when:

  • User asks to "review", "analyze", "optimize", or "improve" a skill prompt
  • User says a skill "isn't triggering" or "isn't working as expected"
  • User wants to "reduce token usage" in a skill
  • User is "preparing a skill for publication" or sharing
  • User asks "why isn't my skill being called?"
  • User wants to "compare" two skill prompt versions

Consider using when:

  • User shares a skill file for any reason (offer to analyze)
  • User mentions a skill is "using too many tokens"
  • User describes confusing or inconsistent skill behavior

Analysis Framework

Run each skill prompt through this comprehensive diagnostic checklist. Report findings in order of severity (Critical → High → Medium → Low).

1. Trigger Pattern Analysis

Critical Issues:

  • ❌ Missing or extremely vague description field
  • ❌ Description doesn't match actual skill capabilities
  • ❌ No clear trigger patterns identifiable from description
  • ❌ Trigger patterns overlap heavily with other common skills

High Priority:

  • ⚠️ Description is too generic ("helps with tasks", "assists users")
  • ⚠️ Trigger keywords buried in long description
  • ⚠️ Missing key verbs or nouns that users would naturally use
  • ⚠️ Ambiguous scope (could apply to too many or too few situations)

Optimization Opportunities:

  • 💡 Could add explicit trigger examples to description
  • 💡 Could make description more action-oriented
  • 💡 Could add domain-specific terminology
  • 💡 Could clarify when NOT to use skill

Good Patterns:

  • ✅ Description starts with clear trigger context
  • ✅ Includes specific verbs that map to user intent
  • ✅ Provides clear scope boundaries
  • ✅ Uses "Use when..." or "This skill should be used when..." patterns

2. Token Efficiency Analysis

Token Waste Patterns:

Redundancy:

  • 🔴 Repeating the same concept in multiple ways without adding clarity
  • 🔴 Restating information already in the description
  • 🔴 Duplicate examples that teach the same pattern
  • 🔴 Verbose explanations where concise language would work

Example - Before (wasteful):

This skill helps you create documents. It's useful for document creation.
When you need to make a document, this skill can help. Documents that can
be created include reports, letters, and memos.

Example - After (efficient):

Creates professional documents including reports, letters, and memos.

Over-Politeness:

  • 🔴 Excessive apologetic language ("please", "kindly", "if you don't mind")
  • 🔴 Unnecessary hedging ("might", "perhaps", "possibly") where direct instruction works
  • 🔴 Filler phrases ("it should be noted that", "it's important to mention")

Example - Before:

You might want to perhaps consider possibly using this approach if you think it could help.

Example - After:

Use this approach when [specific condition].

Bloated Structure:

  • 🔴 Excessive nested XML tags when flat structure would work
  • 🔴 Long prose explanations where bullet points are clearer
  • 🔴 Including "meta" instructions about the skill itself (usually unnecessary)
  • 🔴 Detailed explanations of concepts Claude already knows

Over-Specified Formatting:

  • 🔴 Dictating exact phrasing for every possible response
  • 🔴 Template sentences that reduce flexibility
  • 🔴 Formatting rules that don't materially impact quality

Efficiency Checklist:

  • Calculate estimated token count (rough: 1 token ≈ 4 characters)
  • Identify sections that could be condensed by 30%+
  • Flag any paragraph longer than 100 words for review
  • Look for opportunities to replace prose with structured format

3. Anti-Pattern Detection

Reference the prompting-pattern-library skill for detailed anti-patterns. Key failures to check:

Ambiguity Failures:

  • ❌ Unclear success criteria ("make it better", "improve quality")
  • ❌ Vague output format requirements
  • ❌ Ambiguous scope ("explain X" without audience/depth specification)
  • ❌ Undefined technical terms or jargon

Conflicting Instructions:

  • ❌ "Be concise but comprehensive"
  • ❌ "Be creative but follow strict rules"
  • ❌ "Be formal but conversational"
  • ❌ Multiple competing priorities without clear hierarchy

Implicit Assumptions:

  • ❌ Assuming Claude knows context not provided in skill
  • ❌ Assuming knowledge beyond training cutoff
  • ❌ Assuming familiarity with domain-specific processes
  • ❌ Assuming Claude can access external state/memory

Over-Constraint:

  • ❌ So many rules that quality suffers (rule count > 20 is warning sign)
  • ❌ Micro-managing phrasing instead of outcomes
  • ❌ Restricting Claude's reasoning ability unnecessarily
  • ❌ Specifying implementation details instead of desired results

Under-Specification:

  • ❌ No examples for complex or novel tasks
  • ❌ Missing error handling guidance
  • ❌ No quality criteria defined
  • ❌ Unclear edge case handling

4. Clarity and Structure Review

Structural Issues:

  • ⚠️ No clear sections or organization (wall of text)
  • ⚠️ Instructions scattered throughout instead of logically grouped
  • ⚠️ Missing or unclear headers
  • ⚠️ Poor information hierarchy (important stuff buried)
  • ⚠️ Inconsistent formatting (switching between styles)

Language Clarity:

  • ⚠️ Overly complex sentences (25+ words frequently)
  • ⚠️ Passive voice where active is clearer
  • ⚠️ Abstract concepts without concrete examples
  • ⚠️ Technical jargon without definitions
  • ⚠️ Pronouns with unclear antecedents

Better Patterns:

  • ✅ Use imperative voice ("Create X" not "You should create X")
  • ✅ One instruction per sentence when possible
  • ✅ Concrete examples alongside abstract rules
  • ✅ Consistent terminology throughout
  • ✅ Clear section headers that preview content

5. Example Quality Assessment

Poor Examples:

  • ❌ Examples that don't demonstrate the core pattern
  • ❌ Overly simple examples that miss edge cases
  • ❌ Examples without explanation of why they work
  • ❌ Too many examples teaching the same thing
  • ❌ Examples using outdated syntax or practices

High-Quality Examples:

  • ✅ Show before/after or good/bad contrasts
  • ✅ Include "why this works" explanations
  • ✅ Cover common edge cases
  • ✅ Demonstrate key patterns concisely
  • ✅ Realistic scenarios (not toy problems)

Example Count:

  • 0 examples: Usually needs at least 1-2 for complex tasks
  • 1-3 examples: Usually optimal
  • 4-6 examples: Carefully evaluate if all are necessary
  • 7+ examples: Almost always contains redundancy

6. Special Pattern Checks

Tool Usage Instructions:

  • ⚠️ Are tool-calling instructions actually necessary?
  • ⚠️ Does skill over-specify when Claude should know?
  • ⚠️ Are there instructions about tools Claude doesn't have access to?

Meta-Instructions:

  • ⚠️ Instructions about "how to use this skill" (usually redundant with description)
  • ⚠️ Explaining skill's purpose inside the skill (already in description)
  • ⚠️ Documentation for documentation's sake

Conditional Logic:

  • ⚠️ Complex if/then trees that Claude can reason about independently
  • ⚠️ Edge case handling that duplicates Claude's reasoning
  • ⚠️ Over-specified decision trees (trust Claude's judgment more)

Output Format

Structure analysis results as follows:

Skill Overview

  • Name: [skill name]
  • Estimated token count: [rough estimate]
  • Overall assessment: [1-2 sentence summary]

Critical Issues (Must Fix)

[List any critical problems that will prevent skill from working]

High Priority Improvements

[List significant improvements that will materially help]

Token Optimization Opportunities

[Specific sections/patterns that waste tokens with estimates]

  • Section X: ~[N] tokens could be saved by [specific change]
  • Pattern Y: ~[N] tokens wasted on [specific issue]

Medium Priority Suggestions

[Helpful improvements that aren't urgent]

Low Priority Polish

[Nice-to-haves that would marginally improve]

Rewrite Suggestions

[For any section with critical issues, provide rewritten version]

Before (X tokens):

[original text]

After (Y tokens, Z% reduction):

[optimized text]

Estimated Impact

  • Total potential token savings: ~[N] tokens ([X]%)
  • Clarity improvement: [Significant/Moderate/Minor]
  • Trigger reliability: [Better/Same/Need testing]

Analysis Process

  1. First Pass - Skim

- Get overall sense of skill purpose - Check description field first - Note structure and organization - Flag any obvious red flags

  1. Second Pass - Deep Dive

- Run through each checklist section systematically - Mark specific line numbers or sections with issues - Count approximate tokens in bloated sections - Identify patterns (don't just note individual issues)

  1. Third Pass - Synthesize

- Prioritize findings by severity and impact - Group related issues together - Prepare concrete rewrite examples for worst sections - Calculate potential savings

  1. Output Generation

- Start with most critical issues - Be specific (quote exact text, give line numbers) - Provide rewrites, not just criticism - Estimate token impacts - Balance criticism with recognition of what works well


Key Principles

Be Specific

❌ "The description could be better" ✅ "The description 'helps with tasks' is too vague. Suggest: 'Analyzes code quality metrics and suggests refactoring priorities for Python codebases'"

Show Impact

❌ "This section is redundant" ✅ "Lines 45-78 repeat concepts from lines 12-23, wasting ~120 tokens (18% of skill)"

Provide Solutions

❌ "This doesn't work" ✅ "This doesn't work because [reason]. Instead, try: [concrete rewrite]"

Respect Intent

  • Understand what the skill author was trying to achieve
  • Preserve core functionality while optimizing
  • Don't just delete - replace with better alternatives
  • Acknowledge trade-offs in suggestions

Context Matters

  • A 2000-token skill for complex workflows may be appropriate
  • A 2000-token skill for simple formatting is bloated
  • Judge efficiency relative to task complexity
  • Consider how frequently skill will be triggered

Common Optimization Wins

Quick Wins (Usually Save 20-40% Tokens)

1. Remove Meta-Commentary Delete sections explaining the skill to Claude (Claude will read and understand)

2. Condense Verbose Prose Replace paragraphs with bullet points, remove filler words

3. Consolidate Examples Replace 5 similar examples with 2 contrasting examples

4. Trust Claude's Reasoning Remove over-specified decision trees and edge case handling

5. Simplify Structure Flatten unnecessary XML nesting, remove redundant headers

Deep Optimizations (Can Save 40-60% Tokens)

1. Rewrite Entire Sections Take bloated sections and rewrite from scratch focusing on clarity

2. Remove Implicit Instructions Delete instructions about things Claude already knows how to do

3. Consolidate Redundant Concepts Merge sections teaching the same pattern multiple ways

4. Streamline Tool Instructions Trust Claude's tool-use abilities more, remove over-specification

5. Clarify Over Adding Instead of adding more examples/explanation, clarify existing content


Red Flags for Common Skill Issues

"My skill isn't triggering"

Check:

  1. Description too vague or generic?
  2. Description doesn't mention key trigger words?
  3. Skill scope overlaps too much with existing skills?
  4. Trigger pattern requires exact phrasing user won't say?

"My skill triggers too often"

Check:

  1. Description too broad ("helps with writing")?
  2. Missing scope boundaries or exclusions?
  3. Generic trigger words that match many queries?
  4. Need more specific domain terminology?

"My skill gives inconsistent results"

Check:

  1. Conflicting instructions?
  2. Ambiguous success criteria?
  3. Too many conditional branches?
  4. Under-specified output requirements?

"My skill seems slow"

Check:

  1. Token count >2000? (high context load)
  2. Requesting Claude read multiple large references?
  3. Over-complicated reasoning chains?
  4. Excessive examples or edge case handling?

Reference Integration

This skill works alongside:

  • prompting-pattern-library: Reference for patterns and anti-patterns
  • token-budget-advisor: Assess if skill fits within token budgets
  • skill-creator: Guidelines for building skills initially
  • learning-capture: Identify patterns from analysis to capture

When analyzing prompts, reference the prompting-pattern-library for detailed pattern explanations. Focus this skill on active diagnosis and concrete suggestions.


Limitations and Caveats

What this skill can't do:

  • Guarantee a skill will trigger in all desired situations (triggering is complex)
  • Test actual skill performance (requires real usage)
  • Determine if skill logic is correct for domain (needs domain expertise)
  • Predict user behavior or query patterns

Best used for:

  • Identifying clear anti-patterns and inefficiencies
  • Suggesting specific improvements with examples
  • Estimating token costs and optimization potential
  • Catching common failure modes before publication

Remember:

  • Analysis is a starting point, not gospel
  • Some verbose skills are appropriately complex
  • User intent matters more than arbitrary token targets
  • Test optimized versions to ensure they still work correctly

平台分布

Codex

37.54%
按下载量换算27

Claude

29.24%
按下载量换算21

Cursor

18.9%
按下载量换算14

Gemini CLI

9.73%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills