Skip to content

Scripts / task runner: named commands in agr.toml via agr run #503

@kasperjunge

Description

@kasperjunge

Summary

Add a [scripts] section to agr.toml where users can define named commands, runnable via agr run <name>. Support parameter substitution for flexibility.

Why

Standardizes team workflows. Similar to npm scripts, this lets teams define common operations (e.g., "run linting skill then commit skill", "sync and verify", "run test suite with specific skills") in a shared, version-controlled config.

Example

[scripts]
review = "agr run-skill code-review --prompt 'Review the latest changes'"
setup = "agr sync && agr verify"
lint = "agr run-skill linter --prompt '{file}'"
agr run review
agr run lint --param file=src/main.py

Scope

  • Add [scripts] section to agr.toml config schema
  • Implement agr run <name> command
  • Support parameter substitution ({key} replaced by --param key=value)
  • Consider: script composition (running multiple scripts in sequence)
  • Consider: environment variable support

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions