🏋️ Challenges — Module 02 (Customization)¶
- Instructions: create an
AGENTS.mdwith 5 conventions and confirm the agent follows them. - Command: create
/changelogthat inserts the output of!git log --oneline -10`` into the prompt. - Permissions: deny reading
.env*and prove the agent cannot read it. - Policy: deny a provider via
provider.useand confirm it disappears from/models, even with valid credentials. - Skill: create a
reviewskill with adescriptionand a supporting file underreferences/, then load it with@review. - MCP: add a local MCP server and check the connection with
opencode mcp list.
💡 Solution (challenge 2)
---
description: Summarizes the last commits
---
Summarize these changes:
!`git log --oneline -10`
💡 Solution (challenge 4)
{ "policies": [{ "action": "provider.use", "resource": "openai", "effect": "deny" }] }
💡 Solution (challenge 6)
opencode mcp add everything --global -- npx -y @modelcontextprotocol/server-everything
opencode mcp list
➡️ Module 03