Skip to content
Back to skills

Cli

ASecurity

[Architecture](index.md) · [Authoring an executable skill](extending-cli.md) Script dispatch is entirely driven by the indexed `script` frontmatter. There are no issue-audit or aiwg-pr path exceptions. Their declared wrapper scripts bridge to the installed native owners in the same way any other Node skill can. ```mermaid sequenceDiagram actor A as Operator or harness box Local CLI process boundary participant H as runHandler participant M as skills/run main participant R as runSkill particip...

  • 233 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 17, 2026
ai-agentspythonrubyshellbashnode

Works with

  • cli

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add jmagly/aiwg --skill cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli?

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

Security grade badge for Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmagly-cli/badge)](https://www.skillsdirectory.com/skills/jmagly-cli)

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
# Flow: `aiwg run skill <name>`

[Architecture](index.md) · [Authoring an executable skill](extending-cli.md)

Script dispatch is entirely driven by the indexed `script` frontmatter. There are
no issue-audit or aiwg-pr path exceptions. Their declared wrapper scripts bridge
to the installed native owners in the same way any other Node skill can.

```mermaid
sequenceDiagram
  actor A as Operator or harness
  box Local CLI process boundary
    participant H as runHandler
    participant M as skills/run main
    participant R as runSkill
    participant I as Artifact metadata readers
    participant T as Runtime registry
  end
  box Child process boundary: user's permissions
    participant C as Declared script interpreter
  end
  A->>H: run skill name -- args
  H->>H: extractOutputModes and resolveOutputModes
  H->>M: main(parsed args, output mode environment)
  M->>M: parse kind, name, --cwd and argument separator
  M->>R: runSkill(cwd, name, args, override, env)
  R->>I: findSkillEntry across framework, project, codebase
  I-->>R: matching entry and script metadata
  alt Unknown skill or no script declaration
    R-->>A: diagnostic and exit 1
  else Script-bearing skill
    R->>R: resolveSkillDir; check script.entrypoint exists
    R->>T: resolveRuntime(runtime, entrypointPath)
    T-->>R: interpreter and prefixArgs, or unsupported runtime
    R->>R: choose CWD and AIWG_* environment
    R->>C: spawn(interpreter, prefixArgs + entrypoint + args)
    C-->>A: inherited stdin, stdout and stderr
    C-->>R: exit code, signal or spawn error
    R-->>H: normalized exit status
    H-->>A: handler result
  end
```

Drawn from:

- [`src/cli/handlers/run.ts`](../../../src/cli/handlers/run.ts): `runHandler.execute`, `extractOutputModes`.
- [`src/skills/run.ts`](../../../src/skills/run.ts): `main`, `runSkill`, `findSkillEntry`, `resolveSkillDir`.
- [`src/skills/runtime.ts`](../../../src/skills/runtime.ts): `resolveRuntime`, `supportedRuntimes`.
- [`src/artifacts/fortemi-core-query-adapter.ts`](../../../src/artifacts/fortemi-core-query-adapter.ts): `loadFortemiCoreMetadataEntries`.
- [`src/artifacts/index-reader.ts`](../../../src/artifacts/index-reader.ts): metadata loading exports.
- [`agentic/code/frameworks/sdlc-complete/skills/issue-audit/scripts/audit.mjs`](../../../agentic/code/frameworks/sdlc-complete/skills/issue-audit/scripts/audit.mjs): native audit bridge.
- [`agentic/code/addons/aiwg-utils/skills/aiwg-pr/scripts/deliver.mjs`](../../../agentic/code/addons/aiwg-utils/skills/aiwg-pr/scripts/deliver.mjs): native delivery bridge.

Framework paths beginning `agentic/code/` resolve against `AIWG_ROOT`; project
paths resolve against the caller's project. Stable artifact IDs, indexed names,
paths and skill-directory names can select a skill. When matches share a name,
the runner prefers one with a script declaration.

`script.cwd` defaults to `project-root`; alternatives are `skill-dir` and
`aiwg-root`. `--cwd <path>` overrides it. The child receives `AIWG_SKILL_DIR`,
`AIWG_PROJECT_ROOT`, `AIWG_ROOT` when known, and resolved output-mode policy.
Runtimes include Node, Python, Bash, sh, PowerShell, Ruby and extension/shebang
selection via `auto`. A spawn failure returns 127. The child process is an
execution boundary, not a permissions sandbox.

Files in this skill

  • adr-001-unified-extension-registry.md2.3 KB
  • discovery.md6.8 KB
  • extending-cli.md12.1 KB
  • flow-discover-show.md3.7 KB
  • flow-new-bundle.md3.2 KB
  • flow-prompt-discovery.md3.6 KB
  • flow-run-skill.md3.2 KB
  • flow-use.md4.5 KB
  • index.md10.7 KB
  • provider-deployment.md9.1 KB

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.