Skill站外收录 @skilllib/skill-2117939930272416623
prompt-writing
专注于提升 AI 提示词质量,涵盖系统指令、智能体行为规范及各类 LLM 输入设计,通过精简冗余、去除噪声、强化指令、保留关键约束与结构化表达,确保提示清晰有效、意图准确传达。
数据与分析 AI 技能
Skills.MD
# Prompt Writing
Good prompts are clear and concise, not long and verbose. Longer prompts cause attention dilution — the model pays less attention to each part.
## What Improves Prompts
### Remove Redundancy
Same instruction said multiple ways dilutes attention.
**Before:** "You must always verify each item. Do not skip items. Every item needs to be checked. Make sure you don't miss any items."
**After:** "Verify each item individually. No skipping."
### Remove Noise
Don't teach the model things it already knows. State your specific requirements.
**Before:** 40-line example of what a code walkthrough looks like
**After:** "Write a detailed walkthrough: what changed, line numbers, analysis of the flow, data transformations, dependencies."
### Sharpen Instructions
"Do X" is clearer than "You should consider doing X because..."
**Before:** "It's important that you remember to always navigate to the project root directory before starting any work, as this ensures that all file paths will be correct..."
**After:** `cd "$CLAUDE_PROJECT_DIR"`
### Keep Load-Bearing Content
These must stay:
- Workflow steps and their order
- Quality criteria
- Critical rules and constraints
- Output format requirements (if parsed programmatically)
- Behavioral guardrails
### Write Clean Prose
Write as if it was always this way — not "correction" style.
**Before:** "Remember that you should do TWO interviews, not just one. The first interview is for business requirements, and then after discovery you should do a second interview..."
**After:**
```
### 0. Business Requirements Interview
Interview the user to understand what needs to be built.
### 2. Technical Interview
With discovery complete, interview the user about implementation details.
```
## Structure
Good prompts have clear sections. Adapt this pattern to your use case:
```
[1-2 sentence role/purpose]
## Core Concept or Approach
[Key principle guiding behavior]
## Workflow / Steps
[What to do, in order]
## Rules / Constraints
[Non-negotiable requirements]
## Quality Criteria
[What good looks like, what to avoid]
## Output Format
[Expected structure if applicable]
```
For procedural agents, number the steps clearly. For guidance prompts, use descriptive sections.
## Common Patterns
**Workflow Steps:** Numbered, clear action, what to produce, when to proceed.
**Quality Criteria:** Two lists — DO (what matters) and DON'T (what to ignore). Prevents false positives and negatives.
**Output Formats:** If parsed programmatically, include exact schema. If human-readable, describe what to include.
## Checklist
- [ ] Every instruction serves a purpose (no redundancy)
- [ ] No verbose examples of things the model knows
- [ ] Instructions are direct, not hedged
- [ ] Load-bearing content preserved
- [ ] Written in clean prose, not "correction" style
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「prompt-writing」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次