[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75135YTNER760R0ADJK4FPG":3,"skill-same:01M75135YTNER760R0ADJK4FPG":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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75135YTNER760R0ADJK4FPG","diagnose-friction",null,"Wrap a shell command with diagnostic capture. On failure, print static suggestions and append a structured `friction` record to the per-Story signals.ndjson stream. Use whenever a script in the orchestration loop invokes a tool whose failure shape we want the analyzer to attribute.","chrisbarrantes\u002Fmandrel","chrisbarrantes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4534419?v=4","01M7511VXT2H7WE09JE4ZMBESG","Chris Barrantes","01M7511VYGPFHQCE9HNVKES0QN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcore\u002Fdiagnose-friction\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: diagnose-friction\ndescription: >-\n  Wrap a shell command with diagnostic capture. On failure, print static\n  suggestions and append a structured `friction` record to the per-Story\n  signals.ndjson stream. Use whenever a script in the orchestration loop\n  invokes a tool whose failure shape we want the analyzer to attribute.\nallowed_tools:\n  - Bash\n  - Read\n---\n\n# diagnose-friction\n\n## Policy Capsule\n\n- Invoke via the wrapping CLI `node .agents\u002Fscripts\u002Fdiagnose-friction.js --task \u003Cid> --story \u003Cid> --epic \u003Cid> --cmd \u003Ccommand args...>`; this is the single supported entry point.\n- Pass the wrapped command's stdout and stderr through **unchanged** — never reformat, redact, or buffer in a way that loses the original failure shape.\n- Never mutate the wrapped command's exit code. The Skill observes; the caller decides whether the failure is fatal.\n- Operate as **best-effort observation**: a write failure on the signals stream MUST NOT halt the runner. A missing signal is preferable to a stalled wave.\n- On non-zero exit append a `friction` NDJSON record (`kind`, `ts`, `category`, `detail`, `exitCode`) only through the signals writer helper — never open `signals.ndjson` directly.\n- Resolve Story \u002F Epic context from `--story` and `--epic` first; fall back to parsing `parent: #\u003CstoryId>` + `Epic: #\u003CepicId>` from the Task body when only `--task` is supplied.\n- Do **not** post GitHub comments from this Skill. Friction is local NDJSON in v5; the structured-comment surface belongs to `analyze-execution`.\n- Categorize failures deterministically (rebase abort, test-suite name, lint category, etc.) so the downstream analyzer can attribute friction without re-running the command.\n\n## Role\n\nDiagnostic interceptor. Captures the failure shape of a wrapped command\nand persists it as a structured signal so `analyze-execution` can\nattribute friction back to the Story \u002F Epic without re-running the\ncommand.\n\n## When to use\n\nAny orchestration call site whose failure mode is informative\n(rebase aborts, test failures with classifiable suite names, lint\nerrors with stable categories). The wrapping script today is\n`diagnose-friction.js`; this Skill documents the contract for callers\nthat want to dispatch via the Skill tool rather than spawn the CLI.\n\n## Inputs\n\n- `--cmd \u003Ccommand args...>` — the command to invoke and observe.\n- `--story \u003Cid>` \u002F `--epic \u003Cid>` (optional) — when both can be\n  resolved, the Skill appends a `friction` signal to\n  `\u003CtempRoot>\u002Fepic-\u003Ceid>\u002Fstory-\u003Csid>\u002Fsignals.ndjson` on non-zero exit.\n- `--task \u003Cid>` (optional) — used as a fallback so the body parser can\n  recover `parent: #\u003CstoryId>` + `Epic: #\u003CepicId>` when neither flag\n  was supplied.\n\n## Outputs\n\n- The wrapped command's stdout \u002F stderr is passed through unchanged.\n- On non-zero exit: a `friction` NDJSON record (kind, ts, category,\n  detail, exitCode) is appended via the signals writer.\n- No GitHub comments are posted — friction is a local NDJSON signal in\n  v5. The analyzer (`analyze-execution`) reads the stream out-of-band.\n\n## Procedure\n\n```bash\nnode .agents\u002Fscripts\u002Fdiagnose-friction.js \\\n  --task \u003Cid> --story \u003Cid> --epic \u003Cid> \\\n  --cmd \u003Ccommand args...>\n```\n\nThe Skill's contract is \"best-effort observation\" — the wrapping\nscript never halts the runner because of a write failure. A missing\nsignal is preferable to a halted runner.\n\n## Constraints\n\n- Do **not** post GitHub comments from this Skill. Friction is local\n  NDJSON in v5; the comment surface is reserved for\n  `analyze-execution`'s structured rollups.\n- Do **not** mutate the wrapped command's exit code. The Skill's job\n  is observation; the caller decides whether the failure is fatal.\n- Do **not** open `signals.ndjson` directly — use the signals writer\n  helper so the file format and warn-once policy stay consistent.\n","# diagnose-friction\n\n## Policy Capsule\n\n- Invoke via the wrapping CLI `node .agents\u002Fscripts\u002Fdiagnose-friction.js --task \u003Cid> --story \u003Cid> --epic \u003Cid> --cmd \u003Ccommand args...>`; this is the single supported entry point.\n- Pass the wrapped command's stdout and stderr through **unchanged** — never reformat, redact, or buffer in a way that loses the original failure shape.\n- Never mutate the wrapped command's exit code. The Skill observes; the caller decides whether the failure is fatal.\n- Operate as **best-effort observation**: a write failure on the signals stream MUST NOT halt the runner. A missing signal is preferable to a stalled wave.\n- On non-zero exit append a `friction` NDJSON record (`kind`, `ts`, `category`, `detail`, `exitCode`) only through the signals writer helper — never open `signals.ndjson` directly.\n- Resolve Story \u002F Epic context from `--story` and `--epic` first; fall back to parsing `parent: #\u003CstoryId>` + `Epic: #\u003CepicId>` from the Task body when only `--task` is supplied.\n- Do **not** post GitHub comments from this Skill. Friction is local NDJSON in v5; the structured-comment surface belongs to `analyze-execution`.\n- Categorize failures deterministically (rebase abort, test-suite name, lint category, etc.) so the downstream analyzer can attribute friction without re-running the command.\n\n## Role\n\nDiagnostic interceptor. Captures the failure shape of a wrapped command\nand persists it as a structured signal so `analyze-execution` can\nattribute friction back to the Story \u002F Epic without re-running the\ncommand.\n\n## When to use\n\nAny orchestration call site whose failure mode is informative\n(rebase aborts, test failures with classifiable suite names, lint\nerrors with stable categories). The wrapping script today is\n`diagnose-friction.js`; this Skill documents the contract for callers\nthat want to dispatch via the Skill tool rather than spawn the CLI.\n\n## Inputs\n\n- `--cmd \u003Ccommand args...>` — the command to invoke and observe.\n- `--story \u003Cid>` \u002F `--epic \u003Cid>` (optional) — when both can be\n  resolved, the Skill appends a `friction` signal to\n  `\u003CtempRoot>\u002Fepic-\u003Ceid>\u002Fstory-\u003Csid>\u002Fsignals.ndjson` on non-zero exit.\n- `--task \u003Cid>` (optional) — used as a fallback so the body parser can\n  recover `parent: #\u003CstoryId>` + `Epic: #\u003CepicId>` when neither flag\n  was supplied.\n\n## Outputs\n\n- The wrapped command's stdout \u002F stderr is passed through unchanged.\n- On non-zero exit: a `friction` NDJSON record (kind, ts, category,\n  detail, exitCode) is appended via the signals writer.\n- No GitHub comments are posted — friction is a local NDJSON signal in\n  v5. The analyzer (`analyze-execution`) reads the stream out-of-band.\n\n## Procedure\n\n```bash\nnode .agents\u002Fscripts\u002Fdiagnose-friction.js \\\n  --task \u003Cid> --story \u003Cid> --epic \u003Cid> \\\n  --cmd \u003Ccommand args...>\n```\n\nThe Skill's contract is \"best-effort observation\" — the wrapping\nscript never halts the runner because of a write failure. A missing\nsignal is preferable to a halted runner.\n\n## Constraints\n\n- Do **not** post GitHub comments from this Skill. Friction is local\n  NDJSON in v5; the comment surface is reserved for\n  `analyze-execution`'s structured rollups.\n- Do **not** mutate the wrapped command's exit code. The Skill's job\n  is observation; the caller decides whether the failure is fatal.\n- Do **not** open `signals.ndjson` directly — use the signals writer\n  helper so the file format and warn-once policy stay consistent.\n",{"name":5,"description":7,"allowed_tools":24},[25,26],"Bash","Read","main","22b1847659cc2a98f4fb8c24858f2199d91fda66",".agents\u002Fskills\u002Fcore\u002Fdiagnose-friction","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes","2026-05-27 08:16:47",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add chrisbarrantes\u002Fmandrel --skill diagnose-friction",{"tool":39,"command":40},"bunx","bunx skills add chrisbarrantes\u002Fmandrel --skill diagnose-friction",{"tool":42,"command":43},"pnpm","pnpm dlx skills add chrisbarrantes\u002Fmandrel --skill diagnose-friction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcore\u002Fdiagnose-friction\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"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},"01M75171YZD373TXY5ZWJNXGS9","no-capsule-skill","Fixture without a Policy Capsule section.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002Ftests\u002Forchestration\u002Ffixtures\u002Fskill-capsule\u002Fno-capsule-skill\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7516ZA88ESAAY3JWXBNA56K","backend-security-patterns","Combined backend protocols for authentication (Clerk JWT verification) and PII-safe observability. Use when handling auth on the server, verifying Clerk webhooks via `svix`, scoping metadata via `publicMetadata`\u002F `privateMetadata`, or sanitizing logs to keep emails, tokens, and request bodies out of telemetry.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fsecurity\u002Fbackend-security-patterns\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7516WFQMKD2NGFMDNFG6C4A","vitest","Writes fast, isolated unit and integration tests with Vitest. Use when each test must run on file-save without shared state — `vi.mock()` for external deps, `vi.spyOn()` for call monitoring, AAA structure, and edge-case coverage for null\u002Fundefined\u002Fboundary inputs.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fvitest\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7516T8FX7B0B0D510EE2FAP","playwright","Robust E2E browser testing with Playwright. Use when writing browser-driven tests — leverage auto-waiting (no `waitForTimeout`), prefer user-visible locators (`getByRole`, `getByText`, `getByLabel`) over CSS\u002FXPath, reuse `storageState` for auth, and enable trace-on-first-retry for CI debugging.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fplaywright\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7516PHY868BJXHHZJ0FRYSX","playwright-bdd","Wires Gherkin `.feature` files to Playwright via the `playwright-bdd` library. Use when running BDD scenarios on a Playwright runtime — pairs with the `gherkin-authoring` skill (scenario prose) and the `playwright` skill (browser conventions). Drives execution by tag expression with trace-first debugging and Playwright-native sharding.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fplaywright-bdd\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7516KEGSBBFJXRZWYBKYM4P","lighthouse-baseline","Codifies the capture-and-check baseline pattern for long-running quality signals (Lighthouse scores, bundle size, p95 latency, runtime memory). Use when wiring a new metric that needs a baseline file, paired :capture \u002F :check npm scripts, a tolerance-bounded gate, and a weekly refresh cadence — the goal is a hard CI signal that ratchets only with intent.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Flighthouse-baseline\u002FSKILL.md",[],[]]