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.
What this skill does
# 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 ```text 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](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...) e
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.