engineer-code

Convert Python functions and prompts into trainable Microsoft Trace components with feedback loops.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Tyler-R-Kendrick/copilot-auto-training --skill engineer-code-tyler-r-kendrick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: engineer-code
Source: https://github.com/Tyler-R-Kendrick/copilot-auto-training/tree/main/skills/engineer-code
Command: npx skills add https://github.com/Tyler-R-Kendrick/copilot-auto-training --skill engineer-code-tyler-r-kendrick

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires trace-opt, and includes references (resource) and scripts (resource) and assets (resource) components.

What problem does it solve? It helps developers apply Microsoft Trace to optimize Python code behavior from tests, errors, and critiques instead of treating Trace as a generic prompt-tuning tool. ## Core Features & Use Cases - Trainable surface selection: Decide what stays plain Python and what becomes a trainable node, bundle, or model. - Feedback loop design: Build repeatable optimization loops using zero_feedback(), backward(...), and step() driven by tests, scores, or compiler errors. - Failure-aware training: Preserve runtime exceptions through ExecutionError so failures become training signal. - Use Case: A developer has a code-repair function failing pytest cases; the skill recommends a @trace.bundle(trainable=True) design that turns failing tests into optimizer feedback. ## Quick Start Ask the assistant to turn your Python helper function into a trainable Microsoft Trace component using your failing unit tests as feedback.

Frequently Asked Questions about engineer-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a Python function trainable with Microsoft Trace?

Decorate the function with @trace.bundle(trainable=True) so it behaves like a normal callable while participating in the Trace computation graph. Then define a feedback function from tests or scores and run the zero_feedback(), backward(...), step() loop.

When should I use trace.node vs @trace.bundle vs @trace.model?

Use trace.node(..., trainable=True) for editable values like prompts or thresholds, @trace.bundle(trainable=True) for optimizing a function's behavior as a unit, and @trace.model when several related trainable members belong to one cohesive object.

Can Microsoft Trace train code from failing unit tests?

Yes. Trace accepts non-scalar feedback such as test failures, compiler errors, and natural-language critiques. You can also capture runtime exceptions via ExecutionError and feed them back into the optimizer instead of discarding them.

Is Microsoft Trace good for speeding up slow pandas or NumPy code?

No. Trace is not the primary tool for generic runtime performance tuning. For slow ETL jobs, use profiling, algorithmic changes, or systems optimization first; Trace only helps when a repeatable feedback signal can improve behavior.

What are the limitations of trainable bundles in Trace?

Hidden dependencies inside a bundled function can break tracing assumptions, and large graphs create context pressure for graph-aware optimizers like OptoPrime. Keep trainable surfaces narrow so feedback stays attributable and updates remain interpretable.