Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Prompt engineering for production LLMs — structured outputs, evals, RAG, tool workflows, multimodal prompting, and safety. Use when designing, debugging, or shipping prompts.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
| Need | Pattern | Core Controls |
|---|---|---|
| Machine-parseable output | Structured output | schema, JSON-only response, validation |
| Deterministic field extraction | Extractor | missing -> null, no transformation, exact schema |
| Retrieved factual answering | RAG workflow | relevance check, citation requirement, explicit missing-info behavior |
| Hidden reasoning | Private reasoning / native thinking | final answer only, no exposed chain-of-thought |
| Tool use | Tool or agent planner | plan, tool gating, validation after each call |
| Text transformation | Rewrite and constrain | meaning preservation, style and format rules |
| Classification or routing | Decision tree | mutually exclusive branches, stable output format |
| Prompt release | Prompt ops | versioning, eval gates, rollback path |
| Choosing prompt vs RAG vs fine-tune vs distill | Escalation decision | Prompt → RAG (knowledge gap) → Fine-tune (volume + stable task) → Distill (cost at scale). See references/prompt-vs-finetune.md. |
TASK:
{{one_sentence_task}}
INPUT:
{{input_data}}
RULES:
- Use only INPUT and approved tool outputs.
- Do not invent facts.
- Missing required information -> say what is missing.
- Keep reasoning hidden.
- Follow OUTPUT FORMAT exactly.
OUTPUT FORMAT:
{{schema_or_format_spec}}
Schema design (field order, closed enums with unknown, nullable fields, strict schema mode vs tool calling, discriminated unions, one validator-fed repair retry) is in references/core-patterns.md.
AVAILABLE TOOLS:
{{tool_names_or_signatures}}
WORKFLOW:
- Make a short plan.
- Call tools only when needed.
- Validate each tool result before using it.
- Run independent reads in parallel only if the environment supports it.
RETRIEVED CONTEXT:
{{chunks_with_ids}}
RULES:
- Use only retrieved context for factual claims.
- Cite chunk ids for each claim.
- If evidence is missing, say what is missing.
Prompt quality depends on the whole input pipeline, not just instruction wording.
Route deep retrieval or memory design work to ai-rag or ai-context-layer.
Provider prompt caches match on an exact prefix, so order every request from most stable to least stable:
Do
Avoid
Prefer one independent prompt variable at a time: instruction, context, examples, schema, tool contract, or policy. When compatibility requires coupled edits, predeclare an atomic bundle, such as schema plus schema instructions or a tool definition plus its usage examples, and compare the complete bundle with the prior complete contract. Hold the model ID, inference settings, unrelated tool fixtures, and dated eval set constant; record the rendered prompt fingerprint and raw outputs. Judge syntax and schema compliance separately from semantic task success and refusal behavior. Promote only when the target slice improves within its regression budget. Label unrelated simultaneous runtime, provider, or model changes as confounders and re-baseline.
| Script | Purpose |
|---|---|
scripts/prompt_regression_runner.py | Run a JSONL prompt regression suite (variant_id, prompt, actual, golden_substrings, schema). Groups results by variant. Validates pre-collected outputs only; a record without actual, without any assertion, or with an empty golden substring is rejected (exit 2) instead of passing vacuously. The schema check supports only type (including lists such as ["string","null"]), properties, required, additionalProperties: false, enum, const, items, minLength/maxLength, minimum/maximum and anyOf; any other keyword is rejected (exit 2), never ignored. For repeated runs, add one record per run with a shared case_id: the runner reports per-case pass rates and gates each case on --min-pass-rate (default 1.0) and on any failed must_pass run. Tests: scripts/test_prompt_regression_runner.py. |
When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。