Skip to content

davepoon/buildwithclaude / plugins/all-skills/skills/mcm-o-guide

mcm-o-guide

Verified

MCM/ICM 优秀论文写作全流程指南——基于 502 篇历年获奖论文(2004–2024)语料库的结构化分析与评委点评提炼。覆盖:摘要逐句模板、6 类题型模型选择矩阵、25 页页预算分配、图表黄金法则、灵敏度/稳健性分析范式、全文一致性检查清单。当用户准备美赛、写论文、打磨论文、查结构、选模型、做摘要、看评委标准、读优秀论文时使用。也适用于任何需要高质量数学建模论文写作的场景。

FileKindSize
GUIDE.en.mdmarkdown7.8 KB
LICENSE.txtmarkdown1.0 KB
SKILL.en.mdmarkdown24.9 KB
SKILL.mdskill md22.3 KB
playbooks/coding-playbook.mdmarkdown10.0 KB
playbooks/modeling-playbook.mdmarkdown9.8 KB
playbooks/research-playbook.mdmarkdown7.6 KB
playbooks/writing-playbook.mdmarkdown10.0 KB
references/advanced-techniques.mdmarkdown11.1 KB
references/checklist.mdmarkdown5.2 KB
references/common-errors.mdmarkdown10.0 KB
references/end-to-end-case-B.mdmarkdown6.0 KB
references/end-to-end-case-C.mdmarkdown8.5 KB
references/end-to-end-case-DEF.mdmarkdown10.1 KB
references/end-to-end-case.mdmarkdown11.9 KB
references/introduction-guide.mdmarkdown6.7 KB
references/judge-commentary.mdmarkdown8.0 KB
references/memo-letter.mdmarkdown6.3 KB
references/model-innovation.mdmarkdown5.7 KB
references/model-matrix.mdmarkdown4.6 KB
references/page-by-page.mdmarkdown12.2 KB
references/quick-reference-card.mdmarkdown3.1 KB
references/self-evaluation.mdmarkdown6.0 KB
references/sentence-patterns.mdmarkdown16.9 KB
references/strengths-weaknesses.mdmarkdown6.1 KB
references/summary-template.mdmarkdown13.7 KB
references/team-workflow.mdmarkdown7.4 KB
references/top-award-strategy.mdmarkdown9.2 KB
references/top-paper-anatomy.mdmarkdown8.3 KB
scripts/README.mdmarkdown8.0 KB
scripts/benchmark-paper.mjsscript6.7 KB
scripts/check-paper.mjsscript11.9 KB
scripts/extract-pdf.mjsscript2.5 KB
scripts/parameter-sweep.mjsscript8.6 KB
templates/README.mdmarkdown3.6 KB
templates/latex-template.texother11.4 KB
templates/markdown-template.mdmarkdown5.7 KB

scripts/extract-pdf.mjs

View on GitHub
#!/usr/bin/env node
/**
 * extract-pdf.mjs — 把 MCM/ICM 论文 PDF 抽成带页码标记的纯文本,供 check-paper.mjs 分析。
 *
 * 用法:
 *   node extract-pdf.mjs <paper.pdf> [out.txt]
 *
 * 依赖: pdfjs-dist(一次性安装)
 *   npm install pdfjs-dist
 * 若安装在别处,用环境变量指定:PDFJS_PATH=<dir>/node_modules/pdfjs-dist/legacy/build/pdf.mjs
 */
import fs from 'node:fs';
import path from 'node:path';
import { createRequire } from 'node:module';

const input = process.argv[2];
if (!input) { console.error('用法: node extract-pdf.mjs <paper.pdf> [out.txt]'); process.exit(2); }
const output = process.argv[3] || input.replace(/\.pdf$/i, '') + '.txt';

const require = createRequire(import.meta.url);

async function loadPdfjs() {
  // 1) 环境变量指定
  if (process.env.PDFJS_PATH) {
    return await import(pathToFileURL(process.env.PDFJS_PATH));
  }
  // 2) 从 cwd 向上查找 node_modules/pdfjs-dist
  let dir = process.cwd();
  while (dir.length > 3) {
    try {
      const p = require.resolve('pdfjs-dist/legacy/build/pdf.mjs', { paths: [dir] });
      return await import(pathToFileURL(p));
    } catch { dir = path.dirname(dir); }
  }
  console.error('未找到 pdfjs-dist。请先执行: npm install pdfjs-dist');
  console.error('或用环境变量指定: PDFJS_PATH=/path/to/pdfjs-dist/legacy/build/pdf.mjs');
  process.exit(2);
}
function pathToFileURL(p) { return new URL('file://' + path.resolve(p).replace(/\\/g, '/')); }

const pdfjs = await loadPdfjs();
const data = new Uint8Array(fs.readFileSync(input));
const doc = await pdfjs.getDocument({ data, verbosity: 0, useSystemFonts: true }).promise;

const chunks = [`### PAGES: ${doc.numPages}`];
for (let i = 1; i <= doc.numPages; i++) {
  const page = await doc.getPage(i);
  const tc = await page.getTextContent();
  let lastY = null, line = []; const lines = [];
  for (const it of tc.items) {
    if (it.str === undefined) continue;
    const y = it.transform[5];
    if (lastY !== null && Math.abs(y - lastY) > 3) { lines.push(line.join('').replace(/\s+/g, ' ').trim()); line = []; }
    line.push(it.str);
    if (it.hasEOL) { lines.push(line.join('').replace(/\s+/g, ' ').trim()); line = []; }
    lastY = y;
  }
  if (line.length) lines.push(line.join('').replace(/\s+/g, ' ').trim());
  chunks.push(`\n=== PAGE ${i} ===\n` + lines.filter(Boolean).join('\n'));
  page.cleanup();
}
fs.writeFileSync(output, chunks.join('\n'), 'utf8');
console.log(`已抽取 ${doc.numPages} 页 -> ${output}`);
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall