MicroHack / 04_Agentic_Contract_Lifecycle_Management
Copilot instructions204 starsChanged 5 months agoMITView on GitHub
This workspace is the Contract Lifecycle Management (CLM) agentic microhack lab, built for the EMEA MicroHack platform (microsoft/MicroHack). The platform renders a front-end UI, but all resource provisioning comes from labautomation/deploy-lab.ps1. Without a working deployment script, no resources appear in the Azure portal — the platform is just a shiny front end. This lab also ships src/ (agent code), images/, and docs/ for the CLM scenario. Those are additive — the platform contract above is what the platform enforces. The…
- Reads credentials
In this repository8 other files it gives its agents.
- 03-Azure/01-04-AI/01_Agentic_SDLC/.github/copilot-instructions.mdCopilot instructions
- 03-Azure/01-04-AI/02_Inventory_Planning_Fabric/.github/copilot-instructions.mdCopilot instructions
- 03-Azure/01-04-AI/03_Inventory_Planning_Agentic/.github/copilot-instructions.mdCopilot instructions
- dotnet-upgradeSkill
- java-upgradeSkill
- {{skill-name-kebab-case}}Skill
- skill-creatorSkill
- frontend-designSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 71
Write a hashtable to the output stream — the platform captures it and shows it on the user's dashboard:
- Distinctive: line 80
Do not hard-code corporate network or specific DNS assumptions.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Foundry CLM MicroHack — EMEA Platform Conventions
This workspace is the Contract Lifecycle Management (CLM) agentic microhack lab, built for the
EMEA MicroHack platform (microsoft/MicroHack).
The platform renders a front-end UI, but all resource provisioning comes from labautomation/deploy-lab.ps1.
Without a working deployment script, no resources appear in the Azure portal — the platform is just a shiny front end.
Mandatory Structure
labautomation/ ← exactly this name, no dashes
deploy-lab.ps1 ← platform entry point (optional but recommended)
lab-defaults.json ← platform configuration (required if folder exists)
README.md ← usage notes
challenges/ ← challenge instructions (Markdown)
walkthrough/ ← solutions
README.md ← hack intro, objectives, prerequisitesThis lab also ships
src/(agent code),images/, anddocs/for the CLM scenario. Those are additive — the platform contract above is what the platform enforces.
deploy-lab.ps1 — Parameter Contract
The platform skips the script if the parameter block does not exactly match:
param(
[Parameter(Mandatory=$true)]
[ValidateSet('subscription','resourcegroup','resourcegroup-with-subscriptionowner')]
[string]$DeploymentType,
[Parameter(Mandatory=$true)]
[string]$SubscriptionId,
[string]$ResourceGroupName = "",
[string[]]$PreferredLocation = @(),
[string[]]$AllowedEntraUserIds = @()
)Platform Guarantees (before your script runs)
- Az context is already set to
$SubscriptionId— do NOT callConnect-AzAccount - For
resourcegroup/resourcegroup-with-subscriptionowner: the RG exists and your script hasOwner— do NOT callNew-AzResourceGroup - For
subscription: your script hasOwneron the subscription; you must create the RG yourself usingGet-MhhStableHashfor deterministic naming Az.AccountsandAz.Resourcesmodules are already imported
lab-defaults.json — Required Shape
{
"$schema": "https://raw.githubusercontent.com/microsoft/MicroHack/refs/heads/main/lab-defaults-schema.json",
"groups": ["M365-E5-Users"],
"deploymentType": "resourcegroup",
"labsPerSubscription": 8,
"preferredLocation": "swedencentral, westeurope, norwayeast",
"estimatedDailyCostsUsd": 5.0
}deploymentType:"resourcegroup"|"resourcegroup-with-subscriptionowner"|"subscription"groups:["M365-E5-Users"]for this hack — the CLM scenario needs M365 E5 (Teams publish, SharePoint corpus). Use[]for Azure-only, or["GHCPUsers"]for a GitHub Copilot seat.preferredLocation: comma-separated regions, priority order — swedencentral first for gpt-5.4 availabilityestimatedDailyCostsUsd: per-user per-day cost for the lifecycle wizard (Foundry models + AI Search + App Insights)
Returning Credentials to Users
Write a hashtable to the output stream — the platform captures it and shows it on the user's dashboard:
@{ HackboxCredential = @{ name = "FoundryProjectEndpoint"; value = $endpoint; note = "AZURE_AI_PROJECT_ENDPOINT in .env" } }Platform Compatibility
The platform supports on-site, online, and hybrid delivery. Do not hard-code corporate network or specific DNS assumptions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

