.claude/skills/context-engineer/SKILL.md
Determines WHAT context an agent needs and packages it optimally. Actions: analyze (identify needed context), load (assemble from sources), prune (trim to token budget), inject (write to .claude/context-payload.md). Use when: (1) before spawning teammates, (2) context window is limited, (3) multi-source context assembly. Triggers: /context-engineer, 'prepare context', 'package context', 'context for agent'.
npx skillsauth add alfredolopez80/multi-agent-ralph-loop context-engineerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Determine what context an agent needs and package it within token budget.
/context-engineer analyze <task>Identify what context sources are relevant:
/context-engineer load <task>Assemble context from identified sources:
analyze if not already done/context-engineer prune <budget>Trim assembled context to fit token budget:
/context-engineer injectWrite packaged context to .claude/context-payload.md:
ralph-subagent-start.sh hook reads this file and injects into teammate prompt| Source | When Relevant | Token Cost | |---|---|---| | .spec.md | Task has a spec | ~500-2000 | | DESIGN.md | Frontend task | ~1000-3000 | | Related code files | Always | ~500-5000 | | Memory (vault) | Prior work exists | ~200-500 | | Handoffs | Cross-session | ~300-800 | | Vault (future) | Curated knowledge | ~200-1000 |
.claude/context-payload.md if exists| Excuse | Rebuttal | |---|---| | "The agent has enough context from the prompt" | Agents lose 40% accuracy without structured context. Package it. | | "Context engineering is overhead" | 5 seconds of packaging saves 5 minutes of wrong output. | | "I'll just include everything" | Token flooding degrades quality. Prune to signal. |
development
Living knowledge base management. Actions: search (query vault), save (store learning), index (update indices), compile (raw->wiki->rules graduation), init (create vault structure). Follows Karpathy pipeline: ingest->compile->query. Use when: (1) searching accumulated knowledge, (2) saving learnings, (3) compiling raw notes into wiki, (4) initializing a new vault. Triggers: /vault, 'vault search', 'knowledge base', 'save learning'.
testing
Produce a verifiable technical specification before coding. 6 mandatory sections: Interfaces, Behaviors, Invariants (from Aristotle Phase 2), File Plan, Test Plan, Exit Criteria (executable bash commands + expected results). Use when: (1) before implementing features with complexity > 4, (2) as Step 1.5 in orchestrator workflow, (3) when requirements need formalization. Triggers: /spec, 'create spec', 'write specification', 'technical spec'.
testing
Pre-launch shipping checklist orchestrating /gates, /security, /browser-test, /perf. Ensures nothing ships without passing all quality checks. Use when: (1) before deploying, (2) before merging to main, (3) before release. Triggers: /ship, 'ship it', 'ready to deploy', 'pre-launch check'.
development
Performance optimization skill. Core Web Vitals via Lighthouse, bundle size analysis, metrics tracking over time. Use when: (1) optimizing frontend performance, (2) analyzing bundle size, (3) tracking metrics regression. Triggers: /perf, 'performance audit', 'core web vitals', 'bundle size'.