flonat-research 0.1.0

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 (285) hide show
  1. package/.claude/agents/domain-reviewer.md +336 -0
  2. package/.claude/agents/fixer.md +226 -0
  3. package/.claude/agents/paper-critic.md +370 -0
  4. package/.claude/agents/peer-reviewer.md +289 -0
  5. package/.claude/agents/proposal-reviewer.md +215 -0
  6. package/.claude/agents/referee2-reviewer.md +367 -0
  7. package/.claude/agents/references/journal-referee-profiles.md +354 -0
  8. package/.claude/agents/references/paper-critic/council-personas.md +77 -0
  9. package/.claude/agents/references/paper-critic/council-prompts.md +198 -0
  10. package/.claude/agents/references/peer-reviewer/report-template.md +199 -0
  11. package/.claude/agents/references/peer-reviewer/sa-prompts.md +260 -0
  12. package/.claude/agents/references/peer-reviewer/security-scan.md +188 -0
  13. package/.claude/agents/references/proposal-reviewer/report-template.md +144 -0
  14. package/.claude/agents/references/proposal-reviewer/sa-prompts.md +149 -0
  15. package/.claude/agents/references/referee-config.md +114 -0
  16. package/.claude/agents/references/referee2-reviewer/audit-checklists.md +287 -0
  17. package/.claude/agents/references/referee2-reviewer/report-template.md +334 -0
  18. package/.claude/rules/design-before-results.md +52 -0
  19. package/.claude/rules/ignore-agents-md.md +17 -0
  20. package/.claude/rules/ignore-gemini-md.md +17 -0
  21. package/.claude/rules/lean-claude-md.md +45 -0
  22. package/.claude/rules/learn-tags.md +99 -0
  23. package/.claude/rules/overleaf-separation.md +67 -0
  24. package/.claude/rules/plan-first.md +175 -0
  25. package/.claude/rules/read-docs-first.md +50 -0
  26. package/.claude/rules/scope-discipline.md +28 -0
  27. package/.claude/settings.json +125 -0
  28. package/.context/current-focus.md +33 -0
  29. package/.context/preferences/priorities.md +36 -0
  30. package/.context/preferences/task-naming.md +28 -0
  31. package/.context/profile.md +29 -0
  32. package/.context/projects/_index.md +41 -0
  33. package/.context/projects/papers/nudge-exp.md +22 -0
  34. package/.context/projects/papers/uncertainty.md +31 -0
  35. package/.context/resources/claude-scientific-writer-review.md +48 -0
  36. package/.context/resources/cunningham-multi-analyst-agents.md +104 -0
  37. package/.context/resources/cunningham-multilang-code-audit.md +62 -0
  38. package/.context/resources/google-ai-co-scientist-review.md +72 -0
  39. package/.context/resources/karpathy-llm-council-review.md +58 -0
  40. package/.context/resources/multi-coder-reliability-protocol.md +175 -0
  41. package/.context/resources/pedro-santanna-takeaways.md +96 -0
  42. package/.context/resources/venue-rankings/abs_ajg_2024.csv +1823 -0
  43. package/.context/resources/venue-rankings/abs_ajg_2024_econ.csv +356 -0
  44. package/.context/resources/venue-rankings/cabs_4_4star_theory.csv +40 -0
  45. package/.context/resources/venue-rankings/core_2026.csv +801 -0
  46. package/.context/resources/venue-rankings.md +147 -0
  47. package/.context/workflows/README.md +69 -0
  48. package/.context/workflows/daily-review.md +91 -0
  49. package/.context/workflows/meeting-actions.md +108 -0
  50. package/.context/workflows/replication-protocol.md +155 -0
  51. package/.context/workflows/weekly-review.md +113 -0
  52. package/.mcp-server-biblio/formatters.py +158 -0
  53. package/.mcp-server-biblio/pyproject.toml +11 -0
  54. package/.mcp-server-biblio/server.py +678 -0
  55. package/.mcp-server-biblio/sources/__init__.py +14 -0
  56. package/.mcp-server-biblio/sources/base.py +73 -0
  57. package/.mcp-server-biblio/sources/formatters.py +83 -0
  58. package/.mcp-server-biblio/sources/models.py +22 -0
  59. package/.mcp-server-biblio/sources/multi_source.py +243 -0
  60. package/.mcp-server-biblio/sources/openalex_source.py +183 -0
  61. package/.mcp-server-biblio/sources/scopus_source.py +309 -0
  62. package/.mcp-server-biblio/sources/wos_source.py +508 -0
  63. package/.mcp-server-biblio/uv.lock +896 -0
  64. package/.scripts/README.md +161 -0
  65. package/.scripts/ai_pattern_density.py +446 -0
  66. package/.scripts/conf +445 -0
  67. package/.scripts/config.py +122 -0
  68. package/.scripts/count_inventory.py +275 -0
  69. package/.scripts/daily_digest.py +288 -0
  70. package/.scripts/done +177 -0
  71. package/.scripts/extract_meeting_actions.py +223 -0
  72. package/.scripts/focus +176 -0
  73. package/.scripts/generate-codex-agents-md.py +217 -0
  74. package/.scripts/inbox +194 -0
  75. package/.scripts/notion_helpers.py +325 -0
  76. package/.scripts/openalex/query_helpers.py +306 -0
  77. package/.scripts/papers +227 -0
  78. package/.scripts/query +223 -0
  79. package/.scripts/session-history.py +201 -0
  80. package/.scripts/skill-health.py +516 -0
  81. package/.scripts/skill-log-miner.py +273 -0
  82. package/.scripts/sync-to-codex.sh +252 -0
  83. package/.scripts/task +213 -0
  84. package/.scripts/tasks +190 -0
  85. package/.scripts/week +206 -0
  86. package/CLAUDE.md +197 -0
  87. package/LICENSE +21 -0
  88. package/MEMORY.md +38 -0
  89. package/README.md +269 -0
  90. package/docs/agents.md +44 -0
  91. package/docs/bibliography-setup.md +55 -0
  92. package/docs/council-mode.md +36 -0
  93. package/docs/getting-started.md +245 -0
  94. package/docs/hooks.md +38 -0
  95. package/docs/mcp-servers.md +82 -0
  96. package/docs/notion-setup.md +109 -0
  97. package/docs/rules.md +33 -0
  98. package/docs/scripts.md +303 -0
  99. package/docs/setup-overview/setup-overview.pdf +0 -0
  100. package/docs/skills.md +70 -0
  101. package/docs/system.md +159 -0
  102. package/hooks/block-destructive-git.sh +66 -0
  103. package/hooks/context-monitor.py +114 -0
  104. package/hooks/postcompact-restore.py +157 -0
  105. package/hooks/precompact-autosave.py +181 -0
  106. package/hooks/promise-checker.sh +124 -0
  107. package/hooks/protect-source-files.sh +81 -0
  108. package/hooks/resume-context-loader.sh +53 -0
  109. package/hooks/startup-context-loader.sh +102 -0
  110. package/package.json +51 -0
  111. package/packages/cli-council/.github/workflows/claude-code-review.yml +44 -0
  112. package/packages/cli-council/.github/workflows/claude.yml +50 -0
  113. package/packages/cli-council/README.md +100 -0
  114. package/packages/cli-council/pyproject.toml +43 -0
  115. package/packages/cli-council/src/cli_council/__init__.py +19 -0
  116. package/packages/cli-council/src/cli_council/__main__.py +185 -0
  117. package/packages/cli-council/src/cli_council/backends/__init__.py +8 -0
  118. package/packages/cli-council/src/cli_council/backends/base.py +81 -0
  119. package/packages/cli-council/src/cli_council/backends/claude.py +25 -0
  120. package/packages/cli-council/src/cli_council/backends/codex.py +27 -0
  121. package/packages/cli-council/src/cli_council/backends/gemini.py +26 -0
  122. package/packages/cli-council/src/cli_council/checkpoint.py +212 -0
  123. package/packages/cli-council/src/cli_council/config.py +51 -0
  124. package/packages/cli-council/src/cli_council/council.py +391 -0
  125. package/packages/cli-council/src/cli_council/models.py +46 -0
  126. package/packages/llm-council/.github/workflows/claude-code-review.yml +44 -0
  127. package/packages/llm-council/.github/workflows/claude.yml +50 -0
  128. package/packages/llm-council/README.md +453 -0
  129. package/packages/llm-council/pyproject.toml +42 -0
  130. package/packages/llm-council/src/llm_council/__init__.py +23 -0
  131. package/packages/llm-council/src/llm_council/__main__.py +259 -0
  132. package/packages/llm-council/src/llm_council/checkpoint.py +193 -0
  133. package/packages/llm-council/src/llm_council/client.py +253 -0
  134. package/packages/llm-council/src/llm_council/config.py +232 -0
  135. package/packages/llm-council/src/llm_council/council.py +482 -0
  136. package/packages/llm-council/src/llm_council/models.py +46 -0
  137. package/packages/mcp-bibliography/MEMORY.md +31 -0
  138. package/packages/mcp-bibliography/_app.py +226 -0
  139. package/packages/mcp-bibliography/formatters.py +158 -0
  140. package/packages/mcp-bibliography/log/2026-03-13-2100.md +35 -0
  141. package/packages/mcp-bibliography/pyproject.toml +15 -0
  142. package/packages/mcp-bibliography/run.sh +20 -0
  143. package/packages/mcp-bibliography/scholarly_formatters.py +83 -0
  144. package/packages/mcp-bibliography/server.py +1857 -0
  145. package/packages/mcp-bibliography/tools/__init__.py +28 -0
  146. package/packages/mcp-bibliography/tools/_registry.py +19 -0
  147. package/packages/mcp-bibliography/tools/altmetric.py +107 -0
  148. package/packages/mcp-bibliography/tools/core.py +92 -0
  149. package/packages/mcp-bibliography/tools/dblp.py +52 -0
  150. package/packages/mcp-bibliography/tools/openalex.py +296 -0
  151. package/packages/mcp-bibliography/tools/opencitations.py +102 -0
  152. package/packages/mcp-bibliography/tools/openreview.py +179 -0
  153. package/packages/mcp-bibliography/tools/orcid.py +131 -0
  154. package/packages/mcp-bibliography/tools/scholarly.py +575 -0
  155. package/packages/mcp-bibliography/tools/unpaywall.py +63 -0
  156. package/packages/mcp-bibliography/tools/zenodo.py +123 -0
  157. package/packages/mcp-bibliography/uv.lock +711 -0
  158. package/scripts/setup.sh +143 -0
  159. package/skills/beamer-deck/SKILL.md +199 -0
  160. package/skills/beamer-deck/references/quality-rubric.md +54 -0
  161. package/skills/beamer-deck/references/review-prompts.md +106 -0
  162. package/skills/bib-validate/SKILL.md +261 -0
  163. package/skills/bib-validate/references/council-mode.md +34 -0
  164. package/skills/bib-validate/references/deep-verify.md +79 -0
  165. package/skills/bib-validate/references/fix-mode.md +36 -0
  166. package/skills/bib-validate/references/openalex-verification.md +45 -0
  167. package/skills/bib-validate/references/preprint-check.md +31 -0
  168. package/skills/bib-validate/references/ref-manager-crossref.md +41 -0
  169. package/skills/bib-validate/references/report-template.md +82 -0
  170. package/skills/code-archaeology/SKILL.md +141 -0
  171. package/skills/code-review/SKILL.md +265 -0
  172. package/skills/code-review/references/quality-rubric.md +67 -0
  173. package/skills/consolidate-memory/SKILL.md +208 -0
  174. package/skills/context-status/SKILL.md +126 -0
  175. package/skills/creation-guard/SKILL.md +230 -0
  176. package/skills/devils-advocate/SKILL.md +130 -0
  177. package/skills/devils-advocate/references/competing-hypotheses.md +83 -0
  178. package/skills/init-project/SKILL.md +115 -0
  179. package/skills/init-project-course/references/memory-and-settings.md +92 -0
  180. package/skills/init-project-course/references/organise-templates.md +94 -0
  181. package/skills/init-project-course/skill.md +147 -0
  182. package/skills/init-project-light/skill.md +139 -0
  183. package/skills/init-project-research/SKILL.md +368 -0
  184. package/skills/init-project-research/references/atlas-pipeline-sync.md +70 -0
  185. package/skills/init-project-research/references/atlas-schema.md +81 -0
  186. package/skills/init-project-research/references/confirmation-report.md +39 -0
  187. package/skills/init-project-research/references/domain-profile-template.md +104 -0
  188. package/skills/init-project-research/references/interview-round3.md +34 -0
  189. package/skills/init-project-research/references/literature-discovery.md +43 -0
  190. package/skills/init-project-research/references/scaffold-details.md +197 -0
  191. package/skills/init-project-research/templates/field-calibration.md +60 -0
  192. package/skills/init-project-research/templates/pipeline-manifest.md +63 -0
  193. package/skills/init-project-research/templates/run-all.sh +116 -0
  194. package/skills/init-project-research/templates/seed-files.md +337 -0
  195. package/skills/insights-deck/SKILL.md +151 -0
  196. package/skills/interview-me/SKILL.md +157 -0
  197. package/skills/latex/SKILL.md +141 -0
  198. package/skills/latex/references/latex-configs.md +183 -0
  199. package/skills/latex-autofix/SKILL.md +230 -0
  200. package/skills/latex-autofix/references/known-errors.md +183 -0
  201. package/skills/latex-autofix/references/quality-rubric.md +50 -0
  202. package/skills/latex-health-check/SKILL.md +161 -0
  203. package/skills/learn/SKILL.md +220 -0
  204. package/skills/learn/scripts/validate_skill.py +265 -0
  205. package/skills/lessons-learned/SKILL.md +201 -0
  206. package/skills/literature/SKILL.md +335 -0
  207. package/skills/literature/references/agent-templates.md +393 -0
  208. package/skills/literature/references/bibliometric-apis.md +44 -0
  209. package/skills/literature/references/cli-council-search.md +79 -0
  210. package/skills/literature/references/openalex-api-guide.md +371 -0
  211. package/skills/literature/references/openalex-common-queries.md +381 -0
  212. package/skills/literature/references/openalex-workflows.md +248 -0
  213. package/skills/literature/references/reference-manager-sync.md +36 -0
  214. package/skills/literature/references/scopus-api-guide.md +208 -0
  215. package/skills/literature/references/wos-api-guide.md +308 -0
  216. package/skills/multi-perspective/SKILL.md +311 -0
  217. package/skills/multi-perspective/references/computational-many-analysts.md +77 -0
  218. package/skills/pipeline-manifest/SKILL.md +226 -0
  219. package/skills/pre-submission-report/SKILL.md +153 -0
  220. package/skills/process-reviews/SKILL.md +244 -0
  221. package/skills/process-reviews/references/rr-routing.md +101 -0
  222. package/skills/project-deck/SKILL.md +87 -0
  223. package/skills/project-safety/SKILL.md +135 -0
  224. package/skills/proofread/SKILL.md +254 -0
  225. package/skills/proofread/references/quality-rubric.md +104 -0
  226. package/skills/python-env/SKILL.md +57 -0
  227. package/skills/quarto-deck/SKILL.md +226 -0
  228. package/skills/quarto-deck/references/markdown-format.md +143 -0
  229. package/skills/quarto-deck/references/quality-rubric.md +54 -0
  230. package/skills/save-context/SKILL.md +174 -0
  231. package/skills/session-log/SKILL.md +98 -0
  232. package/skills/shared/concept-validation-gate.md +161 -0
  233. package/skills/shared/council-protocol.md +265 -0
  234. package/skills/shared/distribution-diagnostics.md +164 -0
  235. package/skills/shared/engagement-stratified-sampling.md +218 -0
  236. package/skills/shared/escalation-protocol.md +74 -0
  237. package/skills/shared/external-audit-protocol.md +205 -0
  238. package/skills/shared/intercoder-reliability.md +256 -0
  239. package/skills/shared/mcp-degradation.md +81 -0
  240. package/skills/shared/method-probing-questions.md +163 -0
  241. package/skills/shared/multi-language-conventions.md +143 -0
  242. package/skills/shared/paid-api-safety.md +174 -0
  243. package/skills/shared/palettes.md +90 -0
  244. package/skills/shared/progressive-disclosure.md +92 -0
  245. package/skills/shared/project-documentation-content.md +443 -0
  246. package/skills/shared/project-documentation-format.md +281 -0
  247. package/skills/shared/project-documentation.md +100 -0
  248. package/skills/shared/publication-output.md +138 -0
  249. package/skills/shared/quality-scoring.md +70 -0
  250. package/skills/shared/reference-resolution.md +77 -0
  251. package/skills/shared/research-quality-rubric.md +165 -0
  252. package/skills/shared/rhetoric-principles.md +54 -0
  253. package/skills/shared/skill-design-patterns.md +272 -0
  254. package/skills/shared/skill-index.md +240 -0
  255. package/skills/shared/system-documentation.md +334 -0
  256. package/skills/shared/tikz-rules.md +402 -0
  257. package/skills/shared/validation-tiers.md +121 -0
  258. package/skills/shared/venue-guides/README.md +46 -0
  259. package/skills/shared/venue-guides/cell_press_style.md +483 -0
  260. package/skills/shared/venue-guides/conferences_formatting.md +564 -0
  261. package/skills/shared/venue-guides/cs_conference_style.md +463 -0
  262. package/skills/shared/venue-guides/examples/cell_summary_example.md +247 -0
  263. package/skills/shared/venue-guides/examples/medical_structured_abstract.md +313 -0
  264. package/skills/shared/venue-guides/examples/nature_abstract_examples.md +213 -0
  265. package/skills/shared/venue-guides/examples/neurips_introduction_example.md +245 -0
  266. package/skills/shared/venue-guides/journals_formatting.md +486 -0
  267. package/skills/shared/venue-guides/medical_journal_styles.md +535 -0
  268. package/skills/shared/venue-guides/ml_conference_style.md +556 -0
  269. package/skills/shared/venue-guides/nature_science_style.md +405 -0
  270. package/skills/shared/venue-guides/reviewer_expectations.md +417 -0
  271. package/skills/shared/venue-guides/venue_writing_styles.md +321 -0
  272. package/skills/split-pdf/SKILL.md +172 -0
  273. package/skills/split-pdf/methodology.md +48 -0
  274. package/skills/sync-notion/SKILL.md +93 -0
  275. package/skills/system-audit/SKILL.md +157 -0
  276. package/skills/system-audit/references/sub-agent-prompts.md +294 -0
  277. package/skills/task-management/SKILL.md +131 -0
  278. package/skills/update-focus/SKILL.md +204 -0
  279. package/skills/update-project-doc/SKILL.md +194 -0
  280. package/skills/validate-bib/SKILL.md +242 -0
  281. package/skills/validate-bib/references/council-mode.md +34 -0
  282. package/skills/validate-bib/references/deep-verify.md +71 -0
  283. package/skills/validate-bib/references/openalex-verification.md +45 -0
  284. package/skills/validate-bib/references/preprint-check.md +31 -0
  285. package/skills/validate-bib/references/report-template.md +62 -0
@@ -0,0 +1,337 @@
1
+ # Seed File Templates
2
+
3
+ > Templates for Phase 3 of `/init-project-research`. Replace `<placeholders>` with interview answers.
4
+
5
+ ## CLAUDE.md
6
+
7
+ ```markdown
8
+ # Claude Context for <Working Title>
9
+
10
+ ## Project Overview
11
+ - **Working title:** <title>
12
+ - **Authors:** <names>
13
+ - **Venue type:** <journal/conference/preprint>
14
+ - **Target venue:** <name>
15
+ - **Deadline:** <date or "No fixed deadline">
16
+ - **Type:** <experimental/computational/theoretical/mixed>
17
+
18
+ ### Venue Details
19
+ <!-- Use ONE of the blocks below based on venue type -->
20
+
21
+ <!-- IF JOURNAL -->
22
+ - **CABS AJG:** <ranking>
23
+ - **WBS 60:** <yes/no>
24
+ - **FT 50:** <yes/no>
25
+ <!-- END JOURNAL -->
26
+
27
+ <!-- IF CONFERENCE -->
28
+ - **CORE ranking:** <A*/A/B/C>
29
+ - **Page limit:** <N pages + refs>
30
+ - **Format:** <template name>
31
+ - **Review type:** <double-blind/single-blind/open>
32
+ - **Anonymisation:** <yes/no>
33
+ - **Submission deadline:** <date>
34
+ - **Notification:** <date>
35
+ - **Camera-ready:** <date>
36
+ - **CfP link:** <URL>
37
+ <!-- END CONFERENCE -->
38
+
39
+ ## Research Questions
40
+ 1. <RQ1>
41
+ 2. <RQ2>
42
+ 3. <RQ3>
43
+
44
+ ## Methodology
45
+ <One-line methodology overview>
46
+
47
+ ## Setup
48
+
49
+ ### Overleaf
50
+ - **Symlink:** `paper/` → `<overleaf-path>/`
51
+ - **External link:** <URL>
52
+ - **To recreate symlink:** `ln -s "<overleaf-path>" "<project-path>/paper"`
53
+
54
+ ### GitHub
55
+ <URL or "Local-only">
56
+
57
+ ### Collaborators
58
+ <Names, affiliations, contact if provided>
59
+
60
+ ## Folder Structure
61
+ ```
62
+ <tree of the created structure>
63
+ ```
64
+
65
+ ## Conventions
66
+ - Compile LaTeX: build artifacts to `out/`, PDF copied back to source directory via `.latexmkrc`
67
+ - Use `uv` for Python, never bare `pip` or `python`
68
+ - Canonical bibliography: `paper/references.bib`
69
+ - Citation keys: Better BibTeX format (e.g., `AuthorYYYY-xx`)
70
+ - **Overleaf separation:** `paper/` is LaTeX source ONLY — no code, data, or scripts. All code goes in `code/` or `src/`, all data in `data/`. Only exported figures/tables go into `paper/`.
71
+
72
+ ## Session Continuity
73
+ - Update `.context/current-focus.md` at end of each session
74
+ - Use `.context/project-recap.md` for research design notes
75
+ - Session logs go in `log/`
76
+ ```
77
+
78
+ ## README.md
79
+
80
+ ```markdown
81
+ # <Working Title>
82
+
83
+ **Authors:** <names>
84
+ **Affiliation:** <institution>
85
+ **Target:** <venue> (<deadline or "ongoing">)
86
+
87
+ ## Abstract
88
+ <elevator pitch>
89
+
90
+ ## Links
91
+ - **Overleaf:** <external link>
92
+ - **GitHub:** <URL or "local-only">
93
+
94
+ ## Status
95
+ - [ ] Literature review
96
+ - [ ] Research design
97
+ - [ ] Data collection
98
+ - [ ] Analysis
99
+ - [ ] Drafting
100
+ - [ ] Submission
101
+ ```
102
+
103
+ ## .gitignore
104
+
105
+ ```gitignore
106
+ # OS
107
+ .DS_Store
108
+ Thumbs.db
109
+
110
+ # IDE
111
+ .vscode/
112
+ .idea/
113
+ *.swp
114
+
115
+ # Data (regenerable or too large for git)
116
+ data/
117
+ output/
118
+ results/
119
+
120
+ # Paper (tracked in Overleaf)
121
+ paper/
122
+
123
+ # Logs
124
+ log/
125
+
126
+ # Unsorted inbox
127
+ to-sort/
128
+
129
+ # Machine-specific memory (gitignored, never synced)
130
+ .claude/state/
131
+
132
+ # Python
133
+ __pycache__/
134
+ *.pyc
135
+ .venv/
136
+ *.egg-info/
137
+ dist/
138
+ build/
139
+
140
+ # R
141
+ .Rhistory
142
+ .RData
143
+ .Rproj.user/
144
+
145
+ # LaTeX build artifacts
146
+ *.aux
147
+ *.bbl
148
+ *.blg
149
+ *.fdb_latexmk
150
+ *.fls
151
+ *.log
152
+ *.out
153
+ *.synctex.gz
154
+ *.toc
155
+ out/
156
+ ```
157
+
158
+ ## MEMORY.md
159
+
160
+ Seed MEMORY.md at project root based on project type. Use the **research** template by default; use the **teaching** template for teaching or workshop projects.
161
+
162
+ ### Research Template
163
+
164
+ ```markdown
165
+ # Memory — <Working Title>
166
+
167
+ ## Notation Registry
168
+
169
+ | Variable | Convention | Anti-pattern |
170
+ |----------|-----------|--------------|
171
+ | | | |
172
+
173
+ ## Citations
174
+
175
+ <!-- One-liner [LEARN:citation] corrections go here -->
176
+
177
+ ## Estimand Registry
178
+
179
+ | What we estimate | Identification | Key assumptions |
180
+ |-----------------|---------------|-----------------|
181
+ | | | |
182
+
183
+ ## Key Decisions
184
+
185
+ | Decision | Rationale | Date |
186
+ |----------|-----------|------|
187
+ | | | |
188
+
189
+ ## Anti-Patterns
190
+
191
+ | What went wrong | Correction |
192
+ |----------------|------------|
193
+ | | |
194
+
195
+ ## Code Pitfalls
196
+
197
+ | Bug | Impact | Fix |
198
+ |-----|--------|-----|
199
+ | | | |
200
+ ```
201
+
202
+ ### Teaching Template
203
+
204
+ ```markdown
205
+ # Memory — <Course/Workshop Name>
206
+
207
+ ## Lecture Progression
208
+
209
+ | Topic | Core question | Key method |
210
+ |-------|--------------|------------|
211
+ | | | |
212
+
213
+ ## Student Misconceptions
214
+
215
+ | Misconception | Correction | How to address |
216
+ |--------------|------------|----------------|
217
+ | | | |
218
+
219
+ ## Empirical Applications
220
+
221
+ | Paper | Dataset | Purpose |
222
+ |-------|---------|---------|
223
+ | | | |
224
+
225
+ ## Code Pitfalls
226
+
227
+ | Bug | Impact | Fix |
228
+ |-----|--------|-----|
229
+ | | | |
230
+ ```
231
+
232
+ ## .claude/state/personal-memory.md (optional)
233
+
234
+ Not created during init — only created on first machine-specific `[LEARN]` tag. Seed template for reference:
235
+
236
+ ```markdown
237
+ # Personal Memory — Machine-Specific
238
+
239
+ > Gitignored. Machine-specific workarounds and local paths.
240
+ > Generic learnings go in MEMORY.md (committed).
241
+
242
+ ## Local Environment
243
+
244
+ | Issue | Workaround |
245
+ |-------|-----------|
246
+
247
+ ## Tool Quirks
248
+
249
+ | Tool | Version | Gotcha |
250
+ |------|---------|--------|
251
+ ```
252
+
253
+ ## .context/field-calibration.md
254
+
255
+ Copy the template from `skills/init-project-research/templates/field-calibration.md`, replacing `<Working Title>` with the project title. All other placeholders remain — `/interview-me` Phase 7 populates them.
256
+
257
+ ## .context/current-focus.md
258
+
259
+ ```markdown
260
+ # Current Focus
261
+
262
+ > Project just initialised. Update this file at the end of each session.
263
+
264
+ ## Next Steps
265
+ 1. <First logical step based on project type>
266
+ 2. Set up bibliography in Overleaf
267
+ 3. Begin literature review
268
+ ```
269
+
270
+ ## .context/project-recap.md
271
+
272
+ ```markdown
273
+ # Project Recap: <Working Title>
274
+
275
+ ## Abstract
276
+ <elevator pitch>
277
+
278
+ ## Research Questions
279
+ 1. <RQ1>
280
+ 2. <RQ2>
281
+ 3. <RQ3>
282
+
283
+ ## Methodology
284
+ <overview>
285
+
286
+ ## Key Decisions
287
+ <empty — to be populated as the project evolves>
288
+
289
+ ## References
290
+ <empty — add key papers as literature review progresses>
291
+ ```
292
+
293
+ ## .claude/hooks/copy-paper-pdf.sh
294
+
295
+ PostToolUse hook that copies compiled paper PDFs to the backup folder after LaTeX compilation. Multi-paper-safe: scans for all `paper-*` directories/symlinks and copies each `main.pdf` to `<paper-wrapper>/backup/<dirname>_vcurrent.pdf`.
296
+
297
+ ```bash
298
+ #!/usr/bin/env bash
299
+ # PostToolUse hook: copy compiled paper PDFs to backup folder after LaTeX compilation
300
+ # Scans for all paper-* directories and copies each main.pdf → backup/<dirname>_vcurrent.pdf
301
+ # Only copies when source is newer; silently skips missing PDFs
302
+
303
+ PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
304
+
305
+ for paper_dir in "$PROJECT_ROOT"/paper-*; do
306
+ [ -d "$paper_dir" ] || [ -L "$paper_dir" ] || continue
307
+ dirname="$(basename "$paper_dir")"
308
+ src="$paper_dir/paper/main.pdf"
309
+ [ -f "$src" ] || src="$paper_dir/main.pdf"
310
+ backup_dir="$paper_dir/backup"
311
+ dest="$backup_dir/${dirname}_vcurrent.pdf"
312
+ if [ -f "$src" ]; then
313
+ if [ ! -f "$dest" ] || [ "$src" -nt "$dest" ]; then
314
+ mkdir -p "$backup_dir"
315
+ cp "$src" "$dest"
316
+ fi
317
+ fi
318
+ done
319
+ ```
320
+
321
+ After creating the hook script, the PostToolUse hook must also be registered in `.claude/settings.local.json`. Add the following to the `hooks` key:
322
+
323
+ ```json
324
+ "hooks": {
325
+ "PostToolUse": [
326
+ {
327
+ "matcher": "Bash",
328
+ "hooks": [
329
+ {
330
+ "type": "command",
331
+ "command": ".claude/hooks/copy-paper-pdf.sh"
332
+ }
333
+ ]
334
+ }
335
+ ]
336
+ }
337
+ ```
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: insights-deck
3
+ description: "Use when you need a timestamped Claude Code insights report and Beamer presentation."
4
+ allowed-tools: Bash(latexmk*), Bash(pdflatex*), Bash(xelatex*), Bash(mkdir*), Bash(ls*), Bash(cp*), Read, Write, Edit, Glob, Grep, Task
5
+ argument-hint: (no arguments)
6
+ ---
7
+
8
+ # Insights Deck Skill
9
+
10
+ > Archive a Claude Code `/insights` HTML report and generate a Beamer presentation summarising the findings. All outputs go to `log/insights/` with date stamps.
11
+
12
+ ## When to Use
13
+
14
+ - After running `/insights` to review your Claude Code usage patterns
15
+ - When you want a shareable deck summarising how you use Claude Code
16
+ - For periodic self-reflection on AI-assisted workflow
17
+
18
+ ## Scope
19
+
20
+ This skill produces **two outputs only**: an archived HTML report and a Beamer deck. Do NOT use insights suggestions to create plans, rules, CLAUDE.md edits, or other follow-up actions during this skill's execution. If the user wants to act on suggestions, that happens after the deck is delivered — as a separate conversation.
21
+
22
+ ---
23
+
24
+ ## Phase 1 — Generate & Archive Insights
25
+
26
+ ### Step 1: Prompt the user to run `/insights`
27
+
28
+ `/insights` is a built-in Claude Code command that cannot be invoked programmatically. Tell the user:
29
+
30
+ > Please run `/insights` now. Once the HTML report opens in your browser, let me know and I'll continue.
31
+
32
+ ### Step 2: Locate the generated HTML
33
+
34
+ After `/insights` completes, find the most recent insights HTML file:
35
+
36
+ ```bash
37
+ ls -t /tmp/claude-insights-*.html 2>/dev/null | head -1
38
+ ```
39
+
40
+ If not found in `/tmp/`, check the user's home directory and common download locations. Ask the user for the path if it can't be located automatically.
41
+
42
+ ### Step 3: Archive the HTML
43
+
44
+ Each insights run gets its own date folder:
45
+
46
+ ```bash
47
+ mkdir -p log/insights/YYYY-MM-DD
48
+ cp <source-html> log/insights/YYYY-MM-DD/insights-YYYY-MM-DD-log.html
49
+ ```
50
+
51
+ Use today's date for the timestamp.
52
+
53
+ ---
54
+
55
+ ## Phase 2 — Build Beamer Deck
56
+
57
+ ### Step 1: Read and extract findings
58
+
59
+ Read the archived HTML file (`log/insights/YYYY-MM-DD/insights-YYYY-MM-DD-log.html`). Extract:
60
+
61
+ 1. **Usage patterns** — most-used tools, session frequency, typical session length
62
+ 2. **Strengths** — what's working well in the workflow
63
+ 3. **Friction points** — repeated failures, slow patterns, underused features
64
+ 4. **Recommendations** — suggested improvements
65
+
66
+ ### Step 2: Design the deck structure
67
+
68
+ Apply rhetoric principles from the `beamer-deck` skill (condensed — no sub-agent reviews needed for an internal deck):
69
+
70
+ - **Assertion titles** — every frame title states a claim, not a label
71
+ - **One idea per slide** — split if a slide has two ideas
72
+ - **Three-act arc:**
73
+ - Act I (Tension): Current usage snapshot — what does the data show?
74
+ - Act II (Development): Patterns, strengths, friction points
75
+ - Act III (Resolution): Recommendations and next steps
76
+ - **MB/MC balance** — vary dense and light slides deliberately
77
+ - **Pyramid principle** — lead with conclusions, then support
78
+
79
+ ### Step 3: Generate the `.tex` file
80
+
81
+ Write to `log/insights/YYYY-MM-DD/insights-YYYY-MM-DD-deck.tex` with:
82
+
83
+ - `\documentclass[aspectratio=169,11pt]{beamer}`
84
+ - Original inline theme (no default Beamer themes)
85
+ - Professional colour palette:
86
+ ```latex
87
+ \definecolor{Midnight}{HTML}{1A1A2E}
88
+ \definecolor{DeepBlue}{HTML}{16213E}
89
+ \definecolor{RoyalBlue}{HTML}{0F3460}
90
+ \definecolor{Coral}{HTML}{E94560}
91
+ \definecolor{SoftGray}{HTML}{BDC3C7}
92
+ \definecolor{CloudWhite}{HTML}{FAFBFC}
93
+ ```
94
+ - Suggested structure (adapt based on findings):
95
+ 1. Title slide — "Claude Code Usage: [Month Year]"
96
+ 2. Opening claim — lead with the most striking finding
97
+ 3. Usage overview — session count, tool distribution, time patterns
98
+ 4. Top strengths (1–2 slides)
99
+ 5. Key friction points (1–2 slides)
100
+ 6. Recommendations (1–2 slides)
101
+ 7. Closing — single actionable takeaway
102
+
103
+ ### Step 4: Compile
104
+
105
+ Create a `.latexmkrc` in the date folder if not present:
106
+
107
+ ```perl
108
+ $out_dir = 'out';
109
+ # Copy PDF back to source directory after build
110
+ END { system("cp $out_dir/*.pdf . 2>/dev/null") if defined $out_dir; }
111
+ ```
112
+
113
+ Then compile:
114
+
115
+ ```bash
116
+ cd log/insights/YYYY-MM-DD && latexmk -pdf insights-YYYY-MM-DD-deck.tex
117
+ ```
118
+
119
+ ### Step 5: Fix all warnings
120
+
121
+ Parse `out/*.log` for overfull/underfull hbox/vbox warnings. Fix every one. Recompile until clean.
122
+
123
+ The `.latexmkrc` copies the PDF from `out/` back to the date folder automatically.
124
+
125
+ ---
126
+
127
+ ## Output
128
+
129
+ When complete, the date folder should contain:
130
+
131
+ ```
132
+ log/insights/YYYY-MM-DD/
133
+ ├── insights-YYYY-MM-DD-log.html # Archived /insights HTML
134
+ ├── insights-YYYY-MM-DD-deck.tex # Beamer source
135
+ ├── insights-YYYY-MM-DD-deck.pdf # Compiled PDF
136
+ ├── .latexmkrc # Build config
137
+ └── out/ # Build artifacts
138
+ ```
139
+
140
+ Each `/insights-deck` run creates a new date folder, keeping the parent `log/insights/` clean.
141
+
142
+ ---
143
+
144
+ ## Cross-References
145
+
146
+ | Skill | Relationship |
147
+ |-------|-------------|
148
+ | `/beamer-deck` | Full rhetoric framework and multi-agent review (this skill uses a condensed version) |
149
+ | `/latex-autofix` | **Default compiler** — use for compilation with auto error resolution |
150
+ | `/latex` | Manual compilation config details, `.latexmkrc` setup |
151
+ | `/session-log` | Complements insights with session-level detail |
@@ -0,0 +1,157 @@
1
+ ---
2
+ name: interview-me
3
+ description: "Use when you need to conduct a structured interview to extract knowledge or preferences."
4
+ disable-model-invocation: true
5
+ argument-hint: "[brief topic or 'start fresh']"
6
+ allowed-tools: Read, Write, Edit
7
+ ---
8
+
9
+ # Research Interview
10
+
11
+ Conduct a structured interview to help formalise a research idea into a concrete specification.
12
+
13
+ **Input:** `$ARGUMENTS` — a brief topic description or "start fresh" for open-ended exploration.
14
+
15
+ ---
16
+
17
+ ## How This Works
18
+
19
+ This is a **conversational** skill. Instead of producing a report immediately, you conduct an interview by asking questions one at a time, probing deeper based on answers, and building toward a structured research specification.
20
+
21
+ **Do NOT use AskUserQuestion.** Ask questions directly in your text responses, one or two at a time. Wait for the user to respond before continuing.
22
+
23
+ Before starting, read `.context/profile.md` and `.context/projects/_index.md` to understand the researcher's areas and active projects. If the topic relates to an existing project, read its context file too.
24
+
25
+ ---
26
+
27
+ ## Interview Structure
28
+
29
+ ### Phase 1: The Big Picture (1–2 questions)
30
+ - "What phenomenon or puzzle are you trying to understand?"
31
+ - "Why does this matter? Who should care about the answer?"
32
+
33
+ ### Phase 2: Theoretical Motivation (1–2 questions)
34
+ - "What's your intuition for why X happens / what drives Y?"
35
+ - "What would standard theory predict? Do you expect something different?"
36
+
37
+ ### Phase 3: Data and Setting (1–2 questions)
38
+ - "What data do you have access to, or what data would you ideally want?"
39
+ - "Is there a specific context, time period, or institutional setting you're focused on?"
40
+
41
+ ### Phase 4: Identification (1–2 questions)
42
+ - "Is there a natural experiment, policy change, or source of variation you can exploit?"
43
+ - "What's the biggest threat to a causal interpretation?"
44
+
45
+ ### Phase 5: Expected Results (1–2 questions)
46
+ - "What would you expect to find? What would surprise you?"
47
+ - "What would the results imply for policy or theory?"
48
+
49
+ ### Phase 6: Contribution (1 question)
50
+ - "How does this differ from what's already been done? What's the gap you're filling?"
51
+
52
+ ---
53
+
54
+ ## Adapting to the Research Area
55
+
56
+ the user's work spans multiple disciplines. Adapt the interview to the domain:
57
+
58
+ - **Human-AI collaboration / MCDM**: Focus on decision architecture, experimental design, behavioural measures, and what "better" decisions look like.
59
+ - **Multi-agent systems**: Focus on agent design, interaction protocols, equilibrium concepts, and simulation methodology.
60
+ - **Organisational behaviour**: Focus on mechanisms, field vs. lab settings, mediators/moderators, and internal validity.
61
+ - **Carbon markets / environmental**: Focus on policy variation, compliance data, market microstructure, and welfare implications.
62
+
63
+ If the research is non-quantitative (conceptual, design science, qualitative), adjust: replace "Identification" with "Analytical Framework" and "Data" with "Empirical/Evidence Strategy".
64
+
65
+ ---
66
+
67
+ ### Phase 7: Field Calibration (optional, auto-triggered)
68
+
69
+ **Auto-triggers when:** the project has no `.context/field-calibration.md`, or it exists but still contains `<placeholders>`.
70
+
71
+ **Skip when:** the file already exists with populated content, unless the user explicitly asks to update it.
72
+
73
+ Ask 2–3 targeted questions:
74
+
75
+ - "Which journals or conferences are you targeting? I can cross-reference venue rankings." (Use `.context/resources/venue-rankings.md` to validate and suggest alternatives.)
76
+ - "Which seminal papers would a reviewer in this subfield expect to see cited?"
77
+ - "What's the typical identification strategy in this subfield — and what do reviewers most often attack?"
78
+
79
+ After the interview, populate `.context/field-calibration.md` from answers combined with Research Spec content. Use the template at `skills/init-project-research/templates/field-calibration.md`.
80
+
81
+ If field-calibration already exists with content: ask the user whether to update specific sections or keep as-is.
82
+
83
+ ---
84
+
85
+ ## After the Interview
86
+
87
+ Once you have enough information (typically 5–8 exchanges), produce a **Research Specification Document**:
88
+
89
+ ```markdown
90
+ # Research Specification: [Title]
91
+
92
+ **Date:** [YYYY-MM-DD]
93
+ **Researcher:** the user
94
+
95
+ ## Research Question
96
+
97
+ [Clear, specific question in one sentence]
98
+
99
+ ## Motivation
100
+
101
+ [2–3 paragraphs: why this matters, theoretical context, policy relevance]
102
+
103
+ ## Hypothesis
104
+
105
+ [Testable prediction with expected direction]
106
+
107
+ ## Empirical Strategy
108
+
109
+ - **Method:** [e.g., DiD, experiment, simulation, case study]
110
+ - **Treatment/Manipulation:** [What varies]
111
+ - **Control/Comparison:** [Comparison group or baseline]
112
+ - **Key identifying assumption:** [What must hold]
113
+ - **Robustness checks:** [Pre-trends, placebo, alternative specifications]
114
+
115
+ ## Data
116
+
117
+ - **Primary dataset:** [Name, source, coverage]
118
+ - **Key variables:** [Treatment, outcome, controls]
119
+ - **Sample:** [Unit of observation, time period, N]
120
+
121
+ ## Expected Results
122
+
123
+ [What the researcher expects to find and why]
124
+
125
+ ## Contribution
126
+
127
+ [How this advances the literature — 2–3 sentences]
128
+
129
+ ## Open Questions
130
+
131
+ [Issues raised during the interview that need further thought]
132
+ ```
133
+
134
+ **Save to:** the project root or `docs/` if inside a research project, or present to the user for placement.
135
+
136
+ **Also produces** (if Phase 7 triggered): `.context/field-calibration.md` — the per-project domain profile that agents use to calibrate reviews.
137
+
138
+ ---
139
+
140
+ ## Interview Style
141
+
142
+ - **Be curious, not prescriptive.** Your job is to draw out the researcher's thinking, not impose your own ideas.
143
+ - **Probe weak spots gently.** If the identification strategy sounds fragile, ask "What would a sceptic say about...?" rather than "This won't work because..."
144
+ - **Build on answers.** Each question should follow from the previous response.
145
+ - **Know when to stop.** If the researcher has a clear vision after 4–5 exchanges, move to the specification. Don't over-interview.
146
+ - **Use British English** throughout (the user's preference).
147
+
148
+ ---
149
+
150
+ ## Cross-References
151
+
152
+ | Skill | When to use instead/alongside |
153
+ |-------|-------------------------------|
154
+ | `/scout generate` | When you have a topic but no specific idea yet — generates multiple RQs |
155
+ | `/devils-advocate` | After the spec is written — stress-test the idea |
156
+ | `/literature` | To find related work mentioned during the interview |
157
+ | `/init-project-research` | To scaffold a project once the spec is approved (seeds empty field-calibration) |