Generated banner for Foundry Iq
Generated logo for Foundry Iq

Foundry Iq

MicrosoftOfficialCreated by Microsoft

  • Skill
  • Workflow
  • Data and AI
  • MIT
  • Medium risk
  • Has scripts

From the author

Foundry IQ knowledge bases. WHEN: make local or Blob documents searchable; create/diagnose KBs; triage unsupported connectors or multi-source KB creation/reconfiguration (even with classic-search terms); connect existing KB to agents (including multi-source KBs); create/reuse a Search service; retrieve from an existing knowledge base with citations; no brand words needed. Read its procedure before query/target questions. NOT: other KB providers, repository-file search, classic Azure AI Search index/query/app work with no Foundry IQ KB or connector request, generic agent creation.
— the description by Microsoft

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

Foundry IQ provides a structured framework for creating, diagnosing, and connecting knowledge bases to AI agents. It supports making local or Blob-based documents searchable, managing multi-source knowledge configurations, and retrieving information with citations. The skill emphasizes strict adherence to defined procedures for service discovery, resource creation, and troubleshooting to ensure reliable agent-knowledge integration.

What it does

  • Creates searchable knowledge bases from local or Azure Blob storage documents.
  • Connects existing knowledge bases to AI agents.
  • Diagnoses issues with knowledge base configurations or unsupported connectors.
  • Retrieves information from knowledge bases with source citations.
  • Manages the lifecycle of search services and knowledge sources.
  • Routes requests based on specific operational needs rather than source counts.

When to use it

  • When you need to make local or cloud-stored documents searchable by an AI agent.
  • When connecting an existing knowledge base to a new or current agent.
  • When troubleshooting or diagnosing a knowledge base configuration.
  • When you need to create a new search service or knowledge source.
  • When performing retrieval tasks that require citations from a knowledge base.

Advantages

  • Provides a clear, procedural approach to knowledge base management.
  • Ensures consistent handling of multi-source knowledge configurations.
  • Includes built-in diagnostic paths for troubleshooting.
  • Supports secure, citation-backed retrieval for agent responses.
  • Prevents unauthorized or unsupported configuration changes.

Usage examples

“Create a new knowledge base from my Azure Blob container.”
The agent will initiate the knowledge base creation procedure, validating the source and setting up the necessary search indexing.
“Connect my existing knowledge base to the current agent.”
The agent will follow the connection workflow to link the specified knowledge base to the agent's retrieval pipeline.
“Why is my multi-source knowledge base failing to index?”
The agent will trigger the diagnostic procedure to identify configuration drifts or unsupported connector issues.
“Retrieve information about project timelines from the knowledge base.”
The agent will query the knowledge base and provide an answer with citations from the source documents.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/microsoft/foundry-iq/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip foundry-iq.zip -d .agents/skills

Documentation by Microsoft

Foundry IQ

Read one procedure before questions/actions; invocation is not a read. Read the owning procedure before blocked/unsupported responses too. Before mutation plans/approval, successfully read its required pre-action references, selected branches only. Do not reload successful reads. On failure, try only permitted bounded exact-path reads with any supported reader; never bypass restrictions or search broadly. If still unavailable: blocked: reference-unavailable, name missing references and inability to plan. Never invent requirements/plans. Failures first.

Cleanup and receipt-backed execution go directly to their lifecycle/producer owner; do not reopen Search intake, provisioning or hardening.

Before expensive service discovery, reuse supplied resource/intent; otherwise ask one early USE EXISTING / FIND CANDIDATES / CREATE NEW choice. Only FIND enumerates; supplied identity uses exact/minimum scoped resolution. CREATE checks its proposed name, not existing-service inventories. Preserve these answers across source/KB/CU/model handoffs; selection is not write approval.

Searchable docs: KB + validated retrieval. Confirm intent once; KS-only must be explicit. Child success is not KB completion. Unclear/compound/mode/completion: read.

Route by requested operation, not existing KB source count. Connecting an existing KB with two or more sources, without changing the KB, uses Connect. Read-only operations use their owning procedure and actual helper constraints; this does not add retrieval modes or supported source kinds. Explicit unsupported provisioning or multi-source KB creation/reconfiguration uses Diagnose and stops before discovery, even when connecting an agent is also requested. This routing takes precedence over classic-search terms (e.g. hybrid search) in compound requests. Never end in a plain refusal: Diagnose gives the boundary, docs pointer and agent handoff; writes still need an approved concrete plan. Do not silently execute only the supported part of a compound request. If existing-KB connection versus KB creation/reconfiguration is unclear, read intent-routing and clarify that scope before Azure discovery. Never infer KB mutation.

OutcomeRead
CleanupPlan cleanup
Failure/driftDiagnose
Unsupported connector provisioning / multi-source KB creation or reconfigurationDiagnose
ConnectConnect
Read KBQuery
Search onlySearch
File KS onlyFile
Blob/ADLS KS onlyBlob
Searchable/KBKB

Generic agents: microsoft-foundry. Reads: no approval; approve unchanged plans before writes. Hide hashes. No Search/Storage keys, scope widening, guessed identity/boundaries, drift repair or joint cleanup/creation approval. Acceptance != success.

Files

agents/create-missing-agent.md

Missing agent for a knowledge-base connection

Load only from Connect for a missing agent, not generic creation, replacement or the existing-agent SDK connection fallback. Preserve existing agents/versions.

Resolve and offer the creation capability

Use prompt/session/workspace and exact Azure readback to recommend project, type/name and existing model deployment. Ask only unresolved choices. Inventory all pages; permission denial or incomplete discovery is not absence. An existing incompatible agent does not authorize a new name: require explicit new-agent intent and prove the selected new identity absent.

Check the runtime registry or exact invocation for microsoft-foundry. Skill availability and authenticated creation-tool availability are separate facts. Unknown stays unknown; never claim unexecuted delegation. If unavailable, ask one focused choice, unless already answered:

  • Install Microsoft's Azure Skills plugin (recommended).

  • Decline installation and review local CLI creation for a Prompt Agent.

  • Stop with setup guidance.

Do not install automatically. Show the source, host/workspace scope and exact commands. Installation consent is separate from Azure creation approval; cancellation stops. In Copilot CLI these are interactive host commands, not PowerShell commands:

/plugin marketplace add microsoft/azure-skills
/plugin install azure@azure-skills
/mcp show

With MCP already configured, the skill-only option is:

npx [email protected] add https://github.com/microsoft/azure-skills --skill microsoft-foundry

Skill-only installation does not install or authenticate MCP tools. After installation, reload if required and recheck runtime visibility, authentication and exact creation operations. If installation/reload cannot run here, give the commands to the user. If tools remain unavailable, report creation-provider-unavailable, zero Azure writes, and offer the CLI choice; do not silently switch. Never bypass an authorization denial through another surface.

Creation plan and approval

Prefer available delegation. Do not scan policy before either creation path. Use policy diagnostics only after a creation failure implicates policy. Preserve known required settings. Present one immutable creation plan with:

  • Exact tenant/subscription/project ID and matching endpoint, absent agent name, Prompt/Hosted type, model deployment and full initial definition.

  • Provider, API/version, exact expanded commands and request bodies or delegated commands, local files/installations and digests.

  • Identity/RBAC, network/data movement, known requirements, existing and incremental costs, verification, retained resources and owner.

  • plan_fingerprint and cleanup_approved: false.

Let the user review delegated commands before execution. Changed commands, model, scope, known requirements or definition require new approval. Approval to install or select CLI does not approve creation. Creation does not approve the KB connection, Search roles, invocation charges or cleanup.

Local CLI fallback: Prompt only

Execute locally only after explicit CLI selection and creation-plan approval. Reuse an accessible existing project and chat model deployment; read back the deployment identity, model/version and status rather than copying a sample model. Missing project/model/rights/network prerequisites block this fallback; do not provision them, change permissions/networking or substitute a Hosted Agent. Hosted creation remains delegated; if unavailable, return creation-provider-unavailable with official guidance.

Use signed-in Azure CLI identity with Foundry v1 REST. Verify az version and az account show; authenticate only if needed. az rest --resource https://ai.azure.com/ obtains tokens internally. Never use keys, ask for tokens, print tokens or enable verbose/debug credential logging.

Before approval, review the complete body in a UTF-8 file:

{
  "name": "<approved-agent-name>",
  "definition": {
    "kind": "prompt",
    "model": "<verified-model-deployment-name>",
    "instructions": "<approved-initial-instructions>",
    "tools": []
  }
}

No initial KB binding. These CLI templates use no shell variables (Bash, PowerShell, cmd.exe). Replace placeholders before execution with the approved endpoint (no trailing slash), name, returned version and OS-native absolute body path. Keep URLs and the @-prefixed file argument quoted.

az rest --method get --url "<project-endpoint>/agents/<agent-name>?api-version=v1" --resource https://ai.azure.com/

Inspect the actual HTTP result, not just a nonzero exit. A 404 is absence only after successful project access and complete agent inventory; a 401/403, timeout or malformed response blocks. For a present identity, list every version and compare the full approved definition including model, instructions and tools. A sole exact match is zero-write reuse; multiple matches or drift block. Never choose latest automatically, overwrite, suffix-create or issue a version POST on replay. Return connected versions to Connect; never reset their tools.

Before writing, refresh absence/access and recompute the approved plan/body digests. Changed evidence needs new review. Only after all gates pass, issue one create-agent POST, not an update or create-version call:

az rest --method post --url "<project-endpoint>/agents?api-version=v1" --resource https://ai.azure.com/ --headers "Content-Type=application/json" --body "@<body-file>"

Retain exit status and the first error/status/request ID. Never blindly retry POST, including on timeout/409/5xx. Reconcile an ambiguous write by reading the same identity and all versions. If the exact result or ownership is unproven, report partial with potentially created resources and stop; never switch to SDK/delegation or delete to make it pass.

Verify and return to Connect

For local Prompt creation, independently GET the agent and returned version, and list all versions; command acceptance is not proof:

az rest --method get --url "<project-endpoint>/agents/<agent-name>?api-version=v1" --resource https://ai.azure.com/
az rest --method get --url "<project-endpoint>/agents/<agent-name>/versions?api-version=v1" --resource https://ai.azure.com/
az rest --method get --url "<project-endpoint>/agents/<agent-name>/versions/<agent-version>?api-version=v1" --resource https://ai.azure.com/

Follow pagination. Require matching project/name/version, Prompt kind, full definition and usable status, with no duplicate versions or unexpected tools. Record actual project/agent identities; never guess a principal. Unknown required identity blocks connection, even if agent creation succeeded.

Return completed, blocked or partial, IDs/version/model/status, definition digest, identity evidence, first failure, API/provider/commands, approved fingerprint, writes, ownership and retained resources. Return to Connect: independently read back, use fresh discovery and a new fingerprinted connection plan, and never carry creation approval. After connection approval, invoke the exact version; require KB tool-call evidence, original citations and abstention. Direct KB retrieval is not agent proof. Repeat Connect and compare version/tool/connection IDs and counts with zero writes.

Before local creation, select receipt capture. No automatic cleanup: separate ownership/approval; retain prior versions, shared resources and container.

Authorities

Authorities: failure/conflict/uncertainty only.

Installation guide, Foundry v1 REST API, Prompt quickstart.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python

The author says: Azure

Security

What our scanner noticed· Medium risk

  • References to credential files
  • Instructions that use the network
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Microsoft
Publisher
Microsoft (Official)
Source
microsoft/skills · .github/plugins/foundry-iq-skills/skills/foundry-iq · commit 0696600
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from .github/plugins/foundry-iq-skills/LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Microsoft.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download foundry-iq.zip