当前位置: 首页 > Skill >

Cjl Autoresearch Cc

Cjl Autoresearch Cc

Cjl Autoresearch Cc

通过单步迭代编辑、测试与评分来优化技能、提示、文章、工作流或系统,保留改进,剔除退化。

1.1.0 2026.11.27 536
获取Skill文件查看使用说明
作 者:沈宁 许可证: 更新时间:2026.11.27
本文目录展开

cjl-autoresearch-cc

Overview

Improve skills, prompts, articles, workflows, and systems via iterative mutation-testing.

Core principle: One small verifiable change per round. Large rewrites are unverifiable and will be reverted.

Workflow: small edits → test → score → keep improvements, discard regressions.

Inspired by Karpathy/autoresearch and 0xcjl/openclaw-autoresearch-pro.

Trigger Keywords

English: autoresearch

Chinese: 自动优化, 自动研究

Semantic Triggers (No Keywords Needed)

This skill activates when the user's intent matches, even without explicit keywords:

  • User wants to improve any skill, prompt, article, workflow, or system
  • User asks to polish, refine, enhance, or upgrade content
  • User wants iterative testing and improvement
  • User says '帮我改进一下这个prompt', 'optimize this'
  • User says '迭代优化', '循环改进', '反复打磨'
  • User asks '能不能更好', '如何提升质量'
  • User uses "打磨", "精炼", "完善", "升级" in context of content improvement

Supported Optimization Targets

Mode Input Example
Skill Skill name or path coding-standards, ~/.claude/skills/tdd-workflow
Plugin Path to a plugin directory ~/.claude/plugins/everything-claude-code
Prompt A prompt text string Inline or file path
Article An article/document text Inline or file path
Workflow A process or workflow description Inline or file path
System A mechanism or system design Inline or file path

Workflow

Step 1 — Identify Mode and Target

Before proceeding, confirm with user:

"Optimize [target] in [mode] mode? (yes/no)"

If no, ask for clarification. If yes, proceed to Step 2.

Parse the user's request to determine mode. Check for:

Keyword triggers:

  • autoresearch [target] / 自动优化 [target] / 自动研究 [target]
  • optimize [target] / improve [target] / 优化 [target] / 改进 [target]
  • refine [target] / enhance [target] / 精炼 [target] / 增强 [target]

Semantic triggers (intent-based):

  • User wants to improve any skill, prompt, article, workflow, or system
  • User asks to polish, refine, enhance, or upgrade content
  • User describes wanting iterative testing and improvement

Mode detection from intent:

User Intent Mode
Optimize a skill/SKILL.md file Skill
Optimize an agent configuration Skill
Improve a custom command Skill
Optimize a plugin Plugin
Improve hooks configuration Plugin
Improve a prompt text Prompt
Polish an article/document Article
Optimize a workflow/process Workflow
Improve a system mechanism System

For Skill/Plugin mode, resolve the path:

  • Skill: ~/.claude/skills/<skill-name>/SKILL.md
  • Plugin: ~/.claude/plugins/<plugin-name>/

If path doesn't exist, search in order: ~/.claude/skills/ → current dir → ask user.

Examples of semantic triggers (no keywords):

  • "帮我优化一下这个skill" → Skill mode
  • "这个prompt不够好,帮我改进" → Prompt mode
  • "我想让这篇文章更通顺" → Article mode
  • "优化一下部署流程" → Workflow mode

Step 2 — Generate Checklist (10 Questions)

Read the target content first. Then generate 10 diverse, specific yes/no checklist questions relevant to the content type:

For Skill/Plugin mode:

# Dimension What to Check
1 Description clarity Is the description precise, actionable, and clear? Does it state what the skill does and when to use it?
2 Trigger coverage Does it cover main real-world use cases?
3 Workflow structure Are steps clearly sequenced and unambiguous?
4 Error guidance Does it handle error states and edge cases?
5 Tool usage accuracy Are tool names and parameters correct for Claude Code?
6 Example quality Do examples reflect real usage patterns?
7 Conciseness Is content free of redundant repetition?
8 Freedom calibration Is instruction specificity appropriate?
9 Reference quality Are references and links accurate?
10 Completeness Are all sections filled with real content?

For Prompt mode:

# Dimension What to Check
1 Goal clarity Does the prompt state a clear, specific goal?
2 Role/tone Is the desired role or tone specified?
3 Input format Is the input format clearly described?
4 Output format Is the expected output format specified?
5 Constraints Are key constraints and boundaries stated?
6 Context sufficiency Is enough context provided to avoid hallucination?
7 Edge cases Does it handle ambiguous or edge case inputs?
8 Conciseness Is it free of redundant or contradictory instructions?
9 Actionability Are instructions concrete and actionable vs. vague?
10 Completeness Are all necessary elements for the task present?

For Article/Documentation mode:

# Dimension What to Check
1 Title quality Does the title clearly convey the main value? Is it specific enough?
2 Opening hook Does the opening grab attention? Does it set clear expectations?
3 Logical structure Are ideas logically organized (not random)?
4 Argument clarity Are claims supported with evidence or reasoning?
5 Conciseness Is unnecessary padding or repetition removed?
6 Transition flow Do paragraphs/sections flow smoothly?
7 Closing strength Does the conclusion summarize and inspire action?
8 Tone consistency Is the tone consistent throughout?
9 Readability Is sentence/paragraph length varied appropriately?
10 Audience match Does language match the target audience level?

For Workflow/System mode:

# Dimension What to Check
1 Goal clarity Is the objective clearly stated?
2 Step sequencing Are steps in logical, efficient order?
3 Completeness Are all necessary steps present?
4 Error handling Are failure modes addressed (timeout, auth, network, resource exhaustion)?
5 Edge cases Are corner cases considered (empty input, large files)?
6 Simplicity Is the workflow/system as simple as possible? Can steps be combined or eliminated?
7 Observability Can progress/status be tracked?
8 Reversibility Can steps be undone if errors occur?
9 Automation potential Which steps could be automated?
10 Maintainability Is it easy to modify and extend?

Present the 10 questions, numbered 1-10. Ask the user to select which ones to activate.

Rule: Must use at least 5 questions. Using fewer makes scoring unreliable.

After presenting, ask: "Ready to start the optimization loop? (yes/start)"

Step 3 — Prepare Test Cases

Test cases validate that mutations improve, not harm, the content. Generate realistic user scenarios.

  • Skill/Plugin mode: Generate 3-5 realistic prompts a user would send when using the skill/plugin
  • Prompt mode: Generate 3-5 test inputs that the prompt would process
  • Article mode: Generate 3-5 ways the article might be read or consumed
  • Workflow mode: Generate 3-5 scenarios the workflow would handle
  • System mode: Generate 3-5 conditions the system would encounter

Store test cases in context — do not write to disk unless needed.

Step 4 — Run Autoresearch Loop

Tip: For mutation strategies, see Mutation Strategy Reference below.

Loop configuration:

  • Rounds per batch: 30
  • Max total rounds: 100
  • Pause: After every 30 rounds, show summary and ask user to continue or stop
  • Stop conditions:
    • User says stop
    • 100 rounds completed
    • Score reaches 100%
    • No improvement for 10 consecutive rounds

Per-round procedure:

Track progress: Round N/100 | Best: XX% | Last: +/-YY

Constraint: ONE mutation per round. Multiple changes = unverifiable = will be reverted.

  1. Mutate: Make ONE small edit (see Mutation types)

  2. Test: For each test case, simulate what output the content would produce

    Constraint: Be honest. If the output would disappoint a user, the mutation failed.

  3. Score: Apply each active checklist question (0 or 1 per question). Score = (passed / total_questions) × 100

    Scoring scale:

    • 10/10 = 100% (perfect)
    • 7/10 = 70% (good)
    • 5/10 = 50% (minimum viable)
  4. Decide: If new score ≥ best score → keep the mutation. If lower → revert

    Example: Best=85%, New=87% → Keep. Best=85%, New=83% → Revert.

    Trust the score. Don't rationalize a bad mutation.

  5. Log: Round number, mutation type, score, keep/revert decision

Mutation types (pick ONE per round):

Type Name When to Use
A Add constraint When content is too vague
B Strengthen coverage When trigger cases are missing
C Add example When steps are too abstract
D Tighten language When words are soft ("try to")
E Error handling When failure modes missing
F Remove redundancy When content is verbose
G Improve transitions When flow is choppy
H Expand thin section When content is sparse
I Add cross-ref When sections are isolated
J Adjust freedom When balance is off

Step 5 — Report Results (after each batch)

See Quick Reference below for output format examples.

After each batch (30 rounds):

Example:

Batch 1 (rounds 1-30):
  Best score: 85%
  Mutations kept: 23  |  Reverted: 7
  Most effective types: A, C, D

After full completion:

Optimized: [filename/path]
Score: XX% → YY% (+ZZ%)
Rounds: N (kept: K, reverted: R)
Top mutations: [type, type, type]
---
Final content:
[diff or inline]

Mutation Strategy Reference

High-impact, low-risk changes:

  • Adding explicit constraints where the content is vague
  • Expanding coverage to cover edge cases
  • Adding concrete examples to abstract instructions
  • Tightening soft language ("try to" → "must")

Avoid in one round:

  • Large rewrites of entire sections
  • Multiple unrelated changes at once
  • Changing fundamental scope or purpose
  • Formatting-only changes (no testable value)
  • Adding content the user didn't request
  • Removing more than 10% of content

Quick Reference

Keywords Reference

Auto-detect: autoresearch, 自动优化, 自动研究 Skill: autoresearch ~/.claude/skills/tdd Prompt: optimize this prompt: [text] Workflow: optimize the deployment workflow System: improve the error handling system

Semantic Triggers (No Keywords)

"帮我优化一下这个skill"           # → Skill mode
"这个prompt不太行"               # → Prompt mode
"我想让文章更通顺"               # → Article mode
"优化一下部署流程"               # → Workflow mode
"改进一下这个系统"               # → System mode
"improve this code review"         # → Prompt/Skill mode
"polish this documentation"       # → Article mode

Mode Detection

Situation Action
Path detected Skill/Plugin mode
Keyword present Keyword-specified mode
Short text Prompt mode
Long document Article mode
Uncertain Prompt mode (default)

Edge cases: Empty → ask. Invalid path → fallback to ~/.claude/skills/. Ambiguous → ask.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,002
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,001
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
Skill 文件
  • SKILL.md
    • cjl-autoresearch-cc
    • Overview
    • Trigger Keywords
    • Semantic Triggers (No Keywords Needed)
    • Supported Optimization Targets
    • Workflow
      • Step 1 — Identify Mode and Target
      • Step 2 — Generate Checklist (10 Questions)
      • Step 3 — Prepare Test Cases
      • Step 4 — Run Autoresearch Loop
      • Step 5 — Report Results (after each batch)
    • Mutation Strategy Reference
    • Quick Reference
      • Keywords Reference
      • Semantic Triggers (No Keywords)
      • Mode Detection
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期