[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X6SRXTJMYQGGHP65JAM0D4":3,"skill-same:01M6X6SRXTJMYQGGHP65JAM0D4":72},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":54,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6X6SRXTJMYQGGHP65JAM0D4","guideline-writing",null,"Use when creating or editing a guideline in docs\u002Fguidelines\u002F — reference material cited by skills, no auto-triggers — even when the user just says 'write up our naming conventions'.","event4u-app\u002Fagent-config","event4u-app","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F199339632?v=4","01M6X5TWBNCQCE1VDKT4E9KF7N","event4u.app","01M6X5TWF4HRM266RG2Q5VVH1X",19,"MIT","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fguideline-writing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"guideline writing","writing","auto","when","naming conventions","naming","material","triggers","conventions","reference","up","use","process","write","editing","just","Meta","guidelines","config","docs","2026-11-10 10:12:30",false,"---\nmodel_tier: inherit\nname: guideline-writing\ndescription: \"Use when creating or editing a guideline in docs\u002Fguidelines\u002F — reference material cited by skills, no auto-triggers — even when the user just says 'write up our naming conventions'.\"\ndomain: process\nworkspaces:\n  - agent-config-maintainer\npacks:\n  - meta\n---\n\n\u003C!-- cloud_safe: degrade -->\n\n# guideline-writing\n\n## When to use\n\n* Creating a new guideline in `docs\u002Fguidelines\u002F{topic}\u002F{name}.md`\n* Rewriting an existing guideline (not a typo fix)\n* Extracting reference material out of a bloated skill or rule\n* Consolidating repeated explanations from multiple skills\n\nDo NOT use this skill when:\n\n* The content is a constraint (\"never \u002F always\") → use `rule-writing`\n* The content is a triggered workflow → use `skill-writing`\n* The content is a user-invoked action → use `command-writing`\n\n## Guideline vs rule vs skill — critical test\n\n| Intent | Artifact |\n|---|---|\n| \"Here is knowledge skills and rules may cite\" | **Guideline** |\n| \"Agent must always \u002F never do X\" | **Rule** |\n| \"When Y happens, run these steps\" | **Skill** |\n\nA guideline is **reference material**. It is never a trigger. It has no\n`description` used for routing — skills and rules link to it.\n\n## Procedure\n\n### 0. Run the Drafting Protocol\n\nCreating or materially rewriting a guideline **must** go through Understand\n→ Research → Draft from the\n[`artifact-drafting-protocol`](..\u002F..\u002Frules\u002Fartifact-drafting-protocol.md) rule.\n\n* **Understand** — which skills or rules will cite this guideline? If the\n  answer is \"none\", the guideline has no home — stop.\n* **Research** — **inspect** `docs\u002Fguidelines\u002F` for overlap and grep\n  `src\u002F` for pages that already cover the topic.\n  **Analyze** 1–2 peer guidelines in the same topic folder for tone.\n* **Draft** — propose location (topic folder + filename) and outline. Only\n  fill bodies once the outline is confirmed.\n\n### 1. Pick the right topic folder\n\nFolders under `docs\u002Fguidelines\u002F`:\n\n| Folder | Contents |\n|---|---|\n| `agent-infra\u002F` | Cross-cutting agent-system knowledge (naming, size, output patterns) |\n| `php\u002F` | PHP-specific reference (patterns, services, jobs, resources) |\n| `e2e\u002F` | End-to-end testing patterns |\n\nIf none fits, ask the user before creating a new folder.\n\n### 2. Write frontmatter\n\nGuidelines use a minimal frontmatter — no `type`, no auto-trigger semantics.\n\n```yaml\n---\ndescription: \"Short human-readable summary — cited by skills, not used for routing\"\nsource: package     # or project for consumer-local guidelines\n---\n```\n\nIf you do want to polish the description for a guideline whose summary\ngets surfaced to agents, delegate to the\n[`description-assist`](..\u002Fdescription-assist\u002FSKILL.md) skill — same\napproval-gated flow as for skills and rules.\n\n### 3. Structure the body\n\n* Start with a single `#` heading that matches the filename.\n* Organize by topic, not by workflow — no numbered procedures.\n* Prefer tables, bullet lists, and short code blocks over prose paragraphs.\n* End with explicit \"See also\" links to related guidelines and the skills\n  that cite it.\n\n### 4. Wire it in\n\nA guideline is useless if nothing cites it. Before closing the task:\n\n* Add a link from at least one skill or rule using the pattern\n  `→ See 'docs\u002Fguidelines\u002F{topic}\u002F{name}.md' for full X`.\n* Keep the citing skill\u002Frule **executable** — do not hollow it out into a\n  pointer. (Normative source: [`preservation-guard`](..\u002F..\u002Frules\u002Fpreservation-guard.md).)\n\n### 5. Enforce the size budget\n\nGuidelines have more room than rules but are not dumping grounds.\n\n| Category | Target |\n|---|---|\n| Ideal | ≤ 200 lines |\n| Acceptable | ≤ 400 lines |\n| Split signal | > 500 lines |\n\nAbove the split signal, break by sub-topic into sibling files in the same folder.\n\n### 6. Validate\n\n* Run `.\u002Fscripts-run src\u002Fscripts\u002Fskill_linter docs\u002Fguidelines\u002F{topic}\u002F{name}.md`\n  → 0 FAIL (guidelines have relaxed linting but must still parse).\n* Run `bash scripts\u002Fcondense.sh --sync` → projects updates.\n* Run `.\u002Fscripts-run src\u002Fscripts\u002Fcheck_references` → no broken links.\n* Run the full CI pipeline locally (see `Taskfile.yml` in this repo for\n  the script list) — must exit 0 except for tolerated warnings.\n\n## Output format\n\n1. Complete guideline at `docs\u002Fguidelines\u002F{topic}\u002F{name}.md`\n2. At least one skill or rule linking to it\n3. Linter + `check_references.ts` clean\n4. `bash scripts\u002Fcondense.sh --sync` confirmation\n\n## Gotchas\n\n* Creating a guideline nothing cites → dead page, remove or inline.\n* Pasting a workflow into a guideline → that is a skill, not reference.\n* Duplicating content already present in another guideline or skill →\n  extract into the guideline and link from both.\n* Hollowing out a skill into \"see guideline\" — the skill must remain\n  executable (see `preservation-guard`).\n\n## Frugality Standards\n\nApply the [Frugality Charter](..\u002F..\u002Fcontexts\u002Fcontracts\u002Ffrugality-charter.md)\nto every guideline you author.\n\n**Examples in this artifact:**\n- Per the charter's index nature, guidelines describe practice\n  patterns; they do **not** restate Iron-Laws from rules.\n- Per the act-skip-narration rule, code examples lead with the\n  pattern, not its motivation.\n- Per the cheap-question check, guidelines do not prescribe stylistic\n  forks (\"table vs. paragraph\") — pick one.\n\n**Pre-save self-check:**\n1. Does the guideline restate text from a rule body instead of\n   linking the rule?\n2. Are code examples preceded by narrative ramp-up?\n3. Does the guideline introduce a new convention without citing the\n   rule that holds the obligation?\n4. Are sections labeled \"Overview\" \u002F \"Background\" carrying only\n   restatement?\n\n## Do NOT\n\n* Do NOT add `type:` or `alwaysApply:` to the frontmatter\n* Do NOT embed numbered procedures — those belong in skills\n* Do NOT create an orphan guideline with no inbound links\n* Do NOT reintroduce `.agent-src.uncondensed\u002Fguidelines\u002F` — relocated to `docs\u002Fguidelines\u002F`\n\n## Cloud Behavior\n\nOn cloud surfaces (Claude.ai Web, Skills API) the package's\n`scripts\u002Fcheck_references.ts`, `scripts\u002Fskill_linter.ts`, and `task`\nrunner are not reachable. The skill still applies — with prose-only\nvalidation:\n\n* Emit the full guideline file as a copyable Markdown block. Do not\n  attempt to write to disk.\n* Self-check the frontmatter: `description` only, no `type`, no\n  `alwaysApply`.\n* Self-check the body: reference material, no numbered procedures,\n  named in a topic folder.\n* Tell the user to save under\n  `docs\u002Fguidelines\u002F{topic}\u002F{name}.md` and run\n  `task sync && task lint-skills && task check-refs` locally before\n  committing.\n* Do not call the linter, ref-checker, or condenseor — they only\n  run on the user's machine.\n\n## Examples\n\nGood guideline name + description:\n\n> Path: `docs\u002Fguidelines\u002Fagent-infra\u002Fsize-and-scope.md`\n> Description: \"Golden size rules for rules, skills, commands, and guidelines\"\n\nBad:\n\n> Path: **guidelines\u002Fstuff** (no topic folder, meaningless stem)\n> Description: \"Things to know\"\n","\u003C!-- cloud_safe: degrade -->\n\n# guideline-writing\n\n## When to use\n\n* Creating a new guideline in `docs\u002Fguidelines\u002F{topic}\u002F{name}.md`\n* Rewriting an existing guideline (not a typo fix)\n* Extracting reference material out of a bloated skill or rule\n* Consolidating repeated explanations from multiple skills\n\nDo NOT use this skill when:\n\n* The content is a constraint (\"never \u002F always\") → use `rule-writing`\n* The content is a triggered workflow → use `skill-writing`\n* The content is a user-invoked action → use `command-writing`\n\n## Guideline vs rule vs skill — critical test\n\n| Intent | Artifact |\n|---|---|\n| \"Here is knowledge skills and rules may cite\" | **Guideline** |\n| \"Agent must always \u002F never do X\" | **Rule** |\n| \"When Y happens, run these steps\" | **Skill** |\n\nA guideline is **reference material**. It is never a trigger. It has no\n`description` used for routing — skills and rules link to it.\n\n## Procedure\n\n### 0. Run the Drafting Protocol\n\nCreating or materially rewriting a guideline **must** go through Understand\n→ Research → Draft from the\n[`artifact-drafting-protocol`](..\u002F..\u002Frules\u002Fartifact-drafting-protocol.md) rule.\n\n* **Understand** — which skills or rules will cite this guideline? If the\n  answer is \"none\", the guideline has no home — stop.\n* **Research** — **inspect** `docs\u002Fguidelines\u002F` for overlap and grep\n  `src\u002F` for pages that already cover the topic.\n  **Analyze** 1–2 peer guidelines in the same topic folder for tone.\n* **Draft** — propose location (topic folder + filename) and outline. Only\n  fill bodies once the outline is confirmed.\n\n### 1. Pick the right topic folder\n\nFolders under `docs\u002Fguidelines\u002F`:\n\n| Folder | Contents |\n|---|---|\n| `agent-infra\u002F` | Cross-cutting agent-system knowledge (naming, size, output patterns) |\n| `php\u002F` | PHP-specific reference (patterns, services, jobs, resources) |\n| `e2e\u002F` | End-to-end testing patterns |\n\nIf none fits, ask the user before creating a new folder.\n\n### 2. Write frontmatter\n\nGuidelines use a minimal frontmatter — no `type`, no auto-trigger semantics.\n\n```yaml\n---\ndescription: \"Short human-readable summary — cited by skills, not used for routing\"\nsource: package     # or project for consumer-local guidelines\n---\n```\n\nIf you do want to polish the description for a guideline whose summary\ngets surfaced to agents, delegate to the\n[`description-assist`](..\u002Fdescription-assist\u002FSKILL.md) skill — same\napproval-gated flow as for skills and rules.\n\n### 3. Structure the body\n\n* Start with a single `#` heading that matches the filename.\n* Organize by topic, not by workflow — no numbered procedures.\n* Prefer tables, bullet lists, and short code blocks over prose paragraphs.\n* End with explicit \"See also\" links to related guidelines and the skills\n  that cite it.\n\n### 4. Wire it in\n\nA guideline is useless if nothing cites it. Before closing the task:\n\n* Add a link from at least one skill or rule using the pattern\n  `→ See 'docs\u002Fguidelines\u002F{topic}\u002F{name}.md' for full X`.\n* Keep the citing skill\u002Frule **executable** — do not hollow it out into a\n  pointer. (Normative source: [`preservation-guard`](..\u002F..\u002Frules\u002Fpreservation-guard.md).)\n\n### 5. Enforce the size budget\n\nGuidelines have more room than rules but are not dumping grounds.\n\n| Category | Target |\n|---|---|\n| Ideal | ≤ 200 lines |\n| Acceptable | ≤ 400 lines |\n| Split signal | > 500 lines |\n\nAbove the split signal, break by sub-topic into sibling files in the same folder.\n\n### 6. Validate\n\n* Run `.\u002Fscripts-run src\u002Fscripts\u002Fskill_linter docs\u002Fguidelines\u002F{topic}\u002F{name}.md`\n  → 0 FAIL (guidelines have relaxed linting but must still parse).\n* Run `bash scripts\u002Fcondense.sh --sync` → projects updates.\n* Run `.\u002Fscripts-run src\u002Fscripts\u002Fcheck_references` → no broken links.\n* Run the full CI pipeline locally (see `Taskfile.yml` in this repo for\n  the script list) — must exit 0 except for tolerated warnings.\n\n## Output format\n\n1. Complete guideline at `docs\u002Fguidelines\u002F{topic}\u002F{name}.md`\n2. At least one skill or rule linking to it\n3. Linter + `check_references.ts` clean\n4. `bash scripts\u002Fcondense.sh --sync` confirmation\n\n## Gotchas\n\n* Creating a guideline nothing cites → dead page, remove or inline.\n* Pasting a workflow into a guideline → that is a skill, not reference.\n* Duplicating content already present in another guideline or skill →\n  extract into the guideline and link from both.\n* Hollowing out a skill into \"see guideline\" — the skill must remain\n  executable (see `preservation-guard`).\n\n## Frugality Standards\n\nApply the [Frugality Charter](..\u002F..\u002Fcontexts\u002Fcontracts\u002Ffrugality-charter.md)\nto every guideline you author.\n\n**Examples in this artifact:**\n- Per the charter's index nature, guidelines describe practice\n  patterns; they do **not** restate Iron-Laws from rules.\n- Per the act-skip-narration rule, code examples lead with the\n  pattern, not its motivation.\n- Per the cheap-question check, guidelines do not prescribe stylistic\n  forks (\"table vs. paragraph\") — pick one.\n\n**Pre-save self-check:**\n1. Does the guideline restate text from a rule body instead of\n   linking the rule?\n2. Are code examples preceded by narrative ramp-up?\n3. Does the guideline introduce a new convention without citing the\n   rule that holds the obligation?\n4. Are sections labeled \"Overview\" \u002F \"Background\" carrying only\n   restatement?\n\n## Do NOT\n\n* Do NOT add `type:` or `alwaysApply:` to the frontmatter\n* Do NOT embed numbered procedures — those belong in skills\n* Do NOT create an orphan guideline with no inbound links\n* Do NOT reintroduce `.agent-src.uncondensed\u002Fguidelines\u002F` — relocated to `docs\u002Fguidelines\u002F`\n\n## Cloud Behavior\n\nOn cloud surfaces (Claude.ai Web, Skills API) the package's\n`scripts\u002Fcheck_references.ts`, `scripts\u002Fskill_linter.ts`, and `task`\nrunner are not reachable. The skill still applies — with prose-only\nvalidation:\n\n* Emit the full guideline file as a copyable Markdown block. Do not\n  attempt to write to disk.\n* Self-check the frontmatter: `description` only, no `type`, no\n  `alwaysApply`.\n* Self-check the body: reference material, no numbered procedures,\n  named in a topic folder.\n* Tell the user to save under\n  `docs\u002Fguidelines\u002F{topic}\u002F{name}.md` and run\n  `task sync && task lint-skills && task check-refs` locally before\n  committing.\n* Do not call the linter, ref-checker, or condenseor — they only\n  run on the user's machine.\n\n## Examples\n\nGood guideline name + description:\n\n> Path: `docs\u002Fguidelines\u002Fagent-infra\u002Fsize-and-scope.md`\n> Description: \"Golden size rules for rules, skills, commands, and guidelines\"\n\nBad:\n\n> Path: **guidelines\u002Fstuff** (no topic folder, meaningless stem)\n> Description: \"Things to know\"\n",{"name":5,"packs":44,"domain":31,"model_tier":46,"workspaces":47,"description":7},[45],"meta","inherit",[48],"agent-config-maintainer","main","12bd765ce1d800501d45dfb8232102793af01290","src\u002Fskills\u002Fguideline-writing",1,"https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config","https:\u002F\u002Fevent4u.app","https:\u002F\u002Fgithub.com\u002Fevent4u-app","Your events in your hand","2026-11-14 02:29:41",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add event4u-app\u002Fagent-config --skill guideline-writing",{"tool":64,"command":65},"bunx","bunx skills add event4u-app\u002Fagent-config --skill guideline-writing",{"tool":67,"command":68},"pnpm","pnpm dlx skills add event4u-app\u002Fagent-config --skill guideline-writing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fguideline-writing\u002FSKILL.md",true,[],[73,86,98,109,120,129],{"skillNo":74,"name":75,"nameZh":6,"description":76,"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":39},"01M6X84PK96XBPENXH66JCTSD1","unknown-key-fixture","Declares a key the schema does not know.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Funknown-key\u002FSKILL.md",[],[80,81,82,83,84,85],"unknown key fixture","Unknown key","fixture","unknown","schema","package",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":39},"01M6X84HW7NAHZ7GZMQ9RXK1XJ","portable-fixture","Declares only semantics the MCP-lite carrier transports whole.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Fportable\u002FSKILL.md",[],[82,93,94,95,96,85,97],"portable","portable fixture","engineer","only","MCP",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M6X84F29FE0RGGZ1ZTFGZTX2","non-portable-fixture","Declares a runtime semantic the carrier drops.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Fnon-portable\u002FSKILL.md",[],[94,105,93,82,106,107,108,85],"non portable fixture","semantic","high","runtime",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6X848F706PT9MDCX75JKJ6B","candidate-zero-width","A candidate whose prose carries an invisible joiner.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fzero-width-injection\u002FSKILL.md",[],[116,117,118,119],"candidate zero width","candidate","ZeRO","prose",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M6X841SSC2T31VDF41SA6DG1","candidate-disclosure-suppression","A candidate whose prose tells the agent to withhold from the user.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fdisclosure-suppression\u002FSKILL.md",[],[127,117,119,128],"candidate disclosure suppression","user",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":39},"01M6X83TFS5AGPBPVTQNWP0BB3","candidate-dangerous-frontmatter","A candidate claiming an unscoped tool grant and a permission bypass.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fdangerous-frontmatter\u002FSKILL.md",[],[136,117,137,138,139,140],"candidate dangerous frontmatter","frontmatter","shell","permission","tool"]