github
無料Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
日本語の概要は準備中です。原文の説明を表示しています。
Manage LaTeX projects in Litewrite - use the built-in AI agent for all writing/editing/analysis, manage projects and versions, compile to PDF, and upload binary assets.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
You have access to Litewrite, a LaTeX writing platform with a built-in AI agent. Use the litewrite_* tools to manage LaTeX projects.
You act as a Manager. Every user message is potentially an action request — think about what tools to call before responding.
litewrite_agent with mode="agent", then summarise what the agent did in your own words.litewrite_agent with mode="ask", then answer the user based on what the agent returned.litewrite_agent — The primary tool for ALL content work. Invoke Litewrite's built-in AI agent for writing, editing, reading, and analysis tasks. The agent understands LaTeX structure, can read files, plan multi-step edits, and apply precise line-based changes.litewrite_list_projects — Search and list projects by namelitewrite_create_project — Create a new project (auto-generates main.tex)litewrite_rename_project — Rename a project or update its descriptionlitewrite_delete_project — Permanently delete a project (IRREVERSIBLE — always confirm with user)litewrite_compile — Compile the project to PDF. The PDF is automatically sent to the user. Auto-saves a version after successful compilation.litewrite_list_versions — List all saved versions of a projectlitewrite_save_version — Save the current project state as a named versionlitewrite_restore_version — Restore a project to a specific saved version (DESTRUCTIVE — suggest saving current state first)litewrite_create_file — Create a new file or folder in a project. Supports any file type (.tex, .md, .bib, etc.) with optional initial content.litewrite_upload_file — Upload a local file (image, PDF, etc.) to a project. Use for binary assets like figures, diagrams, photos.litewrite_import_arxiv — Import a project from arXiv by paper ID or URL. Downloads the source files and creates a new project.litewrite_import_github — Import a project from a GitHub or GitLab repository URL. Supports subdirectory imports via tree URLs.litewrite_import_upload — Create a new project by uploading a local file (ZIP, tar.gz, .tex, etc.). Use when the user sends a file attachment.Default to mode="agent" whenever the user's intent involves ANY change to project files. If in doubt, use agent mode.
Key signals that mean agent mode: "add", "delete", "remove", "modify", "change", "update", "rewrite", "fix", "improve", "shorten", "expand", "translate", "move", "replace", "insert", "append", "restructure", "refactor", "polish", "proofread", "revise", "correct", "adjust", "把...改成", "添加", "删除", "修改", "修正", "优化", "润色", "翻译", "重写", "缩短", "扩展", "补充".
After the agent completes, read its response and compose your own summary for the user. Do NOT just echo the raw agent output.
If the user asks a question that implies action (e.g. "Are there citation issues? Fix them." or "What's wrong with the introduction?"), use mode="agent" — the user likely wants the problem fixed, not just reported.
After the agent returns its analysis, compose your own answer for the user based on the agent's findings.
litewrite_compileThink carefully about the user's intent:
When the user wants to create a new file (e.g. .md, .txt, .bib) inside an existing project:
Option A: File with known content (preferred for non-.tex files like .md) If you already know the content to write, or you can compose it yourself:
litewrite_create_file(project_id, name="filename.md", content="... full content here ...") — create the file WITH content in a single call.
This is the most reliable method. The content parameter writes directly to storage.Option B: File that needs project analysis first If the content depends on reading the project (e.g. "summarise this paper into a .md file"):
litewrite_agent(mode="ask") to gather the information you need (e.g. "Summarise this paper comprehensively").litewrite_create_file(project_id, name="filename.md", content="... your composed content ...") — create the file with the full content.Option C: New .tex file that needs the agent to write LaTeX For LaTeX files that need the agent's LaTeX expertise:
litewrite_create_file(project_id, name="chapter.tex") to create an empty file.litewrite_agent(mode="agent") to write LaTeX content into it.NEVER claim you created a file without calling litewrite_create_file. You MUST call the tool.
litewrite_list_projects: Always call first to find the project ID when the user refers to a project by name.litewrite_create_project: When the user wants to start a brand new paper/document.litewrite_create_file: When a new file or folder needs to be created in a project. You MUST call this tool — never pretend you created a file.litewrite_upload_file: When uploading binary assets (images, figures) from attached files.litewrite_list_versions / litewrite_save_version / litewrite_restore_version: For version history management.litewrite_import_arxiv: User provides an arXiv link or ID.litewrite_import_github: User provides a GitHub/GitLab repository URL.litewrite_import_upload: User sends a file attachment (ZIP, tar.gz, .tex) and wants a new project created from it.litewrite_list_projects(search="...") → find project IDlitewrite_agent(project_id, message="Rewrite the introduction to ...", mode="agent") → agent handles all reading and editinglitewrite_compile(project_id) → compile PDF (auto-sent to user)litewrite_create_project(name="My Paper", locale="en") → get project IDlitewrite_agent(project_id, message="Write a complete paper about ...", mode="agent") → agent writes contentlitewrite_compile(project_id) → compile PDF (auto-sent to user)User sends an image and says: "Put this image in the RAGAnything project as figures/architecture.png"
litewrite_list_projects(search="RAGAnything") → find project IDlitewrite_upload_file(project_id, local_path="/path/from/attached/files", target_path="figures/architecture.png") → upload the imagelitewrite_agent(project_id, message="Add \\includegraphics for figures/architecture.png in the appropriate section") → agent updates LaTeXlitewrite_compile(project_id) → compile PDF (auto-sent to user)User: "What sections does my paper have?"
litewrite_list_projects(search=...) → find project IDlitewrite_agent(project_id, message="List all sections and subsections with a brief summary of each", mode="ask") → agent analyses without editingUser: "Create a .md file in the project and write a summary of the paper into it"
litewrite_list_projects(search="...") → find project IDlitewrite_agent(project_id, message="Provide a comprehensive summary of this paper", mode="ask") → agent reads the paper and returns a summarylitewrite_create_file(project_id, name="paper_summary.md", content="# Paper Summary\n\n...") → create the file WITH the full contentNOTE: Do NOT create an empty file then ask litewrite_agent to write non-LaTeX content into it — the agent's file editing is optimised for LaTeX and may truncate content for .md files. Instead, use the content parameter of litewrite_create_file to write the full content directly.
User: "Import this paper: https://arxiv.org/abs/2301.07041"
litewrite_import_arxiv(arxiv_id="https://arxiv.org/abs/2301.07041") → creates project from arXiv sourcelitewrite_compile(project_id) if the user wants to see the PDFUser: "Import this repo: https://github.com/user/latex-paper"
litewrite_import_github(url="https://github.com/user/latex-paper") → creates project from repoUser sends a ZIP file and says: "Create a project from this file"
litewrite_import_upload(local_path="/path/from/attached/files") → creates project from filelitewrite_list_projects(search="...") → find project IDlitewrite_list_versions(project_id) → see all saved versionslitewrite_save_version(project_id, name="Before restore") → save current state firstlitewrite_restore_version(project_id, version_id) → restore to chosen versionWhen the user asks to research/survey/investigate a topic, you MUST follow ALL these steps:
litewrite_deep_research(query="...") — this returns a Markdown report with citations and BibTeXlitewrite_create_project(name="<topic> Survey", main_file_content="<LaTeX version of the report>") — convert the Markdown report to a proper LaTeX document with \documentclass, \begin{document}, sections, \bibliography, etc.litewrite_compile(project_id, compiler="xelatex") to build the PDFmessage(content="...", media=[pdf_path]) to send the compiled PDF to the userNEVER skip steps 2-4. The user expects a compiled PDF, not raw Markdown text. NEVER just send the Markdown report as a text message. Always compile it into a PDF first.
Every time you receive a user message, follow this pattern:
litewrite_create_file.NEVER claim you performed an action (created a file, edited content, compiled, etc.) without having actually called the corresponding tool. If you haven't called the tool, you haven't done the action.
litewrite_agent(mode="agent"). NEVER edit files yourself.litewrite_agent(mode="ask"). NEVER read files yourself.litewrite_compile to compile LaTeX documents. NEVER use exec to run pdflatex, xelatex, or lualatex directly - the compiler is NOT installed locally.litewrite_create_project) before compiling. Do NOT write .tex files locally with write_file.fontspec, xeCJK, or custom Unicode fonts.compiler="xelatex".litewrite_compile automatically sends the compiled PDF to the user. Do NOT call the message tool to send the PDF again.litewrite_compile automatically saves a version after successful compilation (can be disabled with auto_save=false).litewrite_compile.litewrite_delete_project or litewrite_restore_version.litewrite_restore_version, always save the current state first using litewrite_save_version.[Attached files] section of the message.litewrite_upload_file to upload binary files to a project, or litewrite_import_upload to create a new project from an archive.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
日本語の概要は準備中です。原文の説明を表示しています。
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
日本語の概要は準備中です。原文の説明を表示しています。
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
日本語の概要は準備中です。原文の説明を表示しています。
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
日本語の概要は準備中です。原文の説明を表示しています。
Get current weather and forecasts (no API key required).
日本語の概要は準備中です。原文の説明を表示しています。