Skip to content

Add AI assistant instructions and skills for Intel® Agent Toolkit - #34

Open
AhmedSeemalK wants to merge 5 commits into
mainfrom
docs/ai-assistant-skills
Open

AhmedSeemalK wants to merge 5 commits into
mainfrom
docs/ai-assistant-skills

Conversation

@AhmedSeemalK

Copy link
Copy Markdown
Contributor

Adds checked-in guidance that AI coding assistants load automatically: GitHub Copilot, Claude Code, Cursor, Cline and Google Antigravity. With it, an assistant can help users install the toolkit, find the right setting, connect agent code to each service, and debug failures.

Merge order: merge after #33 (release-2.0.0 → main). This PR is based on release-2.0.0 so the diff shows only these files. After #33 merges, I will change the base to main.

What's included

Path Purpose
AGENTS.md Read by every assistant: what each component is for, how to find the installation, main vs release track differences, safety rules, index of the skills
CLAUDE.md, .github/copilot-instructions.md Short entry points for Claude Code and Copilot Chat (github.com, Visual Studio, JetBrains); they point to the files above
.agents/skills/agent-toolkit-install/ Prerequisites checklist, install flow, what each teardown removes, updating
.agents/skills/agent-toolkit-configuration/ Which file holds each setting, which file wins, how a change takes effect
.agents/skills/agent-toolkit-components/ Endpoints, credentials and code for LiteLLM, Redis, pgvector, Agent Sandbox (including RBAC), OpenShell, KubeRay, Langfuse
.agents/skills/agent-toolkit-troubleshoot/ Read-only health checks, plus a catalog of about 97 known failures, each with the error users see, the cause, a check and a fix

File layout

enterprise-agent-toolkit/
├── AGENTS.md                         ← main instructions, read by every assistant (97 lines)
├── CLAUDE.md                         ← pointer for Claude Code: one line, @AGENTS.md
├── README.md                         ← new "Use with an AI Assistant" section (only existing file changed)
├── .github/
│   └── copilot-instructions.md       ← short version for Copilot Chat on github.com / Visual Studio / JetBrains (27 lines)
└── .agents/
    └── skills/                       ← all skills (open Agent Skills format)
        ├── agent-toolkit-install/
        │   ├── SKILL.md
        │   └── references/
        │       ├── prerequisites.md
        │       └── lifecycle.md
        ├── agent-toolkit-configuration/
        │   ├── SKILL.md
        │   └── references/
        │       └── toolkit-settings.md
        ├── agent-toolkit-components/
        │   ├── SKILL.md
        │   └── references/
        │       ├── litellm.md
        │       ├── memory.md
        │       ├── sandbox.md
        │       ├── openshell.md
        │       ├── ray-and-tracing.md
        │       └── namespace-onboarding.md
        └── agent-toolkit-troubleshoot/
            ├── SKILL.md
            └── references/
                ├── install.md
                ├── components.md
                ├── inference.md
                ├── network.md
                └── known-doc-errors.md

Each skill is a SKILL.md (when to use it and the steps) plus references/ files that the assistant opens only when it needs the detail.

The skills are kept once, in .agents/skills/, the location of the open Agent Skills format. Copilot, Cursor, Google Antigravity, Gemini CLI, OpenAI Codex and JetBrains Junie load them from there natively. Claude Code and Cline reach them through the skills table in AGENTS.md.

@AhmedSeemalK
AhmedSeemalK added this pull request to stack #35 November 10, 2026 06:27
@AhmedSeemalK
AhmedSeemalK requested a review from psurabh November 10, 2026 06:35
@AhmedSeemalK
AhmedSeemalK removed this pull request from stack #35 November 11, 2026 06:24
@AhmedSeemalK
AhmedSeemalK changed the base branch from release-2.0.0 to main November 11, 2026 10:38
Signed-off-by: Ahmed Seemal <ahmed.seemal@intel.com>
Signed-off-by: Ahmed Seemal <ahmed.seemal@intel.com>
@AhmedSeemalK
AhmedSeemalK force-pushed the docs/ai-assistant-skills branch from f52b17f to b4d2d0e Compare November 16, 2026 05:58
rohit28903

This comment was marked as outdated.

@ezelanza ezelanza left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really useful work. This is what agents need: exact error text, read-only checks first, never print secrets, ask before changing anything. I checked about 160 claims against the code and about 120 hold up. Most of the wrong ones come from three changes that landed after the branch: Agent Sandbox v1.0.10 (#36), toolkit-manager#132, and the Toolkit Manager rename (toolkit-manager#138). Please rebase, the branch is 5 commits behind main. Details are inline.

Names first, since they are everywhere (52 places). The repo is intel/toolkit-manager, the installer is toolkit_manager.sh, the env vars are TKM_ENV and TKM_LOG_LEVEL, the CA file is env//logs/toolkit-manager-ca.crt. The old names still work as wrappers, except the CA file.

My recommendation, in short:

  1. Each toolkit is a front door: Inference, Chatbot and Agent Toolkit. An agent asked to install Agent Toolkit comes to this repo, not to Toolkit Manager. So this repo's README, AGENTS.md and install skill must give the full route on their own: clone toolkit-manager, init agent-toolkit, install, and how to check it worked. Keep these skills here, under the Agent Toolkit name.
  2. Keep only that route here. The deeper Toolkit Manager details (which env file wins, tracks, teardown, logs) fit better in toolkit-manager's own AGENTS.md. The agent is working inside that checkout by then, and Inference and Chatbot Toolkit need the same details. Then a Toolkit Manager change only needs one fix. This time the rename touched 52 lines here.
  3. Inference and Chatbot Toolkit can follow the same pattern. This PR is a good model for them.
  4. Also publish the skills in intel/skills, so people can add them to their own project when they build agents. The files stay here. For that we need an evals/evals.json for each skill, and a dokimi run to show they help.

A few more, about keeping this up to date:

  1. Let's add a CI check for the skills. AGENTS.md asks to update the skill in the same PR, but nothing checks it. A small script that looks for every Secret, namespace, version and key named in the skills in roles/, config.yaml and components.yaml would have caught sandbox-router-auth and v0.5.0 on its own.
  2. .github/copilot-instructions.md repeats AGENTS.md in its own words, so they will drift. I'd make it a short pointer, like CLAUDE.md.
  3. If we run the intel/skills validator and the evals here in CI, the skills are always ready to import, without a cleanup each time.

Happy to talk about it if you see it differently.

Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Signed-off-by: Ahmed Seemal <ahmed.seemal@intel.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

4 open issues
What changed in this PR

Adds repository-native instructions and “Agent Skills” content so AI coding assistants can reliably help users install, configure, connect to, and troubleshoot Intel® Agent Toolkit (primarily when installed via Toolkit Manager).

Changes:

  • Add assistant entrypoints (AGENTS.md, CLAUDE.md, .github/copilot-instructions.md) and link them from README.md.
  • Add four skills under .agents/skills/ covering install, configuration, components, and troubleshooting.
  • Provide detailed reference guides (networking, inference, component failures, known doc mismatches, etc.) to support deterministic assistant workflows.
File Description
README.md Adds a “Use with an AI Assistant” section pointing to the new instruction/skills layout.
CLAUDE.md Claude Code entrypoint that forwards to AGENTS.md.
AGENTS.md Central assistant-facing index: repo purpose, tracks, safety rules, and skills table.
.github/​copilot-instructions.md Copilot Chat entrypoint pointing to AGENTS.md and the skills.
.agents/​skills/​agent-toolkit-troubleshoot/​references/​network.md Network diagnostics guidance: client access and in-cluster ambient mesh behavior.
.agents/​skills/​agent-toolkit-troubleshoot/​references/​known-doc-errors.md Catalog of known mismatches between docs and code, with corrected guidance.
.agents/​skills/​agent-toolkit-troubleshoot/​references/​install.md Install/teardown failure catalog with log-reading workflow and fixes.
.agents/​skills/​agent-toolkit-troubleshoot/​references/​inference.md LiteLLM/model/guardrail/router troubleshooting reference.
.agents/​skills/​agent-toolkit-troubleshoot/​references/​components.md Component-specific failure catalog (sandbox, Kata, OpenShell, Redis, pgvector, Ray, Keycloak).
.agents/​skills/​agent-toolkit-troubleshoot/​SKILL.md Skill wrapper defining when/how to use the troubleshoot references.
.agents/​skills/​agent-toolkit-install/​references/​prerequisites.md Prerequisites checklist for hosts/nodes, proxy, HF token, Kata, multi-node.
.agents/​skills/​agent-toolkit-install/​references/​lifecycle.md Install/validate/teardown/update command reference and operational notes.
.agents/​skills/​agent-toolkit-install/​SKILL.md Skill wrapper defining the install flow and when to use each reference.
.agents/​skills/​agent-toolkit-configuration/​references/​toolkit-settings.md Settings reference: keys, defaults, where to set them, and effect/apply notes.
.agents/​skills/​agent-toolkit-configuration/​SKILL.md Skill wrapper for configuration discovery and apply semantics.
.agents/​skills/​agent-toolkit-components/​references/​sandbox.md Agent Sandbox usage guide: SDK, RBAC, tokens, limitations, and Kata notes.
.agents/​skills/​agent-toolkit-components/​references/​ray-and-tracing.md Ray usage and tracing integration guidance (Langfuse + OTel).
.agents/​skills/​agent-toolkit-components/​references/​openshell.md OpenShell usage guide: CLI setup, policies, binaries allowlist, and caveats.
.agents/​skills/​agent-toolkit-components/​references/​namespace-onboarding.md Steps to onboard an agent namespace into ambient mesh + LiteLLM allowlist + secrets.
.agents/​skills/​agent-toolkit-components/​references/​memory.md Redis/pgvector usage, connection patterns, and schema constraints.
.agents/​skills/​agent-toolkit-components/​references/​litellm.md LiteLLM endpoints, key minting, model selection, client config, and error reading.
.agents/​skills/​agent-toolkit-components/​SKILL.md Skill wrapper for connecting agent code to installed components.

Review effort: Lite

- **Master key**: Secret `litellm-master-key`, key `master_key`, namespace `litellm`. Admin only, for minting and managing keys. Never put it in agent code or config.
- **Virtual key**: one per agent, limited to the models it needs, with a budget and an expiry.

Mint a virtual key and store it as Secret `<agent>-litellm` in the agent's namespace **(changes the cluster)**. The keys go into variables and are never printed or written to a file:
| Sandbox pods | Namespace `openshell-sandboxes` |
| CLI installed by the installer | `~/.cache/eat/openshell-cli-v<version>/openshell` on the installer host, for the installing user |

Access model (default): single admin, and the client certificate is the only check. The gateway Service is ClusterIP, but no NetworkPolicy guards it and `openshell-system` is not in the mesh, so any pod in the cluster can reach `openshell.openshell-system:8080`, not only a port-forward. Whoever holds the certificate is the admin: anyone who can read `openshell-client-tls` in either namespace, or get into a sandbox pod in `openshell-sandboxes` (they mount it). OIDC (`openshell_oidc_issuer`) exists but is not validated.

@rohit28903 rohit28903 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I went through the second round against Toolkit Manager main and release-1.2, the inference layer and a live install (the SDK sample, track check, memory numbers, preflight and teardown changes all match). The few things still from older versions (SDK timeout message, the commands.run shell line, OpenShell 0.1.6) are fixed in #40, so I think #40 should go in before this is merged to main.

…e the skills (#40)

* docs(skills): link .claude/skills to .agents/skills for Claude Code and Cline

* docs(skills): fix what is still stale for Agent Sandbox SDK 1.0.10 and OpenShell 0.1.6; widen the log check

* docs(skills): open the reference files; do not open the kubeconfig
Copilot AI balanced review requested due to automatic review settings November 30, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread AGENTS.md Outdated
| model-manager | `list`, `deploy`, `undeploy`, `--hfid` | `deploy`, `undeploy` |
| URL layout | `routing_mode: subdomain` (default) or `path` in `global_config.yaml` | Subdomains only |

On the release track, use the names and paths in the right-hand column wherever the skills give the main-track ones.
… failed a live check (#55)

* docs(skills): address the Copilot review on #34; Redis 8 on main

- LiteLLM ui_url is already the full address (no extra /ui/)
- export the variables the examples read (REDIS_URL, OPENAI_*, OTEL_*)
- create the OpenShell mTLS folder private before writing the key
- leave EXEC lines (secrets in debug logs) out of the log check output
- litellm_public_paths: [] publishes no API route in path mode
- Agent Sandbox and OpenShell recipes are main-track; release track uses its own docs
- inotify row says what a low value means
- main installs open-source Redis 8.10.3 (#43)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(skills): fix the commands that failed a live check

- OpenShell cert loop: go-template instead of an escaped jsonpath key (bash 5.2 wrote empty files)
- SandboxClient() alone gets 401 from the token-checking router: show the laptop form
- OpenShell 0.1.6 watcher warning text; token_not_found_in_db for unknown keys
- headlamp in the host lists; sudo for /var/lib/etcd; full ctr path for KATA-3
- the apiserver service proxy can fail (it does not on every install)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 04:58

Copilot AI left a comment

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants