easypaper-metadata-bui…
Interactively build EasyPaper metadata from a research-materials folder using Claude Code's file-investigation tools. Output is…
Generate a paper directly from metadata using the EasyPaper Python SDK.
$ npx -y skills add tsinghua-fib-lab/agentsociety --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/easypaper-paper-from-metadataContext preview
What this command does when you run it.
Generate a paper directly from metadata using the EasyPaper Python SDK.
Generate a paper directly from metadata using the EasyPaper Python SDK.
0. Optional pre-step: if the user has a research-materials folder instead of metadata JSON, run:
metadata = await ep.generate_metadata_from_folder(
folder_path,
max_figures=12,
max_tables=12,
vision_enrich_figures=True,
)Then generate from the returned `PaperMetaData`.
1. For metadata JSON, load it as a request model:
import json
from pathlib import Path
from easypaper import EasyPaper, PaperGenerationRequest
metadata_path = Path("metadata.json").resolve()
raw = json.loads(metadata_path.read_text(encoding="utf-8"))
def metadata_relative_path(value: str) -> str:
candidate = Path(value).expanduser()
if candidate.is_absolute():
return str(candidate)
return str((metadata_path.parent / candidate).resolve())
if not raw.get("materials_root"):
raw["materials_root"] = str(metadata_path.parent)
if raw.get("template_path"):
raw["template_path"] = metadata_relative_path(raw["template_path"])
if (
isinstance(raw.get("code_repository"), dict)
and raw["code_repository"].get("type") == "local_dir"
and raw["code_repository"].get("path")
):
raw["code_repository"]["path"] = metadata_relative_path(raw["code_repository"]["path"])
request = PaperGenerationRequest.model_validate(raw)
metadata = request.to_metadata()
options = {
"output_dir": request.output_dir,
"save_output": request.save_output,
"compile_pdf": request.compile_pdf,
"figures_source_dir": request.figures_source_dir,
"target_pages": request.target_pages,
"enable_review": request.enable_review,
"max_review_iterations": request.max_review_iterations,
"enable_planning": request.enable_planning,
"enable_exemplar": request.enable_exemplar,
"enable_vlm_review": request.enable_vlm_review,
"enable_user_feedback": request.enable_user_feedback,
"artifacts_prefix": request.artifacts_prefix or "",
}
result = await EasyPaper(config_path=str(Path("easypaper_config.yaml").resolve())).generate(
metadata,
**options,
)2. Validate the metadata before generation:
`easypaper_config.yaml` from the synchronized skill-bundled template, or ask for an explicit config path.
$ARGUMENTS
AgentSociety 2 is a modern, LLM-native agent simulation platform designed for social science research and experimental design. It provides a flexible framework for creating and managing intelligent agents in simulated environments.
Interactively build EasyPaper metadata from a research-materials folder using Claude Code's file-investigation tools. Output is…
Generate or revise a single paper section through EasyPaper.
Set up EasyPaper environment including Python dependencies and LaTeX toolchain.
Run the EasyPaper end-to-end paper generation workflow with guided setup and metadata collection.