← 返回 Skills 市场
fantaclaw-ai

Fanta Autoresearch

作者 fantaclaw-ai · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
95
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fanta-autoresearch
功能描述
Autonomous goal-directed iteration for optimization and improvement tasks. Use when you need to systematically improve a metric, optimize a system, or iterat...
使用说明 (SKILL.md)

Autoresearch Skill

Run autonomous iteration loops: Goal → Metric → Loop (make change → verify → keep/revert → repeat).

Core Protocol

SETUP:
1. Define GOAL (what to improve)
2. Define METRIC (how to measure success)
3. Define SCOPE (what can be modified)
4. Establish BASELINE (current metric value)

LOOP (forever or N iterations):
1. Review current state + history + results log
2. Pick next change (based on what worked, what failed, what's untried)
3. Make ONE focused change
4. Commit change (for rollback)
5. Run mechanical verification (tests, benchmarks, scores)
6. If improved → keep. If worse → revert. If error → fix or skip.
7. Log the result
8. Repeat until goal reached or max iterations

Principles

  1. One change per iteration — Atomic changes. If it breaks, you know why.
  2. Mechanical verification only — No subjective "looks good." Use metrics.
  3. Automatic rollback — Failed changes revert instantly.
  4. Git is memory — Each experiment is committed. Git revert preserves history.
  5. Simplicity wins — Equal results + less code = KEEP

Quick Start

Goal: Improve memory search Top-1 hit rate from 65% to 75%
Metric: Benchmark score (openclaw cron runs --id \x3Cjob-id> --limit 1)
Scope: ~/.openclaw/workspace/MEMORY.md, ~/.openclaw/openclaw.json
Max Iterations: 5

Then run the loop manually or spawn a subagent to execute it.

Usage Patterns

Pattern 1: Manual Loop (Interactive)

For simple tasks, run the loop yourself:

Iteration 1:
  - Change: [describe what you'll change]
  - Verify: [run verification]
  - Result: [keep/revert + reason]
  - Log entry

Pattern 2: Spawn Subagent (Autonomous)

For longer tasks, spawn a subagent with the loop instructions:

sessions_spawn with:
  - task: Full autoresearch loop specification
  - timeoutSeconds: 600 (10 min per iteration)
  - mode: run (one-shot) or session (persistent)

Pattern 3: Background Process

For very long loops, use exec with background continuation:

exec with:
  - command: The optimization script
  - background: true
  - yieldMs: 60000 (check every minute)

Verification Commands

Domain Verify Command
Memory search openclaw cron runs --id \x3Cjob-id> --limit 1
Tests npm test, pytest, cargo test
Build npm run build, cargo build
Lint eslint ., ruff check .
Benchmarks npm run bench, custom benchmark script
Coverage npm test -- --coverage

Logging Format

Track iterations in TSV format:

iteration	change	metric_before	metric_after	delta	status	description
0	baseline	65.0	65.0	0.0	baseline	initial state
1	lowered minScore	65.0	70.0	+5.0	keep	improved retrieval
2	tried larger model	70.0	68.0	-2.0	revert	worse, reverted
3	added corpus entry	70.0	72.0	+2.0	keep	filled gap

Subagent Template

When spawning a subagent for autoresearch, use this template:

GOAL: [what to improve]
METRIC: [how to measure]
VERIFICATION: [command to run]
SCOPE: [files that can be modified]
MAX_ITERATIONS: [number]

CONSTRAINTS:
- [resource limits]
- [safety rules]
- [reversibility requirements]

APPROACH:
1. Establish baseline
2. For each iteration:
   a. Identify next change
   b. Make ONE atomic change
   c. Run verification
   d. Compare to baseline
   e. Keep if improved, revert if worse
   f. Log result
3. Report final results

Common Patterns

Improving Benchmark Scores

Goal: Improve benchmark score
Metric: Benchmark output
Changes: Config tweaks, corpus improvements, model changes
Iterations: 5-10

Fixing Tests

Goal: All tests passing
Metric: Test count failing
Changes: Fix one test at a time
Iterations: Until zero failures

Reducing Bundle Size

Goal: Bundle \x3C 100KB
Metric: Build output size
Changes: Remove dependencies, tree-shake, minify
Iterations: Until target met

Increasing Coverage

Goal: Coverage > 80%
Metric: Coverage percentage
Changes: Add tests for uncovered lines
Iterations: Until target met

Failure Handling

Failure Response
Syntax error Fix immediately, don't count as iteration
Runtime error Attempt fix (max 3 tries), then move on
Resource exhaustion Revert, try smaller variant
Timeout Revert, simplify approach
External dependency failed Skip, log, try different approach

Stopping Conditions

  • Goal metric reached
  • Max iterations hit
  • No improvement for 3 consecutive iterations
  • User interrupt (Ctrl+C or /stop)

References

For advanced patterns, see:

安全使用建议
This skill appears to do what it says: automate iterative experiments. It does, however, assume it can run arbitrary verification and background commands. Before installing/using it: - Only supply trusted verification commands (the verify argument is executed via the shell). Avoid passing untrusted strings that could execute unintended shell actions. - If you intend to run autonomous subagents or background execs, constrain their scope (limit modified file paths, use a sandbox or ephemeral environment, set resource/time limits). - Review and, if needed, modify scripts to avoid shell=True style execution or to use safer argument lists to reduce injection risk. - Check where logs are written (default: autoresearch-log.tsv) and ensure sensitive data is not captured there. - Don't grant additional credentials or environment variables to this skill unless you understand and approve each use case (the skill itself does not request any). If you want extra assurance, run the Python script in a controlled environment first and/or have a developer replace subprocess.run(..., shell=True) with a safer invocation that passes args without shell expansion.
功能分析
Type: OpenClaw Skill Name: fanta-autoresearch Version: 1.0.0 The skill bundle provides a framework for autonomous optimization loops but contains a shell injection vulnerability in 'scripts/autoresearch-loop.py' via the use of 'subprocess.run(shell=True)' on unsanitized command strings. Additionally, 'SKILL.md' encourages the agent to employ high-risk capabilities such as spawning subagents ('sessions_spawn') and running background processes ('exec') to achieve its goals. While these features are aligned with the stated purpose of 'autoresearch', the combination of autonomous execution and lack of input validation poses a significant security risk.
能力评估
Purpose & Capability
Name/description (autonomous iterative optimization) match the provided SKILL.md, reference docs, and the included Python helper. Requested resources (none) are consistent with an instruction-only/tooling skill for running iterations and verification commands.
Instruction Scope
SKILL.md instructs agents to run verification commands, spawn subagents (sessions_spawn), and use exec with background continuation. Those are coherent for long-running optimization loops, but they grant the skill the ability to run arbitrary shell commands and persistent tasks — the instructions also reference modifying files (e.g., ~/.openclaw/workspace/MEMORY.md, openclaw.json) which fits the stated scope but should be explicitly limited by the user when running autonomously.
Install Mechanism
No install spec; skill is instruction + a small Python script. Nothing is downloaded or written by an installer during install, which reduces supply-chain risk.
Credentials
Skill declares no environment variables, no credentials, and no unusual config paths. The files and commands referenced (openclaw cron, local workspace files, common test/build tools) are appropriate for the described purpose.
Persistence & Privilege
always:false and default autonomous invocation are set. The skill does not request permanent inclusion or elevated platform privileges. It can spawn background processes per SKILL.md, which is expected for long-running loops but increases runtime blast radius if misused.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fanta-autoresearch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fanta-autoresearch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Provides autonomous iteration loops for optimization tasks: Goal → Metric → Loop (make change → verify → keep/revert → repeat). Includes workflow patterns, metric references, and interactive loop executor script.
元数据
Slug fanta-autoresearch
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Fanta Autoresearch 是什么?

Autonomous goal-directed iteration for optimization and improvement tasks. Use when you need to systematically improve a metric, optimize a system, or iterat... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。

如何安装 Fanta Autoresearch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fanta-autoresearch」即可一键安装,无需额外配置。

Fanta Autoresearch 是免费的吗?

是的,Fanta Autoresearch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Fanta Autoresearch 支持哪些平台?

Fanta Autoresearch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Fanta Autoresearch?

由 fantaclaw-ai(@fantaclaw-ai)开发并维护,当前版本 v1.0.0。

💬 留言讨论