[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C3CWGH02MGX16V3FXDMSCW":3,"skill-same:01M6C3CWGH02MGX16V3FXDMSCW":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":68,"commitSha":69,"skillDirectory":70,"forksCount":71,"repositoryHtmlUrl":72,"repositoryHomepageUrl":73,"ownerHtmlUrl":74,"ownerBlogUrl":75,"ownerDescription":76,"updatedAt":77,"install":78,"resources":91},"01M6C3CWGH02MGX16V3FXDMSCW","vision-extract",null,"Transcribe scanned page images into per-page + combined Markdown source text for induction, via a provider-neutral vision adapter (codex CLI or a generic command template for Claude\u002Fany vision tool). Resumable, with retry + `# Page N` validation + extraction-status markers; optionally rasterizes a PDF to page PNGs first. Runs via `aiwg corpus vision-extract`.","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fresearch\u002Fskills\u002Fvision-extract\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"vision","vision extract","extract","acquisition","combined","retry","retries","markers","end","efficiency","images","write","read","command","PDF","haiku","page","model","text","template","tool","markdown","Bash","start","transcribe","status","codex cli","cli","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nplatforms: [all]\nname: vision-extract\ndescription: Transcribe scanned page images into per-page + combined Markdown source text for induction, via a provider-neutral vision adapter (codex CLI or a generic command template for Claude\u002Fany vision tool). Resumable, with retry + `# Page N` validation + extraction-status markers; optionally rasterizes a PDF to page PNGs first. Runs via `aiwg corpus vision-extract`.\ncommandHint:\n  argumentHint: \"--slug SLUG [--rasterize PDF [--dpi N]] [--provider codex|command] [--command TMPL] [--start N --end N] [--model M] [--retries N] [--force]\"\n  allowedTools: Read, Bash, Write\n  model: haiku\n  category: research-acquisition\n  modelRole: efficiency\n  modelTier: economy\n---\n\n# Scanned-Page Vision Extraction\n\nTranscribe a directory of scanned page PNGs into Markdown source text — the\nacquisition step for inducting scanned books \u002F pages. Provider-neutral: the\nvision call is a pluggable adapter, not hardcoded to one CLI.\n\n## How to run\n\n```bash\n# Pages already exist at .aiwg\u002Fresearch\u002Fsources\u002Fimages\u002F\u003Cslug>\u002Fpages\u002F\naiwg corpus vision-extract --slug tufte-1983-visual-display --provider codex\n\n# Rasterize a PDF to page PNGs first (poppler pdftoppm), then transcribe\naiwg corpus vision-extract --slug my-book --rasterize sources\u002Fpdfs\u002Fmy-book.pdf --dpi 200 --provider codex\n\n# Provider-neutral: any vision CLI via a wrapper script (see below)\nchmod +x .\u002Fvision.sh\naiwg corpus vision-extract --slug my-book \\\n  --provider command \\\n  --command '.\u002Fvision.sh {image} {prompt_file} {out}'\n\n# Resume (skips pages already marked complete); --force re-does them\naiwg corpus vision-extract --slug my-book --start 20 --end 40\naiwg corpus vision-extract --slug my-book --force\n```\n\nSave this wrapper as `vision.sh`; it receives the image, prompt file, and output\npaths as separate arguments:\n\n```sh\n#!\u002Fbin\u002Fsh\nclaude -p \"$(cat \"$2\")\" --image \"$1\" > \"$3\"\n```\n\nOutputs to `.aiwg\u002Fresearch\u002Fsources\u002Ftext\u002F\u003Cslug>-vision\u002F`: per-page\n`pages\u002Fpage-NNN.md`, combined `\u003Cslug>-vision.vision.md` + stripped `.txt`, `run.log`.\n\n## Adapters (provider-neutral)\n\n| `--provider` | Vision call |\n|---|---|\n| `codex` (default) | `codex exec --sandbox read-only --image … --output-last-message` (set `AIWG_CODEX_BIN`\u002F`--model` as needed) |\n| `command` | a shell template (`--command` or `AIWG_VISION_COMMAND`) with `{image}` \u002F `{prompt_file}` \u002F `{out}` placeholders — wire any vision CLI (Claude, a custom script). The command writes the transcription to `{out}` (or stdout). |\n\nBoth require a vision-capable model to be reachable; `needs-infrastructure`.\n\nCommand templates must use unquoted, unescaped placeholders: `{image}` → `\"$1\"`,\n`{prompt_file}` → `\"$2\"`, `{out}` → `\"$3\"`. Paths are passed as separate shell\narguments; `AIWG_VISION_IMAGE`, `AIWG_VISION_PROMPT_FILE`, and `AIWG_VISION_OUT`\nare also exported. For example: `vision-cli --image {image} --prompt-file {prompt_file} > {out}`.\nTemplates may expand only `$1`, `$2`, `$3`, `$AIWG_VISION_IMAGE`,\n`$AIWG_VISION_PROMPT_FILE`, and `$AIWG_VISION_OUT`, also in braced form\n(`${1}`, `${AIWG_VISION_OUT}`, etc.). All other `$` parameter\u002Fvariable expansions are rejected,\nincluding shell names (`$SHELL`), `$IFS`, special parameters, arithmetic, and braced\noperators such as `${1:-fallback}`. A `$` inside single quotes is literal text and allowed.\nKeep the provided references quoted when using them as data arguments.\nCommand substitution (`$(`), backticks, `eval`, nested shell invocations with `-c`\n(including redirections and `env … sh -c`), here-documents and here-strings (`\u003C\u003C`),\n`#` outside single quotes, and backslash-newline line continuations (anywhere, regardless of quoting) are rejected. Put complex logic in a wrapper script\nthat receives the paths as data arguments. Templates are trusted executable code\nand must not re-parse path values as shell source. Validation is defense in depth;\nkeep path arguments quoted in the wrapper, as in the example above.\n\n## Contract preserved from the source script\n\n- **Strict transcription prompt**: reading order, `[?]` \u002F `[unreadable]` markers, figure\u002Fchart text markers, no summarizing; must start exactly `# Page N`.\n- **Validation**: output is accepted only if it starts with `# Page N`; otherwise retried (`--retries`) then written with an `\u003C!-- extraction-status: failed -->` marker.\n- **Resumable**: pages with `\u003C!-- extraction-status: complete -->` are skipped unless `--force`.\n- **Combine**: all per-page files concatenated into the combined Markdown + a comment-stripped `.txt`.\n\n## PDF → page images\n\n`--rasterize \u003Cpdf>` renders the PDF to `page-NNN.png` via poppler `pdftoppm`\n(macOS: `brew install poppler`; Debian\u002FUbuntu: `apt install poppler-utils`) at\n`--dpi` (default 200), into the slug's images dir. Omit it when page PNGs already\nexist (the script's original input contract).\n\n## Triggers\n\n- \"transcribe scanned pages \u002F book\"\n- \"vision OCR a PDF\"\n- \"extract text from page images\"\n\n## Notes\n\n- TS-native: `src\u002Fartifacts\u002Fcorpus-tools\u002Fvision-extract.ts` — port of section9\n  `codex_vision_extract_pages.sh`, generalized off the hardcoded `codex` CLI.\n- Sits alongside `research-acquire` \u002F `research-acquisition-agent` (PDF\u002Fmetadata)\n  and the media-transcript tooling (audio\u002Fvideo) as the scanned-page acquisition path.\n","# Scanned-Page Vision Extraction\n\nTranscribe a directory of scanned page PNGs into Markdown source text — the\nacquisition step for inducting scanned books \u002F pages. Provider-neutral: the\nvision call is a pluggable adapter, not hardcoded to one CLI.\n\n## How to run\n\n```bash\n# Pages already exist at .aiwg\u002Fresearch\u002Fsources\u002Fimages\u002F\u003Cslug>\u002Fpages\u002F\naiwg corpus vision-extract --slug tufte-1983-visual-display --provider codex\n\n# Rasterize a PDF to page PNGs first (poppler pdftoppm), then transcribe\naiwg corpus vision-extract --slug my-book --rasterize sources\u002Fpdfs\u002Fmy-book.pdf --dpi 200 --provider codex\n\n# Provider-neutral: any vision CLI via a wrapper script (see below)\nchmod +x .\u002Fvision.sh\naiwg corpus vision-extract --slug my-book \\\n  --provider command \\\n  --command '.\u002Fvision.sh {image} {prompt_file} {out}'\n\n# Resume (skips pages already marked complete); --force re-does them\naiwg corpus vision-extract --slug my-book --start 20 --end 40\naiwg corpus vision-extract --slug my-book --force\n```\n\nSave this wrapper as `vision.sh`; it receives the image, prompt file, and output\npaths as separate arguments:\n\n```sh\n#!\u002Fbin\u002Fsh\nclaude -p \"$(cat \"$2\")\" --image \"$1\" > \"$3\"\n```\n\nOutputs to `.aiwg\u002Fresearch\u002Fsources\u002Ftext\u002F\u003Cslug>-vision\u002F`: per-page\n`pages\u002Fpage-NNN.md`, combined `\u003Cslug>-vision.vision.md` + stripped `.txt`, `run.log`.\n\n## Adapters (provider-neutral)\n\n| `--provider` | Vision call |\n|---|---|\n| `codex` (default) | `codex exec --sandbox read-only --image … --output-last-message` (set `AIWG_CODEX_BIN`\u002F`--model` as needed) |\n| `command` | a shell template (`--command` or `AIWG_VISION_COMMAND`) with `{image}` \u002F `{prompt_file}` \u002F `{out}` placeholders — wire any vision CLI (Claude, a custom script). The command writes the transcription to `{out}` (or stdout). |\n\nBoth require a vision-capable model to be reachable; `needs-infrastructure`.\n\nCommand templates must use unquoted, unescaped placeholders: `{image}` → `\"$1\"`,\n`{prompt_file}` → `\"$2\"`, `{out}` → `\"$3\"`. Paths are passed as separate shell\narguments; `AIWG_VISION_IMAGE`, `AIWG_VISION_PROMPT_FILE`, and `AIWG_VISION_OUT`\nare also exported. For example: `vision-cli --image {image} --prompt-file {prompt_file} > {out}`.\nTemplates may expand only `$1`, `$2`, `$3`, `$AIWG_VISION_IMAGE`,\n`$AIWG_VISION_PROMPT_FILE`, and `$AIWG_VISION_OUT`, also in braced form\n(`${1}`, `${AIWG_VISION_OUT}`, etc.). All other `$` parameter\u002Fvariable expansions are rejected,\nincluding shell names (`$SHELL`), `$IFS`, special parameters, arithmetic, and braced\noperators such as `${1:-fallback}`. A `$` inside single quotes is literal text and allowed.\nKeep the provided references quoted when using them as data arguments.\nCommand substitution (`$(`), backticks, `eval`, nested shell invocations with `-c`\n(including redirections and `env … sh -c`), here-documents and here-strings (`\u003C\u003C`),\n`#` outside single quotes, and backslash-newline line continuations (anywhere, regardless of quoting) are rejected. Put complex logic in a wrapper script\nthat receives the paths as data arguments. Templates are trusted executable code\nand must not re-parse path values as shell source. Validation is defense in depth;\nkeep path arguments quoted in the wrapper, as in the example above.\n\n## Contract preserved from the source script\n\n- **Strict transcription prompt**: reading order, `[?]` \u002F `[unreadable]` markers, figure\u002Fchart text markers, no summarizing; must start exactly `# Page N`.\n- **Validation**: output is accepted only if it starts with `# Page N`; otherwise retried (`--retries`) then written with an `\u003C!-- extraction-status: failed -->` marker.\n- **Resumable**: pages with `\u003C!-- extraction-status: complete -->` are skipped unless `--force`.\n- **Combine**: all per-page files concatenated into the combined Markdown + a comment-stripped `.txt`.\n\n## PDF → page images\n\n`--rasterize \u003Cpdf>` renders the PDF to `page-NNN.png` via poppler `pdftoppm`\n(macOS: `brew install poppler`; Debian\u002FUbuntu: `apt install poppler-utils`) at\n`--dpi` (default 200), into the slug's images dir. Omit it when page PNGs already\nexist (the script's original input contract).\n\n## Triggers\n\n- \"transcribe scanned pages \u002F book\"\n- \"vision OCR a PDF\"\n- \"extract text from page images\"\n\n## Notes\n\n- TS-native: `src\u002Fartifacts\u002Fcorpus-tools\u002Fvision-extract.ts` — port of section9\n  `codex_vision_extract_pages.sh`, generalized off the hardcoded `codex` CLI.\n- Sits alongside `research-acquire` \u002F `research-acquisition-agent` (PDF\u002Fmetadata)\n  and the media-transcript tooling (audio\u002Fvideo) as the scanned-page acquisition path.\n",{"name":5,"namespace":60,"platforms":61,"commandHint":63,"description":7},"aiwg",[62],"all",{"model":42,"category":64,"modelRole":36,"modelTier":65,"allowedTools":66,"argumentHint":67},"research-acquisition","economy","Read, Bash, Write","--slug SLUG [--rasterize PDF [--dpi N]] [--provider codex|command] [--command TMPL] [--start N --end N] [--model M] [--retries N] [--force]","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fresearch\u002Fskills\u002Fvision-extract",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":8,"skillName":5,"commands":79,"prompt":89,"zipAvailable":90},[80,83,86],{"tool":81,"command":82},"npx","npx skills add jmagly\u002Faiwg --skill vision-extract",{"tool":84,"command":85},"bunx","bunx skills add jmagly\u002Faiwg --skill vision-extract",{"tool":87,"command":88},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill vision-extract","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fresearch\u002Fskills\u002Fvision-extract\u002FSKILL.md",true,[],[93,101,106,132,155,161],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":100},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":102,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":100},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":113,"publishedAt":55},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[112],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[114,115,116,117,118,39,119,120,121,122,123,124,125,49,126,127,128,129,130,131],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","only","retention","re","never","firewall",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":142,"publishedAt":55},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[138,141],{"categoryNo":139,"categoryName":140,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[143,144,145,146,147,38,39,148,124,130,49,149,115,150,127,151,152,131,153,154],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":156,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":160,"publishedAt":55},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[159],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[114,115,116,129,130,131,125,128,121,118,39,119,120,122,123,124,117,49,126,127],{"skillNo":162,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":167,"publishedAt":55},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[165,166],{"categoryNo":139,"categoryName":140,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[143,144,154,153,147,152,151,127,146,38,39,148,124,145,49,149,115,131,130,150]]