Loading...
Loading...
用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时。
npx skill4agent add vinvcn/mattpocock-skills-zh-cn pr## Summary
<diagram, diff-sketch, or tree>
## Evidence
- **Before:** <screenshot/output/failing test run>
**After:** <screenshot/output/passing test run>
## Merge Danger
**Door:** <one-way or two-way>
<optional: description>
**Blast Radius:** <one-word description>
<optional: potential ramifications of merge>CONTEXT.mdon(save)
if content is unchanged
return cached result
write new content
return fresh resultsubmitForm
createSession
persistPrompt
launchAgent
navigateToSession<SessionPage>(apps / example / src / routes / session.tsx);
useSessionEvents() < SessionToolbar > <RunSkillButton>(packages / ui);src/
├── commands/ # parses user actions
├── sessions/ # owns session state
└── transport/ # sends API requestssequenceDiagram
participant User
participant UI
participant Daemon
User->>UI: choose command
UI->>Daemon: send expanded prompt
Daemon-->>UI: stream resultdiff <SessionPage>
useSessionEvents()
<SessionToolbar>
+ <RunSkillButton />
<SessionTimeline>
+ <SkillResultCard /> src/
├── commands/
+│ └── show-me.ts # expands the slash command
├── sessions/
-└── transport.ts
+└── transport/
+ ├── client.ts
+ └── stream.ts submitForm
createSession
persistPrompt
+ expandSkillMention
launchAgent
- navigateToSession
+ navigateToSession
+ subscribeToEvents on(save)
- write content
+ if content is unchanged
+ return cached result
+ write content
+ invalidate cachefunction expandSkill(command: string): string {
const skillName = command.slice(1);
return `use the ${skillName} skill`;
}