med-paper-assistant: Instructions file for Claude Code

.github/copilot-instructions.md

med-paper-assistant copilot-instructions.md is an instructions file for Claude Code, GitHub Copilot from u9401066/med-paper-assistant. It costs 2,515 tokens per session, scanned A, original, Apache-2.0.

Project instructions for a medical-paper assistant that manages research libraries and manuscript writing through separate workflows.

In plain words
What is it for?
They guide literature ingestion, organisation, analysis, manuscript drafting, review, export, workflow-mode checks, and file-permission rules.
Why use it?
They prevent the assistant from using the wrong workflow or editing protected project files.

Instructions file for Claude CodeGitHub Copilot

Written for Claude Code and GitHub Copilot: SessionStart hook event, but also a Copilot instructions file. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

This is u9401066/med-paper-assistant's own configuration. It tells Claude Code and GitHub Copilot how to work on med-paper-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything med-paper-assistant configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 完整指引:[AGENTS.md](../AGENTS.md)。本檔每次對話都載入,務求精簡。.

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/med-paper-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/u9401066/med-paper-assistant/master/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/med-paper-assistant

Made for: Claude Code, GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for med-paper-assistant copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/u9401066/med-paper-assistant/copilot-instructions.svg)](https://agentmods.dev/instructions/u9401066/med-paper-assistant/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/u9401066/med-paper-assistant/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/u9401066/med-paper-assistant/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,515 This file is loaded in full into every session.
When invoked 2,515 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02515 $0.02515
Opus 5 $0.01257 $0.01257
Sonnet 5 $0.00503 $0.00503
Haiku 4.5 $0.00251 $0.00251

Measured 8d ago against content hash ab8f5f5aa9d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

med-paper-assistant copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copilot 指令(Quick Reference)

完整指引:AGENTS.md。本檔每次對話都載入,務求精簡。

核心價值

逐步多輪演進:寫論文是人類多年累積、多輪訓練的結果。Agent + MCP 框架必須實現類似的螺旋式進步。三層架構:L1 Hook(即時品質)→ L2 Code(結構約束)→ L3 CI(長期演進)。每輪可審計,每輪更好。(CONSTITUTION §25-26)

雙模式心智模型

先讀 project.json.workflow_mode,再決定路徑:

  • library-wiki = Library Wiki Path:ingest → organize → analyze → synthesize → query。目標是維護可被 agent 管理的個人文獻庫 / wiki。這條路不強制 concept validation,也不套用 manuscript pipeline gates。
  • manuscript = Manuscript Path:concept → draft → review → export。目標是產出投稿稿件。這條路才套用 novelty / concept validation、writing hooks、review loop、export gates。

如果用戶從 library/wiki 轉向寫稿,先把 workflow_mode 切到 manuscript,再要求 paper_typeconcept.md、draft/review/export。

模式(操作前必查 .copilot-mode.json

模式 可修改檔案 技能範圍
development 全部 全部技能 + 靜態分析
normal projects/ docs/ 僅研究技能
research projects/ docs/ 僅研究技能

Normal/Research 下 .claude/ .github/ src/ tests/ integrations/ AGENTS.md CONSTITUTION.md pyproject.toml 皆唯讀。 用戶要改受保護檔案 → 提示切換開發模式。

關鍵規則

Path Selection: 先看 workflow_mode。建 library/wiki 時優先 workflow_mode="library-wiki";要寫論文時才用 workflow_mode="manuscript"

儲存文獻: compact surface 以 reference_action 管理查詢、讀取、格式化與 agent fallback;verified PubMed 儲存仍以直接的 save_reference_mcp(pmid) 永遠優先。reference_action(action="save_agent") 僅 API 不可用時 fallback。

草稿引用: get_available_citations()patch_draft()sync_references()。禁止直接 replace_string_in_file 改引用。

Novelty Check: 僅適用於 manuscript 路徑。犀利回饋 + 給選項(「直接寫?修正?用 CGU?」)。禁止討好式回饋或自動改 NOVELTY。

Workspace State: 新對話 → get_workspace_state()。重要操作 → sync_workspace_state()

Memory Bank: 重要操作後更新 memory-bank/。對話結束前更新 projects/{slug}/.memory/

法規層級

CONSTITUTION.md > .github/bylaws/*.md > .claude/skills/*/SKILL.md

跨 MCP 編排(詳見 auto-paper SKILL.md)

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 117 lines · 2,515 tokens per session scan A ab8f5f5aa9d7

Subscribe to this mod's changes

med-paper-assistant copilot-instructions.md is an instructions file published in the GitHub repository u9401066/med-paper-assistant (12 stars, last pushed 6d ago), licensed Apache-2.0. It adds 2,515 tokens to every session, about $0.0126 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens