Skip to content
Automation
Skill

/context-engineering

Dynamic context injection, mode switching (dev/review/research), selective loading, and strategic compaction for token optimization.

From plugin
babysitter
1.9k200 skills3 agents21 commands1 MCP

Claude Code

$ npx -y skills add a5c-ai/babysitter --skill context-engineering --agent claude-code

SKILL.md

context-engineering.SKILL.md
name: context-engineering
description: Dynamic context injection, mode switching (dev/review/research), selective loading, and strategic compaction for token optimization.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
graph:
  domains: [domain:software-engineering]
  skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]
  roles: [role:tech-lead, role:backend-engineer]
  • 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-engineering` agent for explicit compaction analysis
Read more
@a5c-ai
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

1.9k200 skills3 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.9k
Star history of a5c-ai/babysitter on GitHub, a chart by star-history.com

Other skills on babysitter.

babysit-babysitter-issues

babysit-babysitter-iss…

This skill should be used when the user asks to "babysit issues", "work on assigned issues", "check a5c-agent issues", "process…

@a5c-ai@a5c-aiInstall Skill
catalog-babysitter-users

catalog-babysitter-use…

Discover public GitHub repositories that import defineTask from @a5c-ai/babysitter-sdk and maintain a deduplicated catalog of…

@a5c-ai@a5c-aiInstall Skill
fix-failing-pipelines

fix-failing-pipelines

This skill should be used when the user asks to "fix pipelines", "fix CI", "check staging pipelines", "fix failing workflows",…

@a5c-ai@a5c-aiInstall Skill
process-builder

process-builder

Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase…

@a5c-ai@a5c-aiInstall Skill

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n10d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about context-engineering.

Which coding agents can use context-engineering?
context-engineering installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.