Create agent

From Asymmetric-al/core · View interactive version

Create agent is an AI agent skill from the GitHub repository Asymmetric-al/core. Guides a one-question-at-a-time design interview, captures alignment in agent/EVE-BRIEF.md, then scaffolds and implements a runnable eve agent with verbose teaching comments. Use when the user wants to create a new eve agent, build an agent from scratch, or invokes /create-agent.

How to use this skill

Skill file

create-agent

Turn a rough agent idea into a runnable eve agent through structured Q&A, a written brief, then scaffold + implementation.

Phases

Task Progress:
- [ ] Phase 1 — Design interview (one question at a time)
- [ ] Phase 2 — Write agent/EVE-BRIEF.md and get confirmation
- [ ] Phase 3 — Scaffold eve, implement, verify

Do not skip Phase 1 or Phase 2. Do not scaffold or write agent code until the user confirms the brief.


Phase 1 — Design interview

Interview the user until you have a shared, implementable picture of the agent.

Rules

  1. One question at a time. Wait for the user's answer before the next question.
  2. Include a recommended answer with every question — state your pick and why in one or two sentences.
  3. Explore instead of asking when the answer is in the repo, docs, or env (existing agents, package.json, API keys, monorepo layout).
  4. Follow the decision tree. Resolve blockers before dependent questions (purpose → surfaces → tools → scope → runtime).
  5. Use concrete scenarios. When behavior is fuzzy, invent a user message and ask what the agent should do step by step.
  6. Tighten vague language. Replace overloaded words ("handle", "manage", "process") with specific capabilities or tool names.
  7. Surface contradictions. If a new answer conflicts with an earlier one, call it out before moving on.

What to cover (in rough order)

| Area | Goal |

| ------------- | ------------------------------------------------------------------------------------------------------------------------- |

| Purpose | One sentence: what job does this agent do? |

| Users & entry | Who talks to it, and through what channel(s)? |

| Core loop | Typical turn: user says X → agent does Y → user sees Z |

| Eve surfaces | Which slots matter? (tools, skills, channels, connections, subagents, schedules, hooks, sandbox, evals) |

| Tools & data | Named capabilities, inputs/outputs, real APIs vs connections |

| Scope | What is deliberately out of scope for v1? |

| Model | Preferred model string (default: openai/gpt-4.1-mini via AI Gateway) |

| Secrets | Env vars needed for real integrations (always include AI_GATEWAY_API_KEY) |

| Location | Project directory name and whether it lives inside an existing monorepo |

Stop interviewing when you can fill every section of EVE-BRIEF template without guessing.

End Phase 1

Summarize decisions in a short bullet list. Ask: "Does this match what you want? Ready for me to write EVE-BRIEF.md?"


Phase 2 — EVE-BRIEF.md

Write agent/EVE-BRIEF.md using the template in reference.md.


Phase 3 — Scaffold, implement, verify

0. Read eve docs (required before any implementation)

must read the bundled docs before writing agent code. In Core, eve is installed in packages/eve-runtime, so they are at packages/eve-runtime/node_modules/eve/docs/README.md (not the repository root). Read packages/eve-runtime/AGENTS.md too: product-runtime eve stays disabled by default and gains models, tools or effects only through an accepted OpenSpec change.

  1. Introduction and Getting Started
  2. Every surface page listed in the brief (tools, channels, connections, etc.)
  3. Any API or pattern referenced by sibling agents in the repo

Never rely on hardcoded snippets from this skill or training memory. API shapes, imports, and conventions change — local docs are the source of truth. See reference.md.

1. Detect project layout

Before scaffolding, inspect the repo:

| Situation | Action |

| ----------------------------------- | ------------------------------------------------------------------------------------------------ |

| No agent/ in the selected project | Use the pinned Core CLI with the selected project as the target, as shown below. |

| One existing eve agent | Mirror its project structure (package.json scripts, tsconfig, env pattern) |

| Multiple eve agents (monorepo) | Inventory siblings; mirror naming, workspace deps, and folder conventions from the nearest agent |

Do not assume a specific monorepo shape. Discover conventions from the codebase. See reference.md.

2. Install / scaffold

Set project_dir to the absolute path agreed in Phase 1. From the Core repository root, locate the installed CLI:

eve_cli="$(pwd -P)/packages/eve-runtime/node_modules/.bin/eve"

For a new project, run from its existing parent directory. init accepts the directory name as its argument. Eve uses the parent workspace's package manager when it finds one. The Bun user-agent gives standalone projects a Bun default.

(
  cd "$(dirname -- "$project_dir")" &&
    AI_AGENT=1 npm_config_user_agent="bun/$(bun --version)" "$eve_cli" init "$(basename -- "$project_dir")"
)

For an existing project with a package.json and no agent/ directory, run from that project. Eve uses the selected project's package manager.

(cd "$project_dir" && AI_AGENT=1 "$eve_cli" init .)

AI_AGENT=1 tells Eve to print the next steps after installation, including in shells that the CLI cannot identify as coding-agent sessions. If installation fails after agent/agent.ts is written, inspect the generated files and retry dependency installation from the project directory with its package manager.

If the selected project already has agent/, skip init and locate its agent/agent.ts and agent/instructions.md.

Use --channel-web-nextjs for new projects only, when the brief calls for the Next.js Web Chat app. In an existing project, channels add web also attempts to link and deploy the project on Vercel. Run it after init when the user has authorized that deployment.

(cd "$project_dir" && "$eve_cli" channels add web)

3. Place EVE-BRIEF.md

Write or move EVE-BRIEF.md into the selected project’s agent/ directory. Implement from that project directory.

4. Implement from the brief

Minimum bar for every agent:

Implement only surfaces listed in the brief. For each surface, read the matching page in packages/eve-runtime/node_modules/eve/docs/ and follow patterns from the nearest existing agent in the repo when one exists.

Teaching comments (required):

Every file you create or substantially edit during scaffold + implementation must include verbose, educational comments that teach the user how eve works — not just what the line does. Treat the generated agent as a guided tutorial the user will read while running it.

See reference.md — Teaching comments for the full checklist. At minimum:

Do not strip comments eve init generated if they teach a concept. Prefer adding over removing. Skip comments only on truly obvious TypeScript (e.g. import of a local type). Never use placeholder comments like // TODO: explain — write the explanation.

Conventions:

5. Monorepo housekeeping (only when applicable)

If the repo already hosts multiple eve agents under a shared parent directory:

  1. Update any existing agent index or catalog the repo maintains — for ship-eve, add a row to both agents/README.md and the root README.md with Eve surfaces and Eve capabilities demonstrated (use labels from the capabilities key in agents/README.md)
  2. Register the new package in the root package.json workspaces (Core uses Bun workspaces)
  3. Match package naming and shared config from sibling agents

Skip this step for standalone projects.

6. Verify

For a new scaffold that uses Bun, run the generated checks from the selected project:

bun run --cwd "$project_dir" typecheck
bun run --cwd "$project_dir" build

For an existing project or a scaffold that inherits another package manager, use the project's declared typecheck and build commands with that manager. If implementation changed dependencies, update the lockfile with the project's package manager before verifying.

Tell the user how to run the agent with bunx eve from the selected project directory, what to ask in the TUI, and how to exercise the agent over HTTP per the eve docs. Point them to the most-commented files as the learning path. Do not commit unless asked.


Examples

User: "I want an agent that summarizes my GitHub PRs"

→ Phase 1 asks: which repo/PR scope? channel? recommended: GitHub connection or API-backed get_pr tool with real token, HTTP channel for v1. Mock only if the user has no credentials yet — note that in the brief.

User: "/create-agent" in a repo that already has eve agents

→ Inventory sibling agents, mirror their layout, interview, brief, scaffold alongside them, update any repo index.


Additional resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.