check-grant-format
Audit an NSF proposal folder against Grants/GRANT-FORMAT.md (page limits, fonts, margins, required headings, no URLs in the description, prior-support items, clean build, file set). Use before any proposal PDF is sent to SPA, after every rebuild, or when asked "is this proposal compliant", "check the format", "page count", "PAPPG check".
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- check-grant-format
- description
- Audit an NSF proposal folder against Grants/GRANT-FORMAT.md (page limits, fonts, margins, required headings, no URLs in the description, prior-support items, clean build, file set). Use before any proposal PDF is sent to SPA, after every rebuild, or when asked "is this proposal compliant", "check the format", "page count", "PAPPG check".
02 资源文件 1
- 脚本check_format.py9.9 KB
03 SKILL.md 正文
check-grant-format
Mechanical audit of one proposal folder against Grants/GRANT-FORMAT.md
(rules F1–F18). Reports per-rule PASS/FAIL with the measured value. Never
edits the proposal.
Procedure
- Resolve the folder: the argument, else the nearest ancestor containing
proposal/tex/. Read../GRANT-FORMAT.md(the contract is the authority; if a rule number here disagrees with the file, the file wins). - If
proposal/final-pdfs/is missing or older than any.tex, run./build.shfirst and keep its log. - Run the script:
python3 ~/.claude/skills/check-grant-format/check_format.py <folder>
It checks F1 (file set), F2 (fonts via pdffonts), F3 (page size and
margins from the preamble), F4 (summary: one page, three headings in
order), F5 (description ≤ 15 pages; prior-support span ≤ 5 from the
.aux), F6/F7 (required headings and prior-support items), F8 (no
URLs), F9 (log: undefined refs/cites, ??, overfull > 20pt), F10
(references PDF bibliography-only), F13 (DMP ≤ 2 pages), F14 (no $
in facilities), F15 (budget justification ≤ 5 pages; summer months ≤ 2
from the text), F16 (mentoring iff postdoc), F17 (reviewer names absent
from description).
4. Judgment rules F11, F12, F18 are reported as CONFIRM with the question
the PI must answer (SciENcv certified? COA template current? date SPA
received the set?).
5. Output: a table rule | result | measured | where, then the list of
FAILs with the fix. Exit status nonzero if any FAIL.
Pass criterion
All mechanical rules PASS and every CONFIRM has a dated answer in the
proposal's README.md.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code