/endor-labs-agent-kit:create-endor-labs-agent [agent idea, target host, and required Endor signals]from Endor Labs Agent Kit (Repository Root Guard)
Creates or updates Endor Labs Agent Kit agents from source. Use when building, authoring, or publishing a new agent for this repository.
Ships in Endor Labs Agent Kit (Repository Root Guard). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to create a production-ready Endor Labs Agent Kit agent in the current repository. Agent Kit owns the public authoring and publishing path for new Endor/AURI-style agents. Private extraction tools may generate sanitized draft inputs, but this repository must not depend on proprietary source inspection or private extractor logic.
The repository is source-first:
source/agents/<agent>/recipe.yamlsource/agents/<agent>/actions.yaml for schema v2 agents
with semantic side effectssource/agents/<agent>/instructions.mdsource/agents/<agent>/evals/cases.yamlsource/agents/<agent>/architecture.svgCreate agents from either public input shape:
Blueprints must be generic. They may describe workflow intent, Endor resources, I/O, safety class, action contracts, eval cases, and architecture. They must not include private source paths, private code snippets, proprietary registry hashes, or instructions that require Agent Kit to inspect a private codebase.
Before editing, confirm that the current repository contains:
pyproject.tomlsrc/endor_agent_kit/source/agents/manifest.jsonIf those are missing, ask for the path to endor-labs-agent-kit.
Read these files before designing the agent:
README.mdsrc/endor_agent_kit/recipe.pysrc/endor_agent_kit/validator.pysrc/endor_agent_kit/structured_output_contracts.py when the agent needs a
strict final JSON contractsource/endor-knowledge-pack/query-recipes.yaml when the agent depends on
repeatable Endor evidencesource/agents/*/recipe.yamlsource/agents/*/actions.yaml when the new agent is mutating or
adapter-backedsource/agents/*/instructions.mdsource/endor-knowledge-pack/workflows/*.yaml when the agent has
a multi-step Endor evidence workflowtests/test_*_smoke.pyDefine the agent in one sentence:
Use this agent when the user wants <workflow> using <Endor evidence> in <host>.
Choose the smallest safe host set:
claude-code for agents that inspect the local workspace or work well as a
local developer assistantclaude-managed-agents for Anthropic-hosted agents that do not need local
repository file accesscodex for Codex skills and bundled custom-agent plugin outputgemini for Gemini CLI skills and subagent outputportable for provider-neutral generated artifacts and manifestsagents/, skills/, .cursor-plugin/, and cursor-sdk/ outputs are
generated publication surfaces, not separate source agent definitionsChoose capabilities conservatively:
read_files: true only when the agent must inspect local filesrun_commands: true only when the recipe supports endorctl_agent_apiwrite_files: false unless the agent is explicitly mutatingopen_pr: false unless the agent is explicitly mutatingmutations: [] for read-only and dry-run agentsrecipe_schema_version: 2 plus action_contracts_path: actions.yaml
when the agent opens change requests, writes comments, requests approvals, or
depends on an external adapterUse supported_transports this way:
endorctl_agent_api for customer-tenant Endor evidencemcp only when the requested public host artifact explicitly needs public
Endor MCP toolsFor new customer-facing agents, default to MCP-free endorctl_agent_api when tenant
data is needed. If a blueprint mentions MCP, treat it as source material and
remove the MCP dependency unless the agent specifically requires a public MCP
tool that cannot be expressed through a validated
endorctl agent api --agent-id <agent-id> command.
Use the canonical source recipe id as <agent-id> in every generated command.
All agents are read-only against Endor by default. The only permitted Endor
mutations are AI SAST Policy create and Policy update after its approval and
confirmation gates; never generate Policy delete or another resource mutation.
Do not introduce a runtime dependency on endorlabs-sdk or other private SDK
code while authoring public Agent Kit agents unless the maintainer explicitly
approves that dependency. Use source recipes, documented endorctl_agent_api
invocation shapes, Knowledge Pack query recipes, and generated prompt contracts
as the default public surface.
Create:
source/agents/<agent-id>/
recipe.yaml
actions.yaml # schema v2 mutating or explicit adapter-backed workflows
instructions.md
evals/cases.yaml
architecture.svg
The exact source files are source/agents/<agent-id>/recipe.yaml,
source/agents/<agent-id>/instructions.md, and
source/agents/<agent-id>/evals/cases.yaml, plus required
source/agents/<agent-id>/architecture.svg. Add
source/agents/<agent-id>/actions.yaml only when the recipe is schema v2
mutating or explicitly adapter-backed.
Use a lowercase kebab-case agent-id.
The recipe must declare:
id, name, version, descriptionsafety_class: read_onlyendor_tier_minimumsupported_transportshost_capabilities_requiredinputsoutputscompatible_hostsrequired_endor_mcp_toolsendorctl_agent_api_invocationsinstructions_path: instructions.mdevals: evals/cases.yamlmodel: sonnetIf the agent should publish only selected editions, add host_editions. When a
host has exactly one selected edition, the generated public layout is flattened
to claude-code/<agent>/ or claude-managed-agents/<agent>/.
For schema v2 mutating agents, create actions.yaml with one action per
semantic side effect. For schema v2 adapter-backed read-only or dry-run agents,
create actions.yaml only when the runtime needs explicit action and evidence
contracts. Mutating actions must set confirmation_required: true. Use
availability: requires_adapter when the prompt can describe or request an
action but cannot complete it without a host service, such as Slack approval or
Endor policy writeback.
For agents that depend on repeatable Endor evidence, add or update public Knowledge Pack source:
source/endor-knowledge-pack/workflows/<agent-id>.yaml
source/endor-knowledge-pack/query-recipes.yaml
Use these files to describe resource kinds, field masks, bounded query shapes, namespace/traversal rules, completeness limits, and data-gap behavior. Keep the workflow public and product-safe. Do not include private runtime QA logs, private tenant details, local checkout paths, or proprietary extractor output.
For agents with structured runtime reports, add or update
src/endor_agent_kit/structured_output_contracts.py so generated prompts,
runtime validation, and future private QA consumers can agree on required
fields. The contract should encode the public final-output shape, not private
execution policy.
Every new agent must include architecture.svg in the same visual format as the
existing source-agent diagrams:
viewBox="0 0 1280 700"The diagram should describe the public agent contract, not private runtime internals.
instructions.md must have these sections:
<!-- shared:start -->
...
<!-- shared:end -->
<!-- developer-edition:start -->
...
<!-- developer-edition:end -->
<!-- enterprise-edition:start -->
...
<!-- enterprise-edition:end -->
The shared section must include:
Edition sections must say exactly which tools are allowed.
For Claude Code file-reading agents, state that only Read, Glob, Grep, and
LS are allowed. Do not allow Bash unless the recipe uses documented read-only
endorctl agent api --agent-id <agent-id> lookups.
For agents with endorctl_agent_api, include exact command shapes, require the
endorctl agent api --help capability preflight, and fail closed instead of
falling back to the unattributed legacy API command.
For MCP-free agents, explicitly say that the agent must not require, configure,
or start an Endor MCP server. Generated artifacts should not mention
mcpServers, endor-cli-tools, or endorctl ai-tools mcp-server.
Create at least four eval cases covering:
Each case should include:
idinputexpected.risk_posture, expected.verdict, expected.action, or another
output enum matching the recipeexpected.required_evidenceexpected.data_gaps_allowedAdd or update focused tests under tests/.
For every new agent, test:
architecture.svg is published with every generated catalog artifactpublish_recipe writes the expected catalog surfaceDo not rely only on broad publish tests.
Run:
python3 -m pip install -e ".[dev]"
python3 -m pytest -q
endor-agent-kit validate source/agents/<agent-id>/recipe.yaml
endor-agent-kit doctor-new-agent source/agents/<agent-id>/recipe.yaml
endor-agent-kit authoring-check source/agents/<agent-id>/recipe.yaml --new-agent
endor-agent-kit publish source/agents/*/recipe.yaml --dest . --prune --include-plugins
endor-agent-kit check-guardrails --catalog-root .
endor-agent-kit verify-provenance --catalog-root .
git diff --check
Then verify:
python3 -m pytest -q
for recipe in source/agents/*/recipe.yaml; do endor-agent-kit validate "$recipe"; done
endor-agent-kit doctor-new-agent source/agents/<agent-id>/recipe.yaml
endor-agent-kit authoring-check source/agents/<agent-id>/recipe.yaml --new-agent
python scripts/check_new_agent_authoring.py --base-ref origin/main --command endor-agent-kit
endor-agent-kit publish source/agents/*/recipe.yaml --dest . --prune --include-plugins
endor-agent-kit check-guardrails --catalog-root .
endor-agent-kit verify-provenance --catalog-root .
git diff --exit-code -- README.md manifest.json .agents/plugins .claude-plugin .cursor-plugin agents assets claude-code claude-managed-agents codex cursor-sdk gemini plugins portable skills
If generated files changed, review them and keep them committed with the source recipe.
doctor-new-agent is the first contributor-facing stop before opening the
Agent Kit PR. It is read-only and reports missing source layout, eval,
architecture, transport, and action-contract requirements before CI does.
When a private validation consumer needs to QA the generated agent, create a public-neutral validation request from Agent Kit:
endor-agent-kit lifecycle prepare \
--agent <agent-id> \
--base-ref origin/main \
--output /tmp/validation-request.json
The request may include source commit, branch, package version, agent ids, provider targets, task profile ids, structured output contract ids, generated drift status, warnings, and errors. It must not include absolute local checkout paths, private runtime QA mechanics, raw logs, credentials, or machine-specific host policy. Keep publish-readiness reports outside this public repository.
Report:
Do not claim the agent works in a host until its generated artifact was inspected or tested for that host.
After source files, generated artifacts, tests, and validation are complete,
prepare a PR in endor-labs-agent-kit, not ai-plugins.
The PR should use .github/PULL_REQUEST_TEMPLATE/agent-source-change.md and
include:
If the host has GitHub CLI and the user explicitly approves opening the PR, the
assistant may create the branch and PR with gh. Otherwise, stop with the exact
branch name, commit message, PR title, PR body, and validation summary for a
maintainer to apply.
Do not open or edit a PR in ai-plugins. After an Agent Kit maintainer merges
the source PR, the publication workflow opens the generated ai-plugins PR.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
endor-labs, agent-kit, agent-creation, recipe-yaml, eval-cases
13 skills in this plugin
/ai-sast-remediationTriages Endor AI SAST findings using exploit-reproduction evidence,
data-flow context, and remediation guidance to distinguish actionable
vulnerabilities from noise. It can prepare targeted code fixes and, after
explicit approval, edit files and open change requests. For exception
workflows, it can create or update scoped Endor exception policies only
after verified AppSec approval and explicit user confirmation.
/cicd-postureAssesses CI/CD and software supply-chain security across an Endor namespace,
GitHub organization, selected repositories, or the current repository. It
combines existing Endor SCPM, CI/CD, GitHub Actions, and supply-chain
findings with read-only repository configuration evidence and optional local
CI inspection to produce deterministic scores, critical overrides,
prioritized improvements, and explicit data gaps. It does not modify Endor,
GitHub, or repository state.
/configuration-automationCompares GitHub repository inventory with Endor projects, GitHub App
coverage, monitored branches, scan profiles, package-manager integrations,
dependency resolution, and reachability evidence. It identifies onboarding
and configuration gaps and provides targeted setup instructions without
changing GitHub, Endor, or source repositories.
Generated from the plugin's indexed repository (endorlabs/endor-labs-agent-kit) — no native marketplace selected
npx claudepluginhub p/endorlabs-endor-labs-agent-kitOther plugins' skills for the same job