askill
agentuity-command-runner

agentuity-command-runnerSafety 95Repository

When running lint, build, test, typecheck, format, clean, or install commands and need structured, actionable output. Activates when executing development commands and parsing their output into structured error reports with file locations, error classification, and deduplication.

18 stars
1.2k downloads
Updated 2/14/2026

Package Files

Loading files...
SKILL.md

Command Runner Reference

Reference for executing development commands and parsing output into structured, actionable summaries.

Runtime Detection

Before running ANY command, detect the correct runtime:

Detection Priority

  1. Agentuity project (highest priority):

    • If agentuity.json or .agentuity/ exists → bun
    • Agentuity projects are ALWAYS bun-only
  2. JavaScript/TypeScript lockfiles:

    • bun.lockbbun
    • package-lock.jsonnpm
    • pnpm-lock.yamlpnpm
    • yarn.lockyarn
  3. Other ecosystems:

    • go.modgo
    • Cargo.tomlcargo (Rust)
    • pyproject.tomluv or poetry
    • requirements.txtpip

Command Patterns by Ecosystem

JavaScript/TypeScript (bun/npm/pnpm/yarn)

Taskbunnpmpnpm
installbun installnpm installpnpm install
buildbun run buildnpm run buildpnpm run build
testbun testnpm testpnpm test
typecheckbun run typechecknpm run typecheckpnpm run typecheck
lintbun run lintnpm run lintpnpm run lint
formatbun run formatnpm run formatpnpm run format
cleanbun run cleannpm run cleanpnpm run clean

Go

TaskCommand
buildgo build ./...
testgo test ./...
lintgolangci-lint run
formatgo fmt ./...

Rust (cargo)

TaskCommand
buildcargo build
testcargo test
lintcargo clippy
formatcargo fmt

Output Parsing Intelligence

Error Extraction Rules

  1. Deduplicate — Same error in multiple files? Report once with count
  2. Prioritize — Errors before warnings
  3. Truncate — Top 10 issues max (note if more exist)
  4. Extract locations — file:line format when available
  5. Classify — type error, syntax error, lint error, test failure

Error Classification

TypeSignal Words
Type Error"Type", "TS", "cannot assign", "not assignable"
Syntax Error"Unexpected", "SyntaxError", "Parse error"
Lint Error"eslint", "biome", "warning", "rule"
Test Failure"FAIL", "AssertionError", "expect", "assert"
Build Error"Build failed", "Cannot find module"

Location Extraction

Extract file:line from common formats:

  • TypeScript: src/foo.ts(10,5): error TS2322
  • ESLint: src/foo.ts:10:5 error
  • Go: ./pkg/foo.go:10:5:
  • Rust: --> src/main.rs:10:5
  • Python: File "src/foo.py", line 10

Structured Output Format

## [Task] Result: [PASSED | FAILED | WARNINGS]

**Runtime:** [bun | npm | pnpm | go | cargo | uv]
**Command:** `[exact command executed]`
**Duration:** [time in seconds]
**Exit Code:** [0 | non-zero]

### Errors ([count])

| File         | Line | Type | Message                                          |
| ------------ | ---- | ---- | ------------------------------------------------ |
| `src/foo.ts` | 45   | Type | Type 'string' is not assignable to type 'number' |

### Warnings ([count])

| File         | Line | Message           |
| ------------ | ---- | ----------------- |
| `src/baz.ts` | 8    | Unused import 'y' |

### Summary

[One sentence: what happened, what the calling agent should know]

Execution Workflow

  1. Detect Runtime — Check for agentuity.json, then lockfiles
  2. Discover or Use Explicit Command — Auto-discover from package.json or use provided command
  3. Execute Command — Capture stdout, stderr, exit code, duration
  4. Parse Output — Extract and classify errors/warnings with file:line
  5. Return Structured Result — Format using the template above

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

88/100Analyzed 2/19/2026

High-quality technical reference skill for running development commands (lint, build, test, etc.) across multiple ecosystems. Provides detailed runtime detection, exact command tables for bun/npm/pnpm/Go/Rust, error classification logic, and structured output formatting. Well-organized with tables and clear workflow steps. Located in dedicated skills folder with useful tags. Slight internal-only signal from being in agentuity/sdk repo and prioritizing Agentuity project detection, but the core content is broadly applicable. Scores high on actionability, clarity, and reusability."

95
90
85
75
90

Metadata

Licenseunknown
Version1.0.0
Updated2/14/2026
Publisheragentuity

Tags

ci-cdgithub-actionslintingtesting