[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EK2CACFVE10X4NQFDSFJER":3,"skill-same:01M7EK2CACFVE10X4NQFDSFJER":47},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7EK2CACFVE10X4NQFDSFJER","head-tail",null,"Use when a log, build transcript, generated artifact, or dump is too large to read whole and its middle is repetitive—sample bounded first\u002Flast slices, report the unread gap, and capture producer status separately. Not for source, briefs, packets, or configuration; their whole-file rule comes from the injected task contract.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fhead-tail\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: head-tail\naudience: specialist\ndescription: \"Use when a log, build transcript, generated artifact, or dump is too large to read whole and its middle is repetitive—sample bounded first\u002Flast slices, report the unread gap, and capture producer status separately. Not for source, briefs, packets, or configuration; their whole-file rule comes from the injected task contract.\"\n---\n\n# Head-Tail\n\nSample a file that is too large to read whole by taking a bounded slice from each end. Logs and build\noutput are usually structured this way on purpose: the beginning carries the invocation, configuration,\nand version banner, and the end carries the outcome, the error, and the exit status.\n\n## Canonical efficiency contract\n\nThe task packet's injected **Execution efficiency — the cost unit is ROUND-TRIPS** section is the sole\nsource for whole-file reads, batching independent operations, avoiding re-reads, and excluding generated\ncontent with tool-level globs. This skill does not redefine those rules. It adds only the log-specific\ndecision test, bounded-sample evidence contract, long-line defense, middle-search rule, and producer-status\ntrap that the packet section does not specify.\n\n## When this is the right tool — and when it is the wrong one\nThis technique is **narrow**, and applying it to the wrong file is a measured, expensive mistake.\n\n- **Right:** log files, CI\u002Fbuild output, test-runner transcripts, generated artifacts, data dumps, and\n  anything whose middle is repetitive by construction.\n- **Wrong: source files, briefs, packets, and configuration.** Follow the injected whole-file contract;\n  do not use this skill as an exception to it. A large dense file is not a sampling candidate merely\n  because its full read is inconvenient.\n\nThe deciding question is not \"is this file long?\" but **\"is this file's middle repetitive?\"** A 3,000-line\nsource file is long and dense; a 3,000-line test log is long and repetitive. Only the second is a\nhead-tail candidate.\n\n## Steps\n1. **Size it first.** Check the byte size and line count before reading anything. This is one cheap call\n   and it decides the entire approach — a file you assumed was huge is often small enough to read whole.\n2. **Choose the slice deliberately.** Twenty lines from each end is a reasonable default for a log. Take\n   more from the tail when you are chasing a failure, more from the head when you are checking how a run\n   was invoked or configured.\n3. **Label both slices.** Follow the packet's batching rule, and make the output itself distinguish the\n   head from the tail so lines from opposite ends cannot be mistaken for contiguous evidence.\n4. **Bound the line length.** A single line in a log can be megabytes — a serialized payload, a base64\n   blob, a minified bundle. Truncate over-long lines and mark them truncated, so one pathological line\n   cannot displace everything else you read.\n5. **State the gap explicitly.** Report the sampled range and what was skipped: \"lines 1–20 and\n   14,981–15,000 of 15,000; the middle 14,960 lines were not read.\" A reader who does not know a gap\n   exists will treat your sample as the whole file.\n6. **Search the middle rather than paging it.** When the ends do not answer the question, do **not** walk\n   the file in windows. Search it — grep for the error, the failing test name, the exception class — and\n   read the matches with a little surrounding context. One targeted search beats twenty sequential pages.\n7. **Capture producer status separately.** Save the build\u002Ftest process's direct exit status before any\n   sampling pipeline. A successful `head`, `tail`, formatter, or filter says only that the sampler ran;\n   it cannot establish that the producer succeeded.\n\n## Failure modes\n- **Sampling a source file.** The middle of a source file is the part that matters. Read it whole.\n- **The truncated conclusion.** Reading the tail of a log, finding no error, and reporting success — when\n  the failure was logged mid-run and execution continued. Absence of an error in a *sample* is not\n  evidence of absence in the file.\n- **The masked exit status.** A piped command returns the status of its *last* stage, so\n  `some-build | tail` reports the status of `tail`, not of the build. Reading the tail of a build log is\n  not the same as reading the build's exit code — capture the status separately.\n- **Unreported gaps.** Presenting a sample as though it were the file.\n- **Paging the middle.** Substituting many sequential window reads for one search.\n\n## Acceptance\n- The file was sized before it was read, and the whole-file read was ruled out on evidence, not assumption.\n- The sample's range and its unread gap are stated wherever the content is used or quoted.\n- Over-long lines are bounded and marked, so one line cannot swamp the sample.\n- No conclusion about the file as a whole rests on the sample alone; questions about the middle were\n  answered by searching, not by paging.\n- Where an exit status matters, it was captured directly rather than inferred from tail output.\n","# Head-Tail\n\nSample a file that is too large to read whole by taking a bounded slice from each end. Logs and build\noutput are usually structured this way on purpose: the beginning carries the invocation, configuration,\nand version banner, and the end carries the outcome, the error, and the exit status.\n\n## Canonical efficiency contract\n\nThe task packet's injected **Execution efficiency — the cost unit is ROUND-TRIPS** section is the sole\nsource for whole-file reads, batching independent operations, avoiding re-reads, and excluding generated\ncontent with tool-level globs. This skill does not redefine those rules. It adds only the log-specific\ndecision test, bounded-sample evidence contract, long-line defense, middle-search rule, and producer-status\ntrap that the packet section does not specify.\n\n## When this is the right tool — and when it is the wrong one\nThis technique is **narrow**, and applying it to the wrong file is a measured, expensive mistake.\n\n- **Right:** log files, CI\u002Fbuild output, test-runner transcripts, generated artifacts, data dumps, and\n  anything whose middle is repetitive by construction.\n- **Wrong: source files, briefs, packets, and configuration.** Follow the injected whole-file contract;\n  do not use this skill as an exception to it. A large dense file is not a sampling candidate merely\n  because its full read is inconvenient.\n\nThe deciding question is not \"is this file long?\" but **\"is this file's middle repetitive?\"** A 3,000-line\nsource file is long and dense; a 3,000-line test log is long and repetitive. Only the second is a\nhead-tail candidate.\n\n## Steps\n1. **Size it first.** Check the byte size and line count before reading anything. This is one cheap call\n   and it decides the entire approach — a file you assumed was huge is often small enough to read whole.\n2. **Choose the slice deliberately.** Twenty lines from each end is a reasonable default for a log. Take\n   more from the tail when you are chasing a failure, more from the head when you are checking how a run\n   was invoked or configured.\n3. **Label both slices.** Follow the packet's batching rule, and make the output itself distinguish the\n   head from the tail so lines from opposite ends cannot be mistaken for contiguous evidence.\n4. **Bound the line length.** A single line in a log can be megabytes — a serialized payload, a base64\n   blob, a minified bundle. Truncate over-long lines and mark them truncated, so one pathological line\n   cannot displace everything else you read.\n5. **State the gap explicitly.** Report the sampled range and what was skipped: \"lines 1–20 and\n   14,981–15,000 of 15,000; the middle 14,960 lines were not read.\" A reader who does not know a gap\n   exists will treat your sample as the whole file.\n6. **Search the middle rather than paging it.** When the ends do not answer the question, do **not** walk\n   the file in windows. Search it — grep for the error, the failing test name, the exception class — and\n   read the matches with a little surrounding context. One targeted search beats twenty sequential pages.\n7. **Capture producer status separately.** Save the build\u002Ftest process's direct exit status before any\n   sampling pipeline. A successful `head`, `tail`, formatter, or filter says only that the sampler ran;\n   it cannot establish that the producer succeeded.\n\n## Failure modes\n- **Sampling a source file.** The middle of a source file is the part that matters. Read it whole.\n- **The truncated conclusion.** Reading the tail of a log, finding no error, and reporting success — when\n  the failure was logged mid-run and execution continued. Absence of an error in a *sample* is not\n  evidence of absence in the file.\n- **The masked exit status.** A piped command returns the status of its *last* stage, so\n  `some-build | tail` reports the status of `tail`, not of the build. Reading the tail of a build log is\n  not the same as reading the build's exit code — capture the status separately.\n- **Unreported gaps.** Presenting a sample as though it were the file.\n- **Paging the middle.** Substituting many sequential window reads for one search.\n\n## Acceptance\n- The file was sized before it was read, and the whole-file read was ruled out on evidence, not assumption.\n- The sample's range and its unread gap are stated wherever the content is used or quoted.\n- Over-long lines are bounded and marked, so one line cannot swamp the sample.\n- No conclusion about the file as a whole rests on the sample alone; questions about the middle were\n  answered by searching, not by paging.\n- Where an exit status matters, it was captured directly rather than inferred from tail output.\n",{"name":5,"audience":24,"description":7},"specialist","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fhead-tail",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill head-tail",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill head-tail",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill head-tail","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fhead-tail\u002FSKILL.md",true,[],[48,56,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":57,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":55},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":55},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":55},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":55},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":55},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]