diff --git a/.agents/skills/nbot-wf/SKILL.md b/.agents/skills/nbot-wf/SKILL.md new file mode 100644 index 0000000..36e729b --- /dev/null +++ b/.agents/skills/nbot-wf/SKILL.md @@ -0,0 +1,8 @@ +--- +name: nbot-wf +description: When anything to do with workflows comes up, use the nbot-wf MCP tools; if they are not available, run nbot-wf install and restart the session. +--- + +When anything to do with workflows comes up, use the nbot-wf MCP tools; if they are not available, run `nbot-wf install` and restart the session. + +The `get_workflow_guide` tool explains how to find, run, watch, answer, stop, resume, write and update a workflow. diff --git a/.agents/workflows/ABOUTME.md b/.agents/workflows/ABOUTME.md index c90132c..a965ada 100644 --- a/.agents/workflows/ABOUTME.md +++ b/.agents/workflows/ABOUTME.md @@ -5,7 +5,7 @@ nbot-wf workflow files for this repo. ## journal-triage `journal-triage.toml` reads the journald log of this machine, has Claude Opus triage it -against this repo, and writes a report ranked by urgency to `~/journal-reports/-.md`. +against this repo, and writes a report ranked by urgency to `.tmp/journal-reports/-.md` (gitignored). - `journal-triage/collect.sh`: pulls warnings (and worse), failed units and a digest of unique messages into the run folder. diff --git a/.agents/workflows/journal-triage.toml b/.agents/workflows/journal-triage.toml index 444ef7b..bf8479e 100644 --- a/.agents/workflows/journal-triage.toml +++ b/.agents/workflows/journal-triage.toml @@ -34,8 +34,8 @@ issues = { type = "list", items = { title = { type = "string" }, urgency = { typ kind = "shell" needs = ["triage"] run = [ - "mkdir -p \"$HOME/journal-reports\"", - "S={{ steps.triage.outputs.summary }}; H={{ inputs.host }}; f=\"$HOME/journal-reports/$H-$(date +%Y-%m-%d-%H%M).md\"; printf '%s\\n' \"$S\" > \"$f\"; echo \"report=$f\" >> \"$NBOT_WF_OUTPUTS\"; echo \"Report written to $f\"", + "R={{ inputs.repo }}; mkdir -p \"$R/.tmp/journal-reports\"", + "S={{ steps.triage.outputs.summary }}; H={{ inputs.host }}; R={{ inputs.repo }}; f=\"$R/.tmp/journal-reports/$H-$(date +%Y-%m-%d-%H%M).md\"; printf '%s\\n' \"$S\" > \"$f\"; echo \"report=$f\" >> \"$NBOT_WF_OUTPUTS\"; echo \"Report written to $f\"", ] [step.report.outputs] diff --git a/.codex/config.toml b/.codex/config.toml new file mode 100644 index 0000000..2aa988e --- /dev/null +++ b/.codex/config.toml @@ -0,0 +1,3 @@ +[mcp_servers.nbot-wf] +command = "nbot-wf" +args = ["mcp"] diff --git a/.gitignore b/.gitignore index f5b4078..7a8168d 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ docs # Zed local settings (machine-local MCP tokens live here) .zed/settings.local.json + + +.nbot-wf diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..f054c79 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,10 @@ +{ + "mcpServers": { + "nbot-wf": { + "command": "nbot-wf", + "args": [ + "mcp" + ] + } + } +}