Agent skill
launch-opencode
Launch an instance of OpenCode in a specified directory, run a prompt using the task-runner agent, and return the result. Uses bash to execute the command.
Install this agent skill to your Project
npx add-skill https://github.com/chaddm/ad-astra-per-aspera/tree/main/skills/launch-opencode
SKILL.md
What I do
I launch an independent instance of OpenCode in a specified directory and run a prompt using the task-runner agent.
This is useful for running OpenCode tasks non-interactively in a specific project directory.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| directory | string | Yes | Path to the directory in which to launch and run OpenCode |
| prompt | string | Yes | The prompt or instruction to be run by OpenCode with task-runner |
Bash Usage Examples
Example 1: Using cd and direct opencode run
cd /path/to/project && opencode run "Refactor utils for lodash compatibility." --agent=task-runner
Example 2: Using bash -c for atomic execution
bash -c 'cd "/path/to/project" && opencode run "Build a summary of all recent issues." --agent=task-runner'
Note:
- The agent determines the best method for invoking the shell (such as
bash -c, direct process execution, or subprocess management). - Ensure the
opencodeCLI is installed and accessible in the target environment. - Always use proper shell quoting when your directory name or prompt string contains spaces or special characters.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ip-whitelist
Manage IP whitelist for Provider Nexus API clients using TypeScript scripts that make curl calls to the admin API endpoints.
math
Compute a value from a Python math expression string.
apple-xcode
list-project-import-files
Find all Provider Nexus API project import files for a specific project number in the nexus-import S3 bucket. Results sorted by build ID in TOON format.
weather
Return information about the weather for a given location.
toolbox-uuid
Create a UUID (Universally Unique Identifier).
Didn't find tool you were looking for?