durable-workflow-runtime:inject

Inject durable workflow routing instructions into AGENTS.md and CLAUDE.md files.

Updated May 13, 2026
One-click install
npx skills add https://github.com/onesmash/slm-as-harness --skill durable-workflow-runtime-inject-onesmash
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: durable-workflow-runtime:inject
Source: https://github.com/onesmash/slm-as-harness/tree/main/skills/durable-workflow-runtime/inject
Command: npx skills add https://github.com/onesmash/slm-as-harness --skill durable-workflow-runtime-inject-onesmash

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Repository agent instruction files like AGENTS.md and CLAUDE.md lack awareness of available durable workflows, so future agents cannot discover or route tasks to the durable-workflow-runtime without inspecting runtime internals. ## Core Features & Use Cases - Marked Block Injection: Writes a workflow routing block between durable-workflow-runtime start and end markers, creating, appending, or replacing the block while preserving all surrounding content. - Workflow Catalog Publishing: Reads workflow-binding.json from the runtime skill and renders each workflow_id and description as XML-escaped entries in the injected block. - Safe Target Handling: Defaults to AGENTS.md and CLAUDE.md, supports custom --target-file paths, and rejects ambiguous files with mismatched or multiple marker pairs. - Use Case: After adding a new workflow to the runtime, run the inject script against your repository so every agent reading AGENTS.md immediately sees the updated workflow catalog and invocation format. ## Quick Start Ask the AI to run the inject script with your repository root to publish the current durable workflow catalog into AGENTS.md and CLAUDE.md.

Frequently Asked Questions about durable-workflow-runtime:inject

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject workflow instructions into AGENTS.md or CLAUDE.md?▼

Run scripts/inject.py with --repo-root pointing at your target repository. The script writes a marked durable-workflow-runtime block into AGENTS.md and CLAUDE.md by default, or into files specified with --target-file.

How to update the workflow catalog in repo agent instructions?▼

Re-run inject.py after editing workflow-binding.json in the runtime skill. The script reads the current workflows list and replaces the existing marked block in place, preserving all content outside the markers.

Does the inject script run or start any workflows?▼

No, injection is a documentation surface only. It never calls bridge.py start, resume, or preflight, does not create run state, and does not edit workflow definitions or workflow-binding.json.

Why does inject.py fail with a marker error?▼

The script rejects target files containing only one marker or multiple start/end marker pairs because the replacement boundary is ambiguous. Fix the file to have zero markers or exactly one matched pair, then re-run.

Can I inject into instruction files other than AGENTS.md?▼

Yes, pass --target-file one or more times with safe relative paths, such as docs/agent-instructions.md. Absolute paths, parent traversal, and unsupported characters are rejected for safety.