ISLAM-PO's picture
Add context engineering toolkit (Units 1-5)
b4c665d verified
|
Raw History Blame Contribute Delete
3.19 kB

Context Engineering Toolkit

A comprehensive demonstration of context engineering for AI code agents, covering all five units of the Hugging Face Context Course.

Hugging Face License: MIT

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:

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.