skills/autoresearch-agent/SKILL.md
Delegate autoresearch tasks to a headless OpenCode sub-agent process. Use when the current agent needs to run any autoresearch command as an autonomous background or foreground subprocess.
npx skillsauth add Thomashighbaugh/opencode autoresearch-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Spawn autoresearch as a headless OpenCode subprocess. The wrapper script
scripts/autoresearch translates CLI subcommands into
opencode --dangerously-skip-permissions -p "/autoresearch:<sub> <flags>".
opencode CLI in PATH (or set OPENCODE_BIN)~/.config/opencode/skills/autoresearch/)# Foreground (blocks until done)
scripts/autoresearch ship --auto
# Background via agent-exec (preferred for long runs)
agent-exec run --timeout 3600000 -- scripts/autoresearch fix --guard "npm test"
Run directly when the result is needed immediately:
scripts/autoresearch ship --checklist-only
scripts/autoresearch plan "Reduce bundle size"
If agent-exec is available, prefer it for any run that may exceed 5 minutes.
This keeps the calling agent responsive.
# Launch
agent-exec run \
--cwd "$(pwd)" \
--timeout 7200000 \
-- scripts/autoresearch security --fail-on critical
# Check progress
agent-exec status <JOB_ID>
agent-exec tail --tail-lines 50 <JOB_ID>
# Wait for completion
agent-exec wait <JOB_ID>
Add --notify-file results.ndjson to get a completion event written when done.
scripts/autoresearch -n ship --auto
# prints: + opencode --dangerously-skip-permissions -p '/autoresearch:ship --auto'
which opencode, skill installedagent-exec runagent-exec tail / statusSee references/subcommands.md for the full subcommand table with flags.
| Subcommand | Typical duration | Recommended mode |
|------------|-----------------|------------------|
| ship --auto | 2-10 min | foreground |
| ship --checklist-only | <1 min | foreground |
| plan | 1-3 min | foreground |
| security | 10-60 min | agent-exec |
| debug | 10-60 min | agent-exec |
| fix | 5-30 min | agent-exec |
| scenario | 5-30 min | agent-exec |
| predict | 3-10 min | foreground or agent-exec |
| learn | 5-30 min | agent-exec |
| (base loop) | unbounded | agent-exec with --timeout |
| Variable | Purpose | Default |
|----------|---------|---------|
| OPENCODE_BIN | Path to opencode binary | opencode |
| OPENCODE_EXTRA_ARGS | Extra flags for opencode (e.g. --model sonnet) | (empty) |
| AUTORESEARCH_DRY_RUN | Set 1 to print command without executing | 0 |
opencode is not found, the script exits with a clear error message.# Ship a PR headlessly
scripts/autoresearch ship --auto
# Run 25 iterations of test coverage improvement in background
agent-exec run --timeout 3600000 \
-- scripts/autoresearch "Goal: coverage to 90%" --iterations 25
# Security audit with CI gate
agent-exec run --timeout 7200000 \
-- scripts/autoresearch security --fail-on critical --iterations 15
# Debug then fix pipeline
agent-exec run --timeout 1800000 \
-- scripts/autoresearch debug --scope "src/**/*.ts" --iterations 10
# ... after completion:
agent-exec run --timeout 1800000 \
-- scripts/autoresearch fix --from-debug --iterations 20
documentation
Agentic memory system for writers - track characters, relationships, scenes, and themes
documentation
LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)
tools
Use ONLY when the user explicitly says: 'use the skill web-to-markdown ...' (or 'use a skill web-to-markdown ...'). Converts webpage URLs to clean Markdown by calling the local web2md CLI (Puppeteer + Readability), suitable for JS-rendered pages.
testing
Structured visual QA verdict for screenshot-to-reference comparisons