Context Engineering Toolkit
A comprehensive demonstration of context engineering for AI code agents, covering all five units of the Hugging Face Context Course.
Overview
This project showcases the full context engineering stack:
| Unit | Topic | Artifact in this repo |
|---|---|---|
| 1 | Agent Skills | skills/ — 3 portable SKILL.md files |
| 2 | Model Context Protocol (MCP) | mcp-server/server.py — FastMCP server with tools, resources, prompts |
| 3 | Plugins | plugin/ — manifest, MCP config, multi-platform docs |
| 4 | Subagents | subagents/ — fan-out, pipeline, supervisor patterns |
| 5 | Hooks | hooks/ — guardrails, observability, automation examples |
| — | Quiz Answers | quiz-answers/QUIZ_ANSWERS.md — all 4 units, 28/28 correct |
Project Structure
context_course_project/
├── README.md
├── LICENSE
├── requirements.txt
├── skills/
│ ├── code-review/SKILL.md
│ ├── hf-dataset-publish/SKILL.md
│ └── git-workflow/SKILL.md
├── mcp-server/
│ └── server.py # FastMCP server (tools + resources + prompts)
├── plugin/
│ └── README.md # Plugin manifest and multi-platform docs
├── subagents/
│ └── README.md # Subagent patterns and configs
├── hooks/
│ └── README.md # Hook examples (Claude Code, OpenCode, guardrails)
└── quiz-answers/
└── QUIZ_ANSWERS.md # All quiz answers (Units 1-4)
Quick Start
1. Install dependencies
pip install mcp huggingface_hub
2. Run the MCP server
python mcp-server/server.py
The server exposes tools (list_skills, read_skill, search_skills, echo),
resources (skills://list, config://project), and prompts (review_code).
3. Use the skills
Copy any skills/*/SKILL.md into your agent's skill directory:
# Claude Code
cp -r skills/code-review ~/.claude/skills/
# OpenCode
cp -r skills/code-review .opencode/skills/
4. Configure hooks
Copy the hook configs from hooks/README.md into your agent's settings.
Quiz Answers
All quiz answers (28/28 correct) are in quiz-answers/QUIZ_ANSWERS.md.
Take the interactive quizzes:
- Unit 1: https://huggingface.co/spaces/context-course/unit_1_quiz
- Unit 3: https://huggingface.co/spaces/context-course/unit_3_quiz
Certifications
| Certificate | Requirements | Status |
|---|---|---|
| Context Fundamentals | Pass Unit 1–2 quizzes (≥70%) | Quiz answers provided ✅ |
| Context Engineering | Pass all Unit 1–5 quizzes (≥70%) + capstone project | In progress |
License
MIT License. See LICENSE.
Acknowledgements
Built as part of the Hugging Face Context Course, following the official curriculum. Quiz answers sourced from the course repository.