[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DAP8FVMPNGNC0NCWGAQ3HF":3,"skill-same:01M7DAP8FVMPNGNC0NCWGAQ3HF":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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7DAP8FVMPNGNC0NCWGAQ3HF","code-rules",null,"Load the repository's code rules that apply to the work at hand, from docs\u002Fcode\u002F, reading their frontmatter first and only the ones whose triggers match. Use before planning or writing code, or when asked about the repository's conventions, standards, or design principles. Not for checking finished code; see \u002Fcode-rules-check","LNSD\u002Florecraft","LNSD","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3949095?v=4","01M7DAK7ETP75C8S8PT783SWSP","Lorenzo Delgado","01M7DAK7FBVXE30743ZG437MTN",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Fskills\u002Fcode-rules\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: code-rules\ndescription: Load the repository's code rules that apply to the work at hand, from docs\u002Fcode\u002F, reading their frontmatter first and only the ones whose triggers match. Use before planning or writing code, or when asked about the repository's conventions, standards, or design principles. Not for checking finished code; see \u002Fcode-rules-check\ncompatibility: Reads files only. Requires the code rules to be kept as Markdown documents in docs\u002Fcode\u002F with name and description frontmatter\nallowed-tools: Bash(grep *) Bash(ls docs\u002F*)\n---\n\n# Code Rules\n\nA repository that uses Lorecraft keeps its code rules (also called code rules), the conventions for how its code\nis written, as a corpus in `docs\u002Fcode\u002F`, one convention or topic per code rule. This skill loads only their frontmatter, and you\nchoose what to read from it. Selecting well is the whole job: read what the task needs, nothing more.\n\nIf `docs\u002Fcode\u002F` does not exist, say so: the repository has no code rules to load. Its corpus spec, if one\nexists, is `docs\u002F__meta__\u002Fcode.md`; `\u002Fdocs-rules-creator` sets one up.\n\n## 1. The catalog\n\nRun this first; it is the whole index:\n\n```bash\ngrep -m 3 -E '^(description|type|scope):' docs\u002Fcode\u002F*.md\n```\n\nWhere the repository also keeps architecture decision records in `docs\u002Farch\u002F`, an **accepted** one binds code as\na code rule does: it states how the code is built. List them too, and treat only those whose `status` is\n`accepted` as binding:\n\n```bash\ngrep -m 4 -E '^(description|status):' docs\u002Farch\u002Fadr-*.md\n```\n\nEach `description` says what its document covers and, where the corpus spec asks for one, a trigger\nclause — `Load when …` or similar — naming the situations the document governs. Other fields, such as `type`\nor `scope`, are whatever `docs\u002F__meta__\u002Fcode.md` defines; read its frontmatter section once if their meaning is\nnot obvious.\n\n## 2. Selecting\n\nMatch the task against the trigger clauses, then:\n\n- **Take the most specific match, then load its base chain.** For every hyphen-prefix ancestor of the matched\n  filename, read the corresponding existing `.md` document in `docs\u002Fcode\u002F`, broadest first. For example, a\n  match to [`python-typing-cast`](https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Fdocs\u002Fcode\u002Fpython-typing-cast.md)\n  loads the existing [`python-typing`](https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Fdocs\u002Fcode\u002Fpython-typing.md)\n  ancestor; the `python` ancestor is absent in this corpus. Skip a missing intermediate name and continue with\n  any more specific existing ancestor. The matched document and its base chain count as one selection.\n- **Expect two to four selections.** One is common. A selection includes its matched document and its base\n  chain. More than four means the task is unscoped, or you are matching topics instead of triggers.\n- **Break ties by specificity**: a document scoped to the package or directory being changed over a global\n  one, where the frontmatter says which is which.\n- **Read nothing adjacent.** If no trigger matches, say so: a gap in the code rules is worth reporting.\n\nRead selections at `docs\u002Fcode\u002F\u003Cname>.md`, or `docs\u002Farch\u002F\u003Cname>.md` for a decision record. Do not re-read what is\nalready in context.\n\n## 3. Code rules that apply to all design work\n\nSome code rules — design principles, usually a `principle-*` group — govern every change, so no task will match\ntheir triggers. Treat their catalog `description`s as the principles themselves and design against every one. Read\na full principle document only to argue one: to justify a decision, settle a disagreement, or cite it in a\nreview. Asked for the principles, read them all and summarise.\n\n## 4. Applying\n\nThe code rules are the repository's decisions, and they outrank general practice and your defaults. Where one\nseems wrong for the task, follow it and raise the conflict; do not silently deviate. Each code rule usually\nends with a checklist: hold it while writing, since `\u002Fcode-rules-check` checks the result against it.\n","# Code Rules\n\nA repository that uses Lorecraft keeps its code rules (also called code rules), the conventions for how its code\nis written, as a corpus in `docs\u002Fcode\u002F`, one convention or topic per code rule. This skill loads only their frontmatter, and you\nchoose what to read from it. Selecting well is the whole job: read what the task needs, nothing more.\n\nIf `docs\u002Fcode\u002F` does not exist, say so: the repository has no code rules to load. Its corpus spec, if one\nexists, is `docs\u002F__meta__\u002Fcode.md`; `\u002Fdocs-rules-creator` sets one up.\n\n## 1. The catalog\n\nRun this first; it is the whole index:\n\n```bash\ngrep -m 3 -E '^(description|type|scope):' docs\u002Fcode\u002F*.md\n```\n\nWhere the repository also keeps architecture decision records in `docs\u002Farch\u002F`, an **accepted** one binds code as\na code rule does: it states how the code is built. List them too, and treat only those whose `status` is\n`accepted` as binding:\n\n```bash\ngrep -m 4 -E '^(description|status):' docs\u002Farch\u002Fadr-*.md\n```\n\nEach `description` says what its document covers and, where the corpus spec asks for one, a trigger\nclause — `Load when …` or similar — naming the situations the document governs. Other fields, such as `type`\nor `scope`, are whatever `docs\u002F__meta__\u002Fcode.md` defines; read its frontmatter section once if their meaning is\nnot obvious.\n\n## 2. Selecting\n\nMatch the task against the trigger clauses, then:\n\n- **Take the most specific match, then load its base chain.** For every hyphen-prefix ancestor of the matched\n  filename, read the corresponding existing `.md` document in `docs\u002Fcode\u002F`, broadest first. For example, a\n  match to [`python-typing-cast`](https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Fdocs\u002Fcode\u002Fpython-typing-cast.md)\n  loads the existing [`python-typing`](https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Fdocs\u002Fcode\u002Fpython-typing.md)\n  ancestor; the `python` ancestor is absent in this corpus. Skip a missing intermediate name and continue with\n  any more specific existing ancestor. The matched document and its base chain count as one selection.\n- **Expect two to four selections.** One is common. A selection includes its matched document and its base\n  chain. More than four means the task is unscoped, or you are matching topics instead of triggers.\n- **Break ties by specificity**: a document scoped to the package or directory being changed over a global\n  one, where the frontmatter says which is which.\n- **Read nothing adjacent.** If no trigger matches, say so: a gap in the code rules is worth reporting.\n\nRead selections at `docs\u002Fcode\u002F\u003Cname>.md`, or `docs\u002Farch\u002F\u003Cname>.md` for a decision record. Do not re-read what is\nalready in context.\n\n## 3. Code rules that apply to all design work\n\nSome code rules — design principles, usually a `principle-*` group — govern every change, so no task will match\ntheir triggers. Treat their catalog `description`s as the principles themselves and design against every one. Read\na full principle document only to argue one: to justify a decision, settle a disagreement, or cite it in a\nreview. Asked for the principles, read them all and summarise.\n\n## 4. Applying\n\nThe code rules are the repository's decisions, and they outrank general practice and your defaults. Where one\nseems wrong for the task, follow it and raise the conflict; do not silently deviate. Each code rule usually\nends with a checklist: hold it while writing, since `\u002Fcode-rules-check` checks the result against it.\n",{"name":5,"description":7,"allowed-tools":24,"compatibility":25},"Bash(grep *) Bash(ls docs\u002F*)","Reads files only. Requires the code rules to be kept as Markdown documents in docs\u002Fcode\u002F with name and description frontmatter","main","d2f3a5835a8673ccf134ae62f0a5e84104ff7098","skills\u002Fcode-rules",1,"https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft","https:\u002F\u002Fgithub.com\u002FLNSD","2026-11-10 04:14:00",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add LNSD\u002Florecraft --skill code-rules",{"tool":39,"command":40},"bunx","bunx skills add LNSD\u002Florecraft --skill code-rules",{"tool":42,"command":43},"pnpm","pnpm dlx skills add LNSD\u002Florecraft --skill code-rules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Fskills\u002Fcode-rules\u002FSKILL.md",true,[],[48,55,60,65,70,75],{"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":19},"01M7DASA0R4R68AVTZJFJJBYDB","review","Review a change. Use when asked to review.","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC504\u002Ftrigger\u002Freference-link-to-parent-skill-file\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":56,"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":57,"categories":58,"keywords":59,"publishedAt":19},"01M7DAS1YXJQ8FGABR8BGX9FAT","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC504\u002Fnear_miss\u002Fclimb-that-stays-inside-and-document-climb\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":61,"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":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DAS0TCKQFF2YJ5VY9SWHV2","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC503\u002Ftrigger\u002Fskill-reference-link-read-from-skill-root\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":66,"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":67,"categories":68,"keywords":69,"publishedAt":19},"01M7DARZNA9QGXHAY17142R8YT","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC503\u002Fnear_miss\u002Fskill-link-climbing-above-skill-root\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":71,"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":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DARYHB7WBR44AJXFJSZQ7X","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC502\u002Ftrigger\u002Fskill-fragment-in-file-without-headings\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":76,"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":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DARXCTFKMH92FHVV8H30MM","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC501\u002Ftrigger\u002Fskill-link-starting-with-slash\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[]]