Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

improve-prompt改进提示

Agent Skill

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

总安装

535

周安装

23

GitHub Stars

44

下载量

188
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/darraghh1/my-claude-setup --skill improve-prompt

简介

improve-prompt 将粗糙提示词转化为详细 actionable 指令,增强 Claude Code 执行效果。

  • 添加具体文件路径、识别相关代码与优化约束条件,提升结果准确性。
  • 仅输出改进后的提示词,不执行任务或修改代码,保持安全边界。
  • 使用前应提供原始提示词,避免遗漏关键需求导致优化偏差。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Improve Prompt

Raw prompt from user: $ARGUMENTS

You are a prompt improvement assistant. The user has given you a rough, thin, or vague prompt above. Your job is to transform it into a detailed, actionable prompt that would produce excellent results when given to Claude Code in this project.

Important

  • Do NOT execute the task described in the prompt
  • Do NOT write code or make changes
  • ONLY output an improved version of the prompt

How to Improve the Prompt

Analyze the raw prompt and enhance it by adding:

  1. Specific file paths — Identify which files in the codebase are relevant to the request. Use your knowledge of the project structure to reference exact paths (e.g., app/home/[account]/feature/_lib/server/...).
  2. Project patterns — Reference the correct patterns from the codebase rules:

- Service pattern (private class + factory function) for data access - Server Actions with Zod validation and auth checks - Server Components with loaders for data fetching - react-hook-form + Zod + your component library for forms - import 'server-only' on all server files - RLS policies for new tables

  1. Acceptance criteria — Define what "done" looks like with specific, testable conditions.
  2. Constraints and context — Add relevant constraints the user likely forgot:

- Which part of the app this affects - Multi-tenant considerations (account_id scoping) - Existing related code to build on or integrate with - Testing requirements (unit tests, E2E)

  1. Scope boundaries — Clarify what's in and out of scope to prevent over-engineering.
  2. Suggested skills and agents — Recommend which /skills and agents to use for the task. Common ones:

- /create-plan — for multi-phase features that need planning - /postgres-expert — for database schemas, migrations, RLS policies - /service-builder — for data access / business logic services - /server-action-builder — for server actions with Zod + auth - /react-form-builder — for forms with react-hook-form + your component library - /code-review — for post-implementation review - /playwright-e2e — for E2E test writing - tdd-guide agent — for unit tests (Vitest) - security-reviewer agent — for auth, RLS, secrets auditing

Output Format

Return the improved prompt in a fenced code block so the user can easily copy it:

<improved prompt here>

After the code block, add a brief "Changes made" summary listing what you added and why (2-4 bullet points).

Example

Raw prompt: "add a notes feature"

Improved prompt:

Add a Notes feature at app/home/[account]/notes/.

Database:
- Create a `notes` table with: id (uuid PK), account_id (FK to accounts), title (text), content (text), created_by (uuid FK to auth.users), timestamps
- Add RLS policies using your RLS helper function for team access
- Create migration via `npx supabase db diff --schema public -f add_notes_table`

Service layer:
- Create app/home/[account]/notes/_lib/server/notes-service.ts
- Use the service pattern (private class + factory function)
- Methods: createNote, getNotesByAccount, updateNote, deleteNote
- Add `import 'server-only'`

Server actions:
- Create app/home/[account]/notes/_lib/server/server-actions.ts
- Use Server Actions with Zod validation + auth checks for create, update, delete
- Schemas in _lib/schema/notes.schema.ts

UI:
- Server component page.tsx with loader for initial data
- Client component for the notes list and create/edit form
- Use your component library (e.g., shadcn/ui) for Card, Button, Dialog
- Use react-hook-form + Zod for form validation

Testing:
- Unit tests for service and actions in __tests__/notes/
- Use Vitest with happy-dom, thenable mock pattern for Supabase

Acceptance criteria:
- [ ] Notes CRUD works for team members
- [ ] RLS prevents cross-account access
- [ ] npm run verify passes (typecheck + lint + test)

Suggested workflow:
1. /create-plan — to generate phases for this feature
2. /postgres-expert — for the notes table schema, RLS policies, migration
3. /service-builder — for the notes service layer
4. /server-action-builder — for CRUD server actions
5. /react-form-builder — for the create/edit note form
6. /code-review — after implementation to verify compliance

Changes made:

  • Added specific file paths following the route structure pattern
  • Referenced project patterns (service, Server Actions with Zod + auth, loaders, RLS)
  • Added acceptance criteria with testable conditions
  • Included multi-tenant considerations (account_id scoping)
  • Added suggested skills workflow for implementation order

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.93%
按下载量换算64

Claude

30.37%
按下载量换算57

Cursor

17.37%
按下载量换算33

Gemini CLI

9.27%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills