[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F6PJK8Y92BWS738BW5NN2N":3,"skill-same:01M7F6PJK8Y92BWS738BW5NN2N":56},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7F6PJK8Y92BWS738BW5NN2N","spdx-ai-annotation",null,"Mark AI-generated code and files with SPDX\u002FREUSE license headers and snippet markers, following the waLBerla AI policy. Use whenever you create a new file, add new logic to an existing file, or when the user asks to annotate, lint or fix SPDX, REUSE or AI markers. Works for all file types.","Pitt0s\u002Fclaude-skills","Pitt0s","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63597338?v=4","01M7F6PG8RPT3T1ZX3DBEV83XZ","Michi","01M7F6PG9AP7W05GEPSE9XD6GD",0,"CC0-1.0","https:\u002F\u002Fgithub.com\u002FPitt0s\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwalberla-spdx-ai\u002Fskills\u002Fspdx-ai-annotation\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: spdx-ai-annotation\ndescription: Mark AI-generated code and files with SPDX\u002FREUSE license headers and snippet markers, following the waLBerla AI policy. Use whenever you create a new file, add new logic to an existing file, or when the user asks to annotate, lint or fix SPDX, REUSE or AI markers. Works for all file types.\n---\n\n# SPDX\u002FREUSE annotation of AI-generated content\n\nYou are an AI agent. Any creative content you write in this repository must be\nmarked as AI-generated. This skill tells you how. Follow it every time you write\nfiles. Do not wait to be asked.\n\nHeaders are written and checked with the REUSE tool (`reuse`, https:\u002F\u002Freuse.software).\nDo not write file headers by hand. `reuse` knows the correct comment style for\neach file type and uses a `.license` sidecar file for binaries.\n\n## 0. Prerequisites (once per session)\n\n1. Check that `reuse --version` works. If not, ask the user to install it\n   (`pipx install reuse`). Do not continue annotating without it.\n2. Read `.spdx-ai.json` in the repository root if it exists. Keys:\n   `project_license`, `ai_license` (default `CC0-1.0`), `ai_copyright`\n   (`\"human\"` or `\"NONE\"`, see step 5), `core_paths`, `exclude_paths`,\n   `annotate_args` (extra arguments for `reuse annotate`).\n3. Collect metadata:\n   - Human: `git config user.name` and `git config user.email`. If empty, ask. Never invent a name.\n   - Agent: `Claude Code (\u003Cmodel id>)`, for example `Claude Code (claude-opus-5-5)`.\n     Take the model id from your system prompt.\n4. Detect the licenses:\n   ```\n   python3 \u003Cthis skill's directory>\u002Fscripts\u002Fcheck_spdx.py --project-license \u003Crepo root>\n   ```\n   - `license` is the project license. It comes from `.spdx-ai.json`, the `LICENSES\u002F`\n     folder or the root `LICENSE`\u002F`COPYING` file, in that order.\n   - If `ambiguous` is true (for example GPL text cannot tell `-only` from `-or-later`),\n     ask the user which one applies. Suggest saving it as `project_license` in `.spdx-ai.json`.\n   - If `missing_in_LICENSES` is not empty, `reuse lint` will fail. Tell the user and,\n     after a yes, run `reuse download \u003CSPDX-ID>` for each missing license.\n5. Decide the copyright holder for AI content:\n   - If `ai_copyright` is set in `.spdx-ai.json`, use it.\n   - Otherwise ask the user once per session: copyright line with their name\n     (default), or no copyright holder (`NONE`).\n   - Use `NONE` only after the user explicitly chose it. It is written as\n     `SPDX-FileCopyrightText: NONE`, so such files stay searchable.\n   - Never omit the copyright line. REUSE requires one on every file.\n\n## 1. Decide what kind of change you are making\n\n| Your change | License | What to do |\n|---|---|---|\n| **Refactoring**: renaming, bug fixes, formatting, localized modernization, moving or splitting existing code | unchanged | **No marker.** Refactoring is not creative work. Keep the existing header. If you move code into a new file, copy the original file's copyright and license lines into the new file. |\n| **New file**, fully written by you | `ai_license` (CC0-1.0) unless the user wants another license | AI file header (section 2a) |\n| **New logic** added to an existing human-written file | `ai_license` | AI snippet (section 2b). Keep the file header untouched. |\n| Any change in a file that already has an AI file header | as in the header | No extra marker |\n| Annotating an existing human-written file on request | project license | `reuse annotate` with the human's data, no AI markers |\n| New logic in a **core path** (`core_paths`) | - | **STOP.** The policy excludes AI-generated code in the core. Explain this and ask the user. Refactoring in the core is fine. |\n| User wants a mixed file to become fully AI-licensed | - | Only the human authors can decide this. All authors must agree. Ask for explicit confirmation first. |\n\nRules that always apply:\n- When in doubt whether something is refactoring or new logic, ask the user.\n- Never add a human-authored header with a guessed author or year.\n- Never remove or change SPDX lines written by humans.\n- Licensing decisions belong to the human. You only execute them.\n- Documentation or code that only *shows* SPDX tags as examples (not real license\n  info) must be wrapped in `REUSE-IgnoreStart` \u002F `REUSE-IgnoreEnd` comments, so\n  `reuse` and the checker do not read them as tags.\n\n\u003C!-- REUSE-IgnoreStart -->\n\n## 2. How to annotate\n\n### 2a. AI file header (new file written by you)\n\nStep 1: write the header with `reuse`:\n\n```\nreuse annotate \\\n  --copyright \"\u003CHuman Name> \u003Chuman@mail>\" \\\n  --license \"\u003Cai_license>\" \\\n  --contributor \"\u003CAgent Name>\" \\\n  \u003Cannotate_args> --fallback-dot-license \u003Cfile>\n```\n\nIf the user chose `NONE`, use `--copyright NONE --exclude-year` instead.\nThis writes exactly `SPDX-FileCopyrightText: NONE`.\n\nStep 2: add the policy block **as a separate comment directly below** the header,\nin the same comment style that `reuse` used. Keep a blank line between the blocks.\n`reuse annotate` rewrites its own header block, and a separate block survives that.\n\nC\u002FC++ example (after both steps):\n\n```\n\u002F*\n * SPDX-FileCopyrightText: 2026 Jane Doe \u003Cjane@example.org>\n * SPDX-FileContributor: Claude Code (claude-opus-5-5)\n *\n * SPDX-License-Identifier: CC0-1.0\n *\u002F\n\n\u002F**\n * SPDX-FileCreatedBy: Jane Doe\n * SPDX-FileCreatedUsing: Claude Code (claude-opus-5-5)\n *\u002F\n```\n\nPython, shell, CMake, YAML and similar use `#` comments instead. Shebang and\nencoding lines stay at the very top. `reuse` handles that.\n\nFiles that must start with YAML frontmatter (`SKILL.md`, Jekyll or Hugo pages)\nand files that must start with a fixed line other than a shebang: use\n`--force-dot-license`, so the file itself stays untouched.\n\nIf `reuse` created a `.license` sidecar (binary or unknown file type), append the\ntwo policy lines to the sidecar file without comment characters.\n\n### 2b. AI snippet (new logic inside a human-written file)\n\n`reuse annotate` cannot write snippets. Write them yourself, in the comment syntax\nof that file. Use this order of tags:\n\n```\n\u002F**\n * SPDX-SnippetBegin\n * SPDX-SnippetCopyrightText: \u003CYear> \u003CHuman Name> \u003Chuman@mail>\n * SPDX-License-Identifier: CC0-1.0\n * SPDX-SnippetCreatedBy: \u003CHuman Name>\n * SPDX-SnippetCreatedUsing: \u003CAgent Name>\n *\u002F\n\n... generated code ...\n\n\u002F* SPDX-SnippetEnd *\u002F\n```\n\n`#`-comment example:\n\n```\n# SPDX-SnippetBegin\n# SPDX-SnippetCopyrightText: 2026 Jane Doe \u003Cjane@example.org>\n# SPDX-License-Identifier: CC0-1.0\n# SPDX-SnippetCreatedBy: Jane Doe\n# SPDX-SnippetCreatedUsing: Claude Code (claude-opus-5-5)\n\ndef generated_helper():\n    ...\n\n# SPDX-SnippetEnd\n```\n\nIf the user chose `NONE`, write `SPDX-SnippetCopyrightText: NONE`.\n\nSnippet rules:\n- One snippet per contiguous generated block. Keep it tight.\n- Never nest snippets. If you extend code inside or right next to an existing AI\n  snippet, extend that snippet instead of opening a new one.\n- Every `SPDX-SnippetBegin` needs exactly one `SPDX-SnippetEnd`.\n- If the file format has no comments at all (for example JSON), you cannot mark a\n  snippet. Ask the user: move the generated part to its own file, or mark the whole\n  file with a `.license` sidecar.\n\n\u003C!-- REUSE-IgnoreEnd -->\n\n## 3. Verify\n\nRun the checker on every file you created or changed:\n\n```\npython3 \u003Cthis skill's directory>\u002Fscripts\u002Fcheck_spdx.py \u003Cfiles>\n```\n\nIt runs `reuse lint-file` and adds the AI-specific checks: snippet pairing,\ncomplete markers, placeholders, deprecated IDs like `CC-0`, and core paths.\nFix every error before you report the task as done. If the plugin hook is\ninstalled, this check also runs after each Write or Edit.\n\nFor a full repository check, `reuse lint` is the reference. Expect many errors\nin legacy repositories that are not yet REUSE-compliant. Do not fix those\nunless asked.\n\n## 4. Report\n\nIn your final message, list:\n- files with a new AI header or AI snippet,\n- license files you downloaded,\n- every case where you stopped and asked instead of annotating.\n","# SPDX\u002FREUSE annotation of AI-generated content\n\nYou are an AI agent. Any creative content you write in this repository must be\nmarked as AI-generated. This skill tells you how. Follow it every time you write\nfiles. Do not wait to be asked.\n\nHeaders are written and checked with the REUSE tool (`reuse`, https:\u002F\u002Freuse.software).\nDo not write file headers by hand. `reuse` knows the correct comment style for\neach file type and uses a `.license` sidecar file for binaries.\n\n## 0. Prerequisites (once per session)\n\n1. Check that `reuse --version` works. If not, ask the user to install it\n   (`pipx install reuse`). Do not continue annotating without it.\n2. Read `.spdx-ai.json` in the repository root if it exists. Keys:\n   `project_license`, `ai_license` (default `CC0-1.0`), `ai_copyright`\n   (`\"human\"` or `\"NONE\"`, see step 5), `core_paths`, `exclude_paths`,\n   `annotate_args` (extra arguments for `reuse annotate`).\n3. Collect metadata:\n   - Human: `git config user.name` and `git config user.email`. If empty, ask. Never invent a name.\n   - Agent: `Claude Code (\u003Cmodel id>)`, for example `Claude Code (claude-opus-5-5)`.\n     Take the model id from your system prompt.\n4. Detect the licenses:\n   ```\n   python3 \u003Cthis skill's directory>\u002Fscripts\u002Fcheck_spdx.py --project-license \u003Crepo root>\n   ```\n   - `license` is the project license. It comes from `.spdx-ai.json`, the `LICENSES\u002F`\n     folder or the root `LICENSE`\u002F`COPYING` file, in that order.\n   - If `ambiguous` is true (for example GPL text cannot tell `-only` from `-or-later`),\n     ask the user which one applies. Suggest saving it as `project_license` in `.spdx-ai.json`.\n   - If `missing_in_LICENSES` is not empty, `reuse lint` will fail. Tell the user and,\n     after a yes, run `reuse download \u003CSPDX-ID>` for each missing license.\n5. Decide the copyright holder for AI content:\n   - If `ai_copyright` is set in `.spdx-ai.json`, use it.\n   - Otherwise ask the user once per session: copyright line with their name\n     (default), or no copyright holder (`NONE`).\n   - Use `NONE` only after the user explicitly chose it. It is written as\n     `SPDX-FileCopyrightText: NONE`, so such files stay searchable.\n   - Never omit the copyright line. REUSE requires one on every file.\n\n## 1. Decide what kind of change you are making\n\n| Your change | License | What to do |\n|---|---|---|\n| **Refactoring**: renaming, bug fixes, formatting, localized modernization, moving or splitting existing code | unchanged | **No marker.** Refactoring is not creative work. Keep the existing header. If you move code into a new file, copy the original file's copyright and license lines into the new file. |\n| **New file**, fully written by you | `ai_license` (CC0-1.0) unless the user wants another license | AI file header (section 2a) |\n| **New logic** added to an existing human-written file | `ai_license` | AI snippet (section 2b). Keep the file header untouched. |\n| Any change in a file that already has an AI file header | as in the header | No extra marker |\n| Annotating an existing human-written file on request | project license | `reuse annotate` with the human's data, no AI markers |\n| New logic in a **core path** (`core_paths`) | - | **STOP.** The policy excludes AI-generated code in the core. Explain this and ask the user. Refactoring in the core is fine. |\n| User wants a mixed file to become fully AI-licensed | - | Only the human authors can decide this. All authors must agree. Ask for explicit confirmation first. |\n\nRules that always apply:\n- When in doubt whether something is refactoring or new logic, ask the user.\n- Never add a human-authored header with a guessed author or year.\n- Never remove or change SPDX lines written by humans.\n- Licensing decisions belong to the human. You only execute them.\n- Documentation or code that only *shows* SPDX tags as examples (not real license\n  info) must be wrapped in `REUSE-IgnoreStart` \u002F `REUSE-IgnoreEnd` comments, so\n  `reuse` and the checker do not read them as tags.\n\n\u003C!-- REUSE-IgnoreStart -->\n\n## 2. How to annotate\n\n### 2a. AI file header (new file written by you)\n\nStep 1: write the header with `reuse`:\n\n```\nreuse annotate \\\n  --copyright \"\u003CHuman Name> \u003Chuman@mail>\" \\\n  --license \"\u003Cai_license>\" \\\n  --contributor \"\u003CAgent Name>\" \\\n  \u003Cannotate_args> --fallback-dot-license \u003Cfile>\n```\n\nIf the user chose `NONE`, use `--copyright NONE --exclude-year` instead.\nThis writes exactly `SPDX-FileCopyrightText: NONE`.\n\nStep 2: add the policy block **as a separate comment directly below** the header,\nin the same comment style that `reuse` used. Keep a blank line between the blocks.\n`reuse annotate` rewrites its own header block, and a separate block survives that.\n\nC\u002FC++ example (after both steps):\n\n```\n\u002F*\n * SPDX-FileCopyrightText: 2026 Jane Doe \u003Cjane@example.org>\n * SPDX-FileContributor: Claude Code (claude-opus-5-5)\n *\n * SPDX-License-Identifier: CC0-1.0\n *\u002F\n\n\u002F**\n * SPDX-FileCreatedBy: Jane Doe\n * SPDX-FileCreatedUsing: Claude Code (claude-opus-5-5)\n *\u002F\n```\n\nPython, shell, CMake, YAML and similar use `#` comments instead. Shebang and\nencoding lines stay at the very top. `reuse` handles that.\n\nFiles that must start with YAML frontmatter (`SKILL.md`, Jekyll or Hugo pages)\nand files that must start with a fixed line other than a shebang: use\n`--force-dot-license`, so the file itself stays untouched.\n\nIf `reuse` created a `.license` sidecar (binary or unknown file type), append the\ntwo policy lines to the sidecar file without comment characters.\n\n### 2b. AI snippet (new logic inside a human-written file)\n\n`reuse annotate` cannot write snippets. Write them yourself, in the comment syntax\nof that file. Use this order of tags:\n\n```\n\u002F**\n * SPDX-SnippetBegin\n * SPDX-SnippetCopyrightText: \u003CYear> \u003CHuman Name> \u003Chuman@mail>\n * SPDX-License-Identifier: CC0-1.0\n * SPDX-SnippetCreatedBy: \u003CHuman Name>\n * SPDX-SnippetCreatedUsing: \u003CAgent Name>\n *\u002F\n\n... generated code ...\n\n\u002F* SPDX-SnippetEnd *\u002F\n```\n\n`#`-comment example:\n\n```\n# SPDX-SnippetBegin\n# SPDX-SnippetCopyrightText: 2026 Jane Doe \u003Cjane@example.org>\n# SPDX-License-Identifier: CC0-1.0\n# SPDX-SnippetCreatedBy: Jane Doe\n# SPDX-SnippetCreatedUsing: Claude Code (claude-opus-5-5)\n\ndef generated_helper():\n    ...\n\n# SPDX-SnippetEnd\n```\n\nIf the user chose `NONE`, write `SPDX-SnippetCopyrightText: NONE`.\n\nSnippet rules:\n- One snippet per contiguous generated block. Keep it tight.\n- Never nest snippets. If you extend code inside or right next to an existing AI\n  snippet, extend that snippet instead of opening a new one.\n- Every `SPDX-SnippetBegin` needs exactly one `SPDX-SnippetEnd`.\n- If the file format has no comments at all (for example JSON), you cannot mark a\n  snippet. Ask the user: move the generated part to its own file, or mark the whole\n  file with a `.license` sidecar.\n\n\u003C!-- REUSE-IgnoreEnd -->\n\n## 3. Verify\n\nRun the checker on every file you created or changed:\n\n```\npython3 \u003Cthis skill's directory>\u002Fscripts\u002Fcheck_spdx.py \u003Cfiles>\n```\n\nIt runs `reuse lint-file` and adds the AI-specific checks: snippet pairing,\ncomplete markers, placeholders, deprecated IDs like `CC-0`, and core paths.\nFix every error before you report the task as done. If the plugin hook is\ninstalled, this check also runs after each Write or Edit.\n\nFor a full repository check, `reuse lint` is the reference. Expect many errors\nin legacy repositories that are not yet REUSE-compliant. Do not fix those\nunless asked.\n\n## 4. Report\n\nIn your final message, list:\n- files with a new AI header or AI snippet,\n- license files you downloaded,\n- every case where you stopped and asked instead of annotating.\n",{"name":5,"description":7},"main","0709a744c478a76bed9bcfc80045a62d2f568a33","plugins\u002Fwalberla-spdx-ai\u002Fskills\u002Fspdx-ai-annotation","https:\u002F\u002Fgithub.com\u002FPitt0s\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002FPitt0s","2026-10-21 00:05:32",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Pitt0s\u002Fclaude-skills --skill spdx-ai-annotation",{"tool":36,"command":37},"bunx","bunx skills add Pitt0s\u002Fclaude-skills --skill spdx-ai-annotation",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Pitt0s\u002Fclaude-skills --skill spdx-ai-annotation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPitt0s\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwalberla-spdx-ai\u002Fskills\u002Fspdx-ai-annotation\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"scripts\u002Fcheck_spdx.py","SCRIPT","脚本",15563,"https:\u002F\u002Fgithub.com\u002FPitt0s\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwalberla-spdx-ai\u002Fskills\u002Fspdx-ai-annotation\u002Fscripts\u002Fcheck_spdx.py",{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"SKILL.md.license","OTHER","其他",261,"https:\u002F\u002Fgithub.com\u002FPitt0s\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwalberla-spdx-ai\u002Fskills\u002Fspdx-ai-annotation\u002FSKILL.md.license",[]]