ThesisAgent
CLAUDE.md2 starsChanged 4 days agoMITView on GitHub
Other agents: AGENTS.md mirrors the cross-agent must-knows. Codex CLI, recent Aider, and several other tools auto-load AGENTS.md; keep them in sync when you change rules. Detailed rules now live in .claude/agents/, organised into two subfolders — rules/ (read-only reference subagents: code-quality-reviewer, compliance-auditor, slide-deck-rules, deck-design, env-vars, language-vocabulary-check, paper_rule) and tasks/ (task-running / multi-tasking agents: dod-verify, paper-summary-author, thesis-deck-author, post-author-audit, slide-overflow-check). Claude Code discovers them recursively by name:, so the path never affects how an agent is invoked. Full path index: see "Where…
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Jeffrey-Automations/ThesisAgentword for word, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Jeffrey-Automations/ThesisAgent★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
Exposes: every step as an MCP tool (25 in all: list_sources, list_exports, search, snowball, library_add, library_search, library_stats, …
- Very specific: line 89
Every change MUST pass the full gate set before commit.
- Distinctive: line 98
Every addition to this project — a new rule in a subagent doc, a new paragraph in a paper, a new bullet on a slide, a new constant or …
- Very specific: line 130
Prose punctuation in additions: prefer , (Chinese) or , (English) to join clauses, and avoid ; / ;.
- Distinctive: line 207
Never update one language, or README.md alone, and leave the other languages or the docs stale.
- Very specific: line 218
NEVER add Co-Authored-By lines.
- Distinctive: line 219
NEVER mention "Claude", "Claude Code", "AI-generated", "GPT", "Copilot", or any AI tool / model name anywhere — commit messages, PR titles, …
- Distinctive: line 278
After the edit, audit the resulting deck against those subagents' contracts:
- Distinctive: line 318
When in doubt, read more subagents, not fewer.
- Very specific: line 349
MUST also have an entry in _LIGHT_TO_DARK_FILL.
- Very specific: line 407
When the user is writing or reviewing their own paper text (not generating slides), quote the relevant paper_rule clause directly (e.g.「依 …
- Very specific: line 415
NOT change how an agent is invoked — identity comes only from each file's name: frontmatter (names are unique across the tree).
- Very specific: line 424
Every agent file sets model: opus in its frontmatter.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Guidelines
Other agents:
AGENTS.mdmirrors the cross-agent must-knows. Codex CLI, recent Aider, and several other tools auto-loadAGENTS.md; keep them in sync when you change rules. Detailed rules now live in.claude/agents/, organised into two subfolders —rules/(read-only reference subagents:code-quality-reviewer,compliance-auditor,slide-deck-rules,deck-design,env-vars,language-vocabulary-check,paper_rule) andtasks/(task-running / multi-tasking agents:dod-verify,paper-summary-author,thesis-deck-author,post-author-audit,slide-overflow-check). Claude Code discovers them recursively byname:, so the path never affects how an agent is invoked. Full path index: see "Where the detailed rules live" below.
Project Overview
ThesisAgents is a Python CLI + MCP assistant that turns a research topic into thesis-ready deliverables (slide decks, BibTeX, summaries, structured JSON). The name names its two pillars, and both bind the code rather than just the branding:
- Thesis — the rich-tier output is not a generic paper summary but a
thesis-structured one. Every
PaperSummaryfield maps to a canonical thesis section (pain_points→ 1.2 motivation,contributions_detailed→ 1.5,evaluation_sections→ §4,limitations→ 5.3, …) and a deliverable deck is judged complete only when it covers the seven sections encoded in thepaper_rulesubagent (Abstract, Introduction, Literature Review, Methodology, Experiment & Evaluation, Conclusion, References). See "Paper Writing Rules" below. - Agents — the workflow is governed by a set of specialised subagents under
.claude/agents/, split into read-onlyrules/(consulted inline as you work) and task-runningtasks/(dispatched to do work, runnable in parallel / the background). The reading-the-right-subagent-first gates in this file are HARD requirements, not suggestions — see "Where the detailed rules live".
Concretely, the assistant:
- Searches academic papers by user-supplied keywords across fifteen sources (arXiv, Semantic Scholar, OpenAlex, PubMed, IEEE Xplore, ACM Digital Library, DBLP, Crossref, OpenAIRE, Springer Nature, Google Scholar, Europe PMC, DOAJ, HAL, CORE). Each source ships behind a fetcher adapter — adding a source does not touch the exporter layer or MCP server.
- Normalises results into a
Paperrecord, de-duplicates by DOI / arXiv ID / title-fuzzy-match, ranks by recency + citation count. - Optionally enriches each paper into a structured
PaperSummaryvia either the LLM-as-agent flow (no API key — MCP-aware LLM authors the summary) or the Python pipeline (ANTHROPIC_API_KEYset — Anthropic API call). - Generates
.pptx(three rendering tiers — lightweight / enriched-flat / thesis-style),.xlsx,.bib,.md,.jsonoutputs. - Exposes every step as an MCP tool (25 in all:
list_sources,list_exports,search,snowball,library_add,library_search,library_stats,library_update,library_delete,library_import,library_duplicates,library_merge,library_saved_search,library_prisma,fetch_paper,fetch_pdf_text,download_pdfs,pptx_validate_template,export,pptx_inspect,pptx_review,pptx_update_slide,pptx_delete_slide,pptx_reorder_slides,pptx_add_slide).pptx_reviewaudits an existing deck (overflow + colour contracts +paper_rulesection completeness) in one call — the same audit the CLI exposes aspython -m thesisagents review <deck.pptx>.
Single-process, Python 3.12+. Heavy I/O off the event loop; shared
httpx.AsyncClient registry pools connections per source.
Top-level layout
ThesisAgents/
├── thesisagents/ # main package (everything installable lives here)
│ ├── core/ # Paper / PaperSummary / Query models, dedup, ranking, pipeline
│ ├── fetchers/ # HTTPS-only shared client, token-bucket rate limit, WebRunner browser
│ ├── exporters/ # pptx (rich + lightweight), xlsx, bibtex, markdown, json + pptx_edit + i18n
│ ├── intelligence/ # PDF fetch/extract + Anthropic summariser ([intelligence] extra)
│ ├── library/ # SQLite literature library: papers, sightings, citation links, verdicts
│ ├── mcp/ # FastMCP server registering all tools
│ ├── sources/<name>/ # per-source plugins (arxiv/, semantic_scholar/, openalex/, pubmed/,
│ │ # ieee/, acm/, scholar/, dblp/, crossref/, openaire/, springer/,
│ │ # europepmc/, doaj/, hal/, core/)
│ ├── utils/ # logging, path safety, async helpers
│ ├── cli.py # argparse CLI
│ └── __main__.py
├── tests/ # pytest + recorded fixtures (hermetic, no live HTTP)
├── docs/ # Sphinx tree (en + zh-tw + zh-cn)
├── scripts/ # one-off regen / fixture-record scripts
├── pyproject.toml # ruff, bandit, build, optional extras
└── .bandit # canonical bandit skip listDefinition of Done (HARD REQUIREMENT)
Every change MUST pass the full gate set before commit. Delegate to the
dod-verify subagent — it owns the exact gate list, commands, and pass/fail
report format (and chains slide-overflow-check when exporters/i18n change,
code-quality-reviewer for deeper code-quality review,
compliance-auditor for project conventions). Skipping a gate "to come back
later" is not allowed.
Content additions must be context-clear + detail-explained (HARD)
Every addition to this project — a new rule in a subagent doc, a new paragraph in a paper, a new bullet on a slide, a new constant or helper in code — must (1) have clear context for why it exists and (2) carry a detailed enough explanation that a reader who didn't witness the change can act on it without further questions.
Concretely:
| Addition type | "Clear context" means | "Detailed explanation" means |
| Subagent rule | A Why: clause naming the past incident / failure mode the rule prevents. | At least one example of the rule applied + one anti-pattern showing how it fails. Rules without examples bit-rot. |
| Paper / thesis paragraph | A topic sentence locating the paragraph in the larger argument (which section, which RQ, which contribution). | Every technical term defined at first use (see paper_rule "Technical terminology"), every quantitative claim cited or shown in a table, and an argument-level plain-language layer so a non-expert grasps the point, not just the words (see paper_rule "Plain-language comprehensibility"). |
| Slide bullet | A sub-head that says what the slide as a whole is about. | Every acronym / math notation / library name glossed at first use (see slide-deck-rules §8 "Content clarity & first-use context"), plus a plain-language takeaway the slide's whole point lands for a non-expert reading at presentation speed (see slide-deck-rules §14). |
| Code helper | A docstring naming the boundary the helper guards and the failure mode it prevents. | Type hints + one usage example in either the docstring or a unit test. |
Why this is a top-level rule rather than buried in one subagent: it
applies across every surface this project produces (rules, papers,
slides, code) and has been the single most common review-cycle source of
churn — "why does X exist?" / "what does Y do?" questions that should
have been answered at write-time. The subagent-specific applications
(paper_rule "Technical terminology" + "Plain-language
comprehensibility", slide-deck-rules §8 "Content clarity & first-use
context" + §14 "Plain-language comprehensibility for a mixed audience",
code-quality-reviewer "docstring + example") all derive from this
top-level principle. Term-level glossing answers "what does this word
mean", the comprehensibility rules answer the harder "I read every word
and still don't see the point" — both are required on any paper / deck
this project ships, so a non-expert (an adjacent-discipline committee
member, a reviewer skimming, an undergraduate) can follow it. When in
doubt about how to phrase an addition, default to "explain like the
reader just joined the conversation".
Prose punctuation in additions: prefer , (Chinese) or , (English)
to join clauses, and avoid ; / ;. Why: short comma-joined
clauses are easier to scan than semicolon-stacked compound sentences,
and mixed semicolon use creates inconsistent punctuation density across
the rule base — a reader scanning for the next rule loses focus on
"is this still part of the previous clause or a new point?". How to
apply: when a ; would join two clauses, either swap it for , /
, or split into two sentences (the second option reads even more
clearly for rule prose). Exceptions kept: math notation like
I(za;zb|Ep) retains its mandatory ; (it's part of the operator
syntax, not prose), and APA in-text citation grouping like
(Lee, 2023; Smith et al., 2024) keeps ; because APA mandates it as
the separator inside a single citation parenthesis.
No 破折號 / em-dash as a clause break in any paper or deck this project
ships (HARD for deliverables). The same scanning rationale extends from
the ; to the dash — — (em-dash U+2014), —— / ── (a doubled CJK
破折號 or box-drawing run), and ― (horizontal bar) — whenever it breaks,
inserts, or joins a clause in deliverable prose. Why: a prose dash
reads as AI-generated em-dash overuse and, like a ;, forces the reader
to hold an interrupted clause open until it resumes; concretely,
論文_v3.3.docx had shipped 35 prose 破折號 (e.g.
三大問題——幻覺、輸出不穩定、缺乏領域規範——提出) before this rule was
written. How to apply: a trailing / appositive dash becomes ,
(重新訓練模型——這是… → 重新訓練模型,這是…); a dash that opens an
enumeration becomes : (三大問題——…——提出 → 三大問題:…,提出);
English prose uses , (a different problem—preserving… →
a different problem, preserving…). Exceptions kept: CLI flags /
option syntax (--redact-secrets, git log --since) and HTML markers
(<!-- … -->) are code, the en-dash in numeric / section / citation
ranges (1–5, §3.3.2–§3.3.9, [1]–[22]) and the minus sign
(+a −b) are notation — none of these is a 破折號, so all stay. Full
bilingual rule + self-audit: paper_rule "破折號 / em-dash banned as a
clause break".
Implementation-status claims in deliverables must be verified against
the code, and "implemented" stays distinct from "evaluated" (HARD for
deliverables). When a paper / deck this project produces claims a
framework「已支援 / 已實作 X」, locate X's module and test in the actual
repo before authoring the claim — manuscripts go stale in BOTH
directions. Why: 論文_v3.5 §6.4.3 still listed GitLab support as
future work when the framework repo had already shipped GitLabAdapter
(2026-07-02), so copying the manuscript would have under-claimed a
headline feature, and the mirror trap (reviving comparison numbers a
manuscript once floated but never measured) has also shipped before.
How to apply: date recent features from git log (「2026-07 新增」),
keep the honest boundary sentence(「已實作 + 單元測試,端到端效益未評估」)
next to any feature list AND on the limitations page, never invent
cross-backend / cross-platform numbers to fill the gap. Worked rules +
examples: .claude/agents/tasks/thesis-deck-author.md "Conference /
second-cut decks of the same thesis".
Stage commits, progress.md, docs/updates/ and architecture.md
Workspace rule shared by every repository under D:\Codes (full text: D:\Codes\CLAUDE.md).
- Commit at every stage. A stage is the smallest piece of work that leaves the repository consistent and passes this project's checks (definition of done, tests, lint): one finished
progress.mditem, or one self-contained step of a larger one. Commit it before starting the next stage, before switching to another repository, and before the session ends. Do not leave work uncommitted across sessions; if a stage cannot be finished, commit the consistent part and record the rest inprogress.md.- Stage only the files that stage touched (
git add <path>, nevergit add -A), follow this file's commit-message rules, and never add AI attribution. - Committing is not pushing: push or open a PR only as this project's branch flow says or when asked.
- Commit and push frequently. After each big feature — a self-contained stage that passes this project's checks — commit and push to the remote; do not pile up a large batch of work before committing or pushing. Smaller batches collide less with other sessions, let CI catch problems earlier, and are easier to revert. Follow this project's normal branch flow (usually
dev). - SonarCloud / Codacy findings. When a PR or commit fails a SonarCloud or Codacy check, look the findings up through their APIs instead of guessing. The keys are in environment variables:
SonarCloudToken(SonarCloud, e.g.curl -s -u "$SonarCloudToken:" "https://sonarcloud.io/api/issues/search?componentKeys=<key>&pullRequest=<n>&resolved=false") andCODACY_PROJECT_TOKEN(a Codacy project token, valid only for its own project: any other repository answers "Bad credentials", so for a public repository queryhttps://app.codacy.com/api/v3/analysis/organizations/gh/<org>/repositories/<repo>/pull-requests/<n>/issues?status=newwithout a key). Never reveal a key or any personal credential while doing so: refer to the variables by name only, never echo or print their values, and never put them in files, commit messages, PR or issue text, logs, or any output that leaves the machine.
- Stage only the files that stage touched (
progress.md(repository root, tracked) holds outstanding work only: no finished items, no history, no rules.docs/updates/records finished work: one batch file per month (YYYY-MM.md), one entry per piece of work headed## U-YYYYMMDD-NN · date · title · #tags, and an index with query commands indocs/updates/README.md. When aprogress.mditem is done, delete it and add a#doneentry plus its index row in the same commit.architecture.md(repository root) is the short architecture overview: layers, entry points, main flows, extension points, cross-project boundaries. Update it in the same commit whenever a change alters any of those.- Cross-project contracts are listed in
architecture.md§6: what other repositories rely on here (CLI flags, import paths, constructor arguments, file layouts) and what this repository relies on elsewhere. No test here protects them, so never rename or remove one without changing its consumers in the same round, and update §6 whenever a contract is added or changes. docs/architecture.mdremains the detailed architecture document;architecture.mdlinks to it.
README stays current and in every language (HARD)
README.md (English, the source) and every translation under readmes/ —
README.de.md, README.es.md, README.fr.md, README.hi.md,
README.id.md, README.it.md, README.ja.md, README.ko.md,
README.pt.md, README.ru.md, README.vi.md, README.zh-CN.md,
README.zh-TW.md — MUST stay current with the code. Any user-facing change (a
search source or MCP tool, a CLI command or flag, install / setup, an env var
or configuration, a requirement, or a quoted count) updates README.md and
every language variant in the same commit, structure and content aligned.
Never update one language, or README.md alone, and leave the other languages
or the docs stale. Each translation must reflect the English README's actual
content, not merely share its headings. The same rule covers the Sphinx docs
under docs/ — the English pages plus every translated locale tree (en,
zh-tw, zh-cn, ja, ko, es, fr, de, pt, it, ru, hi, id,
vi): a user-facing change updates them in the same commit, structure and
content aligned across languages. No parity test guards any of this, so the
check is manual — diff the section list against README.md before committing.
Git Commits
- NEVER add
Co-Authored-Bylines. - NEVER mention "Claude", "Claude Code", "AI-generated", "GPT", "Copilot", or any AI tool / model name anywhere — commit messages, PR titles, PR descriptions, code comments, documentation.
IEEE / Publisher CDN: Browser Automation Is Mandatory (HARD RULE)
Before triggering ANY search that involves paywalled publishers
(IEEE / ACM / Springer / etc.), the LLM in this session MUST confirm
the user's VPN / institutional access status first — either by
recalling a recent statement, or by asking via AskUserQuestion
("Do you have VPN for IEEE / ACM / Springer for this topic?").
Without VPN, IEEE returns abstract-only / 403 for the PDF stage and
the per-paper download fails. When the user says no VPN, pass
--source with every default source except ieee — that is,
skip only ieee. Google Scholar is publicly
accessible and stays in the mix even without VPN (Chrome still boots
for it because of captcha resilience, but the search itself works).
This gate applies BEFORE running python -m thesisagents -q … and
before calling the MCP search / download_pdfs tools with ieee
in the source mix or paywalled-publisher PDFs in the batch.
IEEE search, IEEE document fetch, Google Scholar search, and any paywalled-PDF download from publisher CDNs (ieeexplore.ieee.org, dl.acm.org, link.springer.com, sciencedirect.com, wiley/oup/nature/science/…) MUST go through visible Chrome. Two paths exist:
- Python pipeline — IEEE / Scholar plugins under
thesisagents/sources/<name>/call their ownwebrunner_backendfrom insideasyncio.gather. Used by the CLI in unattended mode. - LLM-as-agent — the LLM in a Claude Code session drives Chrome itself via
Bash +
thesisagents.fetchers.webrunner_browser.make_driver(). Worked patterns: the per-sourcewebrunner_backend.pymodules underthesisagents/sources/{ieee,scholar}/(the oldscripts/llm_*.pyreference scripts were retired once the MCPsearch/download_pdfstools covered the same flow). Nomcp__webrunner__*server is registered for this project (it is registered forD:/Codes/WebRunnerand the oldD:/Codes/AutoPaperToPPTpath), and where it is registered it only exposes static helpers (lint / translate / score), notwebrunner_run_actionsor any other browser-driving tool. So the LLM cannot skip the Bash + Selenium step.
The httpx branch in those plugins is a CI safety net for no-Chrome environments;
on a user machine with VPN, silent fall-through to httpx is a bug. Never
suppress the visible window (--headless, etc.). If you don't see a Chrome
window open during an IEEE / Scholar / paywalled-PDF step, the path is broken
— surface it, don't trust the results. Full rule + audit checklist:
compliance-auditor subagent.
Read Subagents BEFORE Editing Any .pptx (HARD RULE)
Before opening any .pptx file in this repository for edit — whether it
was generated by ThesisAgents's exporter or supplied by the user as a
hand-made deck (e.g. anything under exports/, assets/template/, or any
ad-hoc path) — you MUST read .claude/agents/rules/deck-design.md AND
.claude/agents/rules/slide-deck-rules.md first, in the same turn as the edit.
"Just reordering slides" / "just fixing typos" / "just adding a slide" all
count as edits. There is no exemption for hand-made decks: the dark-mode
contract, no-red-text contract, and light-on-light contrast contract apply
to every .pptx this project produces or modifies.
After the edit, audit the resulting deck against those subagents' contracts:
- Background is white (the default light navy-band deck) unless the
user explicitly opted into dark mode (
--dark-mode,dark_mode=True, GUI "Dark mode" checkbox), in which case it is_DARK_SLIDE_BG(#12151B). - No text run has
rgb=Noneorrgb=(0,0,0)(invisible on dark bg). - No light fill contains light text (luminance > 0.7 × 255 on both).
- No
#C0392Bred text runs (banned in both modes). - Navy header band (
accent_top) + full-bleed navy cover (accent_left) geometry present on ThesisAgents generated decks (hand-made decks are exempt from accent geometry but not from dark-mode / no-red / contrast contracts). A deck built on a user template (--pptx-template) is exempt in the same way where its config switches the chrome off ([chrome] header_band = false/cover_panel = false) or puts titles in the template's title placeholder: the template supplies that geometry. Why: auditing such a deck foraccent_topreports a missing band that was left out on purpose. The other four contracts bind it unchanged. Contract:docs/pptx_templates.md.
For hand-made decks that don't follow the project's _BRAND_* constants,
run _apply_dark_mode(prs) from thesisagents.exporters.pptx as a
post-pass — the _swap_text_colors safety net promotes None / pure-black
runs to #E5E7EB near-white, and _set_slide_background sets every slide
to #12151B.
The same "read-subagent-first" gate applies analogously to other deliverable surfaces:
| Editing this surface | Read these subagent(s) FIRST |
Any .pptx (generated or hand-made) | deck-design, slide-deck-rules |
thesisagents/exporters/pptx*.py visual code | deck-design, slide-deck-rules |
thesisagents/exporters/i18n.py or any localised string | slide-deck-rules, language-vocabulary-check |
Source plugins under sources/ or thesisagents/fetchers/ | compliance-auditor |
| Paper / thesis text in any locale | paper_rule |
Hand-authoring PaperSummary from a PDF | paper-summary-author, paper_rule |
| Authoring a degree-thesis defence deck from the candidate's own thesis | thesis-deck-author, paper_rule, deck-design |
| Anything before commit | dod-verify (gate runner) |
When in doubt, read more subagents, not fewer. The subagent rules exist because their violations have shipped before — skipping them is a known failure mode, not a corner case.
Dark-Mode Contract: Every Text Run Sets an Explicit Colour (HARD RULE)
Dark mode is an opt-in pptx render path (the default is the light
navy-band deck), but the contract still binds every build because the
exporter always builds with the light palette first and a deck may be
rendered dark at any time. The post-build recolour pass swaps light-palette
RGB values to their dark-palette equivalents — but it can only swap colours
it can read. A text run with run.font.color.rgb = None inherits the
slide-master's theme colour, renders as near-black on the dark slide
background, and is invisible. Every text-adding helper in
thesisagents/exporters/pptx*.py MUST therefore assign
run.font.color.rgb = _BRAND_* (one of the four
palette constants) after creating or overwriting a run. Never leave the
colour at its default; never pass colour=None to _add_textbox;
never write RGBColor(0, 0, 0) — use _BRAND_DARK instead.
The _swap_text_colors pass in the dark-mode post-build now also
promotes any leftover rgb is None or (0, 0, 0) runs to #E5E7EB
near-white as a second layer of defence. The regression test
tests/test_exporters.py::test_pptx_dark_mode_has_no_invisible_runs
walks every run on every slide and fails if any non-empty run lacks an
explicit non-black colour. Full rule + the audit script + the
two-layer defence rationale live in .claude/agents/rules/deck-design.md
"Dark-mode contract".
Mirror rule — light-on-light contrast. Any new light-fill RGB
introduced in pptx.py (e.g. a callout / KPI / RQ-box background)
MUST also have an entry in _LIGHT_TO_DARK_FILL; otherwise the fill
stays near-white in dark mode while its text gets re-coloured to
near-white → invisible. Regression test
test_pptx_dark_mode_no_light_text_on_light_fill walks every shape
and fails when both fill and text luminance are > 0.7 of 255 in a
default-dark-mode render.
No red text. _BRAND_ACCENT (= #C0392B warm red) is BANNED
as a TEXT colour across both light and dark modes. Red text reads
as error / warning in slide conventions and pattern-matches strongly
to AI-generated KPI emphasis. The sanctioned text-emphasis colour is
_BRAND_HIGHLIGHT (academic blue-600, #2563EB) — pair with
run.font.bold = True. Use _BRAND_GREY for caption / placeholder /
chrome text so headlines stay headlines. Variety rule: KPI value + RQ
question use blue, figure caption + figure-unavailable use grey — do
not collapse all four to the same colour. The dark-mode pass swaps
blue-600 → blue-400 (#60A5FA) via _LIGHT_TO_DARK_TEXT, the
audit script's _ACCEPTED_DARK_RUN_COLORS set knows about both.
Regression test test_pptx_no_red_text_runs walks every run on a
default-rendered deck and fails if any run uses #C0392B. The red
constant stays in the palette in case a future non-text accent shape
(sparkline, status badge) wants it. Full rule + per-call-site palette
mapping in .claude/agents/rules/deck-design.md "No red text contract (HARD)".
Paper Writing Rules (論文撰寫指引)
Thesis / journal / conference paper structure follows the user-supplied
《論文撰寫指引》, encoded in full as the paper_rule subagent. The
subagent is multilingual — every rule is given in English + 繁體中文
(authoritative source) and the canonical section names are tabulated for
all 14 project locales (en, zh-tw, zh-cn, ja, ko, es, fr, de, pt, it, ru,
ar, hi, vi). paper_rule auto-detects the user's working language and
responds in it; section numbers (1.1, 2.3, 4.5, …) stay universal for
unambiguous cross-reference. The seven canonical sections —
Abstract, Introduction (1.1 background / 1.2 motivation / 1.3 problem /
1.4 objectives / 1.5 contributions / 1.6 structure), Literature Review
(incl. 2.3 comparison table + 2.4 research gap), Methodology (incl.
3.1 architecture diagram / 3.5 evaluation metrics), Experiment &
Evaluation (incl. 4.4 result charts / 4.5 result analysis / fair
comparison), Conclusion (incl. 5.3 limitations / 5.4 future work),
References (last 5 years preferred; international journals > conferences;
English-dominant) — are the default skeleton for any thesis-style
deliverable in this project, regardless of deck locale.
Two places this binds the code:
PaperSummaryfield authoring (e.g.paper-summary-authorsubagent). Each rich-tier field maps to a thesis section:pain_points→ 1.2,contributions_detailed(cap 4) → 1.5,technique_table→ 2.3,system_flow→ 3.1,method_sections→ 3.2-3.4,headline_metrics+evaluation_sections→ 4.4-4.5,research_questions+rq_results→ 1.3 + 4.5,core_observation→ 5.1,limitations→ 5.3,future_work→ 5.4. Full mapping table inpaper_rule.- Thesis-style
.pptxcompleteness audit. A rich deck that drops the Literature Review, Experiment, or Conclusion section is incomplete — even ifslide-overflow-checkpasses geometrically. Consultpaper_rulebefore declaring a deck deliverable.
When the user is writing or reviewing their own paper text (not generating
slides), quote the relevant paper_rule clause directly (e.g.「依 1.4 應寫
3-5 點研究假設」, 「2.3 缺缺點欄位」).
Where the detailed rules live
Subagent docs are organised into two subfolders under .claude/agents/.
Claude Code scans that directory recursively, so the subfolder path does
NOT change how an agent is invoked — identity comes only from each file's
name: frontmatter (names are unique across the tree). The split mirrors the
two kinds of subagent this project uses:
rules/— read-only rule / reference subagents, consulted inline while you work.tasks/— task-running agents, dispatched to do work and able to run in the background / in parallel (the "multi-tasking" set).
Every agent file sets model: opus in its frontmatter. Why: with no
model: line an agent inherits whatever model the parent session runs, so a
gate run like dod-verify or a deck audit could run on a smaller model
whenever the session did. The opus alias always means the newest Opus, so
it never needs a version bump. How to apply: give a new agent file the
same line (example: name: dod-verify, tools: Bash, Read, Grep, Glob,
model: opus). A reference file with no frontmatter, such as
rules/thesis-authoring-lessons.md, is not an agent and takes no model:.
.claude/agents/
├── rules/ code-quality-reviewer · compliance-auditor · slide-deck-rules ·
│ deck-design · env-vars · language-vocabulary-check · paper_rule
└── tasks/ dod-verify · paper-summary-author · thesis-deck-author ·
post-author-audit · slide-overflow-check| Topic | Subagent | File (under .claude/agents/) |
| Design patterns, SOLID, performance, async, unit tests, full linter rule set | code-quality-reviewer | rules/code-quality-reviewer.md |
| Core-vs-source-plugin boundary, network safety, browser-automation hard rule, path safety, suppression conventions, bandit skip config | compliance-auditor | rules/compliance-auditor.md |
| pptx exporter geometry, rendering tiers, truncation caps, semantic shape names, i18n, LLM-as-agent vs Python pipeline | slide-deck-rules | rules/slide-deck-rules.md |
| pptx visual identity (typography per language, brand palette, accent geometry, master-slide expectations, "looks AI-generated" anti-patterns) | deck-design | rules/deck-design.md |
Env vars + Python / .venv toolchain reference | env-vars | rules/env-vars.md |
| Language-correct vocabulary (no S-Chinese loan words in zh-tw, no T-Chinese in zh-cn, etc.) | language-vocabulary-check | rules/language-vocabulary-check.md |
| Academic paper writing rules (multilingual, all 14 locales) — Abstract / Introduction / Literature Review / Methodology / Experiment / Conclusion / References structure + PaperSummary-to-section mapping | paper_rule | rules/paper_rule.md |
| Definition-of-Done gate runner | dod-verify | tasks/dod-verify.md |
| LLM-as-agent thesis-style authoring (PDF → rich PaperSummary) | paper-summary-author | tasks/paper-summary-author.md |
Degree-thesis ORAL-DEFENCE deck from the candidate's OWN thesis (seven paper_rule sections → rich deck) | thesis-deck-author | tasks/thesis-deck-author.md |
| URL-fabrication / off-topic / drafting-metadata-leak / flat-math audits after authoring | post-author-audit | tasks/post-author-audit.md |
| Slide-overflow regression check | slide-overflow-check | tasks/slide-overflow-check.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

