[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CT20ZZPQMXWTZY44HZWRZ2":3,"skill-same:01M6CT20ZZPQMXWTZY44HZWRZ2":95},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6CT20ZZPQMXWTZY44HZWRZ2","pi-agent-integration",null,"Guides implementation and review of the latest `@earendil-works\u002Fpi-agent-core` API. Use when a task mentions Pi `Agent`, agent loops, streaming, tools, queues, continuation, proxying, or aborts.","getsentry\u002Fjunior","getsentry","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1396951?v=4","01M6CHRN2S1A588Q46ASWA5335","Sentry","01M6CT1V0TF72B1X0MQT5MSYXF",421,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"pi","integration","pi agent","pi agent integration","queues","latest","loops","guides","when","continuation","streaming","review","task","scaffold","api","Tools","use","implementation","sessions","core","2026-11-10 10:12:30",false,"---\nname: pi-agent-integration\ndescription: Guides implementation and review of the latest `@earendil-works\u002Fpi-agent-core` API. Use when a task mentions Pi `Agent`, agent loops, streaming, tools, queues, continuation, proxying, or aborts.\n---\n\nImplement Pi consumers against the latest published API. Keep streaming stable, queue behavior explicit, and wrapper code small.\n\n## Step 1: Classify the request\n\n| Request type                                                           | Read first                                  |\n| ---------------------------------------------------------------------- | ------------------------------------------- |\n| Wire or update `Agent`, loop, provider, stream, or tool APIs           | `references\u002Fapi-surface.md`                 |\n| Add Pi behavior in an app, library, runtime, or adapter                | `references\u002Fcommon-use-cases.md`            |\n| Debug streaming, tools, queues, continuation, proxy, or abort failures | `references\u002Ftroubleshooting-workarounds.md` |\n\nLoad each reference that the task needs. Keep guidance Pi-specific unless the user asks about a consuming product.\n\n## Step 2: Apply integration guardrails\n\n1. Check npm `latest` for `@earendil-works\u002Fpi-agent-core` before relying on a contract. Treat the published package as authoritative. Treat upstream `main` as unreleased evidence.\n2. Pass a `streamFn` when constructing `Agent`. Also pass it as the last argument to low-level loop functions.\n3. Use `Agent` when event handling must finish before run settlement. Use `agentLoop` only when an observational event stream is enough.\n4. Stream user-visible text only from `message_update` when `assistantMessageEvent.type === \"text_delta\"`.\n5. Preserve assistant message boundaries when forwarding multi-message output.\n6. Do not call `prompt()`, `continue()`, or `reset()` while an agent is active. Queue mid-run input with `steer()` or `followUp()`.\n7. Continue a normal run only from a non-empty `user` or `toolResult` tail. An `assistant` tail can only drain queued steering or follow-up messages.\n8. Keep `streamFn`, `convertToLlm`, `transformContext`, `getApiKey`, queue providers, and loop hooks no-throw for expected failures. Return safe values or encode the failure in stream events.\n9. Keep tool calls, progress, results, thinking deltas, and provider payloads internal unless the product exposes them on purpose.\n10. Since `1.0.0`, the package contains only `Agent`, the agent loop, the proxy stream, and their types. The harness, sessions, compaction, skills, and prompt-template helpers are gone. Do not recommend them.\n\n## Step 3: Implement with minimal surface\n\n1. Prefer Pi options over wrapper state machines: `streamFn`, `getApiKey`, `sessionId`, `thinkingBudgets`, `transport`, `maxRetryDelayMs`, `identity`, `onPayload`, `onResponse`, `onProviderStreamEvent`, `beforeToolCall`, `afterToolCall`, `finishTurn`, `prepareRequest`, `prepareNextTurnWithContext`, `toolExecution`, `steeringMode`, and `followUpMode`.\n2. Mutate `Agent` through `agent.state` and public runtime options. `agent.state.systemPrompt` is read-only: append a system message to change the prompt. Call `reset()` only when idle.\n3. Use `transformContext` for message-level pruning or injection. Use `convertToLlm` for provider-compatible role conversion and filtering.\n4. Set queue modes to `\"one-at-a-time\"` or `\"all\"` when ordering or batching matters.\n5. Use `streamFn` with `streamProxy`-style behavior for server-proxied model access.\n6. Use `toolExecution`, per-tool `executionMode`, `beforeToolCall`, `afterToolCall`, thrown errors or `isError: true` results, and `terminate` before adding a custom tool runner.\n7. Keep timeout and abort paths observable. Make sure streams and iterables settle.\n\n## Step 4: Verify behavior\n\n1. Verify the event bridge emits only text deltas, preserves intended boundaries, and closes on success, error, and abort.\n2. Verify active-run handling for `prompt()`, `continue()`, and `reset()`. Verify queued `steer()` and `followUp()` behavior.\n3. Verify `continue()` with empty history and with `user`, `toolResult`, and `assistant` tails.\n4. Verify custom messages remain in agent state while `convertToLlm` emits only provider-compatible messages.\n5. Verify `streamFn` encodes expected provider failures instead of throwing or rejecting.\n6. Verify parallel and sequential tool ordering, hook blocking and patches, progress updates, usage, `agent.state.tools` changes, and termination.\n7. Verify `Agent.subscribe()` listener settlement and `waitForIdle()` with async listeners.\n\n## Step 5: Keep version discipline\n\n1. Target npm `latest` only.\n2. Re-check package metadata, declarations, implementation, README, and changelog before a material API update.\n3. Do not present unreleased `main` behavior as published behavior.\n4. Do not add compatibility shims or old package guidance unless the user asks for a migration.\n","Implement Pi consumers against the latest published API. Keep streaming stable, queue behavior explicit, and wrapper code small.\n\n## Step 1: Classify the request\n\n| Request type                                                           | Read first                                  |\n| ---------------------------------------------------------------------- | ------------------------------------------- |\n| Wire or update `Agent`, loop, provider, stream, or tool APIs           | `references\u002Fapi-surface.md`                 |\n| Add Pi behavior in an app, library, runtime, or adapter                | `references\u002Fcommon-use-cases.md`            |\n| Debug streaming, tools, queues, continuation, proxy, or abort failures | `references\u002Ftroubleshooting-workarounds.md` |\n\nLoad each reference that the task needs. Keep guidance Pi-specific unless the user asks about a consuming product.\n\n## Step 2: Apply integration guardrails\n\n1. Check npm `latest` for `@earendil-works\u002Fpi-agent-core` before relying on a contract. Treat the published package as authoritative. Treat upstream `main` as unreleased evidence.\n2. Pass a `streamFn` when constructing `Agent`. Also pass it as the last argument to low-level loop functions.\n3. Use `Agent` when event handling must finish before run settlement. Use `agentLoop` only when an observational event stream is enough.\n4. Stream user-visible text only from `message_update` when `assistantMessageEvent.type === \"text_delta\"`.\n5. Preserve assistant message boundaries when forwarding multi-message output.\n6. Do not call `prompt()`, `continue()`, or `reset()` while an agent is active. Queue mid-run input with `steer()` or `followUp()`.\n7. Continue a normal run only from a non-empty `user` or `toolResult` tail. An `assistant` tail can only drain queued steering or follow-up messages.\n8. Keep `streamFn`, `convertToLlm`, `transformContext`, `getApiKey`, queue providers, and loop hooks no-throw for expected failures. Return safe values or encode the failure in stream events.\n9. Keep tool calls, progress, results, thinking deltas, and provider payloads internal unless the product exposes them on purpose.\n10. Since `1.0.0`, the package contains only `Agent`, the agent loop, the proxy stream, and their types. The harness, sessions, compaction, skills, and prompt-template helpers are gone. Do not recommend them.\n\n## Step 3: Implement with minimal surface\n\n1. Prefer Pi options over wrapper state machines: `streamFn`, `getApiKey`, `sessionId`, `thinkingBudgets`, `transport`, `maxRetryDelayMs`, `identity`, `onPayload`, `onResponse`, `onProviderStreamEvent`, `beforeToolCall`, `afterToolCall`, `finishTurn`, `prepareRequest`, `prepareNextTurnWithContext`, `toolExecution`, `steeringMode`, and `followUpMode`.\n2. Mutate `Agent` through `agent.state` and public runtime options. `agent.state.systemPrompt` is read-only: append a system message to change the prompt. Call `reset()` only when idle.\n3. Use `transformContext` for message-level pruning or injection. Use `convertToLlm` for provider-compatible role conversion and filtering.\n4. Set queue modes to `\"one-at-a-time\"` or `\"all\"` when ordering or batching matters.\n5. Use `streamFn` with `streamProxy`-style behavior for server-proxied model access.\n6. Use `toolExecution`, per-tool `executionMode`, `beforeToolCall`, `afterToolCall`, thrown errors or `isError: true` results, and `terminate` before adding a custom tool runner.\n7. Keep timeout and abort paths observable. Make sure streams and iterables settle.\n\n## Step 4: Verify behavior\n\n1. Verify the event bridge emits only text deltas, preserves intended boundaries, and closes on success, error, and abort.\n2. Verify active-run handling for `prompt()`, `continue()`, and `reset()`. Verify queued `steer()` and `followUp()` behavior.\n3. Verify `continue()` with empty history and with `user`, `toolResult`, and `assistant` tails.\n4. Verify custom messages remain in agent state while `convertToLlm` emits only provider-compatible messages.\n5. Verify `streamFn` encodes expected provider failures instead of throwing or rejecting.\n6. Verify parallel and sequential tool ordering, hook blocking and patches, progress updates, usage, `agent.state.tools` changes, and termination.\n7. Verify `Agent.subscribe()` listener settlement and `waitForIdle()` with async listeners.\n\n## Step 5: Keep version discipline\n\n1. Target npm `latest` only.\n2. Re-check package metadata, declarations, implementation, README, and changelog before a material API update.\n3. Do not present unreleased `main` behavior as published behavior.\n4. Do not add compatibility shims or old package guidance unless the user asks for a migration.\n",{"name":5,"description":7},"main","2cd9a2833f9d21bd6aba00750ede56f6c8e77c4e",".agents\u002Fskills\u002Fpi-agent-integration",45,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior","https:\u002F\u002Fjunior.sentry.dev","https:\u002F\u002Fgithub.com\u002Fgetsentry","https:\u002F\u002Fsentry.io","Real-time crash reporting for your web apps, mobile apps, and games.","2026-11-15 03:43:52",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add getsentry\u002Fjunior --skill pi-agent-integration",{"tool":65,"command":66},"bunx","bunx skills add getsentry\u002Fjunior --skill pi-agent-integration",{"tool":68,"command":69},"pnpm","pnpm dlx skills add getsentry\u002Fjunior --skill pi-agent-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002FSKILL.md",true,[73,79,83,87,91],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi-surface.md","REFERENCE","参考文档",10999,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002Freferences\u002Fapi-surface.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fcommon-use-cases.md",4067,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002Freferences\u002Fcommon-use-cases.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Ftroubleshooting-workarounds.md",7052,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002Freferences\u002Ftroubleshooting-workarounds.md",{"path":88,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":89,"sourceHtmlUrl":90},"SOURCES.md",11322,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002FSOURCES.md",{"path":92,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":93,"sourceHtmlUrl":94},"SPEC.md",4112,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-agent-integration\u002FSPEC.md",[96,104,131,159,181,205],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M7B6SMD9BBQM69NRE8X77RPW","pantry-stock","Report what the office pantry has in stock. Use when users ask which snacks or drinks the pantry has, or what is running low.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002Fpackages\u002Fjunior-evals\u002Ffixtures\u002Fplugins\u002Feval-pantry\u002Fskills\u002Fpantry-stock\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":111,"publishedAt":44},"01M6CT5E87W8P93FGAVYDWD6RD","junior","Build, review, or update Junior extension skills and plugins. Use when users ask to create a Junior SKILL.md, app skill, plugin, plugin.yaml, packaged plugin, MCP-backed plugin, OAuth or credentialed plugin, or to validate Junior extension files. Do not use for ordinary Junior usage, provider workflows, generic code editing, or non-Junior agent-skill authoring.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002Fskills\u002Fjunior\u002FSKILL.md",[110],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[106,112,113,114,115,116,117,40,118,119,120,121,35,122,123,124,125,126,127,128,129,130,32],"do","provider","editing","skill authoring","files","MCP","OAuth","workflows","ask","code","create","plugin","build","update","app","usage","users","generic","for",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":141,"publishedAt":44},"01M6CT5AQRDSG19SBJACXGPMY9","junior-qa","Validate Junior changes through local app-facing paths. Use for local client or agent QA, dashboard mock reporting UI QA, sharing a preview URL of a running UI, Docker sandbox provider QA (also from inside a Vercel Sandbox), PR readiness, plugin CLI commands, skill\u002Ftool\u002Fprompt\u002Fplugin behavior, and behavior that tests do not cover well but can be exercised with `pnpm cli -- chat ...`, another `pnpm cli` command, or `JUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true pnpm dev`.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002Fskills\u002Fjunior-qa\u002FSKILL.md",[137,140],{"categoryNo":138,"categoryName":139,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[142,143,106,126,144,145,146,147,148,149,150,151,152,153,154,155,156,157,68,158],"qa","junior qa","conversations","local","URL","preview","dashboard","cli","command","reporting","pr readiness","commands","paths","cover","ui","but","running",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":166,"publishedAt":44},"01M6CT58D1SJNFZ19ZXK64ZX0R","eval-auth","Use for `\u002Feval-auth` requests in MCP auth-resume integration tests. Always connect through the disclosed MCP tool before answering, then continue the user's actual request using prior thread context when needed.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002Fpackages\u002Fjunior\u002Ftests\u002Ffixtures\u002Fplugins\u002Feval-auth\u002Fskills\u002Feval-auth\u002FSKILL.md",[165],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[167,168,169,170,171,172,25,173,117,40,174,175,176,177,130,178,179,180,32],"eval auth","auth","eval","resume","integration tests","tool","continue","connect","user","context","requests","request","tests","thread",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":44},"01M6CT55MZKCVBJH2X7T1HCRPX","jr-rpc","Manage low-level config and plugin introspection flows via jr-rpc bash commands. Use only when the user explicitly asks to read or update provider defaults\u002Fconfig or list installed plugins. Do not use for PR, branch, push, or auth-order questions; load the matching provider skill instead.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002Fpackages\u002Fjunior\u002Fskills\u002Fjr-rpc\u002FSKILL.md",[],[188,189,112,190,123,191,192,193,168,113,194,125,195,196,197,198,199,40,200,175,130,201,202,32,203,204],"jr rpc","rpc","branch","push","pr","introspection","manage","read","config","plugins","only","list","Bash","flows","load","via","questions",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":44},"01M6PQN1EZPHRJ5XAJP2J3ZS2T","xdotcom","Read public X (Twitter) data through the read-only X API v2. Use when users share an x.com or twitter.com link, or ask what someone posted on X, what people are saying about a topic, product, or launch on X, how much chatter something got, or for a post's text, metrics, replies, or an account's recent posts. Do not use it to post, reply, like, repost, follow, or send DMs, or to read private or protected data.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fjunior\u002Fblob\u002Fmain\u002Fpackages\u002Fjunior-xdotcom\u002Fskills\u002Fxdotcom\u002FSKILL.md",[],[207,112,212,130,213,214,215,216,198,217,40,218,120,200,38,219,220,128,221,222,32],"posts","read-only","x api","send","twitter","chatter","people","share","replies","text","post"]