[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74Z7WZ0C5YJ1925XJ1XCXCP":3,"skill-same:01M74Z7WZ0C5YJ1925XJ1XCXCP":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M74Z7WZ0C5YJ1925XJ1XCXCP","jeju-agent-builder",null,"Use when converting a repeated workflow, local developer task, specialist agent idea, inline child-agent delegation idea, or bounded lead-worker team idea into a minimal Jeju agent, agent-tool bundle, or AgentTeam bundle with manifests, prompts, tools, permissions, evaluation, and smoke validation. This is for any higher-level AI agent that needs to author Jeju agents or teams.","cosmtrek\u002Fjeju","cosmtrek","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8832222?v=4","01M74Z7RTKTE67QRE7T4NW6EDQ","Ricko Yu","01M74Z7RV81T1WSB1NZAQ2ZHNM",28,"MIT","https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Fskills\u002Fjeju-agent-builder\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: jeju-agent-builder\ndescription: Use when converting a repeated workflow, local developer task, specialist agent idea, inline child-agent delegation idea, or bounded lead-worker team idea into a minimal Jeju agent, agent-tool bundle, or AgentTeam bundle with manifests, prompts, tools, permissions, evaluation, and smoke validation. This is for any higher-level AI agent that needs to author Jeju agents or teams.\nmetadata:\n  short-description: Create focused Jeju agents from repeated workflows\n  version: \"0.4.1\"\n---\n\n# Jeju Agent Builder\n\nUse this skill when the user wants an AI agent to turn a repeated workflow into\na Jeju agent, an agent with declared child-agent tools, or a bounded AgentTeam.\nJeju agents should be narrow, bounded execution units that another higher-level\nagent can create, run, inspect, and improve; AgentTeams should stay limited to\none lead-worker controller over ordinary Jeju agents.\n\nThis is an authoring skill stored in the Jeju repository. It is not a Jeju\nruntime skill loaded by an agent manifest unless someone explicitly copies or\nreferences it as one.\n\nFor the full authoring manual, read `docs\u002Fmanual-for-agents.md` in the Jeju\nrepository when available. For distributable agents, also read\n`docs\u002Fagent-package.md`. Jeju source repository:\nhttps:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\n\n## Decide If Jeju Is Appropriate\n\nCreate a Jeju agent only when the workflow benefits from model reasoning plus\nexplicit tools, permissions, run evidence, or evaluation.\n\nPrefer another artifact when:\n\n- A deterministic script is enough.\n- The value is only prompt reuse inside the authoring agent.\n- The task needs broad orchestration, distributed workers, remote sandboxes, or\n  long-term memory.\n\nGood Jeju agent candidates are narrow specialists such as code-review triage,\ndocs update planning, benchmark failure classification, trajectory inspection,\nprompt regression review, release-note drafting, and local repo hygiene checks.\nUse `tools[].uses: agent` when one ordinary parent agent should call one or more\ndeclared specialist child agents inline and consume their final answers as tool\nresults.\nUse `kind: AgentTeam` only when the workflow genuinely needs a bounded\nlead-worker controller over several ordinary child agents.\n\n## Minimal Design Contract\n\nBefore writing files, identify:\n\n- Purpose: one sentence describing the repeated workflow.\n- Input contract: what the user or parent agent passes to `jeju run`.\n- Output contract: final answer shape. Prefer manifest `output` with inline\n  JSON Schema for structured JSON; use concise markdown only when free-form\n  prose is the intended product.\n- Workspace binding: which local project directory is inspected or changed.\n- Tool needs: read\u002Fsearch\u002Fwrite\u002Fedit\u002Fshell\u002Fhttp\u002Fcommand tools, with why each is\n  needed.\n- Permission profile: default to `readOnly`; only enable writes or shell when\n  required.\n- Model tier: cheap, medium, or strong based on task complexity and risk.\n- Runtime limits: max steps, max duration, max tool calls, max consecutive\n  errors.\n- Evaluation: at least one smoke case or command\u002Frule evaluator when practical.\n- Packaging: whether the finished agent should be local-only or published as an\n  Agent Package, including package id, version, and intended source.\n- Non-goals: what the agent must not attempt.\n\n## Minimal Bundle Shape\n\nUse the smallest bundle that can be validated and run:\n\n```text\nagents\u002F\u003Cname>.agent.yaml\nprompts\u002F\u003Cname>.md\nworkspace\u002F\u003Cname>\u002F.gitkeep\neval\u002F\u003Coptional-evaluator>.py\nREADME.md\n```\n\nAdd a runtime skill, schema, or custom tool script only when it removes real\ncomplexity.\n\nWhen generating a runtime skill, follow the Agent Skills `SKILL.md` frontmatter\nformat. The Agent Skills spec does not define a top-level `version` field; put\nthe semantic version in `metadata.version` so bundles can be distributed and\nupgraded intentionally:\n\n```markdown\n---\nname: repo-review\ndescription: Review a local repository diff and return actionable findings. Use when repo change review is needed.\nmetadata:\n  short-description: Review local repository diffs\n  version: \"0.1.0\"\nallowed-tools: read search git_diff\n---\n```\n\nStart new skills at `0.1.0`. Increment the version when behavior, required\ntools, output format, compatibility, or validation expectations change.\n\n## Package For Distribution\n\nUse an Agent Package when the finished bundle should be reused by stable\nreference, shared as a local artifact, pulled from Git, or listed in a registry.\nDo not package early scratch agents unless the user asks for a distributable\noutput.\n\nAgent Package is a distribution layer for one reusable `kind: Agent`; it is not\na second runtime manifest. The package should point at the existing agent\nmanifest and leave runtime behavior in `agent.yaml`:\n\n```yaml\napiVersion: jeju\u002Fv1alpha1\nkind: AgentPackage\n\nmetadata:\n  id: coding\u002Fcode-review\n  name: Code Review\n  version: 0.1.0\n  description: \"Review a local repository change and return structured findings.\"\n\ncompatibility:\n  jeju: \">=0.4.0\"\n\nagent:\n  manifest: agents\u002Fcode-review.agent.yaml\n```\n\nPackage rules for generated bundles:\n\n- The package root must contain `jeju.package.yaml`; other directory names are\n  conventions, not protocol.\n- Generate at most one `AgentPackage` for one `kind: Agent`. Do not package\n  `AgentTeam` in V1.\n- Use package ids in `namespace\u002Fname` form and semantic versions.\n- Prefer bumping `metadata.version` when behavior, required tools, output\n  contract, compatibility, or validation expectations change.\n- Do not put `usage`, `quality`, `risk`, or `publish.source` in\n  `jeju.package.yaml`. Put usage in `README.md`; let risk be derived from the\n  agent manifest; keep source and digest in registry\u002Fstore provenance.\n- Keep `workspace.path` as a placeholder inside the bundle. Consumers can run\n  package-backed agents with `jeju run --workspace \u002Fpath\u002Fto\u002Fproject ...`.\n\nUseful package commands:\n\n```bash\njeju package init \u003Cbundle> --agent agents\u002F\u003Cname>.agent.yaml --id \u003Cnamespace\u002Fname> --version 0.1.0 --description \"\u003Ccapability>\"\njeju package validate \u003Cbundle>\njeju package pack \u003Cbundle> --out dist\u002F\njeju package add dist\u002F\u003Cnamespace-name>-0.1.0.jpkg\njeju run package:\u002F\u002F\u003Cnamespace\u002Fname>@0.1.0 \"\u003Csample input>\"\n```\n\nRemote package sources can be added or run by Git subdirectory reference:\n\n```bash\njeju package add github:owner\u002Frepo\u002F\u002Fnamespace\u002Fname?ref=\u003Ccommit>\njeju run github:owner\u002Frepo\u002F\u002Fnamespace\u002Fname?ref=\u003Ccommit> \"\u003Csample input>\"\n```\n\nIf a mutable source or local directory changes without a version bump, `jeju\npackage add` and `jeju package update` should fail by default when the digest\nchanges. Use `--replace` only when the user explicitly wants to move the local\n`id@version` ref to new content.\n\n## Agent Tools Authoring\n\nUse `tools[].uses: agent` for inline delegation inside one ordinary `kind:\nAgent` loop. This is the right fit when a parent agent needs a small number of\nstatic specialists and can decide when to call them as normal tools.\n\nDo not use agent tools as a general workflow graph, dynamic worker pool, or\nreplacement for AgentTeam. Use `kind: AgentTeam` instead when the task needs\nexplicit task state, dependencies, retries, verification, parallel scheduling,\nor controller-level final selection.\n\nMinimal agent-tool bundle shape:\n\n```text\nagents\u002F\u003Cparent>.agent.yaml\nagents\u002F\u003Cchild>.agent.yaml\nprompts\u002F\u003Cparent>.md\nprompts\u002F\u003Cchild>.md\nworkspace\u002F\u003Cname>\u002F.gitkeep\nREADME.md\n```\n\nManifest shape:\n\n```yaml\ntools:\n  - name: ask_retriever\n    uses: agent\n    description: Run the retriever child agent for one scoped subtask.\n    agent:\n      manifest: child.agent.yaml\n    input:\n      schema:\n        type: object\n        required: [task]\n        additionalProperties: false\n        properties:\n          task:\n            type: string\n          context:\n            type: string\n          expected_output:\n            type: string\n```\n\nAgent tool rules:\n\n- The child manifest must be `kind: Agent`; do not point at `AgentTeam`.\n- The compiler validates and compiles the child manifest before runtime.\n- Nested agent tools are not supported. A child agent used as a tool must not\n  itself declare `uses: agent`.\n- Do not put parent-side runtime budgets such as timeout, max rounds, or max\n  depth on the agent tool. The child controls its own `runtime.limits`.\n- When the child runs directly, it uses its own `workspace.path`. When invoked\n  as an agent tool, it inherits the parent run's effective workspace.\n- The parent policy gates delegation through the `agentRun` capability. The\n  child still enforces its own manifest permissions for file, shell, command,\n  HTTP, and network behavior.\n- `readOnly` parent access does not block `agentRun` by itself. If delegation\n  should require a human approval step, use `permissions.approval: onRequest`.\n- A child run failure is returned to the parent as an agent tool result with\n  child status, run id, path, and stats. Hard integration failures such as an\n  invalid child manifest are parent tool errors.\n- The parent trajectory records a normal tool span plus a nested `subagent`\n  span. The child run has its own `trajectory.jsonl` under the parent run's\n  `child-runs\u002F\u003Ctool>\u002F\u003Ctool_call_id>\u002F\u003Cchild_run_id>\u002F` directory.\n\nPrompt the parent to keep delegation small and explicit. A useful parent prompt\nnames the child tools, when each should be called, what to do if a child returns\n`status: failed`, and when to stop calling tools and produce final output.\n\nValidate and smoke-run an agent-tool bundle from the Jeju source checkout:\n\n```bash\njeju validate \u003Cbundle>\u002Fagents\u002F\u003Cparent>.agent.yaml\njeju run --workspace \u002Fpath\u002Fto\u002Fproject --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Cbundle>\u002Fagents\u002F\u003Cparent>.agent.yaml \"\u003Csample input>\"\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Crun_id>\n```\n\nExample to study when available:\n\n```text\nexamples\u002Fcode-review-with-agent-tools\u002F\n```\n\n## AgentTeam Authoring\n\nUse `kind: AgentTeam` for bounded lead-worker orchestration from one user goal.\nDo not use it for peer-to-peer chat, dynamic worker creation, distributed\nworkers, shared long-term memory, or a general multi-agent platform.\n\nMinimal team shape:\n\n```text\nteams\u002F\u003Cname>.team.yaml\nagents\u002F\u003Clead>.agent.yaml\nagents\u002F\u003Cworker>.agent.yaml\nprompts\u002F\u003Clead>.md\nprompts\u002F\u003Cworker>.md\nworkspace\u002F\u003Cname>\u002F.gitkeep\n```\n\nTeam manifest rules:\n\n- Set `runtime.topology: lead_worker`.\n- Declare one `lead.agent` and a fixed `workers` catalog.\n- Do not write `lead.synthesisAgent`; it is no longer supported.\n- If final composition needs a separate model pass, declare a normal `writer`\n  worker and have the lead create a final writer task.\n- Do not package `AgentTeam` in V1; package only reusable `kind: Agent`\n  manifests.\n\nLead decision contract:\n\n- The controller injects an AgentTeam protocol system prompt before the lead\n  agent's own system prompt. Keep the lead prompt focused on team strategy,\n  worker responsibilities, escalation policy, and when to finish.\n- The lead must return exactly one TeamDecision JSON object on every turn.\n- `decision` is a tagged union: `continue`, `finish`, or `abort`.\n- For `continue`, use `tasks` to add new worker tasks. Each task needs stable\n  `id`, declared `worker`, non-empty `objective`, optional `depends_on`,\n  optional `context_refs`, and optional `output_contract`.\n- `depends_on` is the scheduling edge. `context_refs` is the data-injection\n  edge. If `context_refs` is omitted, it defaults to `depends_on`; explicit\n  `[]` means inject no prior task output.\n- Repeated task ids are ignored, not updated. Tell the lead to create a new id\n  for replacement work after rejection.\n- For `finish`, set exactly one of `finish.content` or `finish.task_id`.\n  Prefer `finish.task_id` when a verified writer task produced the final\n  answer. The referenced task must be verified and have non-empty final output.\n- For `abort`, set `abort.reason` when the declared team cannot complete the\n  goal with available workers, tools, policy, or workspace.\n- Do not use old decisions such as `synthesize` or `blocked`.\n\nWorker\u002Foutput rules:\n\n- Workers are ordinary `kind: Agent` manifests and do not chat with each other.\n- Do not force every worker to return JSON. Use task `output_contract` only\n  when the controller or another worker needs machine-checkable output.\n- When `verification.requireStructuredTaskOutput` is enabled, required-field\n  checks apply only to tasks whose active output contract format is `json`.\n  Markdown\u002Ftext writer tasks are valid for final reports.\n- If `verification.requireVerifier` is true, declare a worker named `verifier`;\n  finish remains blocked until at least one verifier task is verified.\n\nMinimal team manifest sketch:\n\n```yaml\napiVersion: jeju\u002Fv1alpha1\nkind: AgentTeam\n\nmetadata:\n  name: review-team\n\nlead:\n  agent: ..\u002Fagents\u002Freview-lead.agent.yaml\n\nworkers:\n  reviewer:\n    agent: ..\u002Fagents\u002Freviewer.agent.yaml\n    maxTasks: 3\n  verifier:\n    agent: ..\u002Fagents\u002Fverifier.agent.yaml\n    maxTasks: 2\n  writer:\n    agent: ..\u002Fagents\u002Fwriter.agent.yaml\n    maxTasks: 1\n\nruntime:\n  topology: lead_worker\n  maxRounds: 6\n  maxTasks: 8\n  maxParallel: 2\n  maxRetriesPerTask: 1\n\nverification:\n  requireStructuredTaskOutput: true\n  requireVerifier: true\n  requiredTaskFields: [summary, findings, evidence, gaps, residual_risk]\n\noutput:\n  dir: ..\u002F.jeju-dev\u002Fteam\u002Freview-team\n```\n\nValidate and smoke-run a team from the Jeju source checkout:\n\n```bash\njeju validate \u003Cbundle>\u002Fteams\u002F\u003Cname>.team.yaml\njeju team run --workspace \u002Fpath\u002Fto\u002Fproject --output final \u003Cbundle>\u002Fteams\u002F\u003Cname>.team.yaml \"\u003Csample goal>\"\n```\n\n## Minimal Manifest Template\n\n```yaml\napiVersion: jeju\u002Fv1alpha1\nkind: Agent\n\nmetadata:\n  name: repo-inspector\n  description: \"Inspect a local repository and produce a structured summary\"\n\nmodels:\n  providers:\n    primary:\n      type: openaiCompatible\n      preset: deepseek\n      model: deepseek-v4-flash\n      envKey: DEEPSEEK_API_KEY\n      temperature: 0.1\n      thinking:\n        type: disabled\n      maxOutputTokens: 2048\n      contextWindow: 128000\n      timeoutSec: 60\n\ninstructions:\n  system: ..\u002Fprompts\u002Frepo-inspector.md\n\nruntime:\n  model: primary\n  loop:\n    type: react\n  compressionThreshold: 0.8\n  recentTokenBudget: 20000\n  limits:\n    maxSteps: 16\n    maxDurationSec: 240\n    maxToolCalls: 30\n    maxConsecutiveErrors: 2\n\nworkspace:\n  path: ..\u002Fworkspace\u002Frepo-inspector\n\ntools:\n  - read\n  - search\n\npermissions:\n  access: readOnly\n  approval: never\n\noutput:\n  name: repo_summary\n  schema:\n    type: object\n    required: [summary, findings, residual_risk]\n    additionalProperties: false\n    properties:\n      summary:\n        type: string\n      findings:\n        type: array\n        items:\n          type: string\n      residual_risk:\n        type: string\n\nevaluate:\n  enabled: true\n  evaluators:\n    - name: basic\n      uses: rules\n      rules:\n        - finalAnswerExists\n        - runCompleted\n```\n\n## Authoring Defaults\n\n- Keep behavior in manifest fields, prompt files, tools, skills, permissions,\n  and evaluators.\n- `workspace.path` should point at a placeholder in the bundle; use\n  `jeju run --workspace \u002Fpath\u002Fto\u002Fproject ...` for real target repos.\n- Default to `permissions.access: readOnly` and `permissions.approval: never`\n  for inspection agents.\n- Use `permissions.access: workspace` and `permissions.approval: onRequest`\n  only when the agent must write, run shell commands, or access networks.\n- Declare tool capabilities accurately: `workspaceRead`, `workspaceWrite`,\n  `command`, `networkRead`, `networkWrite`, or `agentRun`. Agent tools infer\n  `agentRun` automatically.\n- Make the system prompt narrow: exact workflow, output format, inspection\n  strategy, residual-risk reporting, and non-goals.\n- For structured final JSON, put the exact shape in manifest `output.schema`\n  and keep the prompt focused on workflow and field semantics. Do not duplicate\n  a large JSON Schema block in the prompt unless a weak provider needs a short\n  reminder.\n- `output.schema` currently supports inline JSON Schema. Jeju validates final\n  output locally, retries once with tools disabled if the final answer does not\n  match, and fails the run if the retry also violates the schema.\n- Include at least a smoke evaluator when practical.\n\n## Install Jeju If Needed\n\nBefore validating or running a generated agent, check whether Jeju is available:\n\n```bash\njeju version\n```\n\nIf the command is missing, use the README binary install command on macOS or\nLinux:\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fcosmtrek\u002Fjeju\u002Fmaster\u002Fscripts\u002Finstall.sh | sh\njeju version\n```\n\nJeju currently supports macOS and Linux. Windows is not guaranteed yet. Use the\nREADME source install path only when Go is already installed:\n\n```bash\ngo install github.com\u002Fcosmtrek\u002Fjeju\u002Fcmd\u002Fjeju@latest\njeju version\n```\n\nDo not install Go automatically. Ask the user before taking the source-install\npath when Go is missing.\n\n## Validation\n\nFrom the Jeju source checkout, write local run artifacts under `.jeju-dev\u002F`:\n\n```bash\njeju validate \u003Cbundle>\u002Fagents\u002F\u003Cname>.agent.yaml\njeju run --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Cbundle>\u002Fagents\u002F\u003Cname>.agent.yaml \"\u003Csample input>\"\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname>\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Crun_id>\n```\n\nFor distributable bundles, validate both the agent and the package before\npacking or sharing:\n\n```bash\njeju package validate \u003Cbundle>\njeju package pack \u003Cbundle> --out .jeju-dev\u002Fpackages\u002F\u003Cname>\njeju package add .jeju-dev\u002Fpackages\u002F\u003Cname>\u002F\u003Cnamespace-name>-\u003Cversion>.jpkg\njeju run --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> package:\u002F\u002F\u003Cnamespace\u002Fname>@\u003Cversion> \"\u003Csample input>\"\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> package:\u002F\u002F\u003Cnamespace\u002Fname>@\u003Cversion>\n```\n\nWhen only adding or editing authoring docs, `go test .\u002F...` is not required\nunless source code changed.\n\n## Source Lookup Advice\n\nIf repository access is available, inspect source and docs before inventing\nfields or behavior. Prefer conceptual search terms over hardcoded paths because\nthe repository can be reorganized:\n\n```bash\nrg -n \"AgentManifest|ToolConfig|finalAnswerExists|workspace.path|permissions.access|compressionThreshold\"\nrg -n \"config.LoadFile|config.Validate|compiler.Compile|runtime.Run\"\nrg -n \"uses: command|uses: http|allowed-tools|active skills|evaluate|output.schema\"\nrg -n \"AgentPackage|jeju.package.yaml|package add|package:\u002F\u002F|JEJU_REGISTRY_INDEX\"\nrg -n \"uses: agent|agentRun|AgentToolConfig|SpanSubagent|child-runs|code-review-with-agent-tools\"\nrg -n \"AgentTeam|TeamDecision|finish.task_id|lead.synthesisAgent|lead_worker|jeju team run\"\n```\n\nLook for current docs, schema structs, defaults, validators, compiler behavior,\nruntime loop behavior, policy checks, tool implementations, skill loading,\nevaluator behavior, evolve behavior, and concrete examples.\n","# Jeju Agent Builder\n\nUse this skill when the user wants an AI agent to turn a repeated workflow into\na Jeju agent, an agent with declared child-agent tools, or a bounded AgentTeam.\nJeju agents should be narrow, bounded execution units that another higher-level\nagent can create, run, inspect, and improve; AgentTeams should stay limited to\none lead-worker controller over ordinary Jeju agents.\n\nThis is an authoring skill stored in the Jeju repository. It is not a Jeju\nruntime skill loaded by an agent manifest unless someone explicitly copies or\nreferences it as one.\n\nFor the full authoring manual, read `docs\u002Fmanual-for-agents.md` in the Jeju\nrepository when available. For distributable agents, also read\n`docs\u002Fagent-package.md`. Jeju source repository:\nhttps:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\n\n## Decide If Jeju Is Appropriate\n\nCreate a Jeju agent only when the workflow benefits from model reasoning plus\nexplicit tools, permissions, run evidence, or evaluation.\n\nPrefer another artifact when:\n\n- A deterministic script is enough.\n- The value is only prompt reuse inside the authoring agent.\n- The task needs broad orchestration, distributed workers, remote sandboxes, or\n  long-term memory.\n\nGood Jeju agent candidates are narrow specialists such as code-review triage,\ndocs update planning, benchmark failure classification, trajectory inspection,\nprompt regression review, release-note drafting, and local repo hygiene checks.\nUse `tools[].uses: agent` when one ordinary parent agent should call one or more\ndeclared specialist child agents inline and consume their final answers as tool\nresults.\nUse `kind: AgentTeam` only when the workflow genuinely needs a bounded\nlead-worker controller over several ordinary child agents.\n\n## Minimal Design Contract\n\nBefore writing files, identify:\n\n- Purpose: one sentence describing the repeated workflow.\n- Input contract: what the user or parent agent passes to `jeju run`.\n- Output contract: final answer shape. Prefer manifest `output` with inline\n  JSON Schema for structured JSON; use concise markdown only when free-form\n  prose is the intended product.\n- Workspace binding: which local project directory is inspected or changed.\n- Tool needs: read\u002Fsearch\u002Fwrite\u002Fedit\u002Fshell\u002Fhttp\u002Fcommand tools, with why each is\n  needed.\n- Permission profile: default to `readOnly`; only enable writes or shell when\n  required.\n- Model tier: cheap, medium, or strong based on task complexity and risk.\n- Runtime limits: max steps, max duration, max tool calls, max consecutive\n  errors.\n- Evaluation: at least one smoke case or command\u002Frule evaluator when practical.\n- Packaging: whether the finished agent should be local-only or published as an\n  Agent Package, including package id, version, and intended source.\n- Non-goals: what the agent must not attempt.\n\n## Minimal Bundle Shape\n\nUse the smallest bundle that can be validated and run:\n\n```text\nagents\u002F\u003Cname>.agent.yaml\nprompts\u002F\u003Cname>.md\nworkspace\u002F\u003Cname>\u002F.gitkeep\neval\u002F\u003Coptional-evaluator>.py\nREADME.md\n```\n\nAdd a runtime skill, schema, or custom tool script only when it removes real\ncomplexity.\n\nWhen generating a runtime skill, follow the Agent Skills `SKILL.md` frontmatter\nformat. The Agent Skills spec does not define a top-level `version` field; put\nthe semantic version in `metadata.version` so bundles can be distributed and\nupgraded intentionally:\n\n```markdown\n---\nname: repo-review\ndescription: Review a local repository diff and return actionable findings. Use when repo change review is needed.\nmetadata:\n  short-description: Review local repository diffs\n  version: \"0.1.0\"\nallowed-tools: read search git_diff\n---\n```\n\nStart new skills at `0.1.0`. Increment the version when behavior, required\ntools, output format, compatibility, or validation expectations change.\n\n## Package For Distribution\n\nUse an Agent Package when the finished bundle should be reused by stable\nreference, shared as a local artifact, pulled from Git, or listed in a registry.\nDo not package early scratch agents unless the user asks for a distributable\noutput.\n\nAgent Package is a distribution layer for one reusable `kind: Agent`; it is not\na second runtime manifest. The package should point at the existing agent\nmanifest and leave runtime behavior in `agent.yaml`:\n\n```yaml\napiVersion: jeju\u002Fv1alpha1\nkind: AgentPackage\n\nmetadata:\n  id: coding\u002Fcode-review\n  name: Code Review\n  version: 0.1.0\n  description: \"Review a local repository change and return structured findings.\"\n\ncompatibility:\n  jeju: \">=0.4.0\"\n\nagent:\n  manifest: agents\u002Fcode-review.agent.yaml\n```\n\nPackage rules for generated bundles:\n\n- The package root must contain `jeju.package.yaml`; other directory names are\n  conventions, not protocol.\n- Generate at most one `AgentPackage` for one `kind: Agent`. Do not package\n  `AgentTeam` in V1.\n- Use package ids in `namespace\u002Fname` form and semantic versions.\n- Prefer bumping `metadata.version` when behavior, required tools, output\n  contract, compatibility, or validation expectations change.\n- Do not put `usage`, `quality`, `risk`, or `publish.source` in\n  `jeju.package.yaml`. Put usage in `README.md`; let risk be derived from the\n  agent manifest; keep source and digest in registry\u002Fstore provenance.\n- Keep `workspace.path` as a placeholder inside the bundle. Consumers can run\n  package-backed agents with `jeju run --workspace \u002Fpath\u002Fto\u002Fproject ...`.\n\nUseful package commands:\n\n```bash\njeju package init \u003Cbundle> --agent agents\u002F\u003Cname>.agent.yaml --id \u003Cnamespace\u002Fname> --version 0.1.0 --description \"\u003Ccapability>\"\njeju package validate \u003Cbundle>\njeju package pack \u003Cbundle> --out dist\u002F\njeju package add dist\u002F\u003Cnamespace-name>-0.1.0.jpkg\njeju run package:\u002F\u002F\u003Cnamespace\u002Fname>@0.1.0 \"\u003Csample input>\"\n```\n\nRemote package sources can be added or run by Git subdirectory reference:\n\n```bash\njeju package add github:owner\u002Frepo\u002F\u002Fnamespace\u002Fname?ref=\u003Ccommit>\njeju run github:owner\u002Frepo\u002F\u002Fnamespace\u002Fname?ref=\u003Ccommit> \"\u003Csample input>\"\n```\n\nIf a mutable source or local directory changes without a version bump, `jeju\npackage add` and `jeju package update` should fail by default when the digest\nchanges. Use `--replace` only when the user explicitly wants to move the local\n`id@version` ref to new content.\n\n## Agent Tools Authoring\n\nUse `tools[].uses: agent` for inline delegation inside one ordinary `kind:\nAgent` loop. This is the right fit when a parent agent needs a small number of\nstatic specialists and can decide when to call them as normal tools.\n\nDo not use agent tools as a general workflow graph, dynamic worker pool, or\nreplacement for AgentTeam. Use `kind: AgentTeam` instead when the task needs\nexplicit task state, dependencies, retries, verification, parallel scheduling,\nor controller-level final selection.\n\nMinimal agent-tool bundle shape:\n\n```text\nagents\u002F\u003Cparent>.agent.yaml\nagents\u002F\u003Cchild>.agent.yaml\nprompts\u002F\u003Cparent>.md\nprompts\u002F\u003Cchild>.md\nworkspace\u002F\u003Cname>\u002F.gitkeep\nREADME.md\n```\n\nManifest shape:\n\n```yaml\ntools:\n  - name: ask_retriever\n    uses: agent\n    description: Run the retriever child agent for one scoped subtask.\n    agent:\n      manifest: child.agent.yaml\n    input:\n      schema:\n        type: object\n        required: [task]\n        additionalProperties: false\n        properties:\n          task:\n            type: string\n          context:\n            type: string\n          expected_output:\n            type: string\n```\n\nAgent tool rules:\n\n- The child manifest must be `kind: Agent`; do not point at `AgentTeam`.\n- The compiler validates and compiles the child manifest before runtime.\n- Nested agent tools are not supported. A child agent used as a tool must not\n  itself declare `uses: agent`.\n- Do not put parent-side runtime budgets such as timeout, max rounds, or max\n  depth on the agent tool. The child controls its own `runtime.limits`.\n- When the child runs directly, it uses its own `workspace.path`. When invoked\n  as an agent tool, it inherits the parent run's effective workspace.\n- The parent policy gates delegation through the `agentRun` capability. The\n  child still enforces its own manifest permissions for file, shell, command,\n  HTTP, and network behavior.\n- `readOnly` parent access does not block `agentRun` by itself. If delegation\n  should require a human approval step, use `permissions.approval: onRequest`.\n- A child run failure is returned to the parent as an agent tool result with\n  child status, run id, path, and stats. Hard integration failures such as an\n  invalid child manifest are parent tool errors.\n- The parent trajectory records a normal tool span plus a nested `subagent`\n  span. The child run has its own `trajectory.jsonl` under the parent run's\n  `child-runs\u002F\u003Ctool>\u002F\u003Ctool_call_id>\u002F\u003Cchild_run_id>\u002F` directory.\n\nPrompt the parent to keep delegation small and explicit. A useful parent prompt\nnames the child tools, when each should be called, what to do if a child returns\n`status: failed`, and when to stop calling tools and produce final output.\n\nValidate and smoke-run an agent-tool bundle from the Jeju source checkout:\n\n```bash\njeju validate \u003Cbundle>\u002Fagents\u002F\u003Cparent>.agent.yaml\njeju run --workspace \u002Fpath\u002Fto\u002Fproject --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Cbundle>\u002Fagents\u002F\u003Cparent>.agent.yaml \"\u003Csample input>\"\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Crun_id>\n```\n\nExample to study when available:\n\n```text\nexamples\u002Fcode-review-with-agent-tools\u002F\n```\n\n## AgentTeam Authoring\n\nUse `kind: AgentTeam` for bounded lead-worker orchestration from one user goal.\nDo not use it for peer-to-peer chat, dynamic worker creation, distributed\nworkers, shared long-term memory, or a general multi-agent platform.\n\nMinimal team shape:\n\n```text\nteams\u002F\u003Cname>.team.yaml\nagents\u002F\u003Clead>.agent.yaml\nagents\u002F\u003Cworker>.agent.yaml\nprompts\u002F\u003Clead>.md\nprompts\u002F\u003Cworker>.md\nworkspace\u002F\u003Cname>\u002F.gitkeep\n```\n\nTeam manifest rules:\n\n- Set `runtime.topology: lead_worker`.\n- Declare one `lead.agent` and a fixed `workers` catalog.\n- Do not write `lead.synthesisAgent`; it is no longer supported.\n- If final composition needs a separate model pass, declare a normal `writer`\n  worker and have the lead create a final writer task.\n- Do not package `AgentTeam` in V1; package only reusable `kind: Agent`\n  manifests.\n\nLead decision contract:\n\n- The controller injects an AgentTeam protocol system prompt before the lead\n  agent's own system prompt. Keep the lead prompt focused on team strategy,\n  worker responsibilities, escalation policy, and when to finish.\n- The lead must return exactly one TeamDecision JSON object on every turn.\n- `decision` is a tagged union: `continue`, `finish`, or `abort`.\n- For `continue`, use `tasks` to add new worker tasks. Each task needs stable\n  `id`, declared `worker`, non-empty `objective`, optional `depends_on`,\n  optional `context_refs`, and optional `output_contract`.\n- `depends_on` is the scheduling edge. `context_refs` is the data-injection\n  edge. If `context_refs` is omitted, it defaults to `depends_on`; explicit\n  `[]` means inject no prior task output.\n- Repeated task ids are ignored, not updated. Tell the lead to create a new id\n  for replacement work after rejection.\n- For `finish`, set exactly one of `finish.content` or `finish.task_id`.\n  Prefer `finish.task_id` when a verified writer task produced the final\n  answer. The referenced task must be verified and have non-empty final output.\n- For `abort`, set `abort.reason` when the declared team cannot complete the\n  goal with available workers, tools, policy, or workspace.\n- Do not use old decisions such as `synthesize` or `blocked`.\n\nWorker\u002Foutput rules:\n\n- Workers are ordinary `kind: Agent` manifests and do not chat with each other.\n- Do not force every worker to return JSON. Use task `output_contract` only\n  when the controller or another worker needs machine-checkable output.\n- When `verification.requireStructuredTaskOutput` is enabled, required-field\n  checks apply only to tasks whose active output contract format is `json`.\n  Markdown\u002Ftext writer tasks are valid for final reports.\n- If `verification.requireVerifier` is true, declare a worker named `verifier`;\n  finish remains blocked until at least one verifier task is verified.\n\nMinimal team manifest sketch:\n\n```yaml\napiVersion: jeju\u002Fv1alpha1\nkind: AgentTeam\n\nmetadata:\n  name: review-team\n\nlead:\n  agent: ..\u002Fagents\u002Freview-lead.agent.yaml\n\nworkers:\n  reviewer:\n    agent: ..\u002Fagents\u002Freviewer.agent.yaml\n    maxTasks: 3\n  verifier:\n    agent: ..\u002Fagents\u002Fverifier.agent.yaml\n    maxTasks: 2\n  writer:\n    agent: ..\u002Fagents\u002Fwriter.agent.yaml\n    maxTasks: 1\n\nruntime:\n  topology: lead_worker\n  maxRounds: 6\n  maxTasks: 8\n  maxParallel: 2\n  maxRetriesPerTask: 1\n\nverification:\n  requireStructuredTaskOutput: true\n  requireVerifier: true\n  requiredTaskFields: [summary, findings, evidence, gaps, residual_risk]\n\noutput:\n  dir: ..\u002F.jeju-dev\u002Fteam\u002Freview-team\n```\n\nValidate and smoke-run a team from the Jeju source checkout:\n\n```bash\njeju validate \u003Cbundle>\u002Fteams\u002F\u003Cname>.team.yaml\njeju team run --workspace \u002Fpath\u002Fto\u002Fproject --output final \u003Cbundle>\u002Fteams\u002F\u003Cname>.team.yaml \"\u003Csample goal>\"\n```\n\n## Minimal Manifest Template\n\n```yaml\napiVersion: jeju\u002Fv1alpha1\nkind: Agent\n\nmetadata:\n  name: repo-inspector\n  description: \"Inspect a local repository and produce a structured summary\"\n\nmodels:\n  providers:\n    primary:\n      type: openaiCompatible\n      preset: deepseek\n      model: deepseek-v4-flash\n      envKey: DEEPSEEK_API_KEY\n      temperature: 0.1\n      thinking:\n        type: disabled\n      maxOutputTokens: 2048\n      contextWindow: 128000\n      timeoutSec: 60\n\ninstructions:\n  system: ..\u002Fprompts\u002Frepo-inspector.md\n\nruntime:\n  model: primary\n  loop:\n    type: react\n  compressionThreshold: 0.8\n  recentTokenBudget: 20000\n  limits:\n    maxSteps: 16\n    maxDurationSec: 240\n    maxToolCalls: 30\n    maxConsecutiveErrors: 2\n\nworkspace:\n  path: ..\u002Fworkspace\u002Frepo-inspector\n\ntools:\n  - read\n  - search\n\npermissions:\n  access: readOnly\n  approval: never\n\noutput:\n  name: repo_summary\n  schema:\n    type: object\n    required: [summary, findings, residual_risk]\n    additionalProperties: false\n    properties:\n      summary:\n        type: string\n      findings:\n        type: array\n        items:\n          type: string\n      residual_risk:\n        type: string\n\nevaluate:\n  enabled: true\n  evaluators:\n    - name: basic\n      uses: rules\n      rules:\n        - finalAnswerExists\n        - runCompleted\n```\n\n## Authoring Defaults\n\n- Keep behavior in manifest fields, prompt files, tools, skills, permissions,\n  and evaluators.\n- `workspace.path` should point at a placeholder in the bundle; use\n  `jeju run --workspace \u002Fpath\u002Fto\u002Fproject ...` for real target repos.\n- Default to `permissions.access: readOnly` and `permissions.approval: never`\n  for inspection agents.\n- Use `permissions.access: workspace` and `permissions.approval: onRequest`\n  only when the agent must write, run shell commands, or access networks.\n- Declare tool capabilities accurately: `workspaceRead`, `workspaceWrite`,\n  `command`, `networkRead`, `networkWrite`, or `agentRun`. Agent tools infer\n  `agentRun` automatically.\n- Make the system prompt narrow: exact workflow, output format, inspection\n  strategy, residual-risk reporting, and non-goals.\n- For structured final JSON, put the exact shape in manifest `output.schema`\n  and keep the prompt focused on workflow and field semantics. Do not duplicate\n  a large JSON Schema block in the prompt unless a weak provider needs a short\n  reminder.\n- `output.schema` currently supports inline JSON Schema. Jeju validates final\n  output locally, retries once with tools disabled if the final answer does not\n  match, and fails the run if the retry also violates the schema.\n- Include at least a smoke evaluator when practical.\n\n## Install Jeju If Needed\n\nBefore validating or running a generated agent, check whether Jeju is available:\n\n```bash\njeju version\n```\n\nIf the command is missing, use the README binary install command on macOS or\nLinux:\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fcosmtrek\u002Fjeju\u002Fmaster\u002Fscripts\u002Finstall.sh | sh\njeju version\n```\n\nJeju currently supports macOS and Linux. Windows is not guaranteed yet. Use the\nREADME source install path only when Go is already installed:\n\n```bash\ngo install github.com\u002Fcosmtrek\u002Fjeju\u002Fcmd\u002Fjeju@latest\njeju version\n```\n\nDo not install Go automatically. Ask the user before taking the source-install\npath when Go is missing.\n\n## Validation\n\nFrom the Jeju source checkout, write local run artifacts under `.jeju-dev\u002F`:\n\n```bash\njeju validate \u003Cbundle>\u002Fagents\u002F\u003Cname>.agent.yaml\njeju run --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Cbundle>\u002Fagents\u002F\u003Cname>.agent.yaml \"\u003Csample input>\"\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname>\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> \u003Crun_id>\n```\n\nFor distributable bundles, validate both the agent and the package before\npacking or sharing:\n\n```bash\njeju package validate \u003Cbundle>\njeju package pack \u003Cbundle> --out .jeju-dev\u002Fpackages\u002F\u003Cname>\njeju package add .jeju-dev\u002Fpackages\u002F\u003Cname>\u002F\u003Cnamespace-name>-\u003Cversion>.jpkg\njeju run --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> package:\u002F\u002F\u003Cnamespace\u002Fname>@\u003Cversion> \"\u003Csample input>\"\njeju view --runs-dir .jeju-dev\u002Fruns\u002F\u003Cname> package:\u002F\u002F\u003Cnamespace\u002Fname>@\u003Cversion>\n```\n\nWhen only adding or editing authoring docs, `go test .\u002F...` is not required\nunless source code changed.\n\n## Source Lookup Advice\n\nIf repository access is available, inspect source and docs before inventing\nfields or behavior. Prefer conceptual search terms over hardcoded paths because\nthe repository can be reorganized:\n\n```bash\nrg -n \"AgentManifest|ToolConfig|finalAnswerExists|workspace.path|permissions.access|compressionThreshold\"\nrg -n \"config.LoadFile|config.Validate|compiler.Compile|runtime.Run\"\nrg -n \"uses: command|uses: http|allowed-tools|active skills|evaluate|output.schema\"\nrg -n \"AgentPackage|jeju.package.yaml|package add|package:\u002F\u002F|JEJU_REGISTRY_INDEX\"\nrg -n \"uses: agent|agentRun|AgentToolConfig|SpanSubagent|child-runs|code-review-with-agent-tools\"\nrg -n \"AgentTeam|TeamDecision|finish.task_id|lead.synthesisAgent|lead_worker|jeju team run\"\n```\n\nLook for current docs, schema structs, defaults, validators, compiler behavior,\nruntime loop behavior, policy checks, tool implementations, skill loading,\nevaluator behavior, evolve behavior, and concrete examples.\n",{"name":5,"metadata":24,"description":7},{"version":25,"short-description":26},"0.4.1","Create focused Jeju agents from repeated workflows","master","afca47e5d4ee6bc4b2f672d7dfa6b876e070b583","skills\u002Fjeju-agent-builder",5,"https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju","https:\u002F\u002Fjeju.rickoyu.com","https:\u002F\u002Fgithub.com\u002Fcosmtrek","https:\u002F\u002Frickoyu.com","2026-07-31 15:47:07",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add cosmtrek\u002Fjeju --skill jeju-agent-builder",{"tool":42,"command":43},"bunx","bunx skills add cosmtrek\u002Fjeju --skill jeju-agent-builder",{"tool":45,"command":46},"pnpm","pnpm dlx skills add cosmtrek\u002Fjeju --skill jeju-agent-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Fskills\u002Fjeju-agent-builder\u002FSKILL.md",true,[],[51,58,65,72,79],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M74Z874ERJJC03DP7QABHGJ4","long-horizon-audit","Exercise context compression by requiring many large tool observations before a final report.","https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Flong-horizon\u002Fskills\u002Flong-horizon-audit\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M74Z85AEHKGG388B61F25WV5","deep-research","Conduct web-backed research with Exa search and write a Markdown report. Use when a task asks for current research, market\u002Fnews analysis, or source-grounded synthesis.","https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fdeep-research\u002Fskills\u002Fdeep-research\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M74Z83723E4GWK99ZMBNKHV0","agent-writer","Write a short Markdown note. Use when a local file write test or keyword count check is needed.","https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fagent\u002Fskills\u002Fagent-writer\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74Z80HRX9PVBEJSVSKTX2CB","jeju-writing","Use Jeju writing packages as specialized workers for article review, Chinese prose polishing, full rewrites, and translation. Use when the user asks to review a draft, improve Chinese writing, rewrite an article, translate text, or delegate writing work to bounded Jeju agents.","https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Fskills\u002Fjeju-writing\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74Z7V3T9VVR6MEBG9771KX2","skillsbench-lite","Reusable procedure for small multi-domain SkillsBench-like tasks that require selecting a domain, computing a concise answer, and returning strict JSON.","https:\u002F\u002Fgithub.com\u002Fcosmtrek\u002Fjeju\u002Fblob\u002Fmaster\u002Fexamples\u002Fskillsbench-lite-agent\u002Fskills\u002Fskillsbench-lite\u002FSKILL.md",[],[]]