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

context-engineering-review

Review what an LLM feature or agent actually puts in its context window — and find what's bloating, missing, or fighting itself. Use when asked to review a system prompt and context assembly, cut token usage without losing quality, debug an agent that ignores instructions, or audit how retrieval results, history, and tool definitions are packed into the window. Produces a context inventory with a keep/cut/restructure verdict per component, ordering and caching fixes, and a token budget. For wording-level prompt tuning use prompt-optimizer.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.4 KB

SKILL.md(原文)

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

Context Engineering Review Skill

Most agent failures aren't model failures — they're context failures: instructions buried under retrieval dumps, stale history contradicting fresh facts, twelve tool definitions the task never needed. This skill audits the assembled window, not just the prompt text.

What This Skill Produces

  • A context inventory: every component in the window, its size, and who put it there
  • A keep / cut / restructure verdict per component, with the reasoning
  • Ordering and cache-alignment fixes (stable prefix first, volatile content last)
  • A token budget per component with an enforcement point

Required Inputs

Ask for (if not already provided):

  • A real assembled context — an actual logged request (system prompt + messages + tools), not the template. If only the template exists, review that but flag that dynamic bloat is invisible
  • The failure or goal — ignoring instructions? too expensive? inconsistent? slow?
  • What varies per request (retrieval, history, user data) vs. what is static
  • The model and its context limit, and current typical request size

Review Method

1. Inventory. List every component in window order: system prompt sections, tool definitions, retrieved documents, conversation history, few-shot examples, injected state. For each: token count (estimate if unlogged), static vs. dynamic, and owner.

2. Interrogate each component:

  • Earning its tokens? Would removing it change outputs on real traffic? The honest test is ablation, not intuition.
  • Right form? Raw dumps (full HTML, whole files, unabridged history) almost always beat down to summaries, excerpts, or references the agent can expand via a tool.
  • Right position? Instructions that must win go in the system prompt; volatile data goes late; nothing critical hides in the middle of a long window.
  • Fighting anything? Contradictions between sections (persona says terse, examples are verbose; old history asserts what retrieval now refutes) are the classic "ignores instructions" root cause.

3. Check the structural patterns:

  • Cache alignment — a byte-stable prefix (system prompt, tools) with per-request content after it; anything dynamic inside the prefix (timestamps, user names) breaks caching every request.
  • Tool sprawl — tools the task can't need this turn dilute selection accuracy; load narrow toolsets per task or defer rarely-used schemas.
  • History policy — unbounded transcripts are the top silent cost driver; define truncation/summarisation and what must survive it.
  • Retrieval discipline — cap chunks by relevance score, not by k; label each chunk's source so the model can weigh it.

4. Budget. Assign each component a token ceiling that sums comfortably under the limit at p95, and name where it's enforced (the assembly code, not hope).

Output Format

Context Engineering Review: [feature/agent]

Reviewed: [a real request from date / the template]. Current size: [n] tokens typical, [n] p95, limit [n].

#ComponentTokensStatic?VerdictFix
1[system: persona]✓Keep—
2[12 tool defs]✓Restructure[narrow per task]
3[retrieval, k=20]dynCut to k≤8 by score

Conflicts found: [each contradiction and which side should win]

Ordering / caching: [the reordered layout; what moves out of the stable prefix]

Token budget: [component → ceiling; enforcement point]. Projected size: [n] (−[x]%).

Verify: re-run [the eval suite / golden cases] after changes — cuts must be validated, not assumed safe (see prompt-regression-suite).

Quality Checks

  • The review used at least one real assembled request, or explicitly flags it could not
  • Every verdict has a reason tied to the stated failure/goal, not generic advice
  • Cache-breaking dynamic content in the stable prefix is called out with its cost
  • The token budget sums under the model limit at p95 including output headroom
  • Recommended cuts come with a validation step before they ship

Anti-Patterns

  • Do not review the prompt template and call it a context review — the bloat lives in the dynamic parts
  • Do not recommend "shorten everything" — cutting the wrong 200 tokens costs more than keeping 2,000 idle ones
  • Do not leave contradictions in place because each section "is fine alone" — the window is read as one document
  • Do not treat more retrieval as more grounding — irrelevant chunks actively mislead
  • Do not propose structure the assembly code can't enforce — a budget without an enforcement point is a wish

Example Trigger Phrases

  • "Review a system prompt and context assembly."
  • "Cut token usage without losing quality."
  • "Debug an agent that ignores instructions."
  • "Audit how retrieval results."

レビュー

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

同じリポジトリのスキル

概要と使いどころ

Design a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.

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

mohitagw15856/pm-claude-skills1,4412026年10月13日 更新

Decode a 401k or workplace retirement plan — the real cost of its funds, the match's fine print, vesting math, and the plan features worth using or avoiding. Use when someone asks 'is my 401k any good', 'decode my 401k plan', 'which funds should I look at', or 'what fees am I paying'. Produces a fee decode in dollars-over-time, match and vesting math, a fund-lineup triage by cost, and the questions for HR or the plan administrator.

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

mohitagw15856/pm-claude-skills1,4412026年10月13日 更新

Design statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.

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

mohitagw15856/pm-claude-skills1,4412026年10月13日 更新

Analyse a finished A/B test and write the readout — the result, whether it's statistically and practically significant, what it means, and the ship/no-ship call. Use when asked to analyse experiment results, write an A/B test readout, interpret test data, or decide whether to ship a variant. Produces a clear verdict with the lift and confidence, segment cuts, the risks (peeking, novelty, sample), and a recommendation. Distinct from planning a test — this reads results.

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

mohitagw15856/pm-claude-skills1,4412026年10月13日 更新

Build or tailor an academic CV for faculty, postdoc, research or fellowship applications: publications, grants, teaching, supervision and service in the order the field expects, with consistent citations. Use when asked to write my academic CV, update my CV for a lectureship, tenure-track or postdoc application, format my publications list, or adapt my academic CV for an industry research role. Produces the full academic CV, a field-appropriate section order, a clean publications list in one citation style, and a two-page summary version when asked.

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

mohitagw15856/pm-claude-skills1,4412026年10月13日 更新

Generate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.

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

mohitagw15856/pm-claude-skills1,4412026年10月13日 更新

mohitagw15856 のスキルをすべて見る

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