本文へ移動
cccskills
無料GitHub で公開

prompt-audit

Audit a prompt the user is about to send to Claude (or another coding AI) for completeness and effectiveness. Use this skill whenever the user shares a prompt and asks for feedback — phrases like "is this prompt good", "audit my prompt", "review this prompt", "will Claude understand this", "improve this prompt", "is this enough context". Also trigger proactively when you notice the user is about to dispatch a vague, under-specified, or over-constrained prompt for non-trivial work. Checks the 6 essential elements (goal, scope, existing patterns, constraints, verification, done definition), flags what's missing, explains why each gap matters, and produces an improved rewrite. Treat this skill as the litmus test for "Be Claude's PM" — if the prompt fails the audit, the work that follows will probably fail too.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

prompt-audit

Most AI-coding failures trace back to thin prompts. A prompt that takes 30 seconds to write and 2 minutes for Claude to "execute" produces code that takes 2 hours to fix. This skill catches that before it happens.

When to use

Use whenever the user is evaluating, drafting, or about to send a prompt for non-trivial coding work. Triggers include:

  • "Is this prompt good?"
  • "Audit / review / check my prompt"
  • "Will Claude understand this?"
  • "How do I improve this prompt?"
  • The user pastes a prompt and asks anything about it
  • You notice the user is about to send a vague prompt for a complex task — proactively offer to audit it

Don't audit:

  • Single-line throwaway prompts the user is happy with
  • Pure conversation / clarification messages (not actual task prompts)

The six essential elements

A good coding prompt for non-trivial work has all six. Missing any one drops the success rate noticeably.

#ElementWhat it answersWhy it matters
1GoalWhat problem are we solving? Who uses the result?Without a goal, Claude optimizes the wrong thing
2ScopeWhich files / modules can change? Which can't?Without scope, Claude touches things it shouldn't
3Existing patternsWhat in the codebase should we mimic?Without patterns, Claude reinvents conventions inconsistently
4ConstraintsPerformance, dependencies, compatibilityWithout constraints, Claude makes choices the user won't accept
5VerificationWhat tests prove this is correct?Without verification, "done" is undefined
6Done definitionWhen can we mark this complete?Without done, Claude over-builds or under-builds

Workflow

Step 1 — Parse the prompt

Read the prompt the user shared. Identify which of the 6 elements are present, partially present, or missing. Be honest — "we should follow good patterns" is not a real existing-pattern reference; an actual file path is.

Step 2 — Score each element

For each element, classify as:

  • ✅ Clear — concrete, actionable, unambiguous
  • ⚠️ Vague — present but too abstract to be useful
  • ❌ Missing — not addressed at all

Step 3 — Diagnose with reasons

For each gap, explain to the user why this matters in the specific task at hand — not just generic best-practice scolding. Example:

"Your scope is missing — and because this prompt mentions auth/, Claude will likely modify shared auth middleware that 30+ other endpoints depend on. That's a core-code change that needs explicit human ownership."

Step 4 — Watch for over-constraint too

The opposite failure mode: a prompt that dictates every variable name, every line of pseudocode, every internal step. This makes the model worse, not better. If you see this, flag it:

"Your prompt over-constrains the implementation. The model performs best when given goals + constraints + patterns, then trusted to write the code. Treat the prompt like onboarding a junior — explain what matters, not what to type."

Step 5 — Produce a rewrite

Always produce an improved version, even if the original was decent. Use this structure:

[Goal]
<Who uses this, what done means>

[Scope]
- Can modify: <list>
- Must not modify: <list>

[Existing patterns]
- Mirror <specific file or module>
- Convention: <e.g., service.ts + route.ts + *.test.ts>

[Constraints]
- <Performance, dependencies, compat>

[Verification]
- 3 e2e tests: <happy + 2 errors, described at user level>
- Manual: <if applicable>

[Done]
- <Concrete checklist>

If the user's task isn't big enough to need all six, drop the unused ones rather than padding with placeholders.

Step 6 — Show before/after side by side

End the audit with a direct comparison so the user sees the gain. Example:

Before (6 words): "Add a user activity report endpoint."
After (~250 words): <full structured prompt>
Why the rewrite is better: scope is now explicit, existing pattern named, verification defined, done measurable.

Red flags worth calling out

When you spot any of these in the original prompt, surface them explicitly:

  • Touches core code without acknowledging it. "Just add this to the auth middleware..."
  • No verification at all. "It should work."
  • Vague pronouns. "Make it better." "Fix this." (Better what? This what?)
  • No file paths anywhere. Hard to ground without paths.
  • Implies multiple PRs in one prompt. "Build the auth flow and the user dashboard and the reporting." Suggest splitting.
  • Domain the user clearly doesn't know. Hard to PM a domain you don't understand. Ask: "How will you tell if this is right?"
  • Asks the AI to write the spec. "Figure out what we should build." Not Claude's job — that's product work.

Output format

Use this structure for the audit:

## Audit summary
<1-2 sentences: overall verdict>

## Element check
| Element | Status | Notes |
|---|---|---|
| Goal | ✅ / ⚠️ / ❌ | <observation> |
| Scope | ✅ / ⚠️ / ❌ | <observation> |
| Existing patterns | ✅ / ⚠️ / ❌ | <observation> |
| Constraints | ✅ / ⚠️ / ❌ | <observation> |
| Verification | ✅ / ⚠️ / ❌ | <observation> |
| Done | ✅ / ⚠️ / ❌ | <observation> |

## Red flags
<bullet list, or "None">

## Improved version
<full rewrite>

## Why the rewrite is better
<2-3 specific gains>

Stopping condition

End the skill when:

  • The user has the rewritten prompt
  • Or the user pushes back: "It's fine as is." (Don't keep relitigating.)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Classify a proposed code change as Leaf Node or Core Code to decide how much AI usage and review rigor is appropriate. Use this skill whenever the user asks "is this leaf or core", "what kind of change is this", "should I vibe code this", "can AI write this", "how rigorous should the review be", or before starting any non-trivial change. Also useful as a sub-step inside other workflows (planning, PR prep, code review) when classification matters. Asks 6 diagnostic questions about propagation range, change frequency, tech-debt tolerance, examples, failure cost, and review intensity, then outputs a clear classification with the recommended approach. Trigger even when the user describes a change without explicitly asking for classification — the answer changes how they should proceed.

日本語の概要は準備中です。原文の説明を表示しています。

appleboy/skills232026年9月12日 更新

Runs a single Codex (ChatGPT/OpenAI) review check-fix cycle on a PR using gh CLI. Use this skill whenever the user wants to: check and fix Codex review comments, request a Codex code review on a PR, or iterate on PR feedback from the chatgpt-codex-connector bot. Trigger on phrases like 'codex review', '@codex review', 'fix codex comments', 'iterate on PR', 're-review with codex', or when the user mentions 'gh pr' with 'codex'. Combine with /loop for automated repeated cycles, e.g. '/loop 2m /codex-review'.

日本語の概要は準備中です。原文の説明を表示しています。

appleboy/skills232026年9月12日 更新

Generate a conventional commit message by analyzing staged git changes. Use when the user wants to create, write, or generate a git commit message from their current staged diff. Trigger on phrases like "commit", "commit message", "commit msg", "寫 commit", "提交訊息", "generate commit", or when the user has just finished making code changes and wants to commit them. Also trigger when the user runs /commit-message.

日本語の概要は準備中です。原文の説明を表示しています。

appleboy/skills232026年9月12日 更新

Runs a single Copilot review check-fix cycle on a PR using gh CLI. Use this skill whenever the user wants to: check and fix Copilot review comments, request a Copilot code review on a PR, or iterate on PR feedback. Trigger on phrases like 'copilot review', 'fix PR comments', 'iterate on PR', 're-review', or when the user mentions 'gh pr' with 'copilot'. Combine with /loop for automated repeated cycles, e.g. '/loop 2m /copilot-review'.

日本語の概要は準備中です。原文の説明を表示しています。

appleboy/skills232026年9月12日 更新

Plan a feature before writing any code. Use this skill at the START of non-trivial feature work — when the user says they want to "add", "build", "implement", "create", "develop", or "ship" a feature, endpoint, component, page, service, or capability. Especially trigger when the user's prompt is short or under-specified ("add a dashboard", "build an auth flow", "let's do user activity reports") — those need planning, not direct execution. The skill walks through requirements clarification, codebase exploration, sketches a Mermaid architecture/flow diagram of the proposed design, and produces a plan.md document the user can hand off to a fresh AI session for execution. Skip only when the change is genuinely trivial (typo fixes, single-line tweaks, renames). When in doubt, plan.

日本語の概要は準備中です。原文の説明を表示しています。

appleboy/skills232026年9月12日 更新

Prepare or open a GitHub or Gitea pull request with an explicit AI-authorship disclosure, change classification, reproducible reviewer verification steps, and optional Mermaid diagram. Use whenever the user asks to prepare, write, open, create, push, ship, or get changes ready for a PR or review. Unless the user explicitly asks for a draft-only result, create or reuse a dedicated branch, verify the change, commit scoped files, push the branch, and then create the PR with gh or tea.

日本語の概要は準備中です。原文の説明を表示しています。

appleboy/skills232026年9月12日 更新

appleboy のスキルをすべて見る

このスキルの問題を報告する