Agentclash agent build author

From agentclash/agentclash · View interactive version

Agentclash agent build author is an AI agent skill from the GitHub repository agentclash/agentclash. Use when creating, editing, validating, or readying AgentClash agent builds and build versions, including agent identity, spec JSON, prompts, model/runtime expectations, tool bindings, and version readiness.

How to use this skill

Skill file

AgentClash Agent Build Author

Purpose

Create or update an AgentClash agent build and draft build version so it has a source-backed spec, a validation-clean prompt policy, and a ready build version ID that deployment setup can consume.

Use When

Do Not Use When

Inputs Needed

Environment

Use hosted production by default:

export AGENTCLASH_API_URL="https://api.agentclash.dev"
agentclash doctor

Build commands need a resolved workspace for list/create. Workspace resolution follows the normal CLI setup path, so prefer agentclash workspace use <workspace-id> or AGENTCLASH_WORKSPACE over hard-coding IDs into reusable notes.

Procedure

  1. Verify CLI and workspace readiness with agentclash doctor.
  2. Run agentclash build list and decide whether to create a new build or version an existing build.
  3. Create the build when needed with agentclash build create --name ... --description ....
  4. Draft version-spec.json from the exact build-version fields below. Keep unknown or not-yet-used spec sections as JSON objects, not prose.
  5. Create a draft build version with agentclash build version create <BUILD_ID> --spec-file version-spec.json.
  6. Inspect the draft with agentclash build version get <VERSION_ID> --json.
  7. Validate with agentclash build version validate <VERSION_ID> --json so a coding agent can inspect valid and errors. Fix any errors by editing the spec and running agentclash build version update <VERSION_ID> --spec-file version-spec.json.
  8. Mark ready only after validation passes and the user confirms the draft is deployable: agentclash build version ready <VERSION_ID>.
  9. Report the agent_build_id, build_version_id, version_status, agent kind, and deployment prerequisites.

Spec Fields

Agent build creation accepts:

{
  "name": "Support Triage Agent",
  "description": "Answers support benchmark cases with cited evidence."
}

Build version creation and draft update accept:

{
  "agent_kind": "llm_agent",
  "interface_spec": {
    "input": "challenge case prompt plus attached artifacts",
    "output": "JSON answer matching output_schema"
  },
  "policy_spec": {
    "instructions": "Read the full case, inspect provided artifacts, cite evidence, and return only JSON."
  },
  "reasoning_spec": {
    "strategy": "inspect evidence before answering"
  },
  "memory_spec": {},
  "workflow_spec": {
    "steps": ["read input", "inspect artifacts", "answer"]
  },
  "guardrail_spec": {
    "refuse_if": ["missing required evidence"]
  },
  "model_spec": {
    "preferred_model": "gpt-5.5",
    "temperature": 0.1
  },
  "output_schema": {
    "type": "object",
    "required": ["answer"],
    "properties": {
      "answer": { "type": "string" },
      "evidence": {
        "type": "array",
        "items": { "type": "string" }
      }
    }
  },
  "trace_contract": {
    "must_record": ["tool_calls", "final_answer"]
  },
  "publication_spec": {
    "version_notes": "Initial support triage build."
  },
  "tools": [
    {
      "tool_id": "<WORKSPACE_TOOL_UUID>",
      "binding_role": "evidence_lookup",
      "binding_config": {}
    }
  ],
  "knowledge_sources": [
    {
      "knowledge_source_id": "<KNOWLEDGE_SOURCE_UUID>",
      "binding_role": "reference",
      "binding_config": {}
    }
  ]
}

Required readiness invariant: policy_spec must contain an instructions field. The current validation also checks that agent_kind is one of the supported enum values. Omitted JSON spec objects default to {}; omitted tool and knowledge-source bindings default to empty lists.

Commands

Verify setup and inspect existing builds:

export AGENTCLASH_API_URL="https://api.agentclash.dev"
agentclash doctor
agentclash build list
agentclash build get <BUILD_ID>

Create a build:

agentclash build create \
  --name "Support Triage Agent" \
  --description "Answers support benchmark cases with cited evidence."

Create, inspect, validate, update, and ready a build version:

agentclash build version create <BUILD_ID> --spec-file version-spec.json
agentclash build version get <VERSION_ID> --json
agentclash build version validate <VERSION_ID> --json
agentclash build version update <VERSION_ID> --spec-file version-spec.json
agentclash build version ready <VERSION_ID>

When only the agent kind needs to be set or overridden at creation time:

agentclash build version create <BUILD_ID> --agent-kind llm_agent --spec-file version-spec.json

Expected Output

Failure Modes

Safety Notes

Report Back Format

Workspace: <workspace-id>
Build: <name> (<agent_build_id>)
Version: v<version_number> (<build_version_id>)
Status: <draft | ready>
Agent kind: <agent_kind>
Validation: <valid | errors>
Runtime assumptions: <provider/model/runtime/tool notes>
Next skill: agentclash-runtime-resources-setup | agentclash-agent-deployment-setup
Notes: <version notes, immutable-ready caveats, or blockers>

Related Skills

Related Docs

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.