一键导入
vajra
Use when asked about Vajra — the background coding agent. Covers how to assign work, create workflows/skills/agents, monitor runs, and troubleshoot.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when asked about Vajra — the background coding agent. Covers how to assign work, create workflows/skills/agents, monitor runs, and troubleshoot.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for Vajra code review stages to perform a blocking review of the implementation, writing findings or approval.
Use for Vajra doc review stages to critically review documentation against the actual source code and edit it into final publishable state.
Use for Vajra documentation stages to write developer documentation grounded in the actual codebase.
Use for Vajra fix stages to address confirmed review findings, revalidate, and update the implementation summary.
Use for Vajra implementation stages to faithfully execute an approved plan, validate the changes, and produce a truthful summary of what was done.
Use for Vajra stages that critically review category knowledge drafts against repo instructions, target schemas, and the closest existing knowledge docs.
| name | vajra |
| description | Use when asked about Vajra — the background coding agent. Covers how to assign work, create workflows/skills/agents, monitor runs, and troubleshoot. |
Vajra picks up Linear issues, routes them through multi-step pipelines, and ships PRs. It polls Linear every 30s for issues assigned to it.
Todo and In Progress)The issue description is injected directly into every agent prompt as {{ issue.description }}. Write it like you're briefing a developer — scope, constraints, files to touch, expected behavior. The better the description, the better the output.
Issues are routed to workflows by Linear label. Configure routing in WORKFLOW.md under workflow_routing.by_label.
The workflow with is_default: true handles issues without a matching label.
Command templates that run agents. Example:
claude --model {{ model }} -p {{ prompt }}codex exec --model {{ model }} {{ prompt }}Named configurations that combine a backend + model + prompt. Each pipeline stage references an agent.
Markdown instruction files in orchestrator/skills/. Each skill is a directory with a SKILL.md. Agents reference them in their prompt. Skills contain domain knowledge — how to write plans, how to review code, repo conventions, etc.
Named pipelines defined as DOT graphs. Each has a success state and optional label routing. A workflow chains multiple agent stages together.
Each run produces artifacts in .vajra/run/ (workspace). Key artifacts: plan.md, implementation-summary.md, code-review.md, pr-body.md.
Create the Linear label in Linear first (must exist before any issue uses it)
Create the DOT pipeline file:
digraph MyPipeline {
graph [goal="What this pipeline does"]
start [shape=Mdiamond]
exit [shape=Msquare]
step_one [type="agent", label="Step One", agent="my-writer", artifact_path=".vajra/run/output.md"]
step_two [type="agent", label="Step Two", agent="my-reviewer", artifact_path=".vajra/run/output.md"]
start -> step_one -> step_two -> exit
}
Add skills (optional) to orchestrator/skills/vajra-my-skill/SKILL.md
Add to WORKFLOW.md: workflow definition, label routing, and agent definitions
start (Mdiamond) and exit (Msquare) nodes are requiredtype="agent", agent="agent-name", and artifact_pathartifact_path is where the agent writes its output (checked for non-empty after stage runs)type="tool" with a command attribute for shell commandslabel attributes for routing (lgtm, revise, escalate)Available in agent prompts via Liquid templating:
{{ issue.identifier }} — e.g. ENG-215{{ issue.title }} — issue title{{ issue.description }} — full issue description (the main input)When Vajra creates a PR and it receives review feedback:
| Command | What it shows |
|---|---|
vajra state | Active runs, retries, barriers |
vajra runs | Recent run history with status |
vajra run_detail (issue + attempt) | Full detail of a specific run |
vajra config | Current configuration |
vajra agents | All configured agents |
vajra skills | All skills |
vajra workflows | All workflows with routing |
vajra workflow_detail (name) | Full detail of a workflow |
GET /state — orchestrator stateGET /runs?status=running&limit=10 — filtered run listGET /runs/:issue/:attempt — run detail with per-stage breakdownGET /runs/:issue/:attempt/stages/:stageId — single stage detailGET /events — SSE event stream (real-time)GET /config — full config snapshotGET /config/agents — list agentsGET /config/backends — list backendsGET /config/workflows — list workflowsGET /config/workflows/:name — workflow detailGET /config/skills — list skillsPUT /config/agents/:name -> {backend, model, prompt, reasoning_effort?, timeoutMs?}
PUT /config/skills/:name -> {content: "markdown content"}
PUT /config/workflows/:name -> {rawDot, successState, inspectPr?, labels?, isDefault?}
PUT /config/backends/:name -> {command}
PUT /config -> update top-level config
DELETE /config/agents/:name
DELETE /config/skills/:name
DELETE /config/workflows/:name
execution.maxConcurrentAgents in WORKFLOW.mdblocks relations to non-terminal issues are held until blockers resolve| Problem | Check |
|---|---|
| Issue not picked up | Correct assignee? State is Todo/In Progress? Not blocked by another issue? |
| Wrong workflow | Label exists in Linear? Label matches workflow_routing.by_label? Check config |
| Stage failing | Check run detail for the issue — shows per-stage errors and output |
| Run stuck | May need issue state change to clear the redispatch barrier. Check state for barriers |
| PR not created | Is inspect_pr: true on the workflow? Does the prepare_pr stage exist? |
| Revision not triggered | GitHub webhook configured? Is the reviewer submitting "Changes Requested"? |