[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74G8H927GENR53XF0MAYPGC":3,"skill-same:01M74G8H927GENR53XF0MAYPGC":44},{"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},"01M74G8H927GENR53XF0MAYPGC","conventions",null,"Read Polymath marketplace conventions — naming, token budget, component choice, conformance gates, commit style — when authoring or reviewing a plugin.","MohammadBafkar\u002Fpolymath","MohammadBafkar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34940462?v=4","01M74G540TQFZWK6KVAPKFVGNR","Mohammad Bafkar","01M74G541HG19QP9V5DQCJVKYE",0,"MIT","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-core\u002Fskills\u002Fconventions\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: conventions\ndescription: Read Polymath marketplace conventions — naming, token budget, component choice, conformance gates, commit style — when authoring or reviewing a plugin.\n---\n\n# conventions\n\n> Marketplace-wide conventions that apply across plugins. Load this when a task touches plugin authoring, marketplace structure, or the contribution flow.\n\n**Mode:** deterministic — same inputs, same output. Follow the steps and the output shape exactly; compute with the named script or tool, never by estimate; add nothing the shape does not ask for.\n\n## When to use\n\n- A task creates or edits a plugin, skill, command, agent, hook, workflow, or connector.\n- A workflow step needs to ground itself in marketplace standards.\n- A contributor is being onboarded to the marketplace.\n\n## Inputs\n\n- The authoring or review task at hand (required) — which component it creates or changes.\n- The marketplace checkout (required for anything beyond reading): the gates named below run from its root.\n\n## Procedure\n\n1. Classify the task by component (table below) and read only the sections it touches.\n2. For each rule you apply, name the section and the gate ID that enforces it; a rule no gate enforces is labelled a convention, not a requirement.\n3. Return the Output shape; do not restate whole sections or sibling docs.\n\n## Component choice (decide this first)\n\n| Need | Component |\n| --- | --- |\n| Event-driven gate (block secrets, format on save, push reminder) | Hook |\n| External service tool calls (GitHub, Jira, Datadog, …) | MCP server (connector plugin) |\n| Repeating procedure with templates\u002Fscripts\u002Freferences | Skill |\n| Frequent direct entry point whose name differs from the skill | Command (thin alias → skill). A skill is already `\u002Fplugin:skill`; never ship a same-named command |\n| ≥ 2 skills chained with data dependencies or gates | Workflow |\n| Forked-context deep audit, panel, or research | Agent |\n\nDefault to **skill-only**: a command earns its place only when it is a frequent direct entry point; a workflow only when it composes skills. Command and agent descriptions count against the per-plugin budget, so a thin shim is not free.\n\n## Naming\n\n- Plugins: `polymath-\u003Cbare-name>` (kebab-case).\n- Skills\u002Fcommands: bare file names; invocation is namespaced (`\u002Fpolymath-product:prd`).\n- Agents: a role-flavored critic or lens noun (`architecture-critic`, `research-scout`) — never an org-role doer (`tech-lead`, `sre`); see PLUGIN-AUTHORING §6.1.\n- Templates: PascalCase artifact names (`PRD.md`, `ADR.md`).\n- Workflows: camelCase (`shipFeature.yaml`).\n- Routing sidecars: `routing.yaml` beside `SKILL.md`; workflows declare theirs in `plugins\u002Fpolymath-flows\u002Frouting\u002F\u003Cname>.yaml`.\n\n## Token budget\n\n- Per-plugin always-on listing ≤ 400 tokens (only `name` + `description` of skills\u002Fcommands\u002Fagents are measured).\n- Catalog-wide measured total ≤ 250 × plugin count (`tools\u002Ftoken-report.py budget` prints the live target).\n- Descriptions ≤ 200 chars; front-load the trigger phrase and end with a scope boundary where a sibling could be confused.\n- SKILL.md body ≤ 500 lines; overflow goes to `references\u002F`.\n\n## Declaration discipline\n\nRouting is **declare-or-exempt**: every surface either ships a `routing.yaml` (validated against `registry\u002Fschemas\u002Fsurface-routing.schema.json`, compiled by `tools\u002Fbuild-surface-index.py`) or carries a reasoned entry in `registry\u002Frouting-exemptions.json`. Exemption is the normal posture for knowledge skills; declaring is the deliberate act.\n\n## Conformance gates\n\n`tools\u002Fconformance.sh --all` is the source of truth. `tools\u002Fvalidate-all.sh` runs the authoring subset. Key rules: MANIFEST-1\u002F2\u002F3, SKILL-1 (`description` ≤ 200, body ≤ 500), SKILL-2\u002F3\u002F4 (`tools\u002Fcheck-skill-shape.py`: required sections, one canonical `**Mode:**` line — deterministic \u002F analytical \u002F generative — and no relative link leaving the plugin), TEMPLATE-1, WORKFLOW-1\u002F2\u002FINDEX, SURFACE-INDEX (SURFACE-1\u002F2, TOOL-1, TRUST-1), CAPABILITY-INDEX (BINDING-1, MCP-BINDING), MCP-PKG, INTEGRATION-1\u002F2, DESC-1\u002F2, AGENT-1, FIXTURE-1, DOCS-1\u002F2. Re-run the relevant builder after editing a workflow (`build-workflow-index.py`), `routing.yaml` (`build-surface-index.py`), or a binding (`build-capability-index.py`); the gate fails on drift.\n\n## Hooks\n\nHooks are deterministic gates. They never block silently — every block produces a user-visible reason. Hook scripts live in `hooks\u002Fscripts\u002F`. In `hooks.json`, wrap the plugin-root placeholder in double quotes (so a path containing spaces cannot split the command) rather than leaving it bare.\n\n## Workflows\n\n- Schema: `registry\u002Fschemas\u002Fworkflow.schema.json`.\n- Every workflow declares `whenToUse` + unique `triggers` (WORKFLOW-2), and its routing surface is compiled into `plugins\u002Fpolymath-flows\u002Fdata\u002F`.\n- Resolution order for `.polymath\u002F` files: project → user (`$POLYMATH_CONFIG_DIR`) → home.\n- Enforcement: deterministic `mustPass` checks; AI cross-checks are advisory, not blocking.\n\n## Commits & license\n\n- Conventional Commits (`feat:`, `fix:`, `refactor:`, `docs:`, …); PR titles mirror the headline commit.\n- CHANGELOG updated for every non-trivial change; version bumps follow the marketplace release (all plugins + `.claude-plugin\u002Fmarketplace.json` together).\n- MIT for all plugins — the patent grant matters for OSS plugins reused inside commercial agents.\n\n## Quality bar\n\n- Cites the section a rule comes from; never invents a convention the gates do not enforce.\n- Names the exact gate ID (e.g. `SKILL-1`, `MCP-BINDING`) when pointing at a rule.\n- Never restates a whole sibling doc (budget policy, workflow schema) — points at `docs\u002F` instead.\n\n## Output\n\nWhen loaded, return a one-paragraph summary scoped to the current task plus pointers to the relevant subsection above (e.g. \"authoring a connector → Component choice + Conformance gates + Declaration discipline\").\n\n```text\nLoaded conventions for: authoring a new connector plugin\n→ Component choice (connector = MCP server + binding)\n→ Conformance gates (INTEGRATION-1\u002F2, MCP-PKG, MCP-BINDING, CAPABILITY-INDEX)\n→ Declaration discipline (routing.yaml or an exemption entry)\n```\n","# conventions\n\n> Marketplace-wide conventions that apply across plugins. Load this when a task touches plugin authoring, marketplace structure, or the contribution flow.\n\n**Mode:** deterministic — same inputs, same output. Follow the steps and the output shape exactly; compute with the named script or tool, never by estimate; add nothing the shape does not ask for.\n\n## When to use\n\n- A task creates or edits a plugin, skill, command, agent, hook, workflow, or connector.\n- A workflow step needs to ground itself in marketplace standards.\n- A contributor is being onboarded to the marketplace.\n\n## Inputs\n\n- The authoring or review task at hand (required) — which component it creates or changes.\n- The marketplace checkout (required for anything beyond reading): the gates named below run from its root.\n\n## Procedure\n\n1. Classify the task by component (table below) and read only the sections it touches.\n2. For each rule you apply, name the section and the gate ID that enforces it; a rule no gate enforces is labelled a convention, not a requirement.\n3. Return the Output shape; do not restate whole sections or sibling docs.\n\n## Component choice (decide this first)\n\n| Need | Component |\n| --- | --- |\n| Event-driven gate (block secrets, format on save, push reminder) | Hook |\n| External service tool calls (GitHub, Jira, Datadog, …) | MCP server (connector plugin) |\n| Repeating procedure with templates\u002Fscripts\u002Freferences | Skill |\n| Frequent direct entry point whose name differs from the skill | Command (thin alias → skill). A skill is already `\u002Fplugin:skill`; never ship a same-named command |\n| ≥ 2 skills chained with data dependencies or gates | Workflow |\n| Forked-context deep audit, panel, or research | Agent |\n\nDefault to **skill-only**: a command earns its place only when it is a frequent direct entry point; a workflow only when it composes skills. Command and agent descriptions count against the per-plugin budget, so a thin shim is not free.\n\n## Naming\n\n- Plugins: `polymath-\u003Cbare-name>` (kebab-case).\n- Skills\u002Fcommands: bare file names; invocation is namespaced (`\u002Fpolymath-product:prd`).\n- Agents: a role-flavored critic or lens noun (`architecture-critic`, `research-scout`) — never an org-role doer (`tech-lead`, `sre`); see PLUGIN-AUTHORING §6.1.\n- Templates: PascalCase artifact names (`PRD.md`, `ADR.md`).\n- Workflows: camelCase (`shipFeature.yaml`).\n- Routing sidecars: `routing.yaml` beside `SKILL.md`; workflows declare theirs in `plugins\u002Fpolymath-flows\u002Frouting\u002F\u003Cname>.yaml`.\n\n## Token budget\n\n- Per-plugin always-on listing ≤ 400 tokens (only `name` + `description` of skills\u002Fcommands\u002Fagents are measured).\n- Catalog-wide measured total ≤ 250 × plugin count (`tools\u002Ftoken-report.py budget` prints the live target).\n- Descriptions ≤ 200 chars; front-load the trigger phrase and end with a scope boundary where a sibling could be confused.\n- SKILL.md body ≤ 500 lines; overflow goes to `references\u002F`.\n\n## Declaration discipline\n\nRouting is **declare-or-exempt**: every surface either ships a `routing.yaml` (validated against `registry\u002Fschemas\u002Fsurface-routing.schema.json`, compiled by `tools\u002Fbuild-surface-index.py`) or carries a reasoned entry in `registry\u002Frouting-exemptions.json`. Exemption is the normal posture for knowledge skills; declaring is the deliberate act.\n\n## Conformance gates\n\n`tools\u002Fconformance.sh --all` is the source of truth. `tools\u002Fvalidate-all.sh` runs the authoring subset. Key rules: MANIFEST-1\u002F2\u002F3, SKILL-1 (`description` ≤ 200, body ≤ 500), SKILL-2\u002F3\u002F4 (`tools\u002Fcheck-skill-shape.py`: required sections, one canonical `**Mode:**` line — deterministic \u002F analytical \u002F generative — and no relative link leaving the plugin), TEMPLATE-1, WORKFLOW-1\u002F2\u002FINDEX, SURFACE-INDEX (SURFACE-1\u002F2, TOOL-1, TRUST-1), CAPABILITY-INDEX (BINDING-1, MCP-BINDING), MCP-PKG, INTEGRATION-1\u002F2, DESC-1\u002F2, AGENT-1, FIXTURE-1, DOCS-1\u002F2. Re-run the relevant builder after editing a workflow (`build-workflow-index.py`), `routing.yaml` (`build-surface-index.py`), or a binding (`build-capability-index.py`); the gate fails on drift.\n\n## Hooks\n\nHooks are deterministic gates. They never block silently — every block produces a user-visible reason. Hook scripts live in `hooks\u002Fscripts\u002F`. In `hooks.json`, wrap the plugin-root placeholder in double quotes (so a path containing spaces cannot split the command) rather than leaving it bare.\n\n## Workflows\n\n- Schema: `registry\u002Fschemas\u002Fworkflow.schema.json`.\n- Every workflow declares `whenToUse` + unique `triggers` (WORKFLOW-2), and its routing surface is compiled into `plugins\u002Fpolymath-flows\u002Fdata\u002F`.\n- Resolution order for `.polymath\u002F` files: project → user (`$POLYMATH_CONFIG_DIR`) → home.\n- Enforcement: deterministic `mustPass` checks; AI cross-checks are advisory, not blocking.\n\n## Commits & license\n\n- Conventional Commits (`feat:`, `fix:`, `refactor:`, `docs:`, …); PR titles mirror the headline commit.\n- CHANGELOG updated for every non-trivial change; version bumps follow the marketplace release (all plugins + `.claude-plugin\u002Fmarketplace.json` together).\n- MIT for all plugins — the patent grant matters for OSS plugins reused inside commercial agents.\n\n## Quality bar\n\n- Cites the section a rule comes from; never invents a convention the gates do not enforce.\n- Names the exact gate ID (e.g. `SKILL-1`, `MCP-BINDING`) when pointing at a rule.\n- Never restates a whole sibling doc (budget policy, workflow schema) — points at `docs\u002F` instead.\n\n## Output\n\nWhen loaded, return a one-paragraph summary scoped to the current task plus pointers to the relevant subsection above (e.g. \"authoring a connector → Component choice + Conformance gates + Declaration discipline\").\n\n```text\nLoaded conventions for: authoring a new connector plugin\n→ Component choice (connector = MCP server + binding)\n→ Conformance gates (INTEGRATION-1\u002F2, MCP-PKG, MCP-BINDING, CAPABILITY-INDEX)\n→ Declaration discipline (routing.yaml or an exemption entry)\n```\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-core\u002Fskills\u002Fconventions","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath","https:\u002F\u002Fgithub.com\u002FMohammadBafkar","2026-10-29 18:34:59",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add MohammadBafkar\u002Fpolymath --skill conventions",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill conventions",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill conventions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-core\u002Fskills\u002Fconventions\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M74GN87EBRHM9N87M7AP1HDD","runbook","Write or refresh an operational runbook for an alert\u002Fsymptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frunbook\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M74GN5GPKEC1JEKP2DFQNEQJ","rfc","Draft a lightweight design RFC to docs\u002Frfcs\u002F\u003Cslug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frfc\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M74GN2F4CWPMV4X09TG4E304","editorial-pass","Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Feditorial-pass\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M74GMZWGYMZ37C4DYGT6P23G","architecture-review-facilitation","Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-review-facilitation\u002FSKILL.md",[],[],{"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":19},"01M74GMXVX0YX3ETDXS527XDGM","architecture-doc","Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-doc\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74GMVG1WSMCK066S3KE6V5K","adr","Write an Architecture Decision Record (Michael Nygard format) to docs\u002Fadrs\u002FNNNN-\u003Cslug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Fadr\u002FSKILL.md",[],[]]