/agent-capability-standard:execute [code] [language] [timeout]from agent-capability-standard
Run code or scripts deterministically with captured output. Use when running tests, executing build commands, invoking tools, or performing read-only operations that produce results.
Ships in agent-capability-standard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Execute code or commands in a controlled manner, capturing output for verification. Unlike mutate, this capability is for operations that don't permanently change state (tests, queries, builds, analysis tools).
Success criteria:
Compatible schemas:
schemas/output_schema.yaml| Parameter | Required | Type | Description |
|---|---|---|---|
code | Yes | string | Code or command to execute |
language | No | string | Programming language or shell (bash, python, ruby, etc.) |
timeout | No | string | Maximum execution time (default: "60s") |
environment | No | object | Environment variables to set |
Validate execution request: Ensure code is safe to run
mutate instead)Prepare environment: Set up execution context
Execute code: Run the code/command
Capture results: Collect execution output
Analyze output: Interpret results
Return results: Structure output for consumption
Return a structured object:
result:
success: boolean # Exit code == 0
exit_code: integer # Process exit code
stdout: string # Standard output
stderr: string # Standard error
duration: string # Execution time
execution:
command: string # What was executed
language: string # Execution environment
started_at: string # ISO timestamp
completed_at: string # ISO timestamp
analysis:
summary: string # One-line result summary
warnings: array[string] # Notable warnings
errors: array[string] # Extracted error messages
evidence_anchors: ["command:output"]
| Field | Type | Description |
|---|---|---|
result.success | boolean | Whether execution succeeded |
result.exit_code | integer | Process exit code |
result.stdout | string | Standard output |
result.stderr | string | Standard error |
result.duration | string | How long execution took |
execution | object | Execution metadata |
analysis | object | Interpreted results |
Input:
code: "npm test -- --grep 'UserService'"
language: "bash"
timeout: "120s"
Output:
result:
success: true
exit_code: 0
stdout: |
> [email protected] test
> jest --grep 'UserService'
PASS src/services/__tests__/UserService.test.ts
UserService
✓ creates user with valid data (45ms)
✓ validates email format (12ms)
✓ hashes password on save (23ms)
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
stderr: ""
duration: "2.3s"
execution:
command: "npm test -- --grep 'UserService'"
language: "bash"
started_at: "2024-01-15T10:30:00Z"
completed_at: "2024-01-15T10:30:02Z"
analysis:
summary: "3 tests passed in UserService"
warnings: []
errors: []
evidence_anchors:
- "command:npm test:output"
Input:
code: "SELECT COUNT(*) as user_count FROM users WHERE created_at > '2024-01-01'"
language: "sql"
environment:
DATABASE_URL: "${DATABASE_URL}"
Output:
result:
success: true
exit_code: 0
stdout: |
user_count
----------
15423
(1 row)
stderr: ""
duration: "0.15s"
execution:
command: "psql -c \"SELECT COUNT(*)...\""
language: "sql"
started_at: "2024-01-15T10:35:00Z"
completed_at: "2024-01-15T10:35:00Z"
analysis:
summary: "Query returned 15423 users created in 2024"
warnings: []
errors: []
evidence_anchors:
- "command:psql:query_result"
Input:
code: "python -c 'import nonexistent_module'"
language: "bash"
Output:
result:
success: false
exit_code: 1
stdout: ""
stderr: |
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'nonexistent_module'
duration: "0.05s"
execution:
command: "python -c 'import nonexistent_module'"
language: "bash"
started_at: "2024-01-15T10:40:00Z"
completed_at: "2024-01-15T10:40:00Z"
analysis:
summary: "Import failed: module 'nonexistent_module' not found"
warnings: []
errors:
- "ModuleNotFoundError: No module named 'nonexistent_module'"
evidence_anchors:
- "command:python:error"
Verification tools: Bash (to verify command execution environment)
mutation: falserequires_checkpoint: falserequires_approval: truerisk: mediumCapability-specific rules:
mutate for state-changing operationsCommonly follows:
plan - Execute planned actionsgenerate - Execute generated codetransform - Execute transformation scriptsCommonly precedes:
verify - Verify execution resultsdetect - Detect patterns in outputaudit - Record execution for auditAnti-patterns:
mutate)Workflow references:
reference/workflow_catalog.yaml#debug_code_change for execute in testingreference/workflow_catalog.yaml#digital_twin_sync_loop for execute in sync loopsWhat SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundagent-capability-standard@synapti-marketplace is listed by synaptiai/synapti-marketplace — review the source before installing
npx claudepluginhub synaptiai/synapti-marketplace --plugin agent-capability-standard42 skills in this plugin
/attributeEstablish cause-effect relationships between events or states. Use when analyzing root causes, mapping dependencies, tracing effects, or building causal models./auditProduce a comprehensive audit trail of actions, tools used, changes made, and decision rationale. Use when recording compliance evidence, tracking changes, or documenting decision lineage./gap-analysis-workflowIdentify capability gaps and propose new skills with prioritization. Use when analyzing missing capabilities, planning skill development, performing ontology expansion, or assessing coverage.Other plugins' skills for the same job