agentleFS
PangenomeAIPangenomeAI/academic-skills-food-nutrition/AGENTS.md

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

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
  1. Very specific:

    Do all work on the development branch (or a feature branch off it).

    line 18
  2. Distinctive:

    Do not merge your own PR without review unless you are the maintainer and the checks below pass.

    line 32
  3. Very specific:

    Every change that adds/removes/renames a skill, subagent, reference, or command, or changes behavior, MUST in the same PR:

    line 36
  4. Distinctive:

    Update README.md to reflect the new state.

    line 38
  5. Very specific:

    Add a dated entry to CHANGELOG.md (newest on top) describing the change.

    line 39
  6. Very specific:

    Do not create releases by hand for normal changes.

    line 60
  7. Distinctive:

    All output must be written 100% from true information collected from the literature and the user's own data.

    line 95
  8. Very specific:

    If a source does not report a value, write "not reported".

    line 98
  9. Very specific:

    Privacy — check before delivering (every skill): Before handing any document to the user (manuscript, brief, report, response letter, …

    line 105
  10. Very specific:

    Use relative/placeholder paths instead.

    line 110
  11. Very specific:

    English only — all project files: Every file in the repository (skills, subagents, references, docs, scripts and their comments, manifests) …

    line 117
  12. Distinctive:

    Food & nutrition specific: Keep domain conventions correct (units as SI, g/100 g with basis, log CFU/g, biological vs analytical n, …

    line 125

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

  1. Do all work on the development branch (or a feature branch off it).
  2. Push your commits to development (or your feature branch).
  3. Open a pull request on GitHub to merge development → main.
  4. main changes 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.md to reflect the new state.
  • Add a dated entry to CHANGELOG.md (newest on top) describing the change.
  • Bump the version in both .claude-plugin/plugin.json and .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 in CHANGELOG.md. The release publishes itself when the PR merges to main.
  • 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 files

Content 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). See food-paper/references/faithfulness-and-citation.md and run python3 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 with python3 scripts/privacy_scan.py <file> and redact every hit. See food-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 description and 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.md whose frontmatter name equals 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 (skills array).
  • New journals: add a row to journals/_coverage.md (food) or journals/_coverage_nutrition.md (nutrition), mapping to a publisher-format skill folder; keep journals/references/journal-priority.csv consistent.
  • 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) and NOTICE/attribution.

Contact

Development team: food_agents@lists.unimelb.edu.au. Food research teams interested in contributing or collaborating are welcome to reach out.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.