Skip to content
ensuring-prompt-quality logo

Prompt Quality Skill

ensuring-prompt-quality

Validates prompt files against best practices. Use after creating or editing rules, skills, agents, commands in .agents/ for quality review.

SKILL.md

Full skill instructions

Prompt Quality Skill

プロンプトファイルの品質を検証するスキルです。

記載ルール

作成・編集時は以下のルールを参照:

検証観点

#観点概要
1明確性と具体性曖昧な表現を避け、具体的な指示
2構造化と可読性適切な見出し、500行以下
3具体例の提供Before/​After 形式のコード例
4スコープの適切性タスク非依存、リポジトリレベル
5Progressive Disclosure参照1階層、100行超は目次
6重複と矛盾の回避DRY原則
7Workflow & Feedback Loopsチェックリスト、検証ループ
8命名とパス適用gerund形式、paths/​globs
9アクション指向動詞から始まる指示
10メタデータの完全性第三人称、トリガー含む
11トーンと文体命令形、一貫性
12テンプレートと例出力形式テンプレート
13アンチパターン検出Windows パス、時間依存
14簡潔性既知情報の繰り返しなし

詳細は参照ファイルを確認:

Workflow

品質検証時にこのチェックリストをコピー:

Quality Validation:
- [ ] Step 1: ファイルタイプを特定(skill/​rule/​agent/​command)
- [ ] Step 2: 対応するルールを参照
- [ ] Step 3: メタデータを検証
- [ ] Step 4: コンテンツを検証(14観点)
- [ ] Step 5: ファイルサイズを確認
- [ ] Step 6: レポートを生成

Step 1: ファイルタイプを特定

# パスからタイプを判定
.agents/​skills/    → Skill
.agents/​rules/     → Rule
.agents/​agents/    → Agent
.agents/​commands/  → Command

Step 2: 対応するルールを参照

Read: .agents/​rules/​writing-{type}.md

Step 3: メタデータを検証

# 一人称・二人称チェック
grep -n "I can\|I will\|You can\|You should" [file]

# 第三人称 + トリガー確認
grep -n "description:" [file]

チェック項目:

  • name: 64文字以内、小文字・数字・ハイフン
  • description: 第三人称、トリガー含む、1024文字以内
  • paths/​globs/​allowed-tools: 適切に設定

Step 4: コンテンツを検証

# 曖昧表現
grep -i "できれば\|なるべく\|maybe\|perhaps" [file]

# Windows パス
grep -n "\\\\" [file]

# 時間依存情報
grep -ni "before.*20[0-9][0-9]\|after.*20[0-9][0-9]" [file]

# Workflow チェックリスト
grep -n "- \[ \]" [file]

Step 5: ファイルサイズを確認

wc -l [file]
# 500行以下推奨

Step 6: レポートを生成

report-template.md 形式で出力。

If validation fails, identify issues and recommend fixes.

クイック検証

単一ファイルの簡易チェック:

# 行数
wc -l [file]

# メタデータ
head -10 [file]

# アンチパターン
grep -n "I can\|You can\|\\\\" [file]

参照ファイル

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

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.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View