psyclaw 0.28.1 → 0.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +5 -5
  2. package/agents/recommended/catalog.json +1 -1
  3. package/dist/src/adapters/pi/extension.js +79 -25
  4. package/dist/src/adapters/pi/extension.js.map +1 -1
  5. package/dist/src/ars/keybindings.d.ts +13 -0
  6. package/dist/src/ars/keybindings.js +50 -0
  7. package/dist/src/ars/keybindings.js.map +1 -0
  8. package/dist/src/ars/mode-editor.d.ts +25 -0
  9. package/dist/src/ars/mode-editor.js +78 -0
  10. package/dist/src/ars/mode-editor.js.map +1 -0
  11. package/dist/src/ars/profile.d.ts +4 -1
  12. package/dist/src/ars/profile.js +23 -6
  13. package/dist/src/ars/profile.js.map +1 -1
  14. package/dist/src/chat.js +3 -0
  15. package/dist/src/chat.js.map +1 -1
  16. package/dist/src/panel/server.js +1 -1
  17. package/dist/src/panel/server.js.map +1 -1
  18. package/package.json +10 -3
  19. package/vendor/academic-paper-skills/LICENSE +21 -0
  20. package/vendor/academic-paper-skills/NOTICE.md +7 -0
  21. package/vendor/academic-paper-skills/PSYCLAW_SOURCE.json +14 -0
  22. package/vendor/academic-paper-skills/academic-paper-composer/SKILL.md +840 -0
  23. package/vendor/academic-paper-skills/academic-paper-composer/references/section_guides.md +675 -0
  24. package/vendor/academic-paper-skills/academic-paper-composer/references/writing_standards.md +629 -0
  25. package/vendor/academic-paper-skills/academic-paper-composer/scripts/chapter_quality_check.py +470 -0
  26. package/vendor/academic-paper-skills/academic-paper-composer/scripts/final_evaluation.py +550 -0
  27. package/vendor/academic-paper-skills/academic-paper-strategist/SKILL.md +670 -0
  28. package/vendor/academic-paper-skills/academic-paper-strategist/references/quality_standards.md +336 -0
  29. package/vendor/academic-paper-skills/academic-paper-strategist/references/search_strategy.md +459 -0
  30. package/vendor/academic-paper-skills/academic-paper-strategist/scripts/evaluate_samples.py +300 -0
  31. package/vendor/academic-paper-skills/academic-paper-strategist/scripts/gap_analysis.py +399 -0
  32. package/vendor/ars/pi/wrapper.js +9 -0
  33. package/vendor/nature-skills/LICENSE +201 -0
  34. package/vendor/nature-skills/NOTICE.md +7 -0
  35. package/vendor/nature-skills/PSYCLAW_SOURCE.json +19 -0
  36. package/vendor/nature-skills/skills/nature-figure/README.md +107 -0
  37. package/vendor/nature-skills/skills/nature-figure/README_EN.md +107 -0
  38. package/vendor/nature-skills/skills/nature-figure/SKILL.md +154 -0
  39. package/vendor/nature-skills/skills/nature-figure/agents/openai.yaml +4 -0
  40. package/vendor/nature-skills/skills/nature-figure/evals/evals.json +325 -0
  41. package/vendor/nature-skills/skills/nature-figure/manifest.yaml +103 -0
  42. package/vendor/nature-skills/skills/nature-figure/references/ai-graphical-abstract-workflow.md +129 -0
  43. package/vendor/nature-skills/skills/nature-figure/references/api.md +576 -0
  44. package/vendor/nature-skills/skills/nature-figure/references/asset-adaptation.md +72 -0
  45. package/vendor/nature-skills/skills/nature-figure/references/backend-selection.md +118 -0
  46. package/vendor/nature-skills/skills/nature-figure/references/chart-types.md +348 -0
  47. package/vendor/nature-skills/skills/nature-figure/references/common-patterns.md +371 -0
  48. package/vendor/nature-skills/skills/nature-figure/references/demos.md +58 -0
  49. package/vendor/nature-skills/skills/nature-figure/references/design-theory.md +467 -0
  50. package/vendor/nature-skills/skills/nature-figure/references/figure-contract.md +122 -0
  51. package/vendor/nature-skills/skills/nature-figure/references/figure-legend-conventions.md +90 -0
  52. package/vendor/nature-skills/skills/nature-figure/references/multipanel-evidence-architecture.md +268 -0
  53. package/vendor/nature-skills/skills/nature-figure/references/nature-2026-observations.md +124 -0
  54. package/vendor/nature-skills/skills/nature-figure/references/nature-article-requirements.md +149 -0
  55. package/vendor/nature-skills/skills/nature-figure/references/openrouter-image-generation.md +141 -0
  56. package/vendor/nature-skills/skills/nature-figure/references/qa-contract.md +344 -0
  57. package/vendor/nature-skills/skills/nature-figure/references/r-template-index.md +66 -0
  58. package/vendor/nature-skills/skills/nature-figure/references/r-workflow.md +234 -0
  59. package/vendor/nature-skills/skills/nature-figure/references/template-catalog.md +33 -0
  60. package/vendor/nature-skills/skills/nature-figure/references/tutorials.md +260 -0
  61. package/vendor/nature-skills/skills/nature-figure/requirements.txt +1 -0
  62. package/vendor/nature-skills/skills/nature-figure/scripts/audit_figure_collisions.py +742 -0
  63. package/vendor/nature-skills/skills/nature-figure/scripts/audit_panel_alignment.py +933 -0
  64. package/vendor/nature-skills/skills/nature-figure/scripts/audit_pdf_text.py +152 -0
  65. package/vendor/nature-skills/skills/nature-figure/scripts/figure_safety.py +50 -0
  66. package/vendor/nature-skills/skills/nature-figure/scripts/generate_openrouter_schematic.py +260 -0
  67. package/vendor/nature-skills/skills/nature-figure/scripts/nature_figure_backend.py +93 -0
  68. package/vendor/nature-skills/skills/nature-figure/scripts/panel_alignment.R +188 -0
  69. package/vendor/nature-skills/skills/nature-figure/scripts/plot_templates.py +604 -0
  70. package/vendor/nature-skills/skills/nature-figure/scripts/validate_figure.py +835 -0
  71. package/vendor/nature-skills/skills/nature-figure/static/core/contract.md +55 -0
  72. package/vendor/nature-skills/skills/nature-figure/static/core/stance.md +41 -0
  73. package/vendor/nature-skills/skills/nature-figure/static/fragments/backend/python.md +56 -0
  74. package/vendor/nature-skills/skills/nature-figure/static/fragments/backend/r.md +63 -0
  75. package/vendor/nature-skills/skills/nature-figure/tests/test_figure_safety.py +209 -0
  76. package/vendor/nature-skills/skills/nature-polishing/README.md +58 -0
  77. package/vendor/nature-skills/skills/nature-polishing/README_EN.md +58 -0
  78. package/vendor/nature-skills/skills/nature-polishing/SKILL.md +111 -0
  79. package/vendor/nature-skills/skills/nature-polishing/agents/openai.yaml +4 -0
  80. package/vendor/nature-skills/skills/nature-polishing/manifest.yaml +101 -0
  81. package/vendor/nature-skills/skills/nature-polishing/references/latex-layout.md +211 -0
  82. package/vendor/nature-skills/skills/nature-polishing/references/nat-comms-2025-diction.md +73 -0
  83. package/vendor/nature-skills/skills/nature-polishing/references/phrasebank-playbook.md +175 -0
  84. package/vendor/nature-skills/skills/nature-polishing/references/published-article-patterns.md +126 -0
  85. package/vendor/nature-skills/skills/nature-polishing/references/section-moves.md +252 -0
  86. package/vendor/nature-skills/skills/nature-polishing/references/style-guardrails.md +94 -0
  87. package/vendor/nature-skills/skills/nature-polishing/references/writing-strategy.md +160 -0
  88. package/vendor/nature-skills/skills/nature-polishing/static/core/failure-modes.md +29 -0
  89. package/vendor/nature-skills/skills/nature-polishing/static/core/output-format.md +21 -0
  90. package/vendor/nature-skills/skills/nature-polishing/static/core/stance.md +26 -0
  91. package/vendor/nature-skills/skills/nature-polishing/static/fragments/journal/generic.md +17 -0
  92. package/vendor/nature-skills/skills/nature-polishing/static/fragments/journal/nat-comms.md +38 -0
  93. package/vendor/nature-skills/skills/nature-polishing/static/fragments/journal/nat-mach-intell.md +102 -0
  94. package/vendor/nature-skills/skills/nature-polishing/static/fragments/journal/nature.md +19 -0
  95. package/vendor/nature-skills/skills/nature-polishing/static/fragments/language/en.md +19 -0
  96. package/vendor/nature-skills/skills/nature-polishing/static/fragments/language/zh-to-en.md +19 -0
  97. package/vendor/nature-skills/skills/nature-polishing/static/fragments/paper_type/algorithmic.md +18 -0
  98. package/vendor/nature-skills/skills/nature-polishing/static/fragments/paper_type/hypothesis.md +17 -0
  99. package/vendor/nature-skills/skills/nature-polishing/static/fragments/paper_type/methods.md +35 -0
  100. package/vendor/nature-skills/skills/nature-polishing/static/fragments/paper_type/research.md +29 -0
  101. package/vendor/nature-skills/skills/nature-polishing/static/fragments/paper_type/review.md +17 -0
  102. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/abstract.md +26 -0
  103. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/conclusion.md +15 -0
  104. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/discussion.md +48 -0
  105. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/intro.md +33 -0
  106. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/methods.md +26 -0
  107. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/results.md +61 -0
  108. package/vendor/nature-skills/skills/nature-polishing/static/fragments/section/title.md +17 -0
  109. package/vendor/nature-skills/skills/nature-ref-verifier/README.md +44 -0
  110. package/vendor/nature-skills/skills/nature-ref-verifier/README_EN.md +44 -0
  111. package/vendor/nature-skills/skills/nature-ref-verifier/SKILL.md +196 -0
  112. package/vendor/nature-skills/skills/nature-ref-verifier/agents/openai.yaml +4 -0
  113. package/vendor/nature-skills/skills/nature-ref-verifier/manifest.yaml +19 -0
  114. package/vendor/nature-skills/skills/nature-ref-verifier/references/common-patterns.md +96 -0
  115. package/vendor/nature-skills/skills/nature-shared/README.md +43 -0
  116. package/vendor/nature-skills/skills/nature-shared/README_EN.md +43 -0
  117. package/vendor/nature-skills/skills/nature-shared/SKILL.md +33 -0
  118. package/vendor/nature-skills/skills/nature-shared/agents/openai.yaml +6 -0
  119. package/vendor/nature-skills/skills/nature-shared/core/consistency-sweep.md +122 -0
  120. package/vendor/nature-skills/skills/nature-shared/core/discussion-argument-language.md +192 -0
  121. package/vendor/nature-skills/skills/nature-shared/core/ethics.md +88 -0
  122. package/vendor/nature-skills/skills/nature-shared/core/main-text-discipline.md +179 -0
  123. package/vendor/nature-skills/skills/nature-shared/core/nature-abstract.md +171 -0
  124. package/vendor/nature-skills/skills/nature-shared/core/nature-introduction.md +164 -0
  125. package/vendor/nature-skills/skills/nature-shared/core/nature-results-discussion.md +215 -0
  126. package/vendor/nature-skills/skills/nature-shared/core/paper-type-taxonomy.md +41 -0
  127. package/vendor/nature-skills/skills/nature-shared/core/reader-workflow.md +21 -0
  128. package/vendor/nature-skills/skills/nature-shared/core/research-compliance.md +192 -0
  129. package/vendor/nature-skills/skills/nature-shared/core/terminology-ledger.md +58 -0
  130. package/vendor/nature-skills/skills/nature-shared/journal-formats/nat-comms.md +139 -0
  131. package/vendor/nature-skills/skills/nature-shared/journal-formats/nature-machine-intelligence.md +431 -0
  132. package/vendor/nature-skills/skills/nature-shared/journal-formats/nature.md +313 -0
  133. package/vendor/nature-skills/skills/nature-shared/manifest.yaml +52 -0
  134. package/vendor/nature-skills/skills/nature-shared/scripts/check_consistency.py +273 -0
  135. package/vendor/nature-skills/skills/nature-shared/tests/test_check_consistency.py +63 -0
@@ -0,0 +1,43 @@
1
+ # `nature-shared/` - shared support package for nature-* skills
2
+
3
+ This is an installable support package, not a standalone user workflow. It keeps the shared definitions and references used by multiple `nature-*` skills in one place so those sources stay consistent and update together. A complete `npx skills` installation discovers and manages it alongside the user-facing skills.
4
+
5
+ Sibling skills reference these files through relative paths such as:
6
+
7
+ ```yaml
8
+ always_load:
9
+ - ../nature-shared/core/reader-workflow.md
10
+ ```
11
+
12
+ ## Contents
13
+
14
+ | File | Consumers |
15
+ |---|---|
16
+ | `core/reader-workflow.md` | `nature-polishing`, `nature-writing` |
17
+ | `core/paper-type-taxonomy.md` | `nature-polishing`, `nature-writing` |
18
+ | `core/ethics.md` | `nature-polishing`, `nature-writing` |
19
+ | `core/research-compliance.md` | `nature-writing` and skills needing Nature Portfolio specialist compliance checks |
20
+ | `core/terminology-ledger.md` | `nature-polishing`, `nature-writing`, `nature-reader`, `nature-paper2ppt` |
21
+ | `core/consistency-sweep.md` | `nature-polishing`, `nature-reviewer`, `nature-response`, `nature-statistics` |
22
+ | `core/main-text-discipline.md` | `nature-writing`, `nature-polishing`, `nature-response` |
23
+ | `core/nature-results-discussion.md` | Nature / Nature Portfolio Results claim escalation and Discussion synthesis for `nature-writing` and `nature-polishing`, distilled from published NMI and flagship Nature papers (not official policy) |
24
+ | `core/discussion-argument-language.md` | Journal-general Discussion functions, reverse-funnel control, evidence-calibrated modality, claim boundaries, and future-work auditing for `nature-writing` and `nature-polishing` (writing guidance, not journal policy) |
25
+ | `core/nature-introduction.md` | Nature / Nature Portfolio problem funnels, exact gaps, and Introduction–Results alignment for `nature-writing` and `nature-polishing`, initially distilled from NMI papers (not official policy) |
26
+ | `core/nature-abstract.md` | Nature / Nature Portfolio discovery-centred abstract evidence chains, claim hierarchy, and numeric selection for `nature-writing` and `nature-polishing`, initially distilled from NMI papers (not official policy) |
27
+ | `journal-formats/nat-comms.md` | `nature-polishing`, `nature-writing` |
28
+ | `journal-formats/nature.md` | `nature-writing` and skills needing exact flagship `Nature Article` submission rules |
29
+ | `journal-formats/nature-machine-intelligence.md` | Writing, polishing, figure, data, and statistics workflows for NMI submissions |
30
+
31
+ `scripts/check_consistency.py` provides a mechanical first pass for terminology variants, equal values reported at different precision, and equivalent lengths expressed in different units. Its output is a set of warnings for contextual review, not automatic edits.
32
+
33
+ ## When to Put Files Here
34
+
35
+ Only place a file here when two or more skills need to reuse the same content. If the content serves only one skill, keep it in that skill's own `static/` or `references/` directory.
36
+
37
+ ## When to Keep Content Local
38
+
39
+ The shared layer should hold definitions and references only, such as paper-type classifications, reader workflows, ethics rules, or terminology ledgers. Skill-specific diagnosis, drafting, modification, and output logic should remain in each skill's own files.
40
+
41
+ ## Relationship With Other Skills
42
+
43
+ `nature-shared/` is not a standalone workflow. It is a shared dependency package that other `nature-*` skills read on demand.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: nature-shared
3
+ description: Internal shared-reference support package for installed Nature Skills, including nature-writing, nature-polishing, nature-response, nature-reader, and nature-paper2ppt. Do not invoke it as a standalone user workflow. Load only the specific core or journal-format file requested by another Nature skill.
4
+ ---
5
+
6
+ # Nature Shared References
7
+
8
+ Use this package only as a dependency of another installed Nature skill.
9
+
10
+ - Load the exact referenced file; do not preload the whole package.
11
+ - Treat `core/` and `journal-formats/` as shared definitions, not standalone workflows.
12
+ - Use `journal-formats/nature.md` only for the flagship journal Nature and
13
+ `core/research-compliance.md` only when its specialist applicability gate is
14
+ triggered.
15
+ - Use `journal-formats/nature-machine-intelligence.md` for exact NMI article
16
+ types, limits, initial-submission files, data/code duties and production
17
+ requirements; do not import flagship Nature or Nature Communications limits.
18
+ - Use `core/main-text-discipline.md` for result placement, main-text compression,
19
+ revision accretion, caption/SI allocation, and claim-repetition checks.
20
+ - Use `core/nature-results-discussion.md` for corpus-derived Nature-style
21
+ Results claim escalation, evidence-bound local interpretation, and Discussion
22
+ synthesis; do not present it as official journal policy.
23
+ - Use `core/discussion-argument-language.md` for journal-general Discussion
24
+ function sequencing, reverse-funnel control, evidence-calibrated modality,
25
+ claim-specific limitations, and uncertainty-driven future work.
26
+ - Use `core/nature-introduction.md` for corpus-derived Nature-style problem
27
+ funnels, exact knowledge gaps, literature tension, question-first novelty,
28
+ and Introduction–Results alignment; do not present it as official journal
29
+ policy.
30
+ - Use `core/nature-abstract.md` for corpus-derived Nature-style
31
+ discovery-centred abstract compression, claim hierarchy, selective numeric
32
+ support, and field-level payoff; do not present it as official journal policy.
33
+ - Return to the requesting skill for task logic, output format, and final QA.
@@ -0,0 +1,6 @@
1
+ interface:
2
+ display_name: "Nature Shared References"
3
+ short_description: "Shared references for dependent Nature Skills only"
4
+ default_prompt: "Use $nature-shared only as a support package requested by another Nature Skill."
5
+ policy:
6
+ allow_implicit_invocation: false
@@ -0,0 +1,122 @@
1
+ # Consistency Sweep
2
+
3
+ A retrospective audit of a manuscript that already exists. `terminology-ledger.md` is preventive:
4
+ it fixes the vocabulary before drafting. This file is detective: it finds the drift that a
5
+ manuscript has already accumulated, which is what happens to every manuscript that has been revised
6
+ more than once.
7
+
8
+ Use it when polishing or proofreading a full manuscript, when self-reviewing before submission, when
9
+ auditing a revision, or whenever multiple rounds of editing have touched the same document. Do not
10
+ use it as a substitute for building a ledger on a fresh draft.
11
+
12
+ Two facts drive the method:
13
+
14
+ - **Multi-round editing fragments a manuscript.** Each round produces wording that fits its local
15
+ context and diverges from the rest. Nobody notices, because nobody re-reads the whole document
16
+ after each small edit.
17
+ - **Reviewers verify arithmetic and cross-check tables.** Numbers that do not reconcile and claims
18
+ that contradict the paper's own data are the cheapest possible findings for a referee, and they
19
+ cast doubt on everything that is harder to check.
20
+
21
+ ## 1. Sweep, then inspect
22
+
23
+ Count variants mechanically first, then read the contexts before changing anything. Raw counts
24
+ over-report: Title Case in captions and headings, sentence-initial capitals, first-use acronym
25
+ expansions, and grammatically required inflections are legitimate variation.
26
+
27
+ For each axis, count every variant, then open the contexts of the minority forms. A term used 33
28
+ times one way and once another way is almost always a real slip; a term split 5/4 usually means two
29
+ different concepts are being conflated.
30
+
31
+ Start the mechanical pass with the bundled checker, resolving it relative to the
32
+ `nature-shared` package directory:
33
+
34
+ ```bash
35
+ python scripts/check_consistency.py manuscript.tex tables.tex \
36
+ --term-group 'test-object=specimen|sample|test article' \
37
+ --term-group 'method-name=GraphNet|Graph Net'
38
+ ```
39
+
40
+ The checker reports built-in self-reference and standard-deviation variants, user-supplied term
41
+ groups, equal numeric values printed at different precision, and equivalent lengths written in
42
+ different units. Use `--json` for machine-readable results or `--fail-on-findings` in a local
43
+ quality gate. Findings are warnings, not automatic corrections: identical numbers may denote
44
+ different quantities, and two terms may represent a real conceptual distinction. Inspect every
45
+ reported context before editing. This first pass does not replace the claim, tense, acronym,
46
+ cross-reference, or redundancy checks below.
47
+
48
+ ## 2. Axes
49
+
50
+ | Axis | What to look for | Typical real finding |
51
+ | --- | --- | --- |
52
+ | Experimental factors | Every name used for one variable | One factor under four names, while a fifth name denotes a *different* concept |
53
+ | Physical objects | One word denoting two things | `specimen` meaning both a physical test article and a row in the test set |
54
+ | Acronyms | Definition site vs first use | Abbreviation used pages before it is defined; defined twice; never expanded |
55
+ | Model and method names | Expansion and capitalization at each mention | `Multi-Layer Perceptron` vs `Multilayer Perceptron`; `Extreme` vs `eXtreme Gradient Boosting` |
56
+ | Units | The **same quantity** in two units | `35 mm` cover in one section, `3.5 cm` cover in another |
57
+ | Statistical terms | Abbreviation and technical precision | `SD` in one table, `Std` in another; `confidence interval` where `prediction interval` is meant |
58
+ | Number formatting | Decimal places per metric; percent spacing | `8.26` in a table against `8.258` in the text |
59
+ | Self-reference | `this study` / `this paper` / `this work` / `this article` | One stray variant among many |
60
+ | Tense | Parallelism inside a list | Three conclusion items in past tense, one in present |
61
+ | Hyphenation | Compound modifiers | Genuine distinction: `residual-capacity check` (modifier) vs `the residual capacity` (noun) |
62
+ | Spelling variety | `-ise`/`-yse` vs `-ize`/`-yze`, `-our` vs `-or` | New text in British spelling inside a US-spelling manuscript |
63
+ | Cross-references | Non-breaking space before the number | `Figure~\ref` vs `Figure \ref` mixed |
64
+
65
+ Two axes are technical errors rather than style, and reviewers treat them as competence signals:
66
+
67
+ - **Interval terminology.** A confidence interval covers a parameter; a prediction interval covers a
68
+ future observation. A paper reporting per-observation uncertainty must say *prediction interval*.
69
+ `confidence level` for the alpha level is a different, correct term — do not "fix" it.
70
+ - **Same quantity, two units.** Converting for local readability forces the reader to verify that the
71
+ two numbers match, and invites the suspicion that they do not.
72
+
73
+ Run several passes. Each pass surfaces axes the previous one did not, because fixing one axis makes
74
+ the next one visible. In practice a heavily revised manuscript yields findings on at least three
75
+ successive passes before converging.
76
+
77
+ ## 3. Numeric self-consistency
78
+
79
+ - **Headline counts must be derivable from the Methods.** A design described as "640 samples covering
80
+ 32 states, four positions and four orientations" invites the reader to compute 512. If the real
81
+ design is 32 x 4 positions x 5 signals (four orientations plus an averaged waveform), say so in
82
+ the abstract and conclusion, not only in the Methods.
83
+ - **One metric, one precision, everywhere.** Cross-check every number that appears in more than one
84
+ place — abstract, results prose, tables, conclusion — mechanically, not from memory.
85
+ - **Reused numbers must denote the same thing.** When two different quantities happen to share a
86
+ value, label them distinctly; the same integer meaning "design combinations" in one section and
87
+ "test-set size" in another will be read as one quantity.
88
+
89
+ ## 4. Claims versus the paper's own data
90
+
91
+ Check every superlative against the table behind it.
92
+
93
+ - "Consistently highest across all three methods" fails if one column shows another item higher.
94
+ State what the data supports and name the exception explicitly. A reviewer who finds the exception
95
+ unaided assumes nothing else was checked either.
96
+ - Overlapping error bars do not support "outperformed". Use "statistically indistinguishable".
97
+ - Check for **under**claiming too. A conclusion saying "matched the best conventional model" when the
98
+ results section reports first place on every metric throws away a real result.
99
+ - Internal summaries must agree with each other. If the results section concludes that features A and
100
+ B are jointly dominant, the abstract and conclusion cannot credit only A.
101
+
102
+ ## 5. Redundancy between prose and displays
103
+
104
+ Prose that restates a table's numbers adds length without information. Keep in the text only what the
105
+ display cannot show: the interpretation, the comparison, the reason a value matters.
106
+
107
+ The same applies within a paragraph — a sentence that re-states the immediately preceding sentence in
108
+ different words is padding, and it is easy to introduce when adding material in response to a
109
+ comment. After any insertion, re-read the neighbouring sentences and check that the new text is not
110
+ saying what the old text already said.
111
+
112
+ ## 6. Order of operations
113
+
114
+ 1. Numeric self-consistency and claims-versus-data (sections 3 and 4). Fix content before wording.
115
+ 2. Terminology sweep (sections 1 and 2), repeated until a pass finds nothing new.
116
+ 3. Redundancy pass (section 5).
117
+ 4. Recompile and re-verify anything that depends on pagination.
118
+
119
+ Content fixes change wording, and wording fixes change pagination, so this order avoids redoing work.
120
+ Any downstream artifact that quotes the manuscript — a response letter, a cover letter, a slide deck
121
+ — must be re-synchronized after every change; see `nature-response/references/package-consistency-audit.md`
122
+ when a revision package is involved.
@@ -0,0 +1,192 @@
1
+ # Discussion Argument and Language Calibration
2
+
3
+ Use this reference when drafting, restructuring, or polishing a scientific
4
+ Discussion. It applies across journals; journal-specific article structures,
5
+ word limits, and reporting requirements still take precedence.
6
+
7
+ This is **writing guidance, not an official Nature Portfolio requirement**.
8
+ Its functional model is informed in part by the author-supplied public article
9
+ [“学术训练 | How to Write the Discussion?”](https://mp.weixin.qq.com/s/exPlMmjkrDPchE6dCfjINw)
10
+ (22 August 2026), which summarizes material from *Science Research Writing for
11
+ Non-native Speakers of English*. The rules below are a selective,
12
+ accuracy-checked synthesis rather than a transcription of that article or book.
13
+
14
+ ## Contents
15
+
16
+ - [Use the reverse funnel as a direction, not a template](#use-the-reverse-funnel-as-a-direction-not-a-template)
17
+ - [Build the Discussion from four functions](#build-the-discussion-from-four-functions)
18
+ - [Separate interpretation from Results replay](#separate-interpretation-from-results-replay)
19
+ - [Calibrate modality to evidence strength](#calibrate-modality-to-evidence-strength)
20
+ - [Write limitations as claim boundaries](#write-limitations-as-claim-boundaries)
21
+ - [Make future work resolve an uncertainty](#make-future-work-resolve-an-uncertainty)
22
+ - [Run the sentence-function audit](#run-the-sentence-function-audit)
23
+
24
+ ## Use the reverse funnel as a direction, not a template
25
+
26
+ Introduction usually narrows from the field to the paper's precise question.
27
+ Discussion generally moves in the opposite epistemic direction:
28
+
29
+ `specific findings -> integrated interpretation -> relation to the field -> bounded implications`
30
+
31
+ This is a reader-orientation principle, not a demand that every Discussion
32
+ begin with a Results summary or end with a grand claim. Expand only as far as
33
+ the evidence permits. A narrow study may properly end with a narrow
34
+ implication.
35
+
36
+ Choose the opening anchor that best restores the central context:
37
+
38
+ - revisit the unresolved problem when solving that problem is the main advance
39
+ - revisit the design or method when the method changes what can be inferred
40
+ - state the central finding when the discovery itself is the main advance
41
+
42
+ Use one compressed anchor. Do not repeat the Introduction's background or the
43
+ Results section's full evidence chain.
44
+
45
+ ## Build the Discussion from four functions
46
+
47
+ Treat the following as functions, not four mandatory paragraphs. Combine,
48
+ reorder, or omit a function when the paper does not need it.
49
+
50
+ ### 1. Anchor
51
+
52
+ State the central advance in one bounded judgement and identify the specific
53
+ Results claims that must be understood together. One indispensable anchor
54
+ number is acceptable; replaying all effect sizes, intervals, tests, or panels is
55
+ not.
56
+
57
+ ### 2. Position
58
+
59
+ Place the finding on the scholarly map. Specify whether the work:
60
+
61
+ - supports or independently confirms earlier evidence
62
+ - extends an earlier result to a new mechanism, population, scale, or regime
63
+ - qualifies the conditions under which an earlier claim holds
64
+ - conflicts with prior work and requires reconciliation
65
+ - connects findings that were previously treated separately
66
+
67
+ Do not use citation clusters as decoration. Every literature comparison should
68
+ state the relationship that matters for the current claim.
69
+
70
+ ### 3. Interpret and contribute
71
+
72
+ Explain what the integrated findings make newly supportable. Separate three
73
+ levels:
74
+
75
+ 1. **Established contribution** — directly supported by the paper's design and
76
+ evidence.
77
+ 2. **Supported interpretation** — a mechanism or explanation favoured by the
78
+ evidence but not uniquely proven.
79
+ 3. **Open implication** — a plausible broader consequence that requires a new
80
+ test.
81
+
82
+ Name credible rival explanations before presenting a non-unique mechanism as
83
+ the preferred interpretation. Make novelty explicit when it is defensible, but
84
+ do not substitute “first”, “novel”, or “unprecedented” for the actual
85
+ conceptual or practical advance.
86
+
87
+ ### 4. Bound and extend
88
+
89
+ State where the inference may fail, what that limitation changes, what remains
90
+ valid, and which next experiment or analysis would reduce the uncertainty.
91
+ Keep speculation and future work proportional to the demonstrated contribution.
92
+
93
+ A useful overall move order is:
94
+
95
+ `central finding anchor -> cross-Results synthesis -> position in prior work -> interpretation and contribution -> boundary -> next discriminating question`
96
+
97
+ ## Separate interpretation from Results replay
98
+
99
+ Results and Discussion may refer to the same finding, but the sentence must do
100
+ a different job:
101
+
102
+ - **Results:** `A exceeded B under condition C; this establishes X within C.`
103
+ - **Discussion:** `Taken together with Y, X favours interpretation Z and
104
+ qualifies the prevailing account of Q.`
105
+
106
+ Delete a Discussion sentence when it only repeats a comparison, number, test,
107
+ or local inference already used to establish the result. Retain recap only when
108
+ the reader needs it to understand the synthesis that follows.
109
+
110
+ ## Calibrate modality to evidence strength
111
+
112
+ Choose the strongest wording the evidence justifies, not the strongest wording
113
+ that sounds persuasive.
114
+
115
+ | Evidence status | Typical language | Gate |
116
+ |---|---|---|
117
+ | Directly established within the tested design | `shows`, `establishes`, `demonstrates` | The design directly tests the proposition and important alternatives do not support a weaker reading. |
118
+ | Supported but not uniquely established | `supports`, `indicates`, `suggests`, `is consistent with`, `is likely to reflect` | At least one credible alternative remains or the mechanism is inferred indirectly. |
119
+ | Plausible interpretation or extrapolation | `may`, `might`, `could`, `appears to`, `raises the possibility` | The statement goes beyond the direct test and is clearly marked as provisional. |
120
+ | Near-necessity or exclusion | `must`, `cannot` | Use only when logic, design, or physical constraints genuinely exclude reasonable alternatives; rarity is expected. |
121
+
122
+ ### Modal safeguards
123
+
124
+ - `may not` means that something is possibly not true; `cannot` expresses
125
+ impossibility or inability and is much stronger.
126
+ - `must not` normally expresses prohibition, not absence of necessity. Use
127
+ `need not`, `does not need to`, or `is not required to` for the latter.
128
+ - Do not teach spaced `can not` as a routine hedge. Write `may not` when the
129
+ intended meaning is possibility of non-occurrence.
130
+ - Distinguish a community recommendation (`future studies should test X`) from
131
+ an author commitment (`we will test X`). Do not promise work unless the
132
+ authors have actually committed to it.
133
+ - Avoid hedge stacking such as `may perhaps suggest that`. Usually one modal or
134
+ calibrated reporting verb is enough. Multiple qualifiers are justified only
135
+ when they express genuinely different uncertainties.
136
+ - Do not attach a hedge mechanically to every interpretive sentence. Excessive
137
+ hedging obscures the claim just as overstatement distorts it.
138
+
139
+ Before using `must`, `cannot`, `demonstrates`, or a causal verb, state the
140
+ specific design feature that licenses that strength. If no such feature can be
141
+ named, step down one level.
142
+
143
+ ## Write limitations as claim boundaries
144
+
145
+ Avoid generic limitation inventories. Use this sequence:
146
+
147
+ `claim affected -> untested or constrained condition -> consequence for interpretation -> what remains supported -> resolving test or data`
148
+
149
+ For example, a single-site sample is not merely “a limitation”; it limits the
150
+ population or setting to which the claim can be generalized. Say whether it
151
+ threatens the central inference, only its transportability, or neither.
152
+
153
+ Do not use a positive result to cosmetically cancel a serious limitation.
154
+ Conversely, do not describe a boundary as fatal when it leaves the central
155
+ within-design conclusion intact.
156
+
157
+ ## Make future work resolve an uncertainty
158
+
159
+ Future work should follow from an unresolved inference, boundary, or capability
160
+ revealed by the paper. For every proposal, specify:
161
+
162
+ - the open question
163
+ - why the current evidence cannot answer it
164
+ - the discriminating experiment, dataset, comparison, or analysis
165
+ - how the outcome would change the interpretation or application
166
+
167
+ Prefer one or two consequential next tests over a shopping list. Avoid generic
168
+ calls for larger samples, more datasets, or broader applications unless their
169
+ scientific purpose is stated.
170
+
171
+ ## Run the sentence-function audit
172
+
173
+ Label each Discussion sentence with one primary function:
174
+
175
+ `anchor | synthesize | position | interpret | contribute | qualify | bound | extend`
176
+
177
+ Then apply these checks:
178
+
179
+ 1. **Reverse-funnel direction:** does the section move from the paper's specific
180
+ findings toward broader meaning without outrunning the evidence?
181
+ 2. **Function coverage:** are the necessary anchor, positioning,
182
+ interpretation/contribution, and boundary functions present?
183
+ 3. **No Results replay:** does every repeated finding enable a new synthesis?
184
+ 4. **Literature relationship:** does each citation-bearing comparison say how
185
+ the current result relates to prior work?
186
+ 5. **Modality fit:** could every strong verb or modal survive an evidence audit?
187
+ 6. **Boundary consequence:** does each limitation identify which claim or scope
188
+ it changes?
189
+ 7. **Future-work necessity:** does each proposed next step resolve a named
190
+ uncertainty rather than advertise the topic?
191
+ 8. **Sentence economy:** can duplicate functions, stacked hedges, or generic
192
+ transitions be deleted without loss?
@@ -0,0 +1,88 @@
1
+ # Citation, ethics, and AI boundaries
2
+
3
+ ## Intellectual debt
4
+
5
+ Originality is usually an amendment, combination, or extension of prior knowledge. A careful writer acknowledges that debt openly. Do not minimize others' contributions just to make the present work seem more original.
6
+
7
+ ## Position attribution clearly
8
+
9
+ Make it obvious:
10
+
11
+ - how the paper builds on prior work
12
+ - who was responsible for the earlier idea, method, data, or interpretation
13
+ - where the reader can locate the source
14
+
15
+ ## Cite the source you actually read and verified
16
+
17
+ - Cite paper `A` for `A`'s own data, methods, claims, or conclusions.
18
+ - Cite paper `B` for `B`'s interpretation, comparison, critique, or commentary on `A`.
19
+ - Avoid leaning on secondary sources when the source article can be cited directly.
20
+
21
+ ## What needs citation
22
+
23
+ - someone else's ideas
24
+ - data
25
+ - methods
26
+ - wording
27
+ - structure
28
+ - images
29
+ - distinctive interpretation
30
+
31
+ Do not assume internet material is public domain just because it is online.
32
+
33
+ ## Proofreading checks
34
+
35
+ Always verify:
36
+
37
+ - grammatical errors
38
+ - typographical errors
39
+ - figure numbering
40
+ - missing citations
41
+ - whether the paper is a pleasure or an ordeal to read
42
+
43
+ ## AI risk and disclosure boundary
44
+
45
+ Nature Portfolio applies a risk-based framework. Keep human accountability and
46
+ verification explicit at every level.
47
+
48
+ `Green — assistive`: generally acceptable with author verification
49
+
50
+ - improve grammar, clarity, concision, or tone
51
+ - generate outline options or paragraph structures
52
+ - produce alternative titles or abstract phrasings
53
+ - summarize literature for categorization, not as a substitute for reading
54
+ - translate with terminology and hedging checks
55
+
56
+ `Amber — evaluative or interpretive`: allowed only with strong human control,
57
+ verification and transparent disclosure
58
+
59
+ - explain methods or results for wording support
60
+ - draft reviewer-response frameworks that are then checked line by line
61
+ - help with code or statistics explanations only if outputs are reproduced and validated
62
+
63
+ `Red — AI replacing scholarly judgement or lacking transparency`: not permitted
64
+
65
+ - ask AI to draft the paper's core argument from scratch
66
+ - insert AI-generated references, data, or claims without checking them
67
+ - upload unpublished manuscripts, sensitive data, or peer-review material to public models
68
+ - use AI to fabricate, manipulate, or conceal substantive image creation
69
+
70
+ ## Nature Portfolio submission gate
71
+
72
+ - AI systems and LLMs do not satisfy authorship criteria and must not appear in
73
+ the author list.
74
+ - Human authors remain accountable for originality, accuracy, integrity,
75
+ interpretation and every submitted conclusion.
76
+ - For a flagship Nature submission, document LLM use in Methods or, if no
77
+ Methods section exists, in a suitable alternative section.
78
+ - Disclose evaluative or interpretive AI use clearly enough that an editor can
79
+ understand what the system contributed and how humans verified it.
80
+ - Do not upload an unpublished manuscript, peer-review report, sensitive data
81
+ or confidential editorial material to an unsecured or public AI system.
82
+ - Do not present AI-generated hypotheses, analyses, conclusions, references,
83
+ data or photorealistic images as accountable human work.
84
+
85
+ The main danger is not that AI cannot write. The main danger is that it can write incorrectly with great confidence.
86
+
87
+ Current policy source, verified 2026-08-08:
88
+ <https://www.nature.com/nature-portfolio/editorial-policies/ai>.
@@ -0,0 +1,179 @@
1
+ # Main-Text Discipline for Scientific Papers
2
+
3
+ Use this shared contract when drafting, restructuring, compressing, or revising
4
+ the main text of a scientific manuscript, especially Results. It operationalizes
5
+ an author-supplied writing discipline; it is not a journal policy. Current
6
+ journal instructions and field-specific reporting standards override it when
7
+ they require information in the main text.
8
+
9
+ ## Contents
10
+
11
+ - [1. Separate evidence completeness from main-text completeness](#1-separate-evidence-completeness-from-main-text-completeness)
12
+ - [2. Classify every result before placement](#2-classify-every-result-before-placement)
13
+ - [3. Build the shortest sufficient evidence chain](#3-build-the-shortest-sufficient-evidence-chain)
14
+ - [4. Prevent revision accretion](#4-prevent-revision-accretion)
15
+ - [5. Separate main text, captions, and SI](#5-separate-main-text-captions-and-si)
16
+ - [6. Apply statistical reporting discipline](#6-apply-statistical-reporting-discipline)
17
+ - [7. Run the paragraph necessity test](#7-run-the-paragraph-necessity-test)
18
+ - [8. Stop explanatory recursion](#8-stop-explanatory-recursion)
19
+ - [9. Audit claim repetition](#9-audit-claim-repetition)
20
+ - [10. Return an auditable compression record](#10-return-an-auditable-compression-record)
21
+ - [Non-negotiable exceptions](#non-negotiable-exceptions)
22
+
23
+ ## 1. Separate evidence completeness from main-text completeness
24
+
25
+ Preserve the complete evidential record across the manuscript, figures, tables,
26
+ Methods, source data, and Supplementary Information (SI). Do not force that full
27
+ record into the main text. Reserve main-text space for evidence that establishes,
28
+ advances, or materially bounds the central claim.
29
+
30
+ Do not use compression to hide inconvenient evidence. If an observation changes
31
+ the direction, magnitude, scope, or credibility of the central conclusion, keep
32
+ it visible in the main text even if it is nominally a robustness or subgroup
33
+ analysis.
34
+
35
+ ## 2. Classify every result before placement
36
+
37
+ Build a result-allocation table before drafting or restructuring Results:
38
+
39
+ | Class | Decision test | Default destination |
40
+ |---|---|---|
41
+ | `core_discovery` | Does it advance the paper's central conclusion? | Main text, with adequate evidence |
42
+ | `necessary_support` | Must the reader see it to accept the core discovery? | Main text briefly |
43
+ | `qualification` | Does it materially bound or alter the central interpretation? | Main text if yes; otherwise SI |
44
+ | `robustness` | Does it show the result survives an alternative specification, estimator, seed, threshold, or inference procedure without changing the conclusion? | SI, with a concise pointer when useful |
45
+ | `heterogeneity` | Is variation across groups, settings, tasks, or models itself part of the central claim? | Main text if central; otherwise SI |
46
+ | `provenance_detail` | Does it document traceability, preprocessing, implementation, or audit detail without advancing the conclusion? | Methods, Source Data, repository, or SI |
47
+ | `alternative_inference` | Does it test the same claim using a secondary inferential route? | SI unless it changes acceptance of the claim |
48
+ | `edge_case` | Does it define a failure boundary that changes how the claim must be read? | Main text if interpretation changes; otherwise SI |
49
+
50
+ Classify by function in this paper, not by analysis name. An ablation can be a
51
+ core discovery in a mechanism paper; heterogeneity can be the headline result;
52
+ a confidence interval can be the primary inferential evidence.
53
+
54
+ ## 3. Build the shortest sufficient evidence chain
55
+
56
+ After classification, write the minimum ordered chain that lets the reader:
57
+
58
+ 1. understand the central observation
59
+ 2. see the decisive comparison or mechanism evidence
60
+ 3. judge the primary uncertainty or inference
61
+ 4. understand any boundary that changes the conclusion
62
+
63
+ Do not reproduce the chronological record of analyses. Route supporting checks
64
+ to SI with stable pointers. Draft the final Results narrative only after the
65
+ analysis and result-allocation table are stable.
66
+
67
+ ## 4. Prevent revision accretion
68
+
69
+ Every requested addition triggers a deletion check across the whole affected
70
+ paragraph:
71
+
72
+ 1. State what new function the proposed sentence serves.
73
+ 2. Find existing sentences that already serve that function.
74
+ 3. Prefer replacement, combination, or compression before appending.
75
+ 4. Re-read the paragraph after the edit and delete any sentence made redundant.
76
+ 5. Re-run the paragraph necessity test and claim-repetition audit below.
77
+
78
+ For reviewer-driven edits, ask:
79
+
80
+ > Does this sentence tell the reader what was discovered, or does it mainly tell
81
+ > a reviewer why an objection does not overturn the result?
82
+
83
+ Keep the first in the main text when necessary. Route the second to SI or the
84
+ response letter unless the objection is essential to the central inference.
85
+ Answer every reviewer fully in the response letter even when the manuscript
86
+ change is deliberately short.
87
+
88
+ ## 5. Separate main text, captions, and SI
89
+
90
+ - **Main text:** what was found, the decisive support, and what it means for the
91
+ central claim.
92
+ - **Figure or table caption:** what is shown and how to read it, including
93
+ definitions needed to interpret the display.
94
+ - **SI:** why the conclusion survives deeper scrutiny, including secondary
95
+ analyses, robustness, implementation detail, extended diagnostics, and
96
+ non-central edge cases.
97
+
98
+ Do not repeat a full set of effect sizes, confidence intervals, and P values in
99
+ both the main text and caption. Choose one authoritative location for the full
100
+ numeric report and use the other location for the minimum narrative or reading
101
+ cue. Preserve journal-mandated caption content.
102
+
103
+ ## 6. Apply statistical reporting discipline
104
+
105
+ Compute and retain every analysis required by the design, protocol, reporting
106
+ standard, and integrity audit. In the main text, normally report:
107
+
108
+ - the descriptive quantity needed to understand the effect
109
+ - the primary inferential statistic or interval needed to support the claim
110
+
111
+ Route secondary intervals, alternative estimators or inference procedures,
112
+ multiplicity checks, sensitivity analyses, and model-level heterogeneity to SI
113
+ unless they change the conclusion or are required in the main text. Never select
114
+ only the most favorable statistic. Record the complete analysis family and the
115
+ reason for each reporting location.
116
+
117
+ ## 7. Run the paragraph necessity test
118
+
119
+ For every Results paragraph, ask:
120
+
121
+ > If this paragraph were removed, would the reader still understand and have
122
+ > adequate evidence for the paper's central claim?
123
+
124
+ - **No:** keep it.
125
+ - **Yes, but a reviewer might ask for it:** route it to SI or the response letter.
126
+ - **Yes, and the point appears elsewhere:** delete it.
127
+
128
+ When only one sentence is necessary, keep that sentence and relocate the rest.
129
+ Do not preserve an unnecessary paragraph merely because one clause matters.
130
+
131
+ ## 8. Stop explanatory recursion
132
+
133
+ Do not explain an explanation in the main text. If a statistical or graphical
134
+ detail needs several sentences to reconcile it with the main result, state the
135
+ result and any conclusion-changing boundary simply, then move the extended
136
+ reconciliation to SI. Keep the longer explanation in the main text only when the
137
+ reconciliation itself is part of the discovery.
138
+
139
+ ## 9. Audit claim repetition
140
+
141
+ A major claim may be introduced, demonstrated, and synthesized, but each
142
+ appearance must perform a different function. Build a claim-location map across
143
+ the heading, transition, figure/table caption, Results paragraph, Discussion,
144
+ and closing sentence. For each occurrence, mark `introduce`, `demonstrate`,
145
+ `interpret`, `synthesize`, `shorten`, or `delete`.
146
+
147
+ Delete or compress restatements that add no new evidence, boundary, or
148
+ interpretation. Do not force the same full claim into every rhetorical slot.
149
+
150
+ ## 10. Return an auditable compression record
151
+
152
+ For a Results or full-manuscript restructuring task, return or maintain:
153
+
154
+ 1. **Result-allocation table:** result, class, effect on central interpretation,
155
+ destination, and SI/caption pointer.
156
+ 2. **Shortest evidence chain:** ordered main-text claims and their decisive
157
+ evidence.
158
+ 3. **Deletion log:** appended, replaced, compressed, relocated, or deleted text,
159
+ with a short reason.
160
+ 4. **Statistics-location record:** primary main-text report and secondary SI
161
+ analyses.
162
+ 5. **Claim-repetition map:** retained rhetorical function at each location.
163
+ 6. **Word-count delta:** before and after for every revised Results subsection.
164
+
165
+ The prose remains the deliverable. Keep the audit compact unless the user asks
166
+ for the full table.
167
+
168
+ ## Non-negotiable exceptions
169
+
170
+ - Do not move information required for reproducibility, research integrity,
171
+ participant safety, ethics, or a mandatory reporting checklist merely to save
172
+ words.
173
+ - Do not bury contradictory or conclusion-changing evidence in SI.
174
+ - Do not strip a qualification that prevents a misleading causal, clinical,
175
+ societal, or generalization claim.
176
+ - Do not remove statistics required by the target journal, study design, or
177
+ field standard.
178
+ - When the user or editor explicitly requires a point in the main text, comply
179
+ but still replace or compress neighboring redundancy before appending.