modify-task-tpl

modify-task-tpl is a skill for Claude Code, Codex from ccfos/nightingale. It costs 168 tokens per session (7,747 once invoked), scanned E, original, Apache-2.0.

A guide for writing and changing Nightingale self-healing scripts. Nightingale, also called n9e, is a monitoring platform that can run a script on a machine when an alert occurs.

In plain words
What is it for?
Use it to create or modify scripts for jobs such as cleaning disk space or logs, restarting services, dumping a process, or reloading Nginx after an alert.
Why use it?
It helps distinguish the script that fixes a problem from the alert rule, notification message, and notification channel that trigger or report it.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ccfos/nightingale/modify-task-tpl
Any agent
npx skills add ccfos/nightingale --skill modify-task-tpl
Clone the repo
git clone --depth 1 https://github.com/ccfos/nightingale

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modify-task-tpl

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccfos/nightingale/modify-task-tpl.svg)](https://agentmods.dev/skills/ccfos/nightingale/modify-task-tpl)
Your own site
<a href="https://agentmods.dev/skills/ccfos/nightingale/modify-task-tpl"><img src="https://agentmods.dev/badge/skills/ccfos/nightingale/modify-task-tpl.svg" alt="Measured on agentmods" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00168 $0.07747
Opus 5 $0.00084 $0.03874
Sonnet 5 $0.00034 $0.01549
Haiku 4.5 $0.00017 $0.00775

Measured 3d ago against content hash afd7bbc2089b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade E, and why

modify-task-tpl scanned grade E with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

| `curl <non-whitelisted URL> \| sh`, `wget ... -O - \| bash` | Remote code injection |

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| `rm -rf /` / `rm -rf /*` / `rm -rf $UNSET_VAR/` | Wipes the entire disk |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `curl <non-whitelisted URL> \| sh`, `wget ... -O - \| bash` | Remote code injection |
aiagent/skill/embedded/builtin/modify-task-tpl/SKILL.md · 733 lines

How it starts

The opening of the file, as written. The whole thing — 733 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nightingale (n9e) Alert Self-Healing Script (task_tpl) Generation

Nightingale alert self-healing is the ibex subsystem: when an alert rule's callbacks field is written as ${ibex}/<task_tpl_id>, after an alert event fires it pulls up the script of the corresponding task_tpl on the machine matching the current event's TargetIdent and runs it on that machine's categraf. The script receives the labels of the current alert through stdin.

This skill focuses on writing/modifying the task_tpl.script field itself—it does not cover creating alert rules, configuring recipients, or editing notification templates.


1. Scope: First Determine Which Layer the User Is Changing

The Nightingale alert pipeline has four layers, and each goes through a different skill:

Layer Entity Key files Handled by this skill
Self-healing script task_tpl task_tpl table models/task_tpl.go, alert/sender/ibex.go Yes
Alert rule alert_rule table models/alert_rule.go No (use create-alert-rule)
Notification template notify_tpl table models/notify_tpl.go No (use generate-message-template)
Notification channel notify_channel table models/notify_channel.go No (use notify-channel-copilot)

Judgment criteria: the user's wording contains "script/shell/bash/python/jq/parse/execute/timeout"—this skill; contains "PromQL/threshold/trigger condition"—alert rule; contains "template/body/field rendering"—message template; contains "URL/Webhook/signature"—notification channel.


2. Data Model (What the User Can Fill In, Which Fields Nightingale Actually Uses)

TaskTpl (models/task_tpl.go:17-35)

Field Type Meaning
id int64 Primary key; this is what ${ibex}/<id> in the alert rule callbacks references
group_id int64 Business group (permission boundary, validated by CanDoIbex)
title string Template name; at execution time it is concatenated into <title> FH: <hostname> and written as the task title
script string The main field this skill operates on
args string Command-line arguments. If the caller does not pass args when the alert fires and executes, the default value here is used
tags string Space-separated tags, used for template list filtering/classification, does not affect execution
account string Which user identity to run as on the target machine (e.g. root)
batch int Number of hosts running concurrently per batch. Self-healing usually only runs on the host that triggered it, so 0 is fine
tolerance int Allowed failure count within a batch. Leave at 0 for single-host self-healing scenarios
timeout int Seconds. 0 → defaults to 30; > 5 days → rejected
pause string Pause schedule between batches (cron style). Basically unused for self-healing

Read the full file on GitHub · 733 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 733 lines · 168 tokens per session scan E afd7bbc2089b

Subscribe to this mod's changes

modify-task-tpl is a skill published in the GitHub repository ccfos/nightingale (13,271 stars, last pushed 2d ago), licensed Apache-2.0. It adds 168 tokens to every session and 7,747 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.