> **foundry-iq** — skill 10 of 47 in [microsoft/azure-skills](https://skillsdocs.com/microsoft/azure-skills).
>
> Book (all skills, one file): https://skillsdocs.com/microsoft/azure-skills.md
> Machine manifest: https://skillsdocs.com/microsoft/azure-skills/.well-known/agent-skills/index.json
> Install the book: `npx skills add microsoft/azure-skills`
> Upstream: https://github.com/microsoft/azure-skills/blob/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/
> Licence: MIT — https://spdx.org/licenses/MIT.html
>
> Bundled files (77), referenced from this skill's directory:
>   - `agents/connect-hosted-toolbox.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/agents/connect-hosted-toolbox.md
>   - `agents/connect-hosted.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/agents/connect-hosted.md
>   - `agents/connect-prompt-sdk-fallback.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/agents/connect-prompt-sdk-fallback.md
>   - `agents/connect.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/agents/connect.md
>   - `agents/create-missing-agent.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/agents/create-missing-agent.md
>   - `helpers/_blob_observation.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_blob_observation.py
>   - `helpers/_bootstrap_io.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_bootstrap_io.py
>   - `helpers/_cleanup_dependencies.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_cleanup_dependencies.py
>   - `helpers/_cleanup_receipts.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_cleanup_receipts.py
>   - `helpers/_common.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_common.py
>   - `helpers/_document_adapters.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_document_adapters.py
>   - `helpers/_document_limits.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_document_limits.py
>   - `helpers/_indexer_observation.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_indexer_observation.py
>   - `helpers/_initial_prompt.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_initial_prompt.py
>   - `helpers/_progress.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_progress.py
>   - `helpers/_prompt_read.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/_prompt_read.py
>   - `helpers/blob_inventory.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/blob_inventory.py
>   - `helpers/blob_recheck.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/blob_recheck.py
>   - `helpers/blob_source.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/blob_source.py
>   - `helpers/blob-contracts.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/blob-contracts.md
>   - `helpers/blob-cu-contracts.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/blob-cu-contracts.md
>   - `helpers/bootstrap_azure.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/bootstrap_azure.py
>   - `helpers/bootstrap-contracts.md` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/bootstrap-contracts.md
>   - `helpers/cleanup_plan.py` — https://raw.githubusercontent.com/microsoft/azure-skills/main/.github/plugins/foundry-iq-skills/skills/foundry-iq/helpers/cleanup_plan.py
>   - …and 53 more, listed in https://skillsdocs.com/api/v1/books/microsoft/azure-skills/skills/foundry-iq
>
> Content © its authors, served unmodified. Takedown: https://github.com/DreambaseAI/skillsdocs/issues/new?labels=takedown&title=Takedown+request

<!-- Verbatim upstream SKILL.md follows, YAML frontmatter included. -->

---
name: foundry-iq
description: "Foundry IQ knowledge bases. WHEN: make local or Blob documents searchable; create/diagnose KBs; triage unsupported connectors or multi-source KB creation/reconfiguration; 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, generic agent creation."
license: MIT
compatibility: Azure
metadata:
  author: Microsoft
  version: "0.1.1"
---

# 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](references/intent-routing.md).

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.
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.

|Outcome|Read|
|---|---|
|Cleanup|[Plan cleanup](lifecycle/cleanup.md)|
| Failure/drift | [Diagnose](troubleshooting/diagnose.md) |
| Unsupported connector provisioning / multi-source KB creation or reconfiguration | [Diagnose](troubleshooting/diagnose.md) |
| Connect | [Connect](agents/connect.md) |
| Read KB | [Query](knowledge-bases/retrieve.md) |
| Search only | [Search](search-services/create.md) |
| File KS only | [File](knowledge-sources/create-file.md) |
| Blob/ADLS KS only | [Blob](knowledge-sources/create-azure-blob.md) |
| Searchable/KB | [KB](knowledge-bases/create.md) |

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.
