From prompt-engineering
Validates prompt files against best practices. Use after creating or editing rules, skills, agents, commands in .agents/ for quality review.
npx claudepluginhub farmanlab/ai_agent_orchestra --plugin prompt-engineeringThis skill is limited to using the following tools:
プロンプトファイルの品質を検証するスキルです。
references/REFERENCE.mdreferences/best-practices.mdreferences/examples-antipatterns.mdreferences/examples.mdreferences/report-template.mdreferences/templates.mdreferences/validation-criteria-technical.mdreferences/validation-criteria.mdreferences/writing-agents.mdreferences/writing-commands.mdreferences/writing-rules.mdreferences/writing-skills.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Analyzes BMad project state from catalog CSV, configs, artifacts, and query to recommend next skills or answer questions. Useful for help requests, 'what next', or starting BMad.
プロンプトファイルの品質を検証するスキルです。
作成・編集時は以下のルールを参照:
| # | 観点 | 概要 |
|---|---|---|
| 1 | 明確性と具体性 | 曖昧な表現を避け、具体的な指示 |
| 2 | 構造化と可読性 | 適切な見出し、500行以下 |
| 3 | 具体例の提供 | Before/After 形式のコード例 |
| 4 | スコープの適切性 | タスク非依存、リポジトリレベル |
| 5 | Progressive Disclosure | 参照1階層、100行超は目次 |
| 6 | 重複と矛盾の回避 | DRY原則 |
| 7 | Workflow & Feedback Loops | チェックリスト、検証ループ |
| 8 | 命名とパス適用 | gerund形式、paths/globs |
| 9 | アクション指向 | 動詞から始まる指示 |
| 10 | メタデータの完全性 | 第三人称、トリガー含む |
| 11 | トーンと文体 | 命令形、一貫性 |
| 12 | テンプレートと例 | 出力形式テンプレート |
| 13 | アンチパターン検出 | Windows パス、時間依存 |
| 14 | 簡潔性 | 既知情報の繰り返しなし |
詳細は参照ファイルを確認:
品質検証時にこのチェックリストをコピー:
Quality Validation:
- [ ] Step 1: ファイルタイプを特定(skill/rule/agent/command)
- [ ] Step 2: 対応するルールを参照
- [ ] Step 3: メタデータを検証
- [ ] Step 4: コンテンツを検証(14観点)
- [ ] Step 5: ファイルサイズを確認
- [ ] Step 6: レポートを生成
# パスからタイプを判定
.agents/skills/ → Skill
.agents/rules/ → Rule
.agents/agents/ → Agent
.agents/commands/ → Command
.cursor/agents/ → Cursor Subagent
Read: references/writing-{type}.md
# 一人称・二人称チェック
grep -n "I can\|I will\|You can\|You should" [file]
# 第三人称 + トリガー確認
grep -n "description:" [file]
チェック項目:
# 曖昧表現
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]
wc -l [file]
# 500行以下推奨
report-template.md 形式で出力。
If validation fails, identify issues and recommend fixes.
単一ファイルの簡易チェック:
# 行数
wc -l [file]
# メタデータ
head -10 [file]
# アンチパターン
grep -n "I can\|You can\|\\\\" [file]
メモリの優先度順(高い順):
CLAUDE.md(プロジェクトルート).claude/rules/*.md~/.claude/rules/*.md再帰的読み込み: 親ディレクトリの CLAUDE.md も自動読み込み
CLAUDE.local.md: .gitignore 対象の個人用メモリ
インポート構文:
@docs/architecture.md # 相対パス
@~/.claude/preferences.md # ホームディレクトリ
Quick Memory: # プレフィックスで即座にメモリに追加
# このプロジェクトでは pnpm を使用
保存場所: .cursor/agents/ または ~/.cursor/agents/
メタデータ:
---
name: code-reviewer
description: Reviews code for quality and best practices
model: claude-3-opus # 使用モデル
readonly: true # ファイル編集不可
is_background: false # バックグラウンド実行
---
特徴:
優先順位: Team Rules > Project Rules > User Rules
管理方法: Cursor ダッシュボードで設定
テンプレートライブラリ (4種類):
allowed-tools:
- Read # 全ファイル読み取り可
- Write # 全ファイル書き込み可
- Bash(pattern:npm*) # npm で始まるコマンドのみ
- Bash(pattern:git*) # git で始まるコマンドのみ
パターン構文: Bash(pattern:GLOB) 形式で許可するコマンドを制限