agentleFS
Bazza1982Bazza1982/HASHI/skills/ngr/SKILL.md

ngr

Skill1 starsChanged 5 days agoMITView on GitHub

Use when creating, listing, editing, or running packaged Nagare multi-agent workflows in HASHI.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All paths below are relative to the HASHI repository root.

    line 13
  2. Distinctive:

    Run an interactive packaging session with the user to design and create a complete NGR workflow.

    line 21
  3. Distinctive:

    Ask the user questions one section at a time.

    line 31
  4. Distinctive:

    After each section, confirm your understanding and let the user correct or refine.

    line 40
  5. Very specific:

    Write the workflow YAML to flow/workflows/library/<name>.yaml

    line 82
  6. Very specific:

    Create the workspace directory flow/workspaces/<name>/

    line 83
  7. Very specific:

    Create the skill file at skills/<kebab-case-name>/SKILL.md using the template below

    line 84
  8. Very specific:

    Read the existing workflow YAML at flow/workflows/library/<name>.yaml

    line 150
  9. Very specific:

    Read the existing skill file at skills/<kebab-case-name>/SKILL.md

    line 151
  10. Distinctive:

    Ask what they want to change

    line 153
  11. Distinctive:

    Write the updated files when approved

    line 155

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Parse the first word of the user's command to determine which action to take:

  • new <name> → Package a new NGR workflow (see below)
  • list → List all available packaged NGR workflows
  • edit <name> → Modify an existing packaged NGR workflow
  • run <name> → Directly trigger a packaged workflow by name

All paths below are relative to the HASHI repository root. Resolve that root from BRIDGE_PROJECT_ROOT when it is set; otherwise use the current Git repository root. Never embed an operator-specific absolute path in a workflow.


Action: new <name>

Run an interactive packaging session with the user to design and create a complete NGR workflow.

Paths

  • Workflow YAML: flow/workflows/library/<name>.yaml
  • Skill file: skills/<kebab-case-name>/SKILL.md
  • Workspace: flow/workspaces/<name>/

Step 1 — Understand the workflow

Ask the user questions one section at a time. Do not dump all questions at once. Cover:

  1. Purpose: What does this workflow accomplish? What is the final deliverable?
  2. Steps: What are the major stages? (e.g. research → draft → review → publish)
  3. Agents: For each step, what kind of agent is needed? What is their role?
  4. Inputs: What information must the user provide before the workflow starts? (pre-flight fields)
  5. Outputs: What files or artifacts should be produced?
  6. Dependencies: Which steps must happen before others? Can any run in parallel?

After each section, confirm your understanding and let the user correct or refine. Continue until the user confirms the design is complete.

Step 2 — Draft the workflow YAML

Generate a Nagare workflow YAML based on the conversation. Structure:

id: <name>
name: <Human-readable name>
description: <One-line description>
version: "1.0"

pre_flight:
  fields:
    - key: <field_key>
      label: <Human prompt>
      required: true|false

workers:
  - id: <agent_id>
    role: <role description>
    agent_md: flow/agents/<role>/AGENT.md
    timeout: <seconds>

steps:
  - id: <step_id>
    agent: <agent_id>
    depends_on: []
    prompt: |
      <Task instructions. Use {pre_flight.field_key} for user inputs.
      Use {artifacts.<key>} to reference outputs from previous steps.>
    artifacts_produced:
      - key: <artifact_key>
        path: <filename>

Show the draft YAML to the user and ask for feedback. Revise until approved.

Step 3 — Create the files

Once the user approves the design:

  1. Write the workflow YAML to flow/workflows/library/<name>.yaml
  2. Create the workspace directory flow/workspaces/<name>/
  3. Create the skill file at skills/<kebab-case-name>/SKILL.md using the template below
  4. Confirm all files were created and show a summary

Skill file template for packaged workflow

---
name: <kebab-case-name>
description: Use when running the <name> NGR workflow to <one-line description>.
---

# <Human-readable name>

Run the **<name>** Nagare workflow.

## What this workflow does

<2-3 sentence description of the workflow's purpose and output>

## How to start

1. Collect the following inputs from the user if not already provided:
<list each pre_flight field as: - **<label>**: <description>>

2. Confirm the inputs with the user, then launch:

python flow/flow_trigger.py start <name>
--input "<field_key>=<value>"
--input "<field_key>=<value>"


3. Monitor the run:

python flow/flow_trigger.py status <run_id>


4. When the workflow completes, check the workspace at:
`flow/workspaces/<name>/`
and report the outputs to the user.

## On failure

If a step fails, check:
1. `flow/runs/<run_id>/logs/flow_runner.log` for step errors
2. `flow/runs/<run_id>/workers/<agent_id>/logs/` for agent-level errors

Report the error and ask the user whether to retry or abort.

Action: list

Show all packaged NGR workflows by scanning skills/ for skill files that trigger NGR workflows.

For each, display:

  • Skill id
  • Description
  • Workflow YAML path (if exists)

Action: edit <name>

  1. Read the existing workflow YAML at flow/workflows/library/<name>.yaml
  2. Read the existing skill file at skills/<kebab-case-name>/SKILL.md
  3. Show the user what currently exists
  4. Ask what they want to change
  5. Make the changes interactively, same as the new packaging process
  6. Write the updated files when approved

Action: run <name>

Collect any required pre-flight inputs from the user (check the workflow YAML's pre_flight.fields), then launch:

python flow/flow_trigger.py start <name> [--input key=value ...]

Monitor and report back.


Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.