academic-skills-food-nutrition
AGENTS.md33 starsChanged 5 months agoMITView on GitHub
This file is the contract for anyone (human or AI coding agent — Claude Code, Codex, Cursor, etc.) contributing to academic-skills-food-nutrition. Read it fully before making changes. It is written to be machine-actionable: follow the rules literally. Do not merge your own PR without review unless you are the maintainer and the checks below pass. A PR that changes skills but not README/CHANGELOG will be rejected. So, as a developer/agent: - For a feature or major change, bump the version…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- agri-deep-researchSkill
- agri-paperSkill
- agri-pipelineSkill
- agri-pptSkill
- agri-researchSkill
- agri-reviewSkill
- food-deep-researchSkill
- food-fetchSkill
- food-figureSkill
- food-paperSkill
- food-pipelineSkill
- food-pptSkill
- food-proposalSkill
- food-researchSkill
- food-reviewSkill
- journal-selectorSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- could be automatic: a setting could enforce it
- Very specific: line 18
Do all work on the development branch (or a feature branch off it).
- Distinctive: line 32
Do not merge your own PR without review unless you are the maintainer and the checks below pass.
- Very specific: line 36
Every change that adds/removes/renames a skill, subagent, reference, or command, or changes behavior, MUST in the same PR:
- Distinctive: line 38
Update README.md to reflect the new state.
- Very specific: line 39
Add a dated entry to CHANGELOG.md (newest on top) describing the change.
- Very specific: line 60
Do not create releases by hand for normal changes.
- Distinctive: line 95
All output must be written 100% from true information collected from the literature and the user's own data.
- Very specific: line 98
If a source does not report a value, write "not reported".
- Very specific: line 105
Privacy — check before delivering (every skill): Before handing any document to the user (manuscript, brief, report, response letter, …
- Very specific: line 110
Use relative/placeholder paths instead.
- Very specific: line 117
English only — all project files: Every file in the repository (skills, subagents, references, docs, scripts and their comments, manifests) …
- Distinctive: line 125
Food & nutrition specific: Keep domain conventions correct (units as SI, g/100 g with basis, log CFU/g, biological vs analytical n, …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.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
AGENTS.md — instructions for collaborators and their coding agents
This file is the contract for anyone (human or AI coding agent — Claude Code, Codex, Cursor, etc.) contributing to academic-skills-food-nutrition. Read it fully before making changes. It is written to be machine-actionable: follow the rules literally.
What this project is
A Claude Code / Codex skill suite for food & nutrition science research:
multi-subagent skills (food-research, food-deep-research, food-paper,
food-review, food-pipeline, food-figure), a journal-selector, and
publisher-tiered journal author-guideline skills under journals/. MIT-licensed,
original work.
GOLDEN RULE — branching
Never push to main. main is protected and release-only.
- Do all work on the
developmentbranch (or a feature branch off it). - Push your commits to
development(or your feature branch). - Open a pull request on GitHub to merge
development→main. mainchanges only through a reviewed, merged pull request.
git checkout development
git pull origin development
# … make changes …
git add -A && git commit -m "…"
git push origin development
gh pr create --base main --head development --title "…" --body "…"Do not merge your own PR without review unless you are the maintainer and the checks below pass.
ALWAYS keep docs current (required in the same change)
Every change that adds/removes/renames a skill, subagent, reference, or command, or changes behavior, MUST in the same PR:
- Update
README.mdto reflect the new state. - Add a dated entry to
CHANGELOG.md(newest on top) describing the change. - Bump the
versionin both.claude-plugin/plugin.jsonand.claude-plugin/marketplace.json(semver: patch = fix, minor = new capability, major = breaking).
A PR that changes skills but not README/CHANGELOG will be rejected.
Releases (automatic on major updates)
A GitHub Release is published automatically when a major update lands on
main — defined as a new MINOR or MAJOR version (x.y.0, e.g. a new skill,
subagent, or capability). The .github/workflows/release.yml workflow runs on
every push to main that touches .claude-plugin/plugin.json or CHANGELOG.md,
and creates release v<version> using the matching CHANGELOG.md section as the
notes. Patch releases (x.y.z with z>0, e.g. docs/typo fixes) do not
create a release.
So, as a developer/agent:
- For a feature or major change, bump the version to the next
x.y.0(minor) or(x+1).0.0(major/breaking) and write a matching## x.y.0 — <date>section inCHANGELOG.md. The release publishes itself when the PR merges tomain. - For a small fix, use a patch bump (
x.y.z) — no release is created. - Do not create releases by hand for normal changes; let the workflow do it.
(Manual release if ever needed:
gh release create vX.Y.Z --notes-file NOTES.md --target main.)
Verification — run before opening a PR (all must pass)
# 1. Journal coverage maps resolve (food 60, nutrition list)
python3 scripts/check_journal_coverage.py
# 2. scripts self-test
python3 food-figure/scripts/analyze_data.py --selftest
python3 food-figure/scripts/backend_pref.py --selftest
python3 scripts/verify_citations.py --selftest # citation/anti-fabrication gate
python3 scripts/privacy_scan.py --selftest # privacy/confidentiality gate
python3 scripts/check_docx_fields.py --selftest # leaked EndNote/Zotero field-code gate
python3 scripts/resolve_oa.py --selftest # open-access PDF resolver (Unpaywall/OpenAlex)
python3 scripts/fetch_oa.py --selftest # open-access PDF downloader + manifest (food-fetch)
python3 scripts/food_fetch_setup.py --selftest # full-text access config store (first-run setup)
python3 scripts/check_institution_profiles.py --selftest # institution-profile config gate (food-fetch)
python3 scripts/build_pptx.py --selftest # editable-PPTX builder (food-ppt)
python3 scripts/preview_themes.py --selftest # theme preview-gallery generator (food-ppt)
python3 scripts/suggest_theme.py --selftest # theme auto-selector (food-ppt)
python3 scripts/proposal_wordcount.py --selftest # funding-scheme length-limit checker (food-proposal)
# 3. Manifests are valid JSON (and, if you have Claude Code, validate the plugin)
python3 -c "import json;[json.load(open(p)) for p in ['.claude-plugin/plugin.json','.claude-plugin/marketplace.json']];print('json ok')"
claude plugin validate . # optional, if claude CLI is installed
# 4. Every SKILL.md 'name' matches its folder; every frontmatter reference resolves
# (see the checks in the PR template / repo scripts)
# 5. English only — no CJK or other non-Latin scripts in tracked filesContent rules
- Grounding — no fabrication (applies to every research/writing/review agent).
All output must be written 100% from true information collected from the
literature and the user's own data. Never invent a reference, DOI, author,
year, venue, quotation, locator, statistic, effect size, sample size, or result.
If a source does not report a value, write "not reported"; if a claim cannot be
traced to a verified source, mark it
[UNVERIFIED]/[EVIDENCE GAP]and route it back for sourcing — do not fill it from memory. Every citation must pass the four-gate check (exists → identity matches → not retracted → source actually supports the claim at a locator). Seefood-paper/references/faithfulness-and-citation.mdand runpython3 scripts/verify_citations.py <cites.json>on the reference set. - Privacy — check before delivering (every skill). Before handing any
document to the user (manuscript, brief, report, response letter, figure
legend, code, PDF/DOCX/LaTeX), ensure it contains no confidential/local
information — absolute filesystem paths (
/Users/<name>/…,C:\Users\…), temp/scratchpad paths, usernames, hostnames, IPs, API tokens, or private data. Use relative/placeholder paths instead. Scan withpython3 scripts/privacy_scan.py <file>and redact every hit. Seefood-paper/references/privacy-and-confidentiality.md. - Original text only. This project is MIT. Do NOT copy text from CC-BY-NC or
other non-permissive sources (e.g. the upstream
academic-research-skills). Workflow ideas are fine; the wording must be your own. Permissive sources (MIT/Apache-2.0) may be drawn on with acknowledgement in the README. - English only — all project files. Every file in the repository (skills,
subagents, references, docs, scripts and their comments, manifests) must be in
English, including all
descriptionand trigger text. If you create a file in another language, you MUST also create an English version and make the English copy the main/canonical document; the non-English file is a secondary translation, named with a language suffix (e.g.SKILL.zh.md,README.zh-CN.md) and never the primary. Reviewers will reject a PR whose primary document is not in English. - Food & nutrition specific. Keep domain conventions correct (units as SI, g/100 g with basis, log CFU/g, biological vs analytical n, validated methods, ethics/food-safety).
Structure conventions
- A skill is a folder containing
SKILL.mdwhose frontmatternameequals the folder name. Subagents go in<skill>/agents/*.md; references in<skill>/references/*.md; the frontmatter lists them. - New top-level skills and new
journals/<name>skills must be registered in.claude-plugin/marketplace.json(skillsarray). - New journals: add a row to
journals/_coverage.md(food) orjournals/_coverage_nutrition.md(nutrition), mapping to a publisher-format skill folder; keepjournals/references/journal-priority.csvconsistent. - Cross-skill references use repo-root-relative paths (e.g. a skill may point to
food-paper/references/apa7-quickref.md); keep the whole repo together.
Commit & PR conventions
- Small, focused commits; imperative subject lines.
- PR description: what changed, why, and the verification output.
- Link the issue if one exists.
Where to look
- Skill catalog and install:
README.md. - Change history:
CHANGELOG.md. - License:
LICENSE(MIT). - Acknowledgements / provenance:
README.md(Acknowledgements) andNOTICE/attribution.
Contact
Development team: food_agents@lists.unimelb.edu.au. Food research teams interested in contributing or collaborating are welcome to reach out.
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.

