Template Variables Reference — Handlebars 模板引擎 Template Variables Reference, overcut-playbooks, community, Handlebars 模板引擎, ide skills, 模板变量引用, 输出引用语法, 结构化输出, Overcut 模板变量

v1.0.0

关于此技能

非常适合需要使用 Handlebars 模板引擎进行动态模板解析的开发者代理。 模板变量引用是 Overcut 中用于在步骤参数字段中插入动态值的机制

功能特性

支持 Handlebars 模板引擎
步骤参数字段中使用模板变量
输出引用语法支持
结构化输出支持

# 核心主题

overcut-ai overcut-ai
[0]
[0]
更新于: 3/12/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 9/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
9/11
Quality Score
60
Canonical Locale
en
Detected Body Locale
en

非常适合需要使用 Handlebars 模板引擎进行动态模板解析的开发者代理。 模板变量引用是 Overcut 中用于在步骤参数字段中插入动态值的机制

核心价值

赋予代理在运行时使用 Handlebars 解析模板的能力,提供结构化输出用于基础设施步骤,如 git.clone 和 repo.identify,并实现与 Overcut 的无缝集成。

适用 Agent 类型

非常适合需要使用 Handlebars 模板引擎进行动态模板解析的开发者代理。

赋予的主要能力 · Template Variables Reference

使用动态数据解析 git.clone 和 repo.identify 步骤的模板
使用 Handlebars 语法为基础设施步骤生成结构化输出
自动化 Overcut 工作流的模板解析

! 使用限制与门槛

  • 需要 Handlebars 模板引擎
  • 仅限于基础设施步骤,如 git.clone 和 repo.identify
  • 需要 Overcut 工作流集成

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

Template Variables Reference 是什么?

非常适合需要使用 Handlebars 模板引擎进行动态模板解析的开发者代理。 模板变量引用是 Overcut 中用于在步骤参数字段中插入动态值的机制

如何安装 Template Variables Reference?

运行命令:npx killer-skills add overcut-ai/overcut-playbooks/Template Variables Reference。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

Template Variables Reference 适用于哪些场景?

典型场景包括:使用动态数据解析 git.clone 和 repo.identify 步骤的模板、使用 Handlebars 语法为基础设施步骤生成结构化输出、自动化 Overcut 工作流的模板解析。

Template Variables Reference 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

Template Variables Reference 有哪些限制?

需要 Handlebars 模板引擎;仅限于基础设施步骤,如 git.clone 和 repo.identify;需要 Overcut 工作流集成。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add overcut-ai/overcut-playbooks/Template Variables Reference。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    Template Variables Reference 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

Template Variables Reference

了解 Overcut 中的模板变量引用语法,掌握 Handlebars 模板引擎的使用方法

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Template Variables Reference

Overcut uses Handlebars as its template engine. Templates appear in step params fields (especially repoFullName and branch in git.clone) and are resolved at runtime before each step executes.

Output Reference Syntax

Infrastructure Steps (git.clone, repo.identify)

Infrastructure steps produce structured output. Reference the entire output object:

{{outputs.step-id}}

Example — repo.identify output fed to git.clone:

json
1{ 2 "repoFullName": "{{outputs.identify-repos}}" 3}

The template engine auto-stringifies objects/arrays into readable JSON when printed directly, while preserving property access for nested fields.

Agent Steps (agent.run, agent.session)

Agent steps produce a message field containing the agent's text output:

{{outputs.step-id.message}}

Example — referencing previous agent output in a prompt:

markdown
1**Previous step output:** 2 3{{outputs.prep-context.message}}

This is how steps pass data to each other. The receiving step's instruction can include the template, and it gets resolved before the agent sees it.

Trigger Context Variables

All trigger context is available under {{trigger.*}}. The exact fields depend on the event type.

Common Fields (All Events)

{{trigger.repository.fullName}}     → "owner/repo"
{{trigger.repository.name}}         → "repo"
{{trigger.repository.owner}}        → "owner"
{{trigger.repository.defaultBranch}} → "main"
{{trigger.repository.provider}}     → "Github"
{{trigger.repository.description}}  → "Repo description"
{{trigger.repository.workspacePath}} → "/workspace/owner/repo"
{{trigger.repository.customInstructions}} → "Agent instructions for this repo"

{{trigger.actor.login}}             → "username"
{{trigger.actor.name}}              → "Display Name"
{{trigger.actor.email}}             → "user@example.com"
{{trigger.actor.type}}              → "User" | "Bot" | "Organization"

{{trigger.trigger.eventType}}       → "pull_request_opened"

Pull Request Events

{{trigger.pullRequest.number}}      → 42
{{trigger.pullRequest.title}}       → "Add feature X"
{{trigger.pullRequest.state}}       → "open" | "closed" | "merged"
{{trigger.pullRequest.baseBranch}}  → "main"
{{trigger.pullRequest.headBranch}}  → "feature/x"
{{trigger.pullRequest.author}}      → "username"
{{trigger.pullRequest.body}}        → "PR description"
{{trigger.pullRequest.draft}}       → true | false
{{trigger.pullRequest.labels}}      → ["bug", "priority:high"]
{{trigger.pullRequest.assignees}}   → ["user1", "user2"]
{{trigger.pullRequest.headSha}}     → "abc123..."
{{trigger.pullRequest.baseSha}}     → "def456..."
{{trigger.pullRequest.additions}}   → 150
{{trigger.pullRequest.deletions}}   → 30
{{trigger.pullRequest.changedFiles}} → 12
{{trigger.pullRequest.requestedReviewers}} → ["reviewer1"]
{{trigger.pullRequest.createdAt}}   → "2024-01-15T10:30:00Z"
{{trigger.pullRequest.updatedAt}}   → "2024-01-16T14:00:00Z"
{{trigger.pullRequest.mergeable}}   → true | false | null

Issue Events

{{trigger.issue.number}}            → 123
{{trigger.issue.title}}             → "Bug: X doesn't work"
{{trigger.issue.state}}             → "open" | "closed"
{{trigger.issue.labels}}            → ["bug", "high-priority"]
{{trigger.issue.assignees}}         → ["user1"]
{{trigger.issue.author}}            → "reporter"
{{trigger.issue.body}}              → "Issue description"
{{trigger.issue.workItemType}}      → "Bug" | "Task" | "Story"
{{trigger.issue.createdAt}}         → "2024-01-15T10:30:00Z"

Trigger-Specific Fields

{{trigger.trigger.label}}           → "security-vulnerability" (for label events)
{{trigger.trigger.labelAction}}     → "added" | "removed"
{{trigger.trigger.assignee}}        → "username" (for assign events)
{{trigger.trigger.slashCommand}}    → "review" (for manual triggers)
{{trigger.trigger.commentId}}       → "123456"
{{trigger.trigger.commentAuthor}}   → "username"
{{trigger.trigger.commentBody}}     → "Comment text"
{{trigger.trigger.commitAdded}}     → true (for PR edit with push)
{{trigger.trigger.reviewer}}        → "username" (for review events)
{{trigger.trigger.reviewState}}     → "approved" | "changes_requested"

CI Workflow Events

{{trigger.ciWorkflow.runId}}        → "12345678"
{{trigger.ciWorkflow.workflowName}} → "CI / Build & Test"
{{trigger.ciWorkflow.status}}       → "Failed"
{{trigger.ciWorkflow.conclusion}}   → "failure"
{{trigger.ciWorkflow.branch}}       → "main"
{{trigger.ciWorkflow.isPullRequest}} → true | false
{{trigger.ciWorkflow.pullRequestId}} → 42
{{trigger.ciWorkflow.commitSha}}    → "abc123..."
{{trigger.ciWorkflow.queuedAt}}     → "2024-01-15T10:30:00Z"
{{trigger.ciWorkflow.startedAt}}    → "2024-01-15T10:30:05Z"
{{trigger.ciWorkflow.completedAt}}  → "2024-01-15T10:35:00Z"
{{trigger.ciWorkflow.duration}}     → 295000
{{trigger.ciWorkflow.workflowUrl}}  → "https://github.com/org/repo/actions/runs/12345678"
{{trigger.ciWorkflow.jobCount}}     → 3

Note: CI workflow events may also include {{trigger.pullRequest.*}} fields when the CI run was triggered by a pull request (isPullRequest is true).

Handlebars Helpers

The template engine registers these helpers:

Comparison Helpers

handlebars
1{{#if (eq variable "value")}}...{{/if}} 2{{#if (neq variable "value")}}...{{/if}} 3{{#if (gt count 5)}}...{{/if}} 4{{#if (gte count 5)}}...{{/if}} 5{{#if (lt count 5)}}...{{/if}} 6{{#if (lte count 5)}}...{{/if}}

Logical Helpers

handlebars
1{{#if (and condition1 condition2)}}...{{/if}} 2{{#if (or condition1 condition2)}}...{{/if}} 3{{#if (not condition)}}...{{/if}}

Serialization Helper

handlebars
1{{json someObject}}

Outputs the object as pretty-printed JSON. Useful for debugging or passing structured data.

Iteration

handlebars
1{{#each items}} 2 {{this.name}} - {{this.value}} 3{{/each}}

Usage Locations

Templates are primarily used in:

  1. Step paramsrepoFullName, branch in git.clone
  2. Step instructions — Reference previous step outputs in agent prompts

Templates are not used in trigger conditions (those use the condition engine with operators).

For the complete field listing of all context types, see references/trigger-context-fields.md.

相关技能

寻找 Template Variables Reference 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具