-
Notifications
You must be signed in to change notification settings - Fork 36
Scripts / task runner: named commands in agr.toml via agr run #503
Copy link
Copy link
Open
Description
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.pyScope
- Add
[scripts]section toagr.tomlconfig 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels