MCPInstall

ara-compiler

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.

Installs
791
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/orchestra-research/ai-research-skills --skill ara-compiler
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ara-compiler automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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 <dir> → where to write the ARA (default: ./ara-output/)
  • --rubric <path> → PaperBench rubric for coverage mapping
  • Anything else → treat as context or ask the user for clarification

Input Reading Strategy

Adapt to whatever you receive:

  1. Identify what you have. Glob, read, and explore the provided paths. Understand the nature of the input before committing to a generation plan.
  2. Maximize coverage. Cross-reference all available sources. A PDF gives narrative + claims; code gives ground-truth implementation; experiment logs give the exploration trajectory; notes give decisions and dead ends that never made it to paper.
  3. Ask when stuck. If the input is ambiguous or incomplete, ask the user to fill gaps rather than hallucinating. The user is a collaborator, not a passive consumer.
  4. Handle partial inputs gracefully. Not every ARA field will be fillable from every input. 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.

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
  • related_work.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 also_depends_on 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, ara_version, domain, keywords, claims_summary, 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
  • src/execution/{module}.py — ≥1 code stub with typed signatures
  • src/environment.md — Python version, framework, hardware, dependencies, seeds
  • trace/exploration_tree.yaml — Research DAG (≥8 nodes, nested YAML)
  • evidence/README.md — Index table mapping every evidence file to claims
  • evidence/tables/*.md — ALL result tables (exact cell values, never rounded)
  • evidence/figures/*.md — ALL quantitative figures (extracted data points)

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
  • exploration_tree.yaml parses as valid YAML with ≥8 nodes, has dead_end and decision types
  • Claim Proof references (E01, E02...) resolve to experiments.md
  • Experiment Verifies references (C01, C02...) resolve to claims.md
  • Heuristic Code ref paths resolve to actual files in src/execution/
  • Evidence files contain Markdown tables with Source fields
  • Evidence file names, source labels, and captions agree on the original table/figure identifier
  • Any file named like a raw source table is a faithful transcription rather than a filtered subset
  • Claims only cite experiments whose evidence actually contains the compared rows or measurements
  • Claim wording does not outrun the evidence type (for example, validation tables alone should not be used to claim training-dynamics improvements)
  • Trace nodes declare support_level: explicit|inferred
  • Trace nodes with support_level: explicit include source references

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

  1. Exact numbers: All numerical values copied EXACTLY from source — never round or approximate
  2. No hallucination: Never invent claims, results, or heuristics not in the source material
  3. Experiments have NO exact numbers: experiments.md contains only directional/relative expected outcomes. Exact numbers go in evidence/
  4. Every claim has proof: Proof field references experiment IDs (E01, E02), not file paths
  5. Cross-layer binding: Claims ↔ Experiments ↔ Evidence ↔ Code refs must all resolve
  6. Dead ends matter: Include failed approaches, rejected alternatives, ablation findings
  7. "Not specified": If information is genuinely unavailable, write "Not specified in paper" — never guess
  8. No fake source labels: Never call a derived subset Table N or Figure N unless it faithfully reproduces the original source object
  9. No synthetic trace history: Do not invent decisions, dead ends, or experiments that are not explicit in the provided inputs; if a trajectory is inferred, mark it as inferred or omit it
  10. Evidence-limited wording: Do not use stronger language than the evidence supports; separate direct observations from interpretation

Reference Files

For detailed schema specifications, load these on demand:

  • references/ara-schema.md — Complete ARA directory schema with field-level format for every file
  • references/exploration-tree-spec.md — Detailed exploration tree YAML specification with examples
  • references/validation-checklist.md — All Seal Level 1 checks (what the validator looks for)

FAQ

What does the ara-compiler skill do?

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.

How do I install ara-compiler?

Run npx skills add https://github.com/orchestra-research/ai-research-skills --skill ara-compiler in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ara-compiler/ (personal) or .claude/skills/ara-compiler/ (project).

Which AI agents can use ara-compiler?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ara-compiler safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ara-compiler?

It is published by orchestra-research in orchestra-research/ai-research-skills. It has 791 recorded installs.

More from orchestra-research/ai-research-skills

View all →

ml-paper-writing

orchestra-research/ai-research-skills

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. For systems venues (OSDI, NSDI, ASPLOS, SOSP), use systems-paper-writing instead.

Education & Science2.3K installs

brainstorming-research-ideas

orchestra-research/ai-research-skills

Guides 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.

academic-plotting

orchestra-research/ai-research-skills

Generates 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.

Education & Science1.2K installs

creative-thinking-for-research

orchestra-research/ai-research-skills

Applies cognitive science frameworks for creative thinking to CS and AI research ideation. Use when seeking genuinely novel research directions by leveraging combinatorial creativity, analogical reasoning, constraint manipulation, and other empirically grounded creative strategies.

mlflow

orchestra-research/ai-research-skills

Track ML experiments, manage model registry with versioning, deploy models to production, and reproduce experiments with MLflow - framework-agnostic ML lifecycle platform

serving-llms-vllm

orchestra-research/ai-research-skills

Serves LLMs with high throughput using vLLM's PagedAttention and continuous batching. Use when deploying production LLM APIs, optimizing inference latency/throughput, or serving models with limited GPU memory. Supports OpenAI-compatible endpoints, quantization (GPTQ/AWQ/FP8), and tensor parallelism.

AI & Agents1.1K installs

Popular productivity & automation skills

View category →

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.3M installs

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。