[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C6KZCP442HM96JZW6PZ79J":3,"skill-same:01M7C6KZCP442HM96JZW6PZ79J":52},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7C6KZCP442HM96JZW6PZ79J","serve",null,"Write and create issues or guarded pull requests for approved nutrients with trace and deduplication markers, using crab serve. Use when serving a menu, writing the why and how of a nutrient, explaining the trace footer, or checking why a nutrient was skipped. Do not use for ordinary issue or pull-request authoring unrelated to a Hungry Crab nutrient, menu, or implementation receipt.","drevendev\u002FHungryCrab","drevendev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19223266?v=4","01M7C6H8BHQSBZYSSAD2ZQRGF7","Dreven","01M7C6H8C38ZXGZSY5X7T4VBD4",5,"MIT","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Fserve\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: serve\ndescription: Write and create issues or guarded pull requests for approved nutrients with trace and deduplication markers, using crab serve. Use when serving a menu, writing the why and how of a nutrient, explaining the trace footer, or checking why a nutrient was skipped. Do not use for ordinary issue or pull-request authoring unrelated to a Hungry Crab nutrient, menu, or implementation receipt.\n---\n\n# Serve nutrients\n\n`crab serve` creates issues or, for nutrients you have implemented in the maw — REIMPLEMENT through the clean room, COPY and COPY_FILE by carrying the files with their attribution — guarded pull requests. You write the two sentences that make them worth reading.\n\n## Notes file\n\nBefore serving, write `notes.json` with one entry per nutrient you keep:\n\n```json\n[\n  {\n    \"id\": \"crab:ci:ci.cache\",\n    \"why\": \"Every CI run reinstalls the dependencies; the prey's cache step cuts its lint job to 12 seconds.\",\n    \"how\": \"Add `enable-cache: true` to astral-sh\u002Fsetup-uv in ci.yml, keyed on uv.lock; run it on one PR before enabling it for the matrix.\"\n  }\n]\n```\n\nRules for `why` and `how`:\n\n- Name a concrete effect in this repository (time, risk, a class of bugs), not a generic benefit.\n- `how` names files and tools of the maw, adapted to its toolchain; it is the first step, not a\n  full plan.\n- Never paste prey text unless the license mode is `COPY`; even then cite the path.\n- Optional fields: `title` (if the generated one is off), `serve_as`, `effort`, `risk`. A note\n  may narrow `serve_as` (`pr` → `issue` → `idea`) but never widen it; values outside the\n  vocabulary are ignored with a warning.\n\n## Commands\n\n```bash\ncrab serve \u003Cprey> --maw . --ids id1,id2 --notes notes.json --as dry-run   # previews\ncrab serve \u003Cprey> --maw . --ids id1,id2 --notes notes.json --as issue     # creates issues\ncrab serve \u003Cprey> --maw . --top 5 --as dry-run                            # top of the menu\ncrab serve --meal-dir \u003Cexisting-meal> --maw . --top 5 --as dry-run        # offline portable preview\ncat receipt.json | crab serve \u003Cprey> --maw . --ids id1 --notes notes.json --as pr-branch\ncrab spec crab:ci:ci.cache      # the maw-relative path of a nutrient's clean-room specification\n```\n\n- Dry-run is the default; show previews. Ask before effects only if the user has not already\n  authorised them. Existing single\u002Fmulti meals resolve locally without catch. A portable\n  preview never follows donor paths from menu metadata; COPY\u002FPR effects still need independent\n  source authority and all existing receipts\u002Fpolicy checks.\n- `serve.issues: off` in `.crab.yml` blocks issue creation; `auto` allows it in CI without asking.\n- `serve.prs: off` blocks pull-request publication; `ask` requires explicit `--ids`, while `auto`\n  permits ranked selection such as `--top`.\n- Pull-request mode accepts the strict JSON implementation receipt returned by\n  `crab-cleanroom-impl` on **stdin**. For a batch, concatenate the complete JSON documents with\n  whitespace between them. The receipt stream is transport only: Hungry Crab does not persist it\n  as a second PR state store.\n- Pull-request mode publishes a card only when it is REIMPLEMENT, marked `serve_as: pr`, and has\n  a receipt; every other selected card is skipped with its reason, so `--top` serves what it can.\n  Each published nutrient has exactly one receipt, whose own `nutrient_id` binds it to the menu\n  card, and its specification at the path `crab spec \u003Cid>` prints, which is read, scanned and\n  carried in the pull request. Duplicate, malformed, stale, non-UTF-8, missing or maw-escaping\n  declared files, and a missing specification, fail closed before provider effects.\n- `serve_as` is honoured in every mode: an `idea` card (`hunger: \u003Ccategory>: ideas-only`, or an\n  issue lesson) is skipped unless its id is passed explicitly, and then only as an issue; an\n  `issue` card is never published as a pull request. `serve` reads the `hunger` block of\n  `.crab.yml` again, so a category switched off or narrowed after compare holds.\n- A COPY or COPY_FILE nutrient takes a **materialization receipt** instead of the clean-room\n  one (below); the two kinds may share one stdin stream. A receipt of the wrong kind for the\n  card's licence mode fails the batch before any effect.\n- The maw must have a GitHub `origin` remote; `gh` must be authenticated. Pull-request publication\n  also requires the maw to be the root of a git repository with its `origin` fetchable: files are\n  staged relative to that root, so `--maw packages\u002Fapp` is refused rather than published wrong.\n- The receipt on stdin is read as UTF-8 bytes, whatever the console's own code page is.\n\n## Pull-request transaction\n\n`--as pr-branch` does not publish the current dirty diff. It consumes only the exact paths in the\nclean-room receipt, freezes their current UTF-8 bytes, and then follows the guarded transaction:\n\n1. prepare **all** selected nutrients into immutable payloads — the receipt's files plus the\n   specification at the path `crab spec \u003Cid>` prints, without which the nutrient is refused;\n2. scan every file plus PR title\u002Fbody for possible secrets;\n3. reconcile marker-bearing PRs already present on GitHub;\n4. only then create\u002Freuse the deterministic nutrient branch and create the PR;\n5. write the provider URL to the ledger after GitHub returns it.\n\nFor a reviewed false positive, use `serve.publication_allow` in the maw's committed `.crab.yml`:\neach entry has an exact `finding` SHA-256 identity printed by the refusal and a non-secret `reason`.\nCommit the policy before retrying. The CLI rechecks it against HEAD before effects; a different\nfile, content, line or rule invalidates the exception. Never put the matched value in policy,\nuse a wildcard, or disable scanning. Secret-shaped paths are reported by opaque identity.\n\nThe branch effect uses a detached temporary worktree and stages the frozen bytes without repository\nclean filters. A rerun after a successful PR but failed ledger save reconciles the existing PR by\nits opening `\u003C!-- crab:\u003Cid> -->` marker instead of creating a duplicate. `max_prs_per_run` counts\nnew PRs only; reconciliation does not spend creation budget.\n\n## COPY pull requests: the materialization receipt\n\nA COPY verdict lets prey files travel; COPY_FILE lets whole files travel with their own licence\nheader. Start with a separate, temporary worktree of the maw's current default branch\n(`git worktree add --detach \u003Ccarry-dir> origin\u002F\u003Cdefault-branch>`). Carry there and pass\n`--maw \u003Ccarry-dir>` to compare and serve, so the maintainer's checkout stays free of copied\ninputs. You do the carrying in that worktree before serving: copy or adapt the prey\nfile, keep the copyright and permission notice it came with, and never mix in text the verdict\ndoes not cover. The crab reads the source's licence and NOTICE files at that commit and the\nnotice reproduces them; a licence that asks for its notice to travel, from a prey with no\nlicence file to carry, is refused. Then write one receipt per nutrient and pipe it to\n`--as pr-branch`:\n\n```json\n{\n  \"version\": 1,\n  \"kind\": \"materialization\",\n  \"nutrient_id\": \"crab:ci:ci.cache\",\n  \"source\": {\"label\": \"pypa\u002Fpipx\", \"url\": \"https:\u002F\u002Fgithub.com\u002Fpypa\u002Fpipx\",\n             \"sha\": \"\u003Cthe prey commit from menu.json>\", \"license\": \"MIT\"},\n  \"taken\": [\n    {\"maw_path\": \".github\u002Fworkflows\u002Fci.yml\", \"prey_path\": \".github\u002Fworkflows\u002Ftest.yml\",\n     \"verbatim\": false}\n  ],\n  \"summary\": \"carried the cache step over, adapted to uv\",\n  \"checks\": [\"uv run pytest -q\"]\n}\n```\n\n`source` must be the meal's prey exactly as `menu.json` records it — label, URL, commit and\nlicence — because the notice will cite it. Every `prey_path` is checked against the prey at that\ncommit through read-only git plumbing in the cache; a `verbatim` file is compared byte for byte,\nand under COPY_FILE every file must be verbatim. A file in vendored code, under a directory with\na licence file of its own, or whose header names another licence than the source's is refused:\nthe verdict is the repository's and does not answer for it. The crab then appends the receipt to\n`.crab\u002Fattributions.json` (once: a rerun or a reconciliation adds nothing, and the same nutrient\nfrom another commit is a second receipt that never rewrites the first), renders the notice file\nnamed by `attribution_file` in `.crab.yml` from all receipts, and carries the taken files, the\nreceipts and the notice in one pull request whose body says what was taken from where and what\nthe licence asks for.\n\n`crab attribution --maw .` rewrites the notice file from the receipts; `--check` fails when it\nis missing or stale, a stored receipt is malformed, a carried text's SHA-256 differs, or a\nrecorded maw file is missing or unsafe. Stored array members are never silently discarded.\nLegacy carried texts without a digest must be verified against the recorded prey commit before\nmigrating them; hashing unverified stored prose would bless the same corruption. Legacy missing\nchecks remain explicitly unrecorded. New COPY records retain checks, and both PR paths quote\nproducer summaries\u002Fchecks as fenced data, neutralizing raw reconciliation comments separately.\nBlockquotes and HTML entities still permit GitHub closing references, including full issue\nURLs; receipt and obligation prose therefore stays in code fences that its contents cannot\nclose. Metadata that carries a closing directive is redacted instead of becoming provider syntax.\nGitHub also recognizes entity-encoded mentions: metadata displays `@` as `(at)` while JSON\nretains exact names. Publication scanning checks that display form as well, so the substitution\ncannot conceal a credential-bearing URL.\nThe notice names only what the crab actually\ncarried in: a COPY nutrient filed as an issue took nothing and appears nowhere. Serve from a\ncheckout that is up to date with the default branch: a pull request that would drop a receipt\nthe default branch already holds is refused. Rewriting refuses missing receipts evidenced by\nthe old notice or this maw's Git HEAD; restore them, or review an intentional removal and use\n`crab attribution --maw . --allow-remove`, then commit the reviewed change. That flag cannot\nweaken `--check`. Keep receipts and notices in version control: outside Git, deleting both\nleaves no evidence from which the crab can discover previous copies. Stored hashes detect\ntext corruption; they are not a signature proving an independently edited record's origin.\n`attribution_file` must be a plain relative path\nin the maw, and the crab never overwrites a file it did not write. A COPY card whose licence\nverdict asks for human review is published only when you name it with `--ids`.\n\nThe receipts and the notice are written at publication and were never in the working tree, so\nthe `checks` of your receipt did not see them. After serving, let the maw's own gate run on the\nbranch — its CI, or the gate by hand in a checkout of the branch where there is no CI — and fix\nthe branch before anyone merges it. The notice is headings and paragraphs only, which a Markdown\nformatter's defaults leave alone; where the maw's formatter rewrites it anyway, exclude the file\nfrom the formatter, never from `crab attribution --check`.\n\nPublication leaves the receipt's input paths in the worktree it read. The text and JSON reports\nname those paths and the nutrient branch, including when an existing pull request is reconciled.\nAfter verifying the branch contains the files, receipts and notice, clean up the disposable\nworktree. If you carried in the maintainer's checkout instead, use\n`git stash push --include-untracked` to preserve all local changes and clean that checkout;\nthis also stashes unrelated edits, so inspect the stash before restoring anything. Do not sweep\nthe copied inputs into an unrelated commit with `git add -A`.\n\nKeep `.crab.yml` and `.crab\u002Fledger.json` (`ledger: repo`) on the default branch in their own\ncommit. Before removing the carrying worktree, preserve its configuration and ledger updates\nseparately; the nutrient pull request does not carry them. Its copied files belong only with\ntheir receipts and notice on the nutrient branch.\n\n## Whose name the artifacts carry\n\nIssues and pull requests go into **the maw**, so serving into another repository means digesting\nthat repository as the maw: `crab serve \u003Cprey> --maw ..\u002Ftheir-repo`. It needs a working tree,\nbecause the comparison and guarded PR publication operate against real maw files.\n\nBy default artifacts are filed as whoever `gh` is logged in as. `serve.token_env` in that\nrepository's `.crab.yml` names an environment variable holding a token to use instead — a GitHub\nApp installation token, or a machine account's — and then artifacts carry the crab's name rather\nthan a person's. The first log line of an effectful serve says which identity is in use; read it\nback to the user before confirming.\n\nOpening an issue needs no special permission on a public repository, but **creating a label needs\nwrite access**. Where the crab cannot create its label it says so once and serves without labels;\ndeduplication is unaffected, because it reads the `crab:\u003Cid>` marker in the body, not the label.\n\n## What an issue contains\n\nSee `references\u002Fissue-template.md`. Every issue carries a hidden `\u003C!-- crab:\u003Cid> -->` marker\n(deduplication across runs and machines), the `hungry-crab` label, and a trace footer with prey,\ncommit, license and mode. The ledger records `served` with the issue URL.\n\nPull requests carry the same opening marker and trace, plus the clean-room implementation summary\nand a link to the specification. The files are exactly the receipt-declared, hash-verified\npublication payload plus the specification itself; unrelated dirty maw files are not discovered\nor added.\n\n## Skips and their meaning\n\n| Reason | Meaning |\n|---|---|\n| `ledger: rejected (...)` | decided earlier; do not re-propose unless the user asks |\n| `ledger: served \u003Curl>` | already served; link to it |\n| `issue #N exists (open)` | found by marker on GitHub; the ledger is updated |\n| `pull request exists \u003Curl>; ledger reconciled` | provider already has the PR; local truth was repaired without creating another |\n| `serve.max_prs_per_run reached (N)` | creation budget is exhausted; an already-existing PR could still have reconciled |\n| `not in the menu` | run `crab compare` again or check the id |\n| `serve_as: idea` | the hunger block or the card itself keeps it an idea; pass the id explicitly to file it as an issue anyway, never as a pull request |\n| `serve_as: issue` | (pull-request mode) the card is an issue, not a pull request; serve it with `--as issue` |\n| `hunger: \u003Ccategory> is off` | the maw switched the category off in `.crab.yml`; nothing of it is served |\n| `license mode IDEAS_ONLY has no pull-request path` | only REIMPLEMENT, COPY and COPY_FILE become pull requests; serve the card as an issue |\n| `no clean-room receipt` | pull-request mode found no receipt for a REIMPLEMENT card on stdin; run the clean-room protocol first |\n| `no materialization receipt` | pull-request mode found no receipt for a COPY card on stdin; carry the files and write the receipt first |\n| `the licence verdict asks for human review; name it with --ids` | the meal's verdict wants a person to look; decide, then serve the card by id |\n| `notes quote commenter text; rewrite why\u002Fhow in your own words` | the card is not of licensed origin and your `why` or `how` repeats one of the prey's issue titles, or eight words in a row of one; state the need in your own words and link the issue |\n| `the prey's issue titles cannot be read, so these notes cannot be checked; run crab compare again` | the prey digest the meal names is gone from the cache; recompare, then serve |\n","# Serve nutrients\n\n`crab serve` creates issues or, for nutrients you have implemented in the maw — REIMPLEMENT through the clean room, COPY and COPY_FILE by carrying the files with their attribution — guarded pull requests. You write the two sentences that make them worth reading.\n\n## Notes file\n\nBefore serving, write `notes.json` with one entry per nutrient you keep:\n\n```json\n[\n  {\n    \"id\": \"crab:ci:ci.cache\",\n    \"why\": \"Every CI run reinstalls the dependencies; the prey's cache step cuts its lint job to 12 seconds.\",\n    \"how\": \"Add `enable-cache: true` to astral-sh\u002Fsetup-uv in ci.yml, keyed on uv.lock; run it on one PR before enabling it for the matrix.\"\n  }\n]\n```\n\nRules for `why` and `how`:\n\n- Name a concrete effect in this repository (time, risk, a class of bugs), not a generic benefit.\n- `how` names files and tools of the maw, adapted to its toolchain; it is the first step, not a\n  full plan.\n- Never paste prey text unless the license mode is `COPY`; even then cite the path.\n- Optional fields: `title` (if the generated one is off), `serve_as`, `effort`, `risk`. A note\n  may narrow `serve_as` (`pr` → `issue` → `idea`) but never widen it; values outside the\n  vocabulary are ignored with a warning.\n\n## Commands\n\n```bash\ncrab serve \u003Cprey> --maw . --ids id1,id2 --notes notes.json --as dry-run   # previews\ncrab serve \u003Cprey> --maw . --ids id1,id2 --notes notes.json --as issue     # creates issues\ncrab serve \u003Cprey> --maw . --top 5 --as dry-run                            # top of the menu\ncrab serve --meal-dir \u003Cexisting-meal> --maw . --top 5 --as dry-run        # offline portable preview\ncat receipt.json | crab serve \u003Cprey> --maw . --ids id1 --notes notes.json --as pr-branch\ncrab spec crab:ci:ci.cache      # the maw-relative path of a nutrient's clean-room specification\n```\n\n- Dry-run is the default; show previews. Ask before effects only if the user has not already\n  authorised them. Existing single\u002Fmulti meals resolve locally without catch. A portable\n  preview never follows donor paths from menu metadata; COPY\u002FPR effects still need independent\n  source authority and all existing receipts\u002Fpolicy checks.\n- `serve.issues: off` in `.crab.yml` blocks issue creation; `auto` allows it in CI without asking.\n- `serve.prs: off` blocks pull-request publication; `ask` requires explicit `--ids`, while `auto`\n  permits ranked selection such as `--top`.\n- Pull-request mode accepts the strict JSON implementation receipt returned by\n  `crab-cleanroom-impl` on **stdin**. For a batch, concatenate the complete JSON documents with\n  whitespace between them. The receipt stream is transport only: Hungry Crab does not persist it\n  as a second PR state store.\n- Pull-request mode publishes a card only when it is REIMPLEMENT, marked `serve_as: pr`, and has\n  a receipt; every other selected card is skipped with its reason, so `--top` serves what it can.\n  Each published nutrient has exactly one receipt, whose own `nutrient_id` binds it to the menu\n  card, and its specification at the path `crab spec \u003Cid>` prints, which is read, scanned and\n  carried in the pull request. Duplicate, malformed, stale, non-UTF-8, missing or maw-escaping\n  declared files, and a missing specification, fail closed before provider effects.\n- `serve_as` is honoured in every mode: an `idea` card (`hunger: \u003Ccategory>: ideas-only`, or an\n  issue lesson) is skipped unless its id is passed explicitly, and then only as an issue; an\n  `issue` card is never published as a pull request. `serve` reads the `hunger` block of\n  `.crab.yml` again, so a category switched off or narrowed after compare holds.\n- A COPY or COPY_FILE nutrient takes a **materialization receipt** instead of the clean-room\n  one (below); the two kinds may share one stdin stream. A receipt of the wrong kind for the\n  card's licence mode fails the batch before any effect.\n- The maw must have a GitHub `origin` remote; `gh` must be authenticated. Pull-request publication\n  also requires the maw to be the root of a git repository with its `origin` fetchable: files are\n  staged relative to that root, so `--maw packages\u002Fapp` is refused rather than published wrong.\n- The receipt on stdin is read as UTF-8 bytes, whatever the console's own code page is.\n\n## Pull-request transaction\n\n`--as pr-branch` does not publish the current dirty diff. It consumes only the exact paths in the\nclean-room receipt, freezes their current UTF-8 bytes, and then follows the guarded transaction:\n\n1. prepare **all** selected nutrients into immutable payloads — the receipt's files plus the\n   specification at the path `crab spec \u003Cid>` prints, without which the nutrient is refused;\n2. scan every file plus PR title\u002Fbody for possible secrets;\n3. reconcile marker-bearing PRs already present on GitHub;\n4. only then create\u002Freuse the deterministic nutrient branch and create the PR;\n5. write the provider URL to the ledger after GitHub returns it.\n\nFor a reviewed false positive, use `serve.publication_allow` in the maw's committed `.crab.yml`:\neach entry has an exact `finding` SHA-256 identity printed by the refusal and a non-secret `reason`.\nCommit the policy before retrying. The CLI rechecks it against HEAD before effects; a different\nfile, content, line or rule invalidates the exception. Never put the matched value in policy,\nuse a wildcard, or disable scanning. Secret-shaped paths are reported by opaque identity.\n\nThe branch effect uses a detached temporary worktree and stages the frozen bytes without repository\nclean filters. A rerun after a successful PR but failed ledger save reconciles the existing PR by\nits opening `\u003C!-- crab:\u003Cid> -->` marker instead of creating a duplicate. `max_prs_per_run` counts\nnew PRs only; reconciliation does not spend creation budget.\n\n## COPY pull requests: the materialization receipt\n\nA COPY verdict lets prey files travel; COPY_FILE lets whole files travel with their own licence\nheader. Start with a separate, temporary worktree of the maw's current default branch\n(`git worktree add --detach \u003Ccarry-dir> origin\u002F\u003Cdefault-branch>`). Carry there and pass\n`--maw \u003Ccarry-dir>` to compare and serve, so the maintainer's checkout stays free of copied\ninputs. You do the carrying in that worktree before serving: copy or adapt the prey\nfile, keep the copyright and permission notice it came with, and never mix in text the verdict\ndoes not cover. The crab reads the source's licence and NOTICE files at that commit and the\nnotice reproduces them; a licence that asks for its notice to travel, from a prey with no\nlicence file to carry, is refused. Then write one receipt per nutrient and pipe it to\n`--as pr-branch`:\n\n```json\n{\n  \"version\": 1,\n  \"kind\": \"materialization\",\n  \"nutrient_id\": \"crab:ci:ci.cache\",\n  \"source\": {\"label\": \"pypa\u002Fpipx\", \"url\": \"https:\u002F\u002Fgithub.com\u002Fpypa\u002Fpipx\",\n             \"sha\": \"\u003Cthe prey commit from menu.json>\", \"license\": \"MIT\"},\n  \"taken\": [\n    {\"maw_path\": \".github\u002Fworkflows\u002Fci.yml\", \"prey_path\": \".github\u002Fworkflows\u002Ftest.yml\",\n     \"verbatim\": false}\n  ],\n  \"summary\": \"carried the cache step over, adapted to uv\",\n  \"checks\": [\"uv run pytest -q\"]\n}\n```\n\n`source` must be the meal's prey exactly as `menu.json` records it — label, URL, commit and\nlicence — because the notice will cite it. Every `prey_path` is checked against the prey at that\ncommit through read-only git plumbing in the cache; a `verbatim` file is compared byte for byte,\nand under COPY_FILE every file must be verbatim. A file in vendored code, under a directory with\na licence file of its own, or whose header names another licence than the source's is refused:\nthe verdict is the repository's and does not answer for it. The crab then appends the receipt to\n`.crab\u002Fattributions.json` (once: a rerun or a reconciliation adds nothing, and the same nutrient\nfrom another commit is a second receipt that never rewrites the first), renders the notice file\nnamed by `attribution_file` in `.crab.yml` from all receipts, and carries the taken files, the\nreceipts and the notice in one pull request whose body says what was taken from where and what\nthe licence asks for.\n\n`crab attribution --maw .` rewrites the notice file from the receipts; `--check` fails when it\nis missing or stale, a stored receipt is malformed, a carried text's SHA-256 differs, or a\nrecorded maw file is missing or unsafe. Stored array members are never silently discarded.\nLegacy carried texts without a digest must be verified against the recorded prey commit before\nmigrating them; hashing unverified stored prose would bless the same corruption. Legacy missing\nchecks remain explicitly unrecorded. New COPY records retain checks, and both PR paths quote\nproducer summaries\u002Fchecks as fenced data, neutralizing raw reconciliation comments separately.\nBlockquotes and HTML entities still permit GitHub closing references, including full issue\nURLs; receipt and obligation prose therefore stays in code fences that its contents cannot\nclose. Metadata that carries a closing directive is redacted instead of becoming provider syntax.\nGitHub also recognizes entity-encoded mentions: metadata displays `@` as `(at)` while JSON\nretains exact names. Publication scanning checks that display form as well, so the substitution\ncannot conceal a credential-bearing URL.\nThe notice names only what the crab actually\ncarried in: a COPY nutrient filed as an issue took nothing and appears nowhere. Serve from a\ncheckout that is up to date with the default branch: a pull request that would drop a receipt\nthe default branch already holds is refused. Rewriting refuses missing receipts evidenced by\nthe old notice or this maw's Git HEAD; restore them, or review an intentional removal and use\n`crab attribution --maw . --allow-remove`, then commit the reviewed change. That flag cannot\nweaken `--check`. Keep receipts and notices in version control: outside Git, deleting both\nleaves no evidence from which the crab can discover previous copies. Stored hashes detect\ntext corruption; they are not a signature proving an independently edited record's origin.\n`attribution_file` must be a plain relative path\nin the maw, and the crab never overwrites a file it did not write. A COPY card whose licence\nverdict asks for human review is published only when you name it with `--ids`.\n\nThe receipts and the notice are written at publication and were never in the working tree, so\nthe `checks` of your receipt did not see them. After serving, let the maw's own gate run on the\nbranch — its CI, or the gate by hand in a checkout of the branch where there is no CI — and fix\nthe branch before anyone merges it. The notice is headings and paragraphs only, which a Markdown\nformatter's defaults leave alone; where the maw's formatter rewrites it anyway, exclude the file\nfrom the formatter, never from `crab attribution --check`.\n\nPublication leaves the receipt's input paths in the worktree it read. The text and JSON reports\nname those paths and the nutrient branch, including when an existing pull request is reconciled.\nAfter verifying the branch contains the files, receipts and notice, clean up the disposable\nworktree. If you carried in the maintainer's checkout instead, use\n`git stash push --include-untracked` to preserve all local changes and clean that checkout;\nthis also stashes unrelated edits, so inspect the stash before restoring anything. Do not sweep\nthe copied inputs into an unrelated commit with `git add -A`.\n\nKeep `.crab.yml` and `.crab\u002Fledger.json` (`ledger: repo`) on the default branch in their own\ncommit. Before removing the carrying worktree, preserve its configuration and ledger updates\nseparately; the nutrient pull request does not carry them. Its copied files belong only with\ntheir receipts and notice on the nutrient branch.\n\n## Whose name the artifacts carry\n\nIssues and pull requests go into **the maw**, so serving into another repository means digesting\nthat repository as the maw: `crab serve \u003Cprey> --maw ..\u002Ftheir-repo`. It needs a working tree,\nbecause the comparison and guarded PR publication operate against real maw files.\n\nBy default artifacts are filed as whoever `gh` is logged in as. `serve.token_env` in that\nrepository's `.crab.yml` names an environment variable holding a token to use instead — a GitHub\nApp installation token, or a machine account's — and then artifacts carry the crab's name rather\nthan a person's. The first log line of an effectful serve says which identity is in use; read it\nback to the user before confirming.\n\nOpening an issue needs no special permission on a public repository, but **creating a label needs\nwrite access**. Where the crab cannot create its label it says so once and serves without labels;\ndeduplication is unaffected, because it reads the `crab:\u003Cid>` marker in the body, not the label.\n\n## What an issue contains\n\nSee `references\u002Fissue-template.md`. Every issue carries a hidden `\u003C!-- crab:\u003Cid> -->` marker\n(deduplication across runs and machines), the `hungry-crab` label, and a trace footer with prey,\ncommit, license and mode. The ledger records `served` with the issue URL.\n\nPull requests carry the same opening marker and trace, plus the clean-room implementation summary\nand a link to the specification. The files are exactly the receipt-declared, hash-verified\npublication payload plus the specification itself; unrelated dirty maw files are not discovered\nor added.\n\n## Skips and their meaning\n\n| Reason | Meaning |\n|---|---|\n| `ledger: rejected (...)` | decided earlier; do not re-propose unless the user asks |\n| `ledger: served \u003Curl>` | already served; link to it |\n| `issue #N exists (open)` | found by marker on GitHub; the ledger is updated |\n| `pull request exists \u003Curl>; ledger reconciled` | provider already has the PR; local truth was repaired without creating another |\n| `serve.max_prs_per_run reached (N)` | creation budget is exhausted; an already-existing PR could still have reconciled |\n| `not in the menu` | run `crab compare` again or check the id |\n| `serve_as: idea` | the hunger block or the card itself keeps it an idea; pass the id explicitly to file it as an issue anyway, never as a pull request |\n| `serve_as: issue` | (pull-request mode) the card is an issue, not a pull request; serve it with `--as issue` |\n| `hunger: \u003Ccategory> is off` | the maw switched the category off in `.crab.yml`; nothing of it is served |\n| `license mode IDEAS_ONLY has no pull-request path` | only REIMPLEMENT, COPY and COPY_FILE become pull requests; serve the card as an issue |\n| `no clean-room receipt` | pull-request mode found no receipt for a REIMPLEMENT card on stdin; run the clean-room protocol first |\n| `no materialization receipt` | pull-request mode found no receipt for a COPY card on stdin; carry the files and write the receipt first |\n| `the licence verdict asks for human review; name it with --ids` | the meal's verdict wants a person to look; decide, then serve the card by id |\n| `notes quote commenter text; rewrite why\u002Fhow in your own words` | the card is not of licensed origin and your `why` or `how` repeats one of the prey's issue titles, or eight words in a row of one; state the need in your own words and link the issue |\n| `the prey's issue titles cannot be read, so these notes cannot be checked; run crab compare again` | the prey digest the meal names is gone from the cache; recompare, then serve |\n",{"name":5,"description":7},"master","566b03c5df13a998ce74f412d06e50f09deea902","skills\u002Fserve",14,"https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab","https:\u002F\u002Fgithub.com\u002Fdrevendev","I make things. Tools, games & experiments.","2026-11-15 04:30:13",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add drevendev\u002FHungryCrab --skill serve",{"tool":38,"command":39},"bunx","bunx skills add drevendev\u002FHungryCrab --skill serve",{"tool":41,"command":42},"pnpm","pnpm dlx skills add drevendev\u002FHungryCrab --skill serve","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Fserve\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fissue-template.md","REFERENCE","参考文档",1600,"https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Fserve\u002Freferences\u002Fissue-template.md",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7C6MWX68HH9DWX9DB59JKXP","smoke","Run the smoke suite against a deployed preview and report what broke. Use after a deploy, or when the user asks whether the preview is healthy.","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Frepos\u002Fnpm-app\u002F.claude\u002Fskills\u002Fsmoke\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7C6MGKPTJGQJ12PRNJG721T","deploy","Deploy Crab Cove to GitHub Pages. Use when the user asks to deploy, publish or release the site.","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Frepos\u002Fnpm-app\u002F.claude\u002Fskills\u002Fdeploy\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7C6KN4DWQQP0RKMXXY8ESDV","loop","Run exactly one phase of a configured, persisted Hungry Crab loop and exit. Use when a human or a local scheduler explicitly invokes the scheduled crab for a maw; never start a scheduler or enable work autonomy yourself.","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Floop\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7C6K60V9P2N077FBNV27M43","license","Decide what may be carried over from a prey repository under its license. Modes are COPY, COPY_FILE, REIMPLEMENT, IDEAS_ONLY and HUMAN. Use when a nutrient's license mode is unclear, when asked whether code or configs from another repository may be copied, or when a sniff verdict says HUMAN. Do not use to choose the maw's own license, for general legal advice, or for licensing questions unrelated to prey-to-maw transfer.","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Flicense\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7C6JHFZQ1W2RXVH6R2FE18N","eat","Eat a foreign repository and turn useful, evidenced improvements for the current repository into guarded issues or pull requests without violating licenses. Use when the user asks to eat, consume, digest or chew a repo, or asks what to borrow from another project.","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Feat\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7C6HZV49KADT8TJ14DDAWNR","cleanroom","https:\u002F\u002Fgithub.com\u002Fdrevendev\u002FHungryCrab\u002Fblob\u002Fmaster\u002Fskills\u002Fcleanroom\u002FSKILL.md",[],[]]