@if (hasAnyContent()) {

@if (sectionExpanded()) {
@if (isAgent()) {
@if (model(); as m) {
{{ texts.fields.model }}
{{ m }}
} @if (tools().length) {
{{ texts.fields.tools }}
@for (t of tools(); track t) { }
} @if (skills().length) {
{{ texts.fields.skills }}
@for (s of skills(); track s) { }
} @if (disallowedTools().length) {
{{ texts.fields.disallowedTools }}
@for (d of disallowedTools(); track d) { }
} @if (permissionMode(); as pm) {
{{ texts.fields.permissionMode }}
{{ pm }}
} @if (maxTurns() !== null) {
{{ texts.fields.maxTurns }}
{{ maxTurns() }}
} @if (effort(); as ef) {
{{ texts.fields.effort }}
{{ ef }}
} @if (memory(); as me) {
{{ texts.fields.memory }}
{{ me }}
} @if (background()) {
{{ texts.fields.background }}
true
} @if (isolation(); as iso) {
{{ texts.fields.isolation }}
{{ iso }}
}
@if (initialPrompt(); as ip) {
@if (initialPromptExpanded()) {
{{ ip }}
} @else {

{{ ip.slice(0, 80) }}{{ ip.length > 80 ? '…' : '' }}

}
} @if (mcpServers().length) {
{{ texts.fields.mcpServers }}
    @for (s of mcpServers(); track s.name) {
  • {{ s.name }} @if (s.command !== null) { {{ s.command }} }
  • }
} @if (hooks().length) {
{{ texts.fields.hooks }}
    @for (h of hooks(); track h.event) {
  • {{ h.event }} @if (h.keys.length) { @for (k of h.keys; track k; let last = $last) { {{ k }}{{ last ? '' : ', ' }} } }
  • }
} } @else if (isSkillOrCommand()) { @let sb = skillBase();
@if (sb.when_to_use !== null) {
when_to_use
{{ sb.when_to_use }}
} @if (sb.argumentHint !== null) {
argument-hint
{{ sb.argumentHint }}
} @if (sb.arguments.length) {
arguments
@for (a of sb.arguments; track a) { }
} @if (sb.allowedTools.length) {
allowed-tools
@for (t of sb.allowedTools; track t) { }
} @if (sb.model !== null) {
model
{{ sb.model }}
} @if (sb.effort !== null) {
effort
{{ sb.effort }}
} @if (sb.context !== null) {
context
{{ sb.context }}
} @if (sb.agent !== null) {
agent
{{ sb.agent }}
} @if (sb.shell !== null) {
shell
{{ sb.shell }}
} @if (sb.paths.length) {
paths
@for (p of sb.paths; track p) { }
} @if (sb.disableModelInvocation) {
disable-model-invocation
true
} @if (sb.userInvocable !== null) {
user-invocable
{{ sb.userInvocable }}
}
}
}
}