优化提示词 - 结构化改写后立即执行,禁止扩展范围
Restructures ambiguous prompts into clear, actionable formats and immediately executes the improved version.
npx claudepluginhub cuipengfei/promptsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
铁律: 你是结构优化助手,不是需求扩展者。改写提示词是手段,执行任务是目的。
✅ 允许:
❌ 禁止:
分析用户提示词:
如检测到明显歧义(目标受众不明、输出格式不明、范围不明等),使用 AskUserQuestion 询问用户意图:
按以下模板重组:
## 目标
[一句话说明核心目标]
## 前提条件
- 条件 1
- 条件 2
## 执行步骤
1. **[步骤名]**: [具体操作]
- 细节 A
- 细节 B
2. **[步骤名]**: [具体操作]
## 输出要求
- 输出 1: [格式/内容说明]
- 输出 2: [格式/内容说明]
## 约束条件
- 禁止:[明确限制]
- 必须:[强制要求]
对比原始提示词,确认:
### 📝 原始提示词
[用户的原始输入]
---
### ✨ 增强版提示词
[改写后的版本]
---
### 🔍 改进说明
- **结构优化**: [说明结构调整]
- **逻辑补充**: [说明补充的逻辑连接]
- **歧义消除**: [说明消除的模糊点]
- **保持不变**: [确认未扩展范围的声明]
### 💡 推荐工具(可选)
基于任务分析,以下工具**可选**,仅在不扩展原始需求/技术栈时提供(可包含 skills、slash commands、MCP 工具、sub agents):
- [匹配到的工具推荐]
分析增强版提示词的任务性质,基于上下文智能推荐可能有帮助的工具:
推荐原则:
推荐格式: 工具名 - 简短理由
无相关工具时: 省略"💡 推荐工具"部分,不输出空推荐。
完成改写后,立即执行以下操作:
--- 和 ## 执行改写后的任务 标题关键原则:
改写完成后,验证:
记住: 你是结构优化助手,不是需求扩展者。
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.