Darwin: Autonomous Experiments
Paste the following prompt into your AI chat to install this skill:
Please install the skill @user_df471c2d/darwin-skill according to the official guide at https://skillhub.cn/install/skillhub.md.
About this skill
Challenges in Skill Optimization
When developing AI Agent skills, developers often face a core dilemma: how to balance the structural规范 of a SKILL.md file with its actual runtime performance? Pure structural reviews (e.g., checking frontmatter or step numbering) cannot guarantee the skill performs well in real scenarios—a perfectly formatted skill might produce low-quality output. Manual iterative optimization is time-consuming, prone to local optima, and lacks automated evaluation and safe rollback mechanisms.
Autonomous Experiment Loop: Core Mechanism
The Darwin skill addresses these issues through an autonomous experiment loop, inspired by Karpathy's autoresearch. The core workflow is Evaluate → Improve → Test → Human Confirm → Keep or Rollback, which includes:
- Dual Evaluation System: An 8-dimension weighted scoring rubric (total 100 points), where 6 structural dimensions (e.g.,
Frontmatter Quality,Instruction Specificity) analyzeSKILL.mdstatically; 2 effect dimensions (Overall Architecture,Test Performance) use sub-agents to execute test prompts and compare output quality with and without the skill. - Ratchet Mechanism: The optimization loop retains only improvements with a total score strictly higher than the baseline, automatically rolling back regressions to ensure monotonic improvement.
- Human-in-the-Loop: After each optimization step, the process pauses for user confirmation of test prompt design and scoring results to avoid automation bias.
- Exploratory Rewrite: When hill-climbing optimization stalls continuously, an exploratory rewrite can be proposed to escape local optima, but requires explicit user consent.
Optimization strategies are prioritized (P0-P3), addressing issues from performance to readability, with each round modifying only one dimension.
Applicability and Constraints
The Darwin skill is specifically designed for optimizing AI Agent SKILL.md files, adhering to the following constraints:
- No Core Function Changes: Only improve "how it's written" and "how it runs," not "what it does."
- No New Dependencies: Avoids adding scripts or resource files not originally present in the skill.
- Single-Dimension Changes: Each round's modifications are limited to one dimension to ensure attribution.
- File Size Control: Optimized
SKILL.mdmust not exceed 150% of the original size. - Rollback Capability: All changes are made on git branches, supporting
git revert.
This skill is suited for scenarios requiring systematic iterative optimization of AI Agent skills, especially for teams emphasizing empirical validation and version management.
Use Cases
- After developing a new AI Agent skill, use Darwin to perform an 8-dimension scoring and iteratively optimize its SKILL.md for structural clarity and instruction specificity.
- Before skill deployment, use sub-agents to execute test prompts and compare output quality with and without the skill, verifying it truly addresses user intent and improves effectiveness.
- When batch-optimizing multiple skills, start with the lowest baseline score, modifying only one dimension per round (e.g., adding trigger words or error handling) to ensure traceable changes.
- When hill-climbing optimization stalls continuously, propose an exploratory rewrite to escape local optima, but pause for user confirmation of the rewrite plan before execution.
Best For
- AI Agent skill developers needing to systematically iterate and optimize SKILL.md files for structural compliance and runtime performance, with empirical validation.
- Technical documentation maintainers responsible for AI Agent skill documentation quality, evaluating and improving SKILL.md frontmatter, step clarity, and executability.
- Product test engineers verifying skill effectiveness in real scenarios, using test prompts to compare output differences with and without the skill and quantifying scores.
- Skill project managers overseeing multiple skill versions, ensuring the optimization process includes human confirmation steps to avoid automation bias and support rollbacks.
Related Skills
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.
Quickly converts a user's input, list, or screenshot into a multi-page workbench, supporting template selection, custom builds, and responsive layouts.
HeartFlow is a pure rule-based discrimination layer for AGI that checks AI outputs for correctness and safety before they reach humans.