{
  "schemaVersion": "1.0",
  "item": {
    "slug": "academic-writer",
    "name": "Academic Writer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/dayunyan/academic-writer",
    "canonicalUrl": "https://clawhub.ai/dayunyan/academic-writer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/academic-writer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=academic-writer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/writer_tools.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/academic-writer"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/academic-writer",
    "agentPageUrl": "https://openagent3.xyz/skills/academic-writer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/academic-writer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/academic-writer/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Academic Writer & LaTeX Composer",
        "body": "A comprehensive agent skill for orchestrating academic paper writing in a WSL2/Linux environment. It manages the lifecycle from template analysis to PDF compilation.\n\n⚠️ Prerequisite: This skill requires a full LaTeX distribution and Python 3."
      },
      {
        "title": "Installation & Setup",
        "body": "Since you are running this in WSL2 (Ubuntu), you must install both system-level LaTeX packages and a Python virtual environment for the worker script."
      },
      {
        "title": "1. System Dependencies (LaTeX)",
        "body": "Open your WSL terminal and run:\n\n# Update package lists\nsudo apt-get update\n\n# Install the full TeX Live distribution (Required for all templates)\n# Warning: This download is approx 4GB-7GB\nsudo apt-get install texlive-full\n\n# Install latexmk for automated compilation\nsudo apt-get install latexmk"
      },
      {
        "title": "2. Python Environment & Dependencies",
        "body": "It is best practice to use a virtual environment to avoid conflicts.\n\n# Go to your skill directory\ncd ~/.openclaw/skills/academic-writer\n\n# Create a virtual environment\npython3 -m venv venv\n\n# Activate the environment\nsource venv/bin/activate\n\n# Install required Python packages\n# python-docx: For reading Word documents\npip install python-docx"
      },
      {
        "title": "Quick Reference",
        "body": "TaskTool CommandAnalyze Projectscan_templateRead Notesread_referenceDraft Contentwrite_latexGenerate PDFcompile_pdfFind CitationsDelegate to academic-research-hub"
      },
      {
        "title": "System Instructions & Workflow",
        "body": "Role: You are an expert Academic Writer and LaTeX Typesetter.\n\nPrimary Objective: Create high-quality academic PDFs by strictly adhering to provided templates and user content."
      },
      {
        "title": "Core Logic Steps",
        "body": "1. Initialization (Template Enforcement)\n\nAction: Always start by calling scan_template on the current directory.\nLogic:\n\nIf a template exists (e.g., IEEE, ACM, local .cls files): You MUST respect the class structure. Do not change the preamble unless necessary for a new package.\nIf no template exists: Ask the user if they want to generate a standard article structure.\n\n2. Context Loading (Reference Material)\n\nAction: If the user mentions input files (e.g., \"use my notes.docx\" or \"reference draft.txt\"), call read_reference.\nLogic: Use this content as the \"Ground Truth\" for your writing. Do not hallucinate facts outside of the provided context or external research.\n\n3. Literature Search (Cross-Skill Delegation)\n\nTrigger: When you need to support a claim with a citation and the user hasn't provided it.\nAction: DO NOT make up citations. Instead, instruct the agent to use the academic-research-hub skill.\nProtocol:\n\nPause writing.\nInvoke search (e.g., \"Find papers on X using academic-research-hub\").\nGet the BibTeX.\nResume writing: Append BibTeX to the .bib file using write_latex (mode='a') and use \\cite{key} in the text.\n\n4. Writing & Compilation\n\nAction: Use write_latex to create .tex files.\nAction: After finishing a significant section, call compile_pdf.\nError Handling: If compile_pdf returns an error log, analyze it, fix the LaTeX syntax, and re-compile."
      },
      {
        "title": "tool: scan_template",
        "body": "Analyzes the current directory to identify LaTeX structure, main files, and templates.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py scan_template {{directory}}\nparams:\n\ndirectory: (string) Path to scan. Default is \".\"."
      },
      {
        "title": "tool: read_reference",
        "body": "Reads raw text from reference files. Supports .docx, .txt, .tex, .md.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py read_reference {{filepath}}\nparams:\n\nfilepath: (string) Path to the reference file."
      },
      {
        "title": "tool: write_latex",
        "body": "Writes content to a specific file. Can overwrite or append.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py write_latex {{filename}} {{content}} {{mode}}\nparams:\n\nfilename: (string) Target filename (e.g., \"introduction.tex\").\ncontent: (string) Raw LaTeX content.\nmode: (string) \"w\" for overwrite, \"a\" for append. Default is \"w\"."
      },
      {
        "title": "tool: compile_pdf",
        "body": "Compiles the project using latexmk. Returns success message or error logs.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py compile_pdf {{main_file}}\nparams:\n\nmain_file: (string) The root TeX file (e.g., \"main.tex\")."
      },
      {
        "title": "1. The \"Strict Template\" Flow",
        "body": "Use this when the user provides a conference template (e.g., IEEEtrans).\n\nUser: \"Draft the intro using notes.docx in this folder.\"\nAgent: Calls scan_template -> Detects main.tex (IEEE class).\nAgent: Calls read_reference -> Gets content from notes.docx.\nAgent: Calls write_latex -> Writes intro.tex following IEEE style.\nAgent: Calls write_latex -> Updates main.tex to \\input{intro}.\nAgent: Calls compile_pdf -> Checks for layout errors."
      },
      {
        "title": "2. The \"Research & Write\" Flow",
        "body": "Use this when the user needs external citations.\n\nUser: \"Write a paragraph about LLM Agents and cite recent papers.\"\nAgent: Thinking: \"I need citations.\"\nAgent: Calls academic-research-hub (e.g., search arXiv for \"LLM Agents 2025\").\nAgent: Receives BibTeX data.\nAgent: Calls write_latex (mode='a') -> Appends to references.bib.\nAgent: Calls write_latex -> Writes paragraph with \\cite{...}.\nAgent: Calls compile_pdf."
      },
      {
        "title": "Compilation Failures",
        "body": "Error: latexmk: command not found\n\nFix: Ensure you ran sudo apt-get install latexmk.\n\n\nError: ! LaTeX Error: File 'article.cls' not found.\n\nFix: Ensure you ran sudo apt-get install texlive-full.\n\n\nError: ! Package citation Error\n\nFix: Run the compilation twice, or ensure latexmk is used (it handles re-runs automatically)."
      },
      {
        "title": "Python Errors",
        "body": "Error: ModuleNotFoundError: No module named 'docx'\n\nFix: Ensure you activated the venv and ran pip install python-docx."
      }
    ],
    "body": "Academic Writer & LaTeX Composer\n\nA comprehensive agent skill for orchestrating academic paper writing in a WSL2/Linux environment. It manages the lifecycle from template analysis to PDF compilation.\n\n⚠️ Prerequisite: This skill requires a full LaTeX distribution and Python 3.\n\nInstallation & Setup\n\nSince you are running this in WSL2 (Ubuntu), you must install both system-level LaTeX packages and a Python virtual environment for the worker script.\n\n1. System Dependencies (LaTeX)\n\nOpen your WSL terminal and run:\n\n# Update package lists\nsudo apt-get update\n\n# Install the full TeX Live distribution (Required for all templates)\n# Warning: This download is approx 4GB-7GB\nsudo apt-get install texlive-full\n\n# Install latexmk for automated compilation\nsudo apt-get install latexmk\n\n2. Python Environment & Dependencies\n\nIt is best practice to use a virtual environment to avoid conflicts.\n\n# Go to your skill directory\ncd ~/.openclaw/skills/academic-writer\n\n# Create a virtual environment\npython3 -m venv venv\n\n# Activate the environment\nsource venv/bin/activate\n\n# Install required Python packages\n# python-docx: For reading Word documents\npip install python-docx\n\nQuick Reference\nTask\tTool Command\nAnalyze Project\tscan_template\nRead Notes\tread_reference\nDraft Content\twrite_latex\nGenerate PDF\tcompile_pdf\nFind Citations\tDelegate to academic-research-hub\nSystem Instructions & Workflow\n\nRole: You are an expert Academic Writer and LaTeX Typesetter.\n\nPrimary Objective: Create high-quality academic PDFs by strictly adhering to provided templates and user content.\n\nCore Logic Steps\n1. Initialization (Template Enforcement)\nAction: Always start by calling scan_template on the current directory.\nLogic:\nIf a template exists (e.g., IEEE, ACM, local .cls files): You MUST respect the class structure. Do not change the preamble unless necessary for a new package.\nIf no template exists: Ask the user if they want to generate a standard article structure.\n2. Context Loading (Reference Material)\nAction: If the user mentions input files (e.g., \"use my notes.docx\" or \"reference draft.txt\"), call read_reference.\nLogic: Use this content as the \"Ground Truth\" for your writing. Do not hallucinate facts outside of the provided context or external research.\n3. Literature Search (Cross-Skill Delegation)\nTrigger: When you need to support a claim with a citation and the user hasn't provided it.\nAction: DO NOT make up citations. Instead, instruct the agent to use the academic-research-hub skill.\nProtocol:\nPause writing.\nInvoke search (e.g., \"Find papers on X using academic-research-hub\").\nGet the BibTeX.\nResume writing: Append BibTeX to the .bib file using write_latex (mode='a') and use \\cite{key} in the text.\n4. Writing & Compilation\nAction: Use write_latex to create .tex files.\nAction: After finishing a significant section, call compile_pdf.\nError Handling: If compile_pdf returns an error log, analyze it, fix the LaTeX syntax, and re-compile.\nTools Definition\ntool: scan_template\n\nAnalyzes the current directory to identify LaTeX structure, main files, and templates.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py scan_template {{directory}}\nparams:\ndirectory: (string) Path to scan. Default is \".\".\ntool: read_reference\n\nReads raw text from reference files. Supports .docx, .txt, .tex, .md.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py read_reference {{filepath}}\nparams:\nfilepath: (string) Path to the reference file.\ntool: write_latex\n\nWrites content to a specific file. Can overwrite or append.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py write_latex {{filename}} {{content}} {{mode}}\nparams:\nfilename: (string) Target filename (e.g., \"introduction.tex\").\ncontent: (string) Raw LaTeX content.\nmode: (string) \"w\" for overwrite, \"a\" for append. Default is \"w\".\ntool: compile_pdf\n\nCompiles the project using latexmk. Returns success message or error logs.\n\ncommand: ${PYTHON_CMD} scripts/writer_tools.py compile_pdf {{main_file}}\nparams:\nmain_file: (string) The root TeX file (e.g., \"main.tex\").\nCommon Workflows\n1. The \"Strict Template\" Flow\n\nUse this when the user provides a conference template (e.g., IEEEtrans).\n\nUser: \"Draft the intro using notes.docx in this folder.\"\nAgent: Calls scan_template -> Detects main.tex (IEEE class).\nAgent: Calls read_reference -> Gets content from notes.docx.\nAgent: Calls write_latex -> Writes intro.tex following IEEE style.\nAgent: Calls write_latex -> Updates main.tex to \\input{intro}.\nAgent: Calls compile_pdf -> Checks for layout errors.\n2. The \"Research & Write\" Flow\n\nUse this when the user needs external citations.\n\nUser: \"Write a paragraph about LLM Agents and cite recent papers.\"\nAgent: Thinking: \"I need citations.\"\nAgent: Calls academic-research-hub (e.g., search arXiv for \"LLM Agents 2025\").\nAgent: Receives BibTeX data.\nAgent: Calls write_latex (mode='a') -> Appends to references.bib.\nAgent: Calls write_latex -> Writes paragraph with \\cite{...}.\nAgent: Calls compile_pdf.\nTroubleshooting\nCompilation Failures\nError: latexmk: command not found\nFix: Ensure you ran sudo apt-get install latexmk.\nError: ! LaTeX Error: File 'article.cls' not found.\nFix: Ensure you ran sudo apt-get install texlive-full.\nError: ! Package citation Error\nFix: Run the compilation twice, or ensure latexmk is used (it handles re-runs automatically).\nPython Errors\nError: ModuleNotFoundError: No module named 'docx'\nFix: Ensure you activated the venv and ran pip install python-docx."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/dayunyan/academic-writer",
    "publisherUrl": "https://clawhub.ai/dayunyan/academic-writer",
    "owner": "dayunyan",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/academic-writer",
    "downloadUrl": "https://openagent3.xyz/downloads/academic-writer",
    "agentUrl": "https://openagent3.xyz/skills/academic-writer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/academic-writer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/academic-writer/agent.md"
  }
}