agentleFS
rpatrik96rpatrik96/research-agora/CLAUDE.md

research-agora

CLAUDE.md16 starsChanged 3 months agoMITView on GitHub

Research Agora is a Claude Code plugin marketplace providing skills for ML research workflows. It bundles 5 category-based plugins: academic, development, editorial, formatting, and research-agents. Central to this is research-state.json, an intermediate representation enabling parallel claim processing.

  • Installs packages

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run python3 scripts/create-skill.py --name skill-name --category academic or manually create plugins/{plugin}/commands/skill-name.md with …

    line 121
  2. Very specific:

    Use kebab-case naming; group related skills with common prefix (e.g., paper-*)

    line 122
  3. Distinctive:

    Keep concise (150-400 lines), include examples in fenced blocks

    line 123

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Research Agora is a Claude Code plugin marketplace providing skills for ML research workflows. It bundles 5 category-based plugins: academic, development, editorial, formatting, and research-agents.

Commands

Testing

pytest tests/                    # Run all tests
pytest tests/test_skills.py      # Run specific test file
pytest tests/ -k "test_name"     # Run tests matching pattern

Registry & Site

python3 scripts/generate-registry.py    # Regenerate registry/index.json from skill files
python3 scripts/generate-site.py        # Generate static site at site/output/
python3 scripts/add-metadata.py --dry-run  # Preview metadata additions
python3 scripts/create-skill.py --help  # Scaffold a new skill
python3 scripts/aggregate-feedback.py --from-github  # Roll up skill-feedback issues into registry/feedback.json (RFC-0001)

Code Quality

ruff check .                     # Lint Python files
ruff format .                    # Format Python files

Template Analysis

cd templates
python analyze_template.py /path/to/template.pptx --output slides --name "template-name"

Architecture

Plugin Structure

Each plugin lives in plugins/{category}/ with:

  • .claude-plugin/plugin.json - Plugin metadata
  • commands/ - Skill definitions (YAML frontmatter + markdown)
  • templates/ - Optional presentation/poster templates

Skill Format

Skills in commands/*.md use YAML frontmatter:

---
name: skill-name
description: Brief description with trigger phrases
model: sonnet  # or haiku, opus
metadata:
  research-domain: general
  task-type: writing
  research-phase: paper-writing
  verification-level: none
---

Agent Format

Agents in plugins/verify/agents/*.md:

---
name: agent-name
description: Brief description for Task tool
model: opus
color: orange  # optional
---

Research-Agents Architecture

The research-agents plugin uses a layered architecture:

  • Orchestrators (orchestrators/) - Fan-out/fan-in parallel coordinators
  • Agents (agents/) - 22 high-level analysis agents
  • Micro-skills (micro-skills/) - 12 atomic, parallelizable operations
  • Helpers (helpers/) - Utility skills for efficiency

Central to this is research-state.json, an intermediate representation enabling parallel claim processing.

Evidence Hierarchy

Claims are graded L1-L6:

  • L1: CODE_VERIFIED (reproducible with code)
  • L2: REPRODUCIBLE_EXPERIMENT
  • L3: PAPER_EVIDENCE (tables/figures)
  • L4: CITATION_SUPPORT
  • L5: LOGICAL_ARGUMENT
  • L6: ASSERTION (no evidence)

Key Files

PathPurpose
.claude-plugin/marketplace.jsonMarketplace metadata, lists all plugins
plugins/*/.claude-plugin/plugin.jsonIndividual plugin manifests
registry/index.jsonAuto-generated skill index; scripts/generate-registry.py is the only writer, and registry/index.json stats is the single source of truth for any skill count
registry/categories.jsonTaxonomy: domains, task-types, phases, verification-levels
scripts/generate-registry.pyGenerates registry/index.json from skill files
scripts/generate-site.pyGenerates static site from registry
scripts/create-skill.pyScaffolds new skill files with metadata
scripts/add-metadata.pyBulk-adds metadata to skill frontmatter
templates/analyze_template.pyExtract design specs from PPTX files
plugins/verify/config/model-routing.jsonModel/mode configuration
plugins/verify/config/WORKER_PREAMBLE.mdLeaf agent protocol
PLATFORM.mdPlatform design blueprint
docs/rfcs/0001-agora-feedback-loop.mdFeedback-loop design (RFC-0001)
registry/feedback.jsonAggregated community feedback (generated by scripts/aggregate-feedback.py, merged via bot PR only — never edit by hand)
plugins/toolkit/scripts/agora_feedback.pyClient: opt-in capture + review-gated submission (/agora-feedback)

Domain Context

  • Primary audience: ML researchers
  • Target venues: NeurIPS, ICML, ICLR, AAAI
  • LaTeX conventions: cleveref, booktabs, amsmath
  • Figures: matplotlib/seaborn, colorblind-safe, PDF export

Adding New Content

New Skill

  1. Run python3 scripts/create-skill.py --name skill-name --category academic or manually create plugins/{plugin}/commands/skill-name.md with YAML frontmatter
  2. Use kebab-case naming; group related skills with common prefix (e.g., paper-*)
  3. Keep concise (150-400 lines), include examples in fenced blocks
  4. Include metadata: block with research-domain, task-type, research-phase, verification-level (see registry/categories.json for valid values)
  5. Script-first principle: If a skill's task (or a sub-task within it) can be accomplished via a script, CLI tool, or deterministic program, implement it that way. Reserve LLM-based approaches for tasks that genuinely require language understanding, creative writing, or nuanced judgment. Hybrid skills should run scriptable steps first, then use the LLM only for analysis or synthesis of results. Examples:
    • Script-first: Reference verification (bibtexupdater), dead code detection (vulture/flake8), LaTeX-to-plaintext conversion (regex/sed), metric extraction from configs (grep/parse), CI/CD setup (file generation), document creation (python-docx/python-pptx/openpyxl)
    • LLM-appropriate: Reviewing and auditing drafts, decoding reviewer intent, brainstorming directions, designing TikZ diagrams, translating a passage between registers. Note what is not here: the Agora no longer ships skills that write a paper's claims, because nothing can check them (see the retirement rule in CONTRIBUTING.md).
    • Hybrid: Extract data with scripts first, then have the LLM interpret/write prose from structured results

New Agent

  1. Create plugins/verify/agents/agent-name.md
  2. Include tools list in frontmatter
  3. Design for autonomous operation with structured output

New Template

python templates/analyze_template.py /path/to/file.pptx --output slides --name "name"

This copies the PPTX and generates STYLE.md and specs.json.

Releasing a Plugin Change

Bump the plugin version in both plugins/{category}/.claude-plugin/plugin.json and .claude-plugin/marketplace.json, in the same commit as the behaviour change. The client resolves an installed plugin by version rather than by content, so a fix that lands without a bump reaches nobody: every existing install keeps running the cached old code indefinitely, and nothing reports an error.

This has already cost a release. 9949d07 fixed capture for Claude Code's Task-to-Agent rename but left the version at 1.1.1, so the maintainer's own install kept matching Skill|Task and dropped every agent dispatch for ten days — the exact symptom that commit set out to cure. It surfaced only when a feedback report came back almost empty.

Diagnose version skew by diffing the checkout against the installed copy:

diff -r plugins/toolkit ~/.claude/plugins/cache/research-agora/toolkit/<version>/

Differences in scripts/ or hooks/ mean the fix is in the repo but not on the machine. /plugin update, after the version bump has landed, is what closes the gap.

Dependencies

  • python-pptx - Template analysis and Office document creation
  • bibtex-updater - BibTeX reference verification (pip install bibtex-updater)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.