.agents/skills/copilot-sdk-integration/SKILL.md
How hyoka uses the Copilot SDK
npx skillsauth add ronniegeraghty/hyoka copilot-sdk-integrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Hyoka integrates with the Copilot SDK to launch agent sessions (both for code generation and code review). The SDK provides session lifecycle management, tool invocation, and action history capture.
sess, err := SDK.NewSession(ctx, &SessionOptions{
Model: "claude-opus-4.6",
SystemPrompt: "You are an Azure SDK code generator...",
Tools: toolSet,
Skills: skillPaths,
MCPServers: mcpConfigs,
MaxTurns: 25,
MaxFiles: 50,
MaxOutputSize: 1MB,
})
// Send initial prompt
resp, err := sess.SendMessage(ctx, prompt)
// Agent responds with actions (tool calls, file operations, etc)
for action := range resp.Actions {
// Hyoka captures action metadata for timeline
timeline.Append(action)
// Let SDK handle tool execution
result, err := sess.ExecuteAction(ctx, action)
}
// Repeat until agent stops or max turns reached
sess.Close() // Kills Copilot process, cleans workspace
The SDK returns SessionEventRecord for each agent action:
tool_call, tool_result, file_read, file_write, bash_commandHyoka maps these into ActionEvent for graders and reports.
Skills are SKILL.md files injected into the SDK session. They provide domain knowledge (e.g., Azure SDK patterns, Python conventions) without needing direct prompt modification.
generator:
skills:
- type: local
path: ./skills/generator/**/*.md
The SDK concatenates skills into the system prompt at session creation.
MCP (Model Context Protocol) servers extend tool availability beyond built-in SDK tools.
generator:
mcp_servers:
azure-cli:
type: command
command: /usr/bin/az
args: ["mcp", "run"]
tools: ["azure_resource_list"]
The SDK spawns the MCP server process and routes tool calls to it.
--gen-timeout (default 600s), SDK terminates--monitor-resources), tracks CPU/memory per sessionAfter each tool execution:
hyoka/internal/eval/copilot.gohyoka/internal/eval/action.gohyoka/internal/eval/engine.go (orchestrates SDK calls)sess.Close() (orphans may remain)development
Identifies Azure SDK packages in generated code and checks whether they are the latest available versions. Use during code review to catch outdated dependencies.
development
Sets up build environments for generated Azure SDK code samples and attempts to compile/build without modifying generated files. Use during review to verify code compiles correctly.
development
# Java SDK Validation Skill You are a **Java Azure SDK validation reviewer** for generated code samples. Your job is to check whether generated Java code follows modern Azure SDK for Java conventions and flag violations of common anti-patterns that LLMs frequently produce. ## Rules 1. **NEVER modify generated code.** You are evaluating, not fixing. 2. Report all findings honestly — pass or fail with specific evidence. 3. Check every rule below. A single violation in a category means that cate
development
Reads generated Azure SDK code files and adds inline review comments without changing any actual code. Use during code review to annotate quality issues, best practices, and suggestions.