foundry-agentic-loop
Build agentic solutions on Microsoft Foundry, GitHub and Azure: hosted agents, toolbox tools and skills, Foundry IQ grounding and a React/FastAPI app.
Install / Use
npx skills add github/awesome-copilot --skill foundry-agentic-loopInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of foundry-agentic-loop
foundry-agentic-loop scores 91/100 on our quality scale, 996th of 2,861 Automation skills we index (top 35%).
Its SKILL.md is 12 KB long, split into 7 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 39,348 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 38 days ago, so foundry-agentic-loop is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
foundry-agentic-loop compared with similar skills
All 4 of these similar skills score higher than foundry-agentic-loop; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| foundry-agentic-loop (this skill)by github | 91 | 39.3k | 38d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 107.4k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.5k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 91.5k | 1d ago | MCP Server |
| crawl4aiby unclecode | 100 | 86.7k | today | MCP Server |
Frequently asked questions
- How do I install foundry-agentic-loop?
- Run
npx skills add github/awesome-copilot --skill foundry-agentic-loop. The install tabs above show the steps for each supported agent. - Which AI agents does foundry-agentic-loop work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is foundry-agentic-loop safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is foundry-agentic-loop still maintained?
- The repository was last updated 38 days ago, so foundry-agentic-loop is actively maintained.
Skill content
View source on GitHubname: foundry-agentic-loop description: 'Build agentic solutions on Microsoft Foundry, GitHub and Azure: hosted agents, toolbox tools and skills, Foundry IQ grounding and a React/FastAPI app. Three modes: rapid prototyping in an existing Foundry project; spec-driven development (SDD), where the foundry-agentic-loop-workflow runs Specify, Implement, Verify and Deploy to create the Foundry project and deploy with azd, or one phase runs alone; and Improve, which refines this skill and the workflow from past runs. Use for Agentic Loop requests and canvas actions, or end-to-end agent solutions from architecture to Azure deployment. Not for isolated Azure administration or unrelated UI edits.'
Foundry Agentic Loop
Coordinate the solution and use microsoft-foundry for platform operations. Explicit user choices override defaults. Reuse known context, ask only for missing decisions, read only the references a step needs, and report decisions, blockers and endpoints concisely.
Bootstrap (once per session)
- Foundry skill. If
microsoft-foundryis unavailable, ask, then install it (copilot plugin install azure@awesome-copilot, orgh skill install microsoft/azure-skills microsoft-foundry --agent github-copilot --scope project) and reload skills. - Canvas and workflow. This plugin ships
foundry-agentic-loop-canvasandfoundry-agentic-loop-workflow, listed asfoundry-agentic-loop:<name>or<name>. Callextensions_managewithoperation: "list". Never install extensions from a URL and never edit Copilot settings files. If one is listed under neither name, tell the user which is missing and that it ships with the plugin, then ask before runningcopilot plugin install foundry-agentic-loop@awesome-copilot; after they approve, callextensions_reloadonce. If one is disabled, tell the user to re-enable it in their extension settings and continue in a new session: running sessions keep it disabled, even after a reload. If one failed,inspectit and report its log. Without the canvas, continue in Chat; without the workflow, SDD cannot start, so offer rapid prototyping. - Canvas. When work starts from Chat, open it once:
open_canvaswithcanvasId: "foundry-agentic-loop-canvas",instanceId: "foundry-agentic-loop"andinput: { mode }. Prompts that begin[Agentic Loop canvas action]come from the canvas; follow their target, approval and resume instructions literally.
Choose the mode
| Signal | Mode |
| --- | --- |
| Root AGENTS.md has an Agentic Loop section | Its mode. Switch only when the user confirms, then rewrite the section |
| Canvas prompt or explicit choice | As stated |
| Existing Foundry project selected or named; fast prototype; no deployment pipeline needed | Rapid prototyping: rapid.md |
| Spec, new Foundry project, azd or IaC, CI-ready repo or full Azure deployment | SDD: sdd.md |
| Improve, learn from runs, or the canvas improve prompt | Improve: improve.md; measure changes with node scripts/evals.mjs (index, then run --base <commit>; exit 2 means evals are unavailable, so stop) |
| One named SDD phase, with no run active | Its guide (Specify, Implement, Verify or Deploy) with the SDD defaults |
Otherwise ask once with the choices "Rapid prototyping (existing Foundry project)" and "SDD (new project, deployed with azd)".
Lock it in. Before any other workspace write (in the rapid preflight, or just before the SDD workflow starts), upsert the section from agents-md-rapid.md or agents-md-sdd.md into the root AGENTS.md: replace everything between its foundry-agentic-loop begin and end markers, or append it, keeping other content; then read it back. The section routes short commands such as deploy and locks the mode for Chat, the canvas and the workflow. Azure settings go only in .azure/deployment-plan.md, never in AGENTS.md. Improve mode never writes it.
Defaults
- Agents: Foundry hosted agents exposing the Responses API, Python 3.13, code deployment. Create them through
microsoft-foundry'sfoundry-agent/create/quick-start-hosted.mdwith the Basic sample, resolved through that skill, never a guessed URL. Use its advanced workflow only when quick-start cannot support a capability, keeping these defaults. Prompt agents only when requested. - Framework: the Copilot SDK for agents that use runtime skills (recipe, reference agent); Microsoft Agent Framework for basic agents and explicit workflows. If a workflow also needs skills, clarify. One framework per agent.
- Models: rapid keeps the Basic sample's model deployment, or verifies and reuses a supplied one; SDD defaults to
gpt-5.4-miniunless the spec needs otherwise. Run the joint placement preflight in foundry-models.md before creating resources. Never hard-code a replacement or silently duplicate a deployment. - Tools and knowledge: one governed Foundry toolbox for built-in tools, MCP connections and agent skills; agents use its endpoint, not hard-coded tool URLs. Private knowledge uses Foundry IQ through the toolbox, with citations for supported claims and a deterministic insufficient-evidence response; test both. Add Search only when needed. Reuse run skills the user names from the run catalog instead of regenerating them.
- App: React + Vite, FastAPI and FastMCP (streamable HTTP) on Azure Container Apps. Rapid deploys with
az containerapp up --name <app> --source <dir> --resource-group <rg> --environment <env>; SDD uses azd with amicrosoft.foundrylayer plus a Bicep (AVM) app layer,remoteBuild: trueand one ACR pulled by managed identity. Add services from the reference architecture only when the solution needs them. - App access: decide it from the data. When everything the app shows is sample, synthetic or deliberately public, default to no end-user sign-in, even for staff users; services still authenticate with managed identities and need no anonymous-session or identity-verification workarounds. When it shows private, sensitive or user-specific data, ask for the access model before deploying and default to internal ingress or Entra sign-in; anonymous access needs explicit approval. With sign-in, the API pre-authorizes the SPA, the spec states how automated browser tests get a user token, and Implement proves that token path as soon as the app registrations exist.
- Identity and safety: managed identities and least-privilege keyless RBAC (contract; preflight with check_rbac_preflight.py). Check management-plane, data-plane and role-assignment rights separately; subscription Owner does not grant Foundry data-plane roles. Plan roles for identities not yet created and verify actual principals after creation. No credentials in browser code or Git; Foundry guardrails on.
- Observability: OpenTelemetry from the backend, agents, MCP servers and model calls into one Application Insights connected to the project (observability.md). Sensitive content capture stays off unless approved with redaction and retention controls.
Workspace files
| File | Holds |
| --- | --- |
| AGENTS.md (root) | The mode lock and short-command routes; never Azure settings |
| README.md (rapid) or docs/spec.md (SDD, from the spec template) | The contract |
| .azure/deployment-plan.md | Every Azure setting, in both modes (template) |
| .env (Git-ignored) | What the canvas reads: FOUNDRY_PROJECT (full ARM ID, once validated or created), LOCAL_FRONTEND and DEPLOYED_FRONTEND (verified URLs only). Upsert, keep other keys and read back |
| docs/LOOP.md | Lessons (template) |
| .agentic-loop/runs/<runId>.json | SDD flight records, written by the workflow |
| .devcontainer/devcontainer.json | Optional dev container (asset) |
Working rules
- Contract first. Freeze service names, environment variables, protocols, endpoints, schemas, auth, streaming, errors and versions (implementation-contract.md) before parallel work.
- Integration first. Pass the hosted integration checkpoint with a minimal agent before building full orchestration, UI or backend: always a model request, plus a toolbox skill load and a safe MCP call only when the architecture needs them. Record excluded capabilities as
N/Awith the reason, never as passed, and never add unused ones to satisfy the checkpoint. - Evidence, not signals. HTTP 200, exit 0 or
activenever pass alone; require terminal completion, schema-valid output, execution evidence and correlated traces. Fix with bounded diagnostics, not unchanged redeployments. - Wait by completion. Provisioning, deployments, role-assignment propagation and agent readiness end when their command or status check says so: run the command synchronously with a long initial wait, or poll its status every 30-60 s against a stated deadline. Never chain fixed sleeps; keep coding while Azure works.
- Subagents. Before the checkpoint, parallelize only research and preflight. After it, give each worker a bounded goal, exclusive workspace-relative files or folders, skill references, verified context, the contract, acceptance checks and stop conditions. One owner (the coordinator, or the SDD phase lead) holds the contract and the shared files:
azure.yaml,infra/,docs/,.env,.azure/,.agentic-loop/,AGENTS.mdand the root lockfiles. Keep teams small, avoid recursive delegation, serialize shared Azure mutations and integrate centrally; worker success is not acceptance. Delegation grants no extra approval. Without subagents, work sequentially and say so. - Safety. Reuse resources; confirm billable, security or compliance changes; delete without approval only a resource this build created whose provisioning failed; never sign in for the user; never report an unverified deployment as successful.
- Workspace boundary. Builds stay inside the workspace: read lessons only from its own
docs/LOOP.md, scaffold from the Foundry samples and these references, and use code from other folders only when the user names them. Only improve mode reads past runs elsewhere. - Work IQ context. Only when the user or a canvas prompt asks for it, query the
workiqMCP server before clarifying questions, fold in only the requirements that matter, cite each by source type and confirm them. Never copy confidential content, personal data or secrets into the workspace; if Work IQ is unavailable or needs consent, say so and continue without it. - Companions and SDKs. Verify installed SDK APIs against the latest stable release (or the newest stable one the build's package index serves, recording the gap) and lock versions before generating code; package sources beat stale guidance. Consult the build catalog only for needed capabilities; respect pins, ask before installs and route third-party skill defects upstream.
Lessons
Right after a fix is verified (the failing probe or an equivalent boundary check reruns successfully; an edit, commit or deployment alone is not resolution), upsert a lesson in the workspac
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
107.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
91.5k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
86.7kOpen-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key. Join our Discord https://discord.gg/VuxzM8mtf
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
