Mmcp.market

ara-compiler skill

by Orchestra-Research·Orchestra-Research/AI-Research-SKILLs·13k stars·MIT

Compiles any research input — PDF papers, GitHub repositories, experiment logs, code directories, or raw notes — into a complete Agent-Native Research Artifact (ARA) with cognitive layer (claims, concepts, heuristics), physical layer (configs, code stubs), exploration graph, and grounded evidence. Use when ingesting a paper or codebase into a structured, machine-executable knowledge package, building an ARA from scratch, or converting research outputs into a falsifiable, agent-traversable form.

A100/100content scan

Is the ara-compiler skill safe?

Clean: nothing in its files matched our rules. We read 4 files in the folder on 2026-09-28.

No findings.

Install the ara-compiler skill

A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.

git clone --depth 1 https://github.com/Orchestra-Research/AI-Research-SKILLs.git /tmp/AI-Research-SKILLs
mkdir -p ~/.claude/skills
cp -r /tmp/AI-Research-SKILLs/22-agent-native-research-artifact/compiler ~/.claude/skills/ara-compiler
available in every project

In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub

The instructions your agent would load

SKILL.md as published, without the frontmatter. Read it on GitHub

Universal ARA Compiler

You are the ARA Universal Compiler. Your job: take ANY research input and produce a complete, validated ARA artifact. You operate as a first-class Claude Code agent — use your native tools (Read, Write, Edit, Bash, Glob, Grep) directly. No API wrapper needed.

Input Philosophy

The compiler is open-ended. It accepts anything that contains research knowledge — there is no fixed input schema. Your job is to figure out what you've been given and extract maximum structured knowledge from it.

Possible inputs include (but are NOT limited to):

  • PDF papers, arXiv links
  • GitHub repositories (URLs or local paths)
  • Code files, scripts, notebooks (.py, .ipynb, .rs, .cpp, etc.)
  • Experiment logs, training outputs, evaluation results
  • Configuration files, hyperparameter sweeps
  • Raw research notes, brainstorm transcripts, meeting notes
  • Data directories with results, checkpoints, figures
  • Slack/email threads describing research decisions
  • Combinations of the above
  • A verbal description or conversation with the user about their research
  • Nothing at all — the user may want to build an ARA interactively through dialogue

When arguments are provided ($ARGUMENTS), interpret them flexibly:

  • File/directory paths → read them
  • URLs → fetch or clone them
  • --output → where to write the ARA (default: ./ara-output/)
  • --rubric → PaperBench rubric for coverage mapping
  • Anything else → treat as context or ask the user for clarification

Input Reading Strategy

Adapt to whatever you receive:

of the input before committing to a generation plan.

  1. Identify what you have. Glob, read, and explore the provided paths. Understand the nature

code gives ground-truth implementation; experiment logs give the exploration trajectory; notes give decisions and dead ends that never made it to paper.

  1. Maximize coverage. Cross-reference all available sources. A PDF gives narrative + claims;

than hallucinating. The user is a collaborator, not a passive consumer.

  1. Ask when stuck. If the input is ambiguous or incomplete, ask the user to fill gaps rather

Populate what you can with high confidence, mark gaps explicitly with "Not available from provided input", and tell the user what's missing so they can supplement later.

  1. Handle partial inputs gracefully. Not every ARA field will be fillable from every input.

Workflow

1. READ all inputs
2. REASON through the 4-stage epistemic protocol (see below)
3. GENERATE all ARA files using Write tool
4. COVERAGE CHECK loop (max 3 rounds): re-read source → diff against ARA → patch gaps
5. VALIDATE by running Seal Level 1
6. FIX any failures, re-validate
7. REPORT summary to user

Step 1: Read Inputs

Read ALL provided inputs thoroughly before generating anything. For PDFs, read every page, including appendices — appendices often carry reproduction-critical content and should be treated with the same priority as main-text pages.

For repos, prioritize: README → core algorithm files → configs → environment files.

Step 2: 4-Stage Epistemic Chain-of-Thought

Before writing any files, reason through these 4 stages. Think carefully about each stage.

Stage 1 — Semantic Deconstruction Strip narrative framing. Extract the raw knowledge atoms:

  • Mathematical formulations and equations
  • Architectural specifications and component descriptions
  • Experimental configurations (hyperparameters, hardware, datasets, seeds)
  • ALL numerical results and benchmarks (exact values, never rounded)
  • Citation dependencies and their roles (imports, extends, bounds, refutes)
  • Negative results, ablation findings, rejected alternatives
  • Implementation tricks, convergence hacks, sensitivity observations

Before moving on, perform an evidence capture pass:

  • For every source table or figure you plan to cite, first capture the original source identifier and caption exactly (Table 2, Figure 4, etc.)
  • Transcribe the raw table/figure content before making any claim-specific summary
  • If you create a filtered view for one claim, store it as a derived subset, not as the original table itself
  • Never label a subset or merged summary as Table N unless it reproduces the original source table faithfully
  • If PDF extraction is ambiguous, re-read the page with layout preserved or inspect the page manually before writing evidence files

Stage 2 — Cognitive Mapping Map extracted atoms to /logic/:

  • problem.md: observations (with numbers) → gaps → key insight → assumptions
  • claims.md: falsifiable claims with proof pointers to experiment IDs (E01, E02...), plus a separation between direct evidence basis and higher-level interpretation
  • concepts.md: ≥5 formal definitions with notation and boundary conditions
  • experiments.md: ≥3 declarative verification plans (NO exact numbers — directional only)
  • solution/: architecture (component graph), algorithm (math + pseudocode), constraints, heuristics
  • relatedwork.md**: typed dependency graph (imports/extends/bounds/baseline/refutes)

Appendix content (worked examples, prompt templates, enumerated taxonomies, annotation schemas, extended analyses, prescriptive content) should be routed into the ARA layers where it fits best, preserving the granularity the source uses. Never silently drop an appendix section.

When writing claims:

  • Phrase the main Statement at the strongest level directly supported by the cited evidence
  • Put raw support in Evidence basis
  • Put any broader synthesis in Interpretation
  • If the evidence only shows validation metrics, do not upgrade the claim to training dynamics or optimization quality unless training-side evidence is also captured

related_work.md should reflect the paper's full citation footprint, not only the closest predecessors. Works with a specific technical delta get full RW blocks; remaining citations from the paper's References list should still be captured (more briefly) so the intellectual neighborhood is preserved.

Stage 3 — Physical Stubbing Generate /src/:

  • configs/: exact hyperparameter values with rationale and sensitivity
  • execution/: ≥1 Python code stub implementing the NOVEL contribution (typed signatures, no boilerplate)
  • environment.md: Python version, framework, hardware, dependencies, seeds
  • If repo available: use actual code to improve stub precision
  • If rubric provided: produce rubric/requirements.md mapping every leaf node

Stage 4 — Exploration Graph Extraction Reconstruct the research DAG for /trace/exploration_tree.yaml:

  • Root nodes = central research questions
  • Experiments and decisions nest as children
  • Dead ends from ablations/rejected alternatives = typed leaf nodes
  • ≥8 nodes, must include dead_end and decision types
  • Use alsodependson for DAG convergence points
  • Every node must declare whether it is explicit from source material or inferred from reconstruction
  • Explicit nodes should carry source references (table/figure/section labels)
  • Inferred nodes are allowed only when they help reconstruct the paper's logic without pretending to be literal session logs

Step 3: Generate Files

Write ALL mandatory files. See references/ara-schema.md for the complete directory structure and field-level requirements for every file.

Mandatory files (all must exist and be non-trivial):

  • PAPER.md — YAML frontmatter (title, authors, year, venue, doi, araversion, domain, keywords, claimssummary, abstract) + Layer Index
  • logic/problem.md — Observations (O1, O2...), Gaps (G1, G2...), Key Insight, Assumptions
  • logic/claims.md — Claims (C01, C02...) each with Statement, Status, Falsification criteria, Proof, Evidence basis, Interpretation, Dependencies, Tags
  • logic/concepts.md — ≥5 concepts each with Notation, Definition, Boundary conditions, Related concepts
  • logic/experiments.md — ≥3 experiments (E01, E02...) each with Verifies, Setup, Procedure, Metrics, Expected outcome (directional only!), Baselines, Dependencies
  • logic/solution/architecture.md — Component graph with inputs/outputs
  • logic/solution/algorithm.md — Math formulation + pseudocode + complexity
  • logic/solution/constraints.md — Boundary conditions and limitations
  • logic/solution/heuristics.md — Heuristics (H01, H02...) each with Rationale, Sensitivity, Bounds, Code ref, Source
  • logic/related_work.md — Related work (RW01, RW02...) each with DOI, Type, Delta, Claims affected
  • src/configs/training.md — Hyperparameters with Value, Rationale, Search range, Sensitivity, Source
  • src/configs/model.md — Model/architecture configs

Evidence-generation rules:

  • Preserve raw source tables separately from any derived subset views
  • A file named after a source object (for example table3_...) must match that source object's caption and contents
  • If only a subset is included, the filename must say derived, subset, or equivalent, and the file must state what it was derived from
  • Do not merge rows from different source tables into one evidence file unless the file is explicitly labeled as a derived comparison

Step 4: Coverage Check Loop (max 3 rounds)

Before running Seal validation, verify that the ARA faithfully covers the source material. Repeat up to 3 rounds; stop early if a round produces no patches.

Each round: re-read the source, identify anything not yet captured or only shallowly captured in the ARA, patch those gaps, then note how many fixes were made. If zero, exit early. Pay particular attention to appendix content and to citations from the paper's References list, which are easy to miss on the first pass.

The coverage loop does not replace validation — it ensures the ARA is semantically complete before structural checks run.

Step 5: Validate

Run ARA Seal Level 1 validation. Perform these checks:

  • All mandatory dirs exist: logic/, logic/solution/, src/, src/configs/, trace/, evidence/
  • All mandatory files exist and are non-empty
  • PAPER.md has YAML frontmatter with title, authors, year
  • PAPER.md has Layer Index section
  • claims.md has C01+ blocks with Statement, Status, Falsification criteria, Proof fields
  • experiments.md has E01+ blocks with Verifies, Setup, Procedure, Expected outcome fields
  • heuristics.md has H01+ blocks with Rationale, Sensitivity, Bounds fields
  • concepts.md has ≥5 concept sections
  • experiments.md has ≥3 experiment plans
  • explorationtree.yaml parses as valid YAML with ≥8 nodes, has deadend and decision types
  • Claim Proof references (E01, E02...) resolve to experiments.md
  • Experiment Verifies references (C01, C02...) resolve to claims.md

Step 6: Fix & Iterate

For each validation failure:

  1. Read the failing file
  2. Apply targeted edits (prefer Edit over full rewrite to preserve correct content)
  3. Re-validate after all fixes

Typically converges in 2-3 rounds.

Step 7: Report

Print a summary:

  • Artifact location
  • File count and total size
  • Validation result (pass/fail with details)
  • Key statistics: number of claims, experiments, heuristics, concepts, tree nodes, evidence files

Critical Rules

More skills from Orchestra-Research/AI-Research-SKILLs

  • Aacademic-plottingGenerates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via matplotlib/seaborn. Use when creating any figure for a conference paper.
  • Aara-research-managerRecords research provenance as a post-task epilogue, scanning conversation history at the end of a coding or research session to extract decisions, experiments, dead ends, claims, heuristics, and pivots, and writing them into the ara/ directory with user-vs-AI provenance tags. Use as a session epilogue — never during execution — to maintain a faithful, auditable trace of how a research project actually evolved.
  • Aara-rigor-reviewerPerforms ARA Seal Level 2 semantic epistemic review on Agent-Native Research Artifacts, scoring six dimensions (evidence relevance, falsifiability, scope calibration, argument coherence, exploration integrity, methodological rigor) and producing a constructive, severity-ranked report with a Strong Accept-to-Reject recommendation. Use after Level 1 structural validation passes, when an ARA needs an objective epistemic critique before publication or release.
  • Aaudiocraft-audio-generationPyTorch library for audio generation including text-to-music (MusicGen) and text-to-sound (AudioGen). Use when you need to generate music from text descriptions, create sound effects, or perform melody-conditioned music generation.
  • Aautogpt-agentsAutonomous AI agent platform for building and deploying continuous agents. Use when creating visual workflow agents, deploying persistent autonomous agents, or building complex multi-step AI automation systems.
  • AautoresearchOrchestrates end-to-end autonomous AI research projects using a two-loop architecture. The inner loop runs rapid experiment iterations with clear optimization targets. The outer loop synthesizes results, identifies patterns, and steers research direction. Routes to domain-specific skills for execution, supports continuous agent operation via Claude Code /loop and OpenClaw heartbeat, and produces research presentations and papers. Use when starting a research project, running autonomous experiments, or managing a multi-hypothesis research effort.
  • Aawq-quantizationActivation-aware weight quantization for 4-bit LLM compression with 3x speedup and minimal accuracy loss. Use when deploying large models (7B-70B) on limited GPU memory, when you need faster inference than GPTQ with better accuracy preservation, or for instruction-tuned and multimodal models. MLSys 2024 Best Paper Award winner.
  • CaxolotlExpert guidance for fine-tuning LLMs with Axolotl - YAML configs, 100+ models, LoRA/QLoRA, DPO/KTO/ORPO/GRPO, multimodal support
  • Ablip-2-vision-languageVision-language pre-training framework bridging frozen image encoders and LLMs. Use when you need image captioning, visual question answering, image-text retrieval, or multimodal chat with state-of-the-art zero-shot performance.
  • Abrainstorming-research-ideasGuides researchers through structured ideation frameworks to discover high-impact research directions. Use when exploring new problem spaces, pivoting between projects, or seeking novel angles on existing work.
  • AchromaOpen-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source projects.
  • AclipOpenAI's model connecting vision and language. Enables zero-shot image classification, image-text matching, and cross-modal retrieval. Trained on 400M image-text pairs. Use for image search, content moderation, or vision-language tasks without fine-tuning. Best for general-purpose image understanding.

All agent skills → · MCP servers