Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add shubham0704/claude-skills --skill paper-discourse-graphgit clone --depth 1 https://github.com/shubham0704/claude-skillsWrote 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.
[](https://agentmods.dev/skills/shubham0704/claude-skills/paper-discourse-graph)<a href="https://agentmods.dev/skills/shubham0704/claude-skills/paper-discourse-graph"><img src="https://agentmods.dev/badge/skills/shubham0704/claude-skills/paper-discourse-graph/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shubham0704/claude-skills/paper-discourse-graph"><img src="https://agentmods.dev/badge/skills/shubham0704/claude-skills/paper-discourse-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.01741 |
| Opus 5 | $0.00036 | $0.00870 |
| Sonnet 5 | $0.00015 | $0.00348 |
| Haiku 4.5 | $0.00007 | $0.00174 |
Grade A, and why
paper-discourse-graph 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Paper Discourse Graph
Use this skill to review a paper section as a reader-state graph, not only as a linear outline. The goal is to see what each paragraph plants, what it pays off, where notation appears before intuition, and where a justification detour interrupts the main story.
1. Workflow
1.1 Establish scope
Identify the source .tex file or section to audit. If the user wants
discussion before editing, produce findings and proposed interventions
only.
Look for project-local guidance before running a generic pass:
AGENT_REVIEW_BRIEF.mddocs/*review*brief*.mdtools/discourse_graph/profiles/*.json- paper-specific profiles or terminology docs
1.2 Choose a profile
Use the most specific available profile:
- user-provided
--profile - project-local profile, if present
- bundled
references/profiles/cphast.jsonfor C-PHAST drafts - bundled
references/profiles/default_scientific_paper.json
Profiles define the central reader question, audience needs, domain terms, and topic checks. Keep project taste in profiles, not in the engine.
For methods, theory, or appendix sections where paragraphs hand off to
notation and equations, also read
references/formal_block_flow.md.
When authoring or revising source files and the user wants durable
machine-readable breadcrumbs for later passes, read
references/source_semantic_comments.md.
For late-stage paragraph-by-paragraph refinement, task breakdowns for
fresh agents, or requests to zoom into each paragraph with a fresh
mind, read references/paragraph_refinement_tasks.md.
1.3 Run the CLI
From this skill directory:
python scripts/discourse_graph_audit.py <source.tex> \
--section <stable-id> \
--profile references/profiles/default_scientific_paper.json \
--out <report.md> \
--json-out <graph.json>
For C-PHAST:
python scripts/discourse_graph_audit.py paper/sec/3_method_arxiv.tex \
--section 3 \
--profile references/profiles/cphast.json \
--out paper/docs/plans/discourse_graph_sec3.md \
--json-out paper/docs/plans/discourse_graph_sec3.json
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 430 B
- README.md 3.4 KB
- references/formal_block_flow.md 4.1 KB
- references/paragraph_refinement_tasks.md 3.1 KB
- references/profiles/cphast.json 3.1 KB
- references/profiles/default_scientific_paper.json 571 B
- references/source_semantic_comments.md 2.3 KB
- scripts/discourse_graph_audit.py 220 B runs code
- scripts/discourse_graph/__init__.py 91 B runs code
- scripts/discourse_graph/cli.py 2.0 KB runs code
- scripts/discourse_graph/heuristics.py 22 KB runs code
- scripts/discourse_graph/latex_reader.py 7.8 KB runs code
- scripts/discourse_graph/profile_loader.py 2.0 KB runs code
- scripts/discourse_graph/render.py 11 KB runs code
- scripts/discourse_graph/schema.py 1.5 KB runs code
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.
- 11d ago First seen · 199 lines · 73 tokens per session scan A 79ca7bb1f2d3
paper-discourse-graph is a skill published in the GitHub repository shubham0704/claude-skills (1 stars, last pushed 6d ago), licensed MIT. It adds 73 tokens to every session and 1,741 once invoked, about $0.0004 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-31.
Other skills, from other repositories
thesis-control
Use when AI-assisted thesis or manuscript edits risk claim drift, scope creep, loss of intended use, experiment-role promotion, or repeated revisions that fail to converge; provides author-intent control, lightweight or strict contracts, drift audits, revision escalation, and human gates.
manuscript-reframe
Reframe report-like academic drafts into paper-form scientific arguments while preserving or explicitly renegotiating author intent; requires an approved old-versus-proposed spine, evidence and argument baselines, analysis-role control, and post-edit drift review.
paper-writer
Medical/scientific paper writing workflow skill. Manages the full pipeline from literature search to submission-ready manuscript. Creates and manages a project directory with IMRAD-format section files, literature matrix, reference management, and quality checklists. Supports both English and Japanese papers.…
food-research
Run a comprehensive, multi-source literature and evidence-synthesis workflow for food & nutrition science. Use when the user wants to research a food/nutrition topic in depth, do a literature review, build an evidence brief, screen and synthesize many sources, verify citations, or scope a systematic review.…
food-paper
Multi-subagent manuscript system for food & nutrition science covering the whole research process: understand the field, frame research questions, curate and analyze data, run statistics, build figures and tables, construct the discussion, draft, polish, and self-review — journal-aware throughout. Includes a…
food-pipeline
Master orchestrator for the whole food & nutrition research-to-publication workflow. Coordinates the specialist skills — each with its own subagent set — into one governed path: journal selection, research (food-research / food-deep-research), writing & analysis (food-paper), figures (food-figure), peer review…