plugins/codex/endor-labs-agent-kit/skills/endor-agent-kit-setup/SKILL.md
Use when setting up Endor Labs Agent Kit for Codex, checking readiness, installing or updating bundled Codex custom agents, verifying Endor auth, or diagnosing missing endorctl, gh, namespace, or toolchain prerequisites.
npx skillsauth add endorlabs/ai-plugins endor-agent-kit-setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generated for Endor Labs Agent Kit Codex plugin endor-labs-agent-kit v2.1.0.
ai-sast-triage -> endor-ai-sast-triage-agentcicd-posture -> endor-cicd-posture-agentdependency-decision-helper -> endor-dependency-decision-helper-agentendor-troubleshooter -> endor-troubleshooter-agentfindings-browser -> endor-findings-browser-agentmalware-response -> endor-malware-response-agentpackage-risk-summary -> endor-package-risk-summary-agentprobe-droid -> endor-probe-droid-agentremediation-planner -> endor-remediation-planner-agentrepository-dependency-reviewer -> endor-repository-dependency-reviewer-agentsca-remediation -> endor-sca-remediation-agentupgrade-impact-analysis -> endor-upgrade-impact-analysis-agentvulnerability-explainer -> endor-vulnerability-explainer-agentendor-agent-kit-setup -> endor-agent-kit-setup-agentResolve the bundled installer from either the Agent Kit/ai-plugins
checkout root or Codex's plugin cache:
ENDOR_CODEX_INSTALLER="plugins/codex/endor-labs-agent-kit/scripts/install_codex_agents.py"
if [ ! -f "$ENDOR_CODEX_INSTALLER" ]; then
ENDOR_CODEX_INSTALLER="$(find "${CODEX_HOME:-$HOME/.codex}/plugins/cache" -path "*/endor-labs-agent-kit/scripts/install_codex_agents.py" -print -quit)"
fi
test -f "$ENDOR_CODEX_INSTALLER"
Check installed Endor Codex agents and skills:
python "$ENDOR_CODEX_INSTALLER" --status
Move stale Endor Agent Kit plugin-cache copies after user approval:
python "$ENDOR_CODEX_INSTALLER" --purge-stale-plugin-cache --yes
Install or update all bundled Endor Codex agents and skills after user approval:
python "$ENDOR_CODEX_INSTALLER" --install --yes
Install only one surface when diagnosing host discovery:
python "$ENDOR_CODEX_INSTALLER" --install --agents-only --yes
python "$ENDOR_CODEX_INSTALLER" --install --skills-only --yes
Uninstall only Endor Agent Kit-managed Codex agents and skills after user approval:
python "$ENDOR_CODEX_INSTALLER" --uninstall --yes
Use this setup workflow when the user asks to install, check, update, or remove
Endor Labs Agent Kit plugin support files, or when an Endor Agent Kit workflow
is blocked by missing endorctl, GitHub CLI, authentication, namespace, or
local toolchain readiness.
Be proactive about checking the environment, but do not make persistent changes without explicit user approval. Report evidence for each check. Never print secret values.
Setup may:
endorctl, gh, git, and
workflow-relevant language tooling.ENDOR_NAMESPACE from the current process environment and report it as
namespace provenance when present.~/.endorctl/config.yaml for non-secret fields such as
ENDOR_API and ENDOR_NAMESPACE.ENDOR_API_CREDENTIALS_* authentication variables by
key name only.gh authentication and point to official installation guidance.Setup must not:
endorctl scan.endorctl host-check.~/.endorctl/config.yaml or secret values.ENDORCTL_CONFIG or
--config-path at tenant-specific, customer-specific, production, backup,
or other non-default Endor config directories.ENDOR_API_CREDENTIALS_KEY or ENDOR_API_CREDENTIALS_SECRET..zshrc, .bashrc, or PowerShell profile.gh, package managers, language runtimes, Docker, JDKs, or build
tooling.Start with a concise readiness report. Separate configured state from verified state.
Include these sections when relevant:
For Endor auth, report sanitized fields only:
Endor config: found
API endpoint: https://api.endorlabs.com
Namespace candidates:
- ENDOR_NAMESPACE: not set
- ~/.endorctl/config.yaml ENDOR_NAMESPACE: example-namespace
Selected namespace: example-namespace from ~/.endorctl/config.yaml
Auth: API credential fields present
Endor auth: verified for namespace example-namespace
Secret values: hidden
If a namespace is missing, say that a namespace is required before live Endor lookups. If a namespace is detected, let the user use it or override it for the current workflow.
If ENDOR_NAMESPACE from the current process environment and
~/.endorctl/config.yaml disagree, surface both values and stop before live
Endor lookups. Ask the user which namespace to use for this workflow. Do not
silently trust either value, and do not unset environment variables or edit
config files unless the user explicitly asks for that separate operational
cleanup.
When the user selects or supplies a namespace, later workflow agents must pass
it explicitly with -n <namespace> or --namespace <namespace> for scoped
Endor lookups rather than relying on bare endorctl namespace resolution.
If endorctl is missing, offer documented install options in this order:
Only install endorctl after explicit approval. If installing to ~/bin, tell
the user how to update PATH for the current shell. Do not edit shell profiles.
If API credential fields are present, do not run browser auth unless the user
explicitly asks to switch or re-authenticate. If API credential setup is needed,
tell the user to set ENDOR_API_CREDENTIALS_KEY and
ENDOR_API_CREDENTIALS_SECRET through their preferred secure environment
mechanism.
When browser or SSO authentication is requested, confirm the namespace first. Use non-interactive flags where supported. If multi-tenant selection appears, summarize the available tenant choices and ask the user before retrying.
Prefer documented Endor API or endorctl api lookups for workflows that support
them. Configure Endor MCP only when a selected MCP-capable workflow needs it or
the user explicitly asks for it.
The distribution may include ready-to-use Endor MCP config snippets such as
root .mcp.json or Gemini mcpServers metadata. Treat those files as setup
inputs, not permission to start or register MCP without approval.
When MCP setup is requested:
npx is available.endorctl is available.npx -y endorctl ai-tools mcp-server.endor-cli-tools is already registered, report it and ask before
changing anything.Do not claim Endor MCP tools are available to a workflow until the host exposes
them in the current session. If MCP tools are unavailable, continue with
CLI-first workflows when they support endorctl api; otherwise record the
missing MCP capability in data_gaps.
Check gh auth status when workflows need GitHub evidence, repository
inventory, pull requests, or comments. If gh is missing, provide current
official installation guidance instead of installing it automatically.
Do not manage GitHub token scopes or create personal access tokens. Verify only the specific read or write capability needed for the selected workflow.
Detect and report workflow-relevant package managers, language runtimes, and build tools. Do not install them.
When tooling is missing, report the affected validation step and ask the user to install it through their team-standard toolchain.
Setup never performs remediation, creates branches, opens PRs/MRs, posts comments, writes Endor policies, or runs scans. Mutating workflows such as SCA Remediation and AI SAST Triage keep those actions behind their generated agent approval gates.
${CODEX_HOME:-~/.codex}/agents and bundled user skills under $HOME/.agents/skills..codex/agents/ or repo-local .agents/skills/ files unless the user explicitly requests that advanced option.--status as active-host risk; remove or reinstall the stale package and start a fresh Codex thread before judging agent behavior.--purge-stale-plugin-cache --yes only after user approval; it moves stale cache directories to ${CODEX_HOME:-~/.codex}/plugins/cache-backups/.testing
Use this agent when the user asks what a specific vulnerability means and how to reason about it. Examples: "Explain CVE-2021-44228", "What does CVE-2021-45046 mean for log4j-core?", "Summarize this Endor vulnerability and tell me what to do next." Returns a concise vulnerability explanation with severity, exploitability, affected context, remediation guidance, and any data gaps.
development
Use this agent when the user asks for Endor Labs Upgrade Impact Analysis: safe upgrade paths, upgrade risk, findings fixed or introduced, Code Impact Analysis, breaking changes, manifest targeting, or whether a dependency upgrade should happen now. The artifact queries Endor's read-only VersionUpgrade workflow through documented Endor API or endorctl paths.
tools
Use this agent inside a source repository when the user wants a read-only dependency risk review based on local manifests. It inspects dependency files, resolves exact package coordinates when possible, checks those coordinates with Endor MCP tools, and reports risky dependencies, unresolved versions, recommended next checks, and data gaps.
content-media
Preview safe remediation options without opening PRs.