Skip to content
Back to skills

Agent File

ASecurity

Prints the absolute path of a workflows-core agent's definition file, for a sibling plugin's command that saves that agent's dispatch in its run folder.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add ihudak/ai-workflows --skill agent-file --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent File?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent File
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ihudak-agent-file/badge)](https://www.skillsdirectory.com/skills/ihudak-agent-file)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-file
description: Prints the absolute path of a workflows-core agent's definition file, for a sibling plugin's command that saves that agent's dispatch in its run folder.
user-invocable: false
allowed-tools: Bash
---

# agent-file — a `workflows-core` agent's definition file

The argument is one agent's name, as `subagent_type: "workflows-core:<agent>"` names it: `code-scanner`, `doc-fixer`. A command in another plugin needs that agent's file to save the agent's dispatch in its run folder — the `--agent-file` of `workflows-core:run-folder`'s `run-dispatch` and `run-writer`, and the file `changed-agents` passes — and its own `${CLAUDE_PLUGIN_ROOT}` names its own plugin, not this one. This text is what your run executes: it reads nothing more.

## The call

Where the argument does not match `^[a-z0-9-]+$` — it is empty, or holds a space, a `.`, a `/` or a quote — make no call: the skill's result is nothing.

Otherwise make one Bash call, `<agent>` being the argument:

```bash
test -f "${CLAUDE_PLUGIN_ROOT}/agents/<agent>.md" && printf '%s\n' "${CLAUDE_PLUGIN_ROOT}/agents/<agent>.md"
```

## What it prints

- **A path** — the agent's definition file. Pass it, between single quotes, as `--agent-file` for every dispatch of that agent this run saves, and as `<file>` in `changed-agents`' `--agent <agent>=<file>`. Call the skill again for that agent only where this line is no longer in front of you.
- **Nothing** — no such agent ships here (the call exits 1 and prints nothing), or the argument was refused. That is no error, and you print no `NOTE:`: the dispatch runs unsaved, as it does without a run folder, with no `dispatch`, `writer` or `done` call for it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.