File size: 3,193 Bytes
b4c665d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Context Engineering Toolkit

A comprehensive demonstration of **context engineering** for AI code agents, covering all five units of the [Hugging Face Context Course](https://huggingface.co/learn/context-course).

[![Hugging Face](https://img.shields.io/badge/πŸ€—-Hugging%20Face-yellow)](https://huggingface.co/ISLAM-PO)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)

## 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

```bash
pip install mcp huggingface_hub
```

### 2. Run the MCP server

```bash
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:

```bash
# 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](https://huggingface.co/learn/context-course),
following the official curriculum. Quiz answers sourced from the course repository.