Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Autoresearch Code Skill

BSecurity

Autonomous code optimization loop — modify, verify by benchmark, keep/revert against any metric (coverage, bundle size, runtime, error count). TDD-flavored.

6 stars
0 votes
0 copies
0 views
Added 9/20/2026
researchgonodegitperformance

Security Analysis

B85/100
highPerforms destructive filesystem operations

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add darellchua2/opencode-config-template --skill autoresearch-code-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Autoresearch Code Skill?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Autoresearch Code Skill
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/darellchua2-autoresearch-code-skill/badge)](https://www.skillsdirectory.com/skills/darellchua2-autoresearch-code-skill)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: autoresearch-code-skill
description: >-
  Autonomous code optimization loop — modify, verify by benchmark, keep/revert
  against any metric (coverage, bundle size, runtime, error count).
  TDD-flavored.
license: Apache-2.0
compatibility: opencode
metadata:
  protocol: autoresearch-default-on
category: Autoresearch
---

## What I do

I run an autonomous code-optimization loop. Each iteration: read the audit trail → hypothesize one atomic code change → apply → commit → run the benchmark evaluator → run the Guard command → **run the Consumer Coverage check** → keep the commit if `{"pass":true,"score":N}` shows improvement AND the guard stays green AND no downstream consumer is broken, else `git reset --hard HEAD~1`. I am Tier 1 (mechanical evaluator) — every keep/revert decision comes from a program, never from LLM self-judgment. I overlap with `tdd-workflow-skill`, but I am autonomous-loop-flavored (iterate to a target overnight) where TDD is single-cycle (write-one-test-then-implement).

## Triggers

Load me (or route to `autoresearch-code-subagent`) when the user says any of:

- "optimize code", "optimize until", "iteratively improve"
- "test coverage", "increase coverage to N%"
- "bundle size", "reduce bundle"
- "performance", "reduce runtime", "speed up"
- "fix errors", "reduce error count", "drive failures to zero"
- "autoresearch code", "git-as-memory optimization"

Do **not** trigger for ML training (→ `autoresearch-ml-skill`) or literature review (→ `autoresearch-research-skill`).

## Citations

- `autoresearch-core-skill/references/evaluator-contract.md` — the `{"pass":bool,"score":N}` shape my benchmark evaluator emits.
- `autoresearch-core-skill/references/stuck-detection.md` — 3-strike pivot (switch from micro-opt to algorithmic change; target a different hotspot).
- `autoresearch-core-skill/references/iteration-safety.md` — Verify/Guard separation; never modify `.env`, `node_modules/`, or run `rm -rf`.
- `autoresearch-core-skill/references/audit-trail.md` — the 8-column TSV I append to (`<skill>-results.tsv`).
- `autoresearch-core-skill/references/crash-recovery.md` — syntax error → free fix; guard failure → revert.

## Skill-specific overrides

1. **TDD mapping (the key override).** When the metric is "test pass-count":
   - `pass: true`  **GREEN** (all targeted tests pass)
   - `pass: false`  **RED** (any targeted test fails)
   - `score`  **pass-count** (number of tests passing)
   - This makes `tdd-workflow-skill` and this skill mechanically equivalent when the metric is test-pass; the difference is I iterate to a target autonomously rather than running one RED→GREEN cycle.
2. **Verify vs Guard vs Consumer Coverage.** Verify emits `{"pass":bool,"score":N}` (e.g. `pytest --cov` → coverage %). Guard is a separate command that must stay green (e.g. `npm test`). **Consumer Coverage** is a third mandatory check that enumerates downstream callers of every changed symbol and forces revert on any broken reference. A failing Guard **or** a failing Consumer Coverage check forces revert **regardless of Verify** — you cannot trade test-green for a broken downstream consumer.
3. **Tier 1** (mechanical evaluator). No agent-as-evaluator fallback.
4. **Git-as-memory.** Commit before Verify so revert is one command. Never edit the working tree without committing first — an uncommitted change cannot be cleanly reverted.
5. **Bounded-by-default.** `Iterations: 25` default. Lower for fast benchmarks (e.g. `Iterations: 10` for `npm run build` cycles).
6. **Consumer Coverage sub-step** (mandatory, between Guard and Keep/Revert). Guard is necessary but **not sufficient** — Guard validates a fixed suite (e.g. `npm test`), but it cannot detect downstream breakage in code paths the suite does not exercise. The Consumer Coverage sub-step traces the actual call graph of the symbols this iteration touched:
   - With `.codegraph/`: `codegraph_callers` on each changed symbol; revert if any caller is broken.
   - Without `.codegraph/`: `grep -r`/`glob` for importers and references of each changed symbol; revert if any grep hit references the old (now-renamed/removed) symbol.
   - Log `discard` with `consumer-broken` note in `*-results.tsv` when this gate forces a revert. Cross-references the agent's implementation in `autoresearch-code-subagent.md` §Consumer Coverage Gate.

## Templates

- `autoresearch-code-skill/templates/benchmark.py.template` — emits `{"pass":bool,"score":N}` JSON; parameterized `{{COMMAND}}`, `{{METRIC_NAME}}`, `{{TARGET_VALUE}}`.
- `autoresearch-code-skill/templates/research.md.code-template` — inline Goal/Scope/Metric/Verify/Guard format with worked examples (coverage, bundle size, runtime).
- `autoresearch-code-skill/templates/guard.example.sh` — example safety-net pattern (`npm test` must pass while optimizing bundle size).

## NEVER STOP / NEVER ASK

Inherits the core autonomy directive. Once the loop has begun, do not pause to ask whether to continue. The evaluator answers keep/revert mechanically; the human expects you to work until the predicate is met, the plateau+ceiling both trip, or max iterations is reached.

## References

- **uditgoenka/autoresearch** (MIT) — methodology source (command structure, TSV format, keep/revert pattern). Full notice: `THIRD_PARTY_LICENSES.md`.
- **karpathy/autoresearch** (MIT) — source for the git-as-memory pattern (commit → verify → keep/reset). Full notice: `THIRD_PARTY_LICENSES.md`.
- **wjgoarxiv/autoresearch-skill** (MIT) — inspiration for the strict `{"pass":bool,"score":N}` evaluator contract. Full notice: `THIRD_PARTY_LICENSES.md`.

Attribution

darellchua2darellchua2
View sourceMore from darellchua2 →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Competitor Analysis

This skill provides comprehensive analysis of competitor SEO and GEO strategies, revealing what's working in your market and identifying opportunities to outperform the competition.

1823 votes

Deep Research

Universal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 7 modes: full research, quick brief, paper review, lit-review, fact-check, Socratic guided research dialogue, and systematic review with optional meta-analysis. Covers research question formulation, Socratic mentoring, methodology design, systematic literature search, source verification, cross-source synthesis, risk of bias assessment, meta-analysis, APA 7.0 report compilation, editorial review...

452202 votes

Paperclip Distill

Use when an operation issue is a Paperclip cursor-window, distill, or backfill — `operationType: "distill"` or `"backfill"` and the body references a Paperclip source bundle for a project or root issue. Turn raw Paperclip activity into a wiki-insightful project page, decisions log, and history note. This skill exists specifically to replace the stiff, datestamp-heavy templated output that the deterministic distiller produces.

805541 votes

Academic Pipeline

Orchestrator for the full academic research pipeline: research -> write -> integrity check -> review -> revise -> re-review -> re-revise -> final integrity check -> finalize. Coordinates deep-research, academic-paper, and academic-paper-reviewer into a seamless 10-stage workflow with mandatory integrity verification, two-stage peer review, and reproducible quality gates. Triggers on: academic pipeline, research to paper, full paper workflow, paper pipeline, end-to-end paper, research-to-publi...

452201 votes

Exa Search

Semantic search, similar content discovery, and structured research using Exa API

304951 votes
View all in research →