a5c-ai/babysitter / library/methodologies/everything-claude-code/skills/context-engineering
context-engineering
UnverifiedDynamic context injection, mode switching (dev/review/research), selective loading, and strategic compaction for token optimization.
- Load: architecture docs, active code files, test files, recent changes
- Skip: historical discussions, completed milestones, research notes
- Priority: implementation speed
Review Mode
- Load: code diff, coding standards, security rules, test coverage
- Skip: architecture docs, planning notes, research
- Priority: thoroughness and accuracy
Research Mode
- Load: requirements, existing patterns, external research, alternatives
- Skip: implementation details, test files, CI configs
- Priority: breadth of information
Dynamic Injection
- Detect project context automatically (language, framework, tools)
- Load relevant skills based on detected context
- Inject domain-specific patterns and conventions
- Adjust tool allowlists per context mode
Selective Loading
- Load only files relevant to the current task
- Use glob patterns to scope file reading
- Prioritize recently modified files
- Skip binary files and generated code
Strategic Compaction
- Monitor context token usage
- Suggest compression for resolved/completed items
- Archive to memory files (activeContext, patterns, progress)
- Pre-compaction state preservation
- Automated compaction triggers at token thresholds
Cross-Platform Detection
- Package manager: npm (package-lock.json), pnpm (pnpm-lock.yaml), yarn (yarn.lock), bun (bun.lockb)
- Language: TypeScript (tsconfig.json), Go (go.mod), Python (pyproject.toml), Java (pom.xml)
- Test runner: vitest, jest, pytest, go test
- CI/CD: GitHub Actions, Dockerfile, docker-compose
When to Use
- Session initialization (detect context)
- Before each phase (inject relevant context)
- Token budget warnings (strategic compaction)
- Mode transitions (dev to review to research)
Agents Used
- Used by all agents indirectly through context detection
context-engineeringagent for explicit compaction analysis
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| add-product-e2e-evalpaperclipai/paperclipAdd or extend a Paperclip full-stack runner E2E workflow, fixture, matcher, or report evidence path for local or Daytona execution. | Stars: 114k | Updated | Claude CodeCodex | Verified | Install |
| add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation. | Stars: 114k | Updated | Claude CodeCodex | Verified | Install |
| diagnose-why-work-stoppedpaperclipai/paperclipCompatibility entry point for failed, stalled, looping, or over-recovered Paperclip work. Use fix-failed-paperclip-run for the full diagnosis, regression, repair, real verification, and green-PR workflow; honor an explicitly requested diagnosis-only scope. | Stars: 114k | Updated | Claude CodeCodex | Verified | Install |
| fix-failed-paperclip-runpaperclipai/paperclipDiagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks. | Stars: 114k | Updated | Claude CodeCodex | Verified | Install |